Posts by FredK

    crashtest

    32bit support for my Helios4 is not a matter generally today, Armbian and OMV support the platform as long as only the NAS functionality is concerned. Another point of view is docker support for 32bit. That's the background of my plan

    > And I'll start developing a migration path to 64-bit, perhaps leaving the Helios4 for a while as a pure NAS, i.e. no docker support at all.

    As a pure NAS the system is unavailable from the internet by a specific VPN connection only.

    btw No 1: After nextcloud 26.0.2 was running finally, the system was upgraded successfully twice to 26.0.3 and 27.0.


    btw No 2: I worked in IT security for almost 20 years, most of that time at a large telco. If I'll experience the slightest indication of a security vulnerability the system will go offline if the vulnerability can't be mitigated. Regular security scans, e.g. https://scan.nextcloud.com/ will be performed. Today's rating: A.


    OTOH: In general I support your suggestion.

    Thank you. I'll give it a try at next opportunity. I'll report.

    "Next opportunity" was today. My experiences:

    • Generation of nextcloud and swag were quite straightforward.
    • Generation of nextclouddb (mariadb) required much manual work, detected later at initalization of my new nextcloud.
      • I got "Error while trying to create admin user: Failed to connect to the database" with "Connection refused".
        First idea was to use the addional environment parameters MYSQL_DATABASE, MYSQL_USER, MYSQL_PASSWORD as described in https://docs.linuxserver.io/images/docker-mariadb and RE: Nextcloud with Letsencrypt using OMV and docker-compose - Q&A:
        No success.
      • I had a look into the nextclouddb log and found at the beginning:
        [Setting Up Initial Databases
        chown: cannot access '/auth_pam_tool_dir/auth_pam_tool': No such file or directory
        Couldn't set an owner to '/auth_pam_tool_dir/auth_pam_tool'.
        It must be root, the PAM authentication plugin doesn't work otherwise..

        chown: cannot access '/auth_pam_tool_dir': No such file or directory

        Cannot change ownership of the '/auth_pam_tool_dir' directory to the 'abc' user.

        Check that you have the necessary permissions and try again.


        Installing MariaDB/MySQL system tables in '/config/databases' ...
        2023-07-13 11:36:36 0 [ERROR] mariadbd: File '/config/log/mysql/mariadb-bin.index' not found (Errcode: 13 "Permission denied") 2023-07-13 11:36:36 0 [ERROR] Aborting


        To remedy the situation I created a symbolic link
        /auth_pam_tool_dir -> /usr/lib/mariadb/plugin/auth_pam_tool_dir
        and changed ownership and permissions appropriate für user abc.
        Result: Looking better but not good.
      • At the end of the nextclouddb log I found:
        2023-07-13 11:36:36 0 [Note] Starting MariaDB 10.6.13-MariaDB-log source revision a24f2bb50ba4a0dd4127455f7fcdfed584937f36 as process 166
        2023-07-13 11:36:36 0 [ERROR] mariadbd: File '/config/log/mysql/mariadb-bin.index' not found (Errcode: 13 "Permission denied") 2023-07-13 11:36:36 0 [ERROR] Aborting

        I created the mariadb-bin.index with ownership abc:abc
        Result: Initalization of my new nextcloud successful.

    I know my actions look as severe hacks and I'm not happy with them. And I can't anticipate possible nasty adverse effects. I'm open to repeat the mariadb part of the nextcloud armhf installation.


    And I'll start developing a migration path to 64-bit, perhaps leaving the Helios4 for a while as a pure NAS, i.e. no docker support at all. Parallely building a 64-bit OMV with nextcloud first, moving the RAID5 at a later time.

    Thank you. I'll give it a try at next opportunity. I'll report.

    The time to move to arm64 is NOW (in this case). And I can see this happening to a huge amount of users that run armhf systems with Linuxserver images.


    For Nextcloud transition from armhf to arm64, I don't know if it will be just a matter of recreating the container on a new arm64 system.

    Maybe something to ask on their GitHub.

    I really like my Helios4 so I try to postpone switching to a new hardware until it gets completely unavoidable. Helios4 is a supported Armbian platform.


    I just found rather new "arm32v7-latest" packages on https://github.com/linuxserver/docker-nextcloud, https://github.com/linuxserver/docker-mariadb, https://github.com/linuxserver/docker-swag. Perhaps macom (author of the corresponding How-To) can comment. I could live with a fresh install of nextcloud because I'm the sole user.

    Works for me. Simple but effective solution on my armbian (32-bit) Helios4.

    I'm back in business after going back to "image: webhippie/mariadb:latest-arm32v6" and a restore of the last but one backup.

    I had to go this way because I didn't succeed with the latest mariadb image from webhippie which is release 10.6. I found several links where an incompatibility between nextcloud and mariadb 10.6 are described, e.g. https://github.com/nextcloud/docker/issues/1492


    I'll stay for a while with mariadb:latest-arm32v6 until the incompatibility will be resolved, instead of to try the workaround mentioned in the line above.


    EDIT:

    linuxserver/mariadb is at 10.5 → No incompatibility

    Googling brings up this: https://til.codes/how-to-fix-e…ed-storage-engine-innodb/


    Be sure to take backups before changing anything

    Last night I found a similar link. But I had no success (I better should have mention this detail).

    The log says now:

    The nextcloud login screen appears now but after the logon I see the "Internal Server Error" again.

    As on a armfh platform (see signature) I had to migrate from linuxserver/mariadb to webhippie/mariadb according to the guide by Morlan. Applying my weekly "docker-compose pull" I got for the first time a (brand-)new version of webhippie/mariadb. But after the "docker-compose up -d" and trying to connect to my nextcloud I get

    Code
    Internal Server Error
    
    The server encountered an internal error and was unable to complete your request.
    Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
    More details can be found in the server log.

    It looks as if the mariadb-container does not start.


    Any clue?


    Not without further information. What does the mariadb-container log say?

    ...

    That's the mariadb-log:

    As on a armfh platform (see signature) I had to migrate from linuxserver/mariadb to webhippie/mariadb according to the guide by Morlan. Applying my weekly "docker-compose pull" I got for the first time a (brand-)new version of webhippie/mariadb. But after the "docker-compose up -d" and trying to connect to my nextcloud I get

    Code
    Internal Server Error
    
    The server encountered an internal error and was unable to complete your request.
    Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
    More details can be found in the server log.

    It looks as if the mariadb-container does not start.


    Any clue?

    The problem with the incompatibility arises on 32-bit platforms as my Helios 4. I moved to webhippie and I'm waiting for the alpine based mariadb will be out of its pre-release state.

    Soma  Morlan

    As Soma I already enabled 4-Byte support in the past. For the restore of the database I used the "original" script, i.e. not the enhanced command.

    Emojis are still fine in nextcloud->mail: Subject and content with emojis are represented correctly. A text file containing emojis looks correct but not in the sidebar but i'm not sure whether this effect is a consequence of the former restore command.


    Another topic:

    linuxserver/docker-mariadb is migrating away from mariabionic (with 10.1.47) to alpine-10.5.8 (see https://github.com/linuxserver/docker-mariadb/releases).

    Morlan
    I'm stuck at last step (Disable maintenance mode)

    See my comments inline.

    EDIT:

    After repeating the database command using oc_he instead of oc_admin disabling maintenance mode was successful.

    Nextcloud started, login successful!

    Let me come back to my question in #446.

    In nextcloud now 20.0.7 I get the following warning in Settings->Overview:

    Quote

    MariaDB version "10.1.47-MariaDB-0ubuntu0.18.04.1" is used. Nextcloud 21 will no longer support this version and requires MariaDB 10.2 or higher.

    My hardware (see signature) is an arm32 device.

    Even the newest mariadb image https://github.com/linuxserver…/110.4.17mariabionic-ls10 ("Bump to 10.4 ...") doesn't suppress the warning message.

    Why? "Inside" the nextclouddb (=mariadb) container we have 10.1.47:

    Code
    root@7f6f464c863c:~# apt list --installed | grep maria
    
    WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
    
    mariadb-client-10.1/now 1:10.1.47-0ubuntu0.18.04.1 armhf [installed,local]
    mariadb-client-core-10.1/now 1:10.1.47-0ubuntu0.18.04.1 armhf [installed,local]
    mariadb-common/now 1:10.1.47-0ubuntu0.18.04.1 all [installed,local]
    mariadb-server/now 1:10.1.47-0ubuntu0.18.04.1 all [installed,local]
    mariadb-server-10.1/now 1:10.1.47-0ubuntu0.18.04.1 armhf [installed,local]
    mariadb-server-core-10.1/now 1:10.1.47-0ubuntu0.18.04.1 armhf [installed,local]

    What can I do?


    Remark: I also started a corresponding thread in armbian forum:

    https://forum.armbian.com/topi…iadb-docker-version-102ff


    EDIT:

    In https://discourse.linuxserver.io I found two posts which bring some light into the topic.


    1. From Nov 2020: https://discourse.linuxserver.…adb-on-raspberry-pi3/2221

    Mariadb dont push newer binaries for armhf


    2. From Mar 2020: https://discourse.linuxserver.…db-on-arm-still-v10-1/944

    arm one pulls from the ubuntu bionic repo: https://packages.ubuntu.com/bionic-updates/mariadb-server

    either that will be updated, or we’ll update the baseimage to ubuntu focal after it is released


    And the problem is: ubuntu focal doesn't support 32bit. So what to do with nextcloud 21?