truenas / charts

TrueNAS SCALE Apps Catalogs & Charts
BSD 3-Clause "New" or "Revised" License
308 stars 295 forks source link

24.10 / EE: Unable to install Nextcloud with default settings and ixvolumes #2909

Closed patsytau closed 2 weeks ago

patsytau commented 2 weeks ago

Setting admin username all passwords to 'test' (just for simplicity), and leaving all other values at their defaults, the Nextcloud app (App Version 30.0.1, Version 1.4.2) does not successfully launch. In the list of apps, it is shown with green status and 'running'. The containers have the following statuses after a few seconds:

nextcloud   – Exited
postgres    – Running
redis       – Running
permissions – Exited

The nextcloud log contains only the following lines:

2024-11-02 17:41:38.671234+00:00Configuring Redis as session handler
2024-11-02 17:41:39.532478+00:00Configuring Redis as session handler
2024-11-02 17:41:40.377734+00:00Configuring Redis as session handler
2024-11-02 17:41:41.271129+00:00Configuring Redis as session handler

postgres log:

2024-11-02 17:41:32.647352+00:00The files belonging to this database system will be owned by user "postgres".
2024-11-02 17:41:32.647381+00:00This user must also own the server process.
2024-11-02 17:41:32.647390+00:002024-11-02T17:41:32.647390759Z
2024-11-02 17:41:32.647448+00:00The database cluster will be initialized with locale "en_US.utf8".
2024-11-02 17:41:32.647458+00:00The default database encoding has accordingly been set to "UTF8".
2024-11-02 17:41:32.647473+00:00The default text search configuration will be set to "english".
2024-11-02 17:41:32.647482+00:002024-11-02T17:41:32.647482480Z
2024-11-02 17:41:32.647490+00:00Data page checksums are disabled.
2024-11-02 17:41:32.647499+00:002024-11-02T17:41:32.647499650Z
2024-11-02 17:41:32.647574+00:00fixing permissions on existing directory /var/lib/postgresql/data ... ok
2024-11-02 17:41:32.648729+00:00creating subdirectories ... ok
2024-11-02 17:41:32.648876+00:00selecting dynamic shared memory implementation ... posix
2024-11-02 17:41:32.663319+00:00selecting default max_connections ... 100
2024-11-02 17:41:32.685339+00:00selecting default shared_buffers ... 128MB
2024-11-02 17:41:32.685422+00:00selecting default time zone ... Etc/UTC
2024-11-02 17:41:32.686703+00:00creating configuration files ... ok
2024-11-02 17:41:32.822016+00:00running bootstrap script ... ok
2024-11-02 17:41:33.145733+00:00performing post-bootstrap initialization ... ok
2024-11-02 17:41:33.553679+00:00syncing data to disk ... ok
2024-11-02 17:41:33.553772+00:002024-11-02T17:41:33.553772572Z
2024-11-02 17:41:33.553791+00:002024-11-02T17:41:33.553791462Z
2024-11-02 17:41:33.553808+00:00Success. You can now start the database server using:
2024-11-02 17:41:33.553826+00:002024-11-02T17:41:33.553826282Z
2024-11-02 17:41:33.553843+00:00pg_ctl -D /var/lib/postgresql/data -l logfile start
2024-11-02 17:41:33.553869+00:002024-11-02T17:41:33.553869842Z
2024-11-02 17:41:33.553723+00:00initdb: warning: enabling "trust" authentication for local connections
2024-11-02 17:41:33.553904+00:00You can change this by editing pg_hba.conf or using the option -A, or
2024-11-02 17:41:33.553919+00:00--auth-local and --auth-host, the next time you run initdb.
2024-11-02 17:41:33.628013+00:00waiting for server to start....2024-11-02 17:41:33.627 UTC [35] LOG:  starting PostgreSQL 13.16 (Debian 13.16-1.pgdg120+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit
2024-11-02 17:41:33.636699+00:002024-11-02 17:41:33.636 UTC [35] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2024-11-02 17:41:33.661844+00:002024-11-02 17:41:33.661 UTC [36] LOG:  database system was shut down at 2024-11-02 17:41:33 UTC
2024-11-02 17:41:33.681350+00:002024-11-02 17:41:33.681 UTC [35] LOG:  database system is ready to accept connections
2024-11-02 17:41:33.778937+00:00done
2024-11-02 17:41:33.778964+00:00server started
2024-11-02 17:41:36.516461+00:00CREATE DATABASE
2024-11-02 17:41:36.517375+00:002024-11-02T17:41:36.517375011Z
2024-11-02 17:41:36.517552+00:002024-11-02T17:41:36.517552403Z
2024-11-02 17:41:36.517596+00:00/usr/local/bin/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/*
2024-11-02 17:41:36.517633+00:002024-11-02T17:41:36.517633044Z
2024-11-02 17:41:36.519101+00:002024-11-02 17:41:36.519 UTC [35] LOG:  received fast shutdown request
2024-11-02 17:41:36.528265+00:00waiting for server to shut down....2024-11-02 17:41:36.528 UTC [35] LOG:  aborting any active transactions
2024-11-02 17:41:36.531219+00:002024-11-02 17:41:36.531 UTC [35] LOG:  background worker "logical replication launcher" (PID 42) exited with exit code 1
2024-11-02 17:41:36.531485+00:002024-11-02 17:41:36.531 UTC [37] LOG:  shutting down
2024-11-02 17:41:36.590307+00:002024-11-02 17:41:36.590 UTC [35] LOG:  database system is shut down
2024-11-02 17:41:36.619337+00:00done
2024-11-02 17:41:36.619364+00:00server stopped
2024-11-02 17:41:36.620989+00:002024-11-02T17:41:36.620989129Z
2024-11-02 17:41:36.621015+00:00PostgreSQL init process complete; ready for start up.
2024-11-02 17:41:36.621031+00:002024-11-02T17:41:36.621031349Z
2024-11-02 17:41:36.669393+00:002024-11-02 17:41:36.669 UTC [1] LOG:  starting PostgreSQL 13.16 (Debian 13.16-1.pgdg120+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit
2024-11-02 17:41:36.669543+00:002024-11-02 17:41:36.669 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
2024-11-02 17:41:36.669563+00:002024-11-02 17:41:36.669 UTC [1] LOG:  listening on IPv6 address "::", port 5432
2024-11-02 17:41:36.692440+00:002024-11-02 17:41:36.692 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2024-11-02 17:41:36.709412+00:002024-11-02 17:41:36.709 UTC [50] LOG:  database system was shut down at 2024-11-02 17:41:36 UTC
2024-11-02 17:41:36.725343+00:002024-11-02 17:41:36.725 UTC [1] LOG:  database system is ready to accept connections

redis log:

2024-11-02 17:41:32.646306+00:00redis 17:41:32.64 INFO  ==> 
2024-11-02 17:41:32.647236+00:00redis 17:41:32.64 INFO  ==> Welcome to the Bitnami redis container
2024-11-02 17:41:32.648418+00:00redis 17:41:32.64 INFO  ==> Subscribe to project updates by watching https://github.com/bitnami/containers
2024-11-02 17:41:32.649371+00:00redis 17:41:32.64 INFO  ==> Submit issues and feature requests at https://github.com/bitnami/containers/issues
2024-11-02 17:41:32.650349+00:00redis 17:41:32.65 INFO  ==> Upgrade to Tanzu Application Catalog for production environments to access custom-configured and pre-packaged software components. Gain enhanced features, including Software Bill of Materials (SBOM), CVE scan result reports, and VEX documents. To learn more, visit https://bitnami.com/enterprise
2024-11-02 17:41:32.651282+00:00redis 17:41:32.65 INFO  ==> 
2024-11-02 17:41:32.653586+00:00redis 17:41:32.65 INFO  ==> ** Starting Redis setup **
2024-11-02 17:41:32.664399+00:00redis 17:41:32.66 INFO  ==> Initializing Redis
2024-11-02 17:41:32.674122+00:00redis 17:41:32.67 INFO  ==> Setting Redis config file
2024-11-02 17:41:32.850441+00:00redis 17:41:32.85 INFO  ==> ** Redis setup finished! **
2024-11-02 17:41:32.850466+00:002024-11-02T17:41:32.850466467Z
2024-11-02 17:41:32.868053+00:00redis 17:41:32.86 INFO  ==> ** Starting Redis **
2024-11-02 17:41:32.874905+00:001:C 02 Nov 2024 17:41:32.874 * oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
2024-11-02 17:41:32.874941+00:001:C 02 Nov 2024 17:41:32.874 * Redis version=7.4.1, bits=64, commit=00000000, modified=1, pid=1, just started
2024-11-02 17:41:32.874952+00:001:C 02 Nov 2024 17:41:32.874 * Configuration loaded
2024-11-02 17:41:32.875066+00:001:M 02 Nov 2024 17:41:32.875 * monotonic clock: POSIX clock_gettime
2024-11-02 17:41:32.875631+00:001:M 02 Nov 2024 17:41:32.875 * Running mode=standalone, port=6379.
2024-11-02 17:41:32.875831+00:001:M 02 Nov 2024 17:41:32.875 * Server initialized
2024-11-02 17:41:32.884584+00:001:M 02 Nov 2024 17:41:32.884 * Creating AOF base file appendonly.aof.1.base.rdb on server start
2024-11-02 17:41:32.904275+00:001:M 02 Nov 2024 17:41:32.904 * Creating AOF incr file appendonly.aof.1.incr.aof on server start
2024-11-02 17:41:32.904299+00:001:M 02 Nov 2024 17:41:32.904 * Ready to accept connections tcp
nblky commented 2 weeks ago

I was able to install NextCloud on the new Truenas Scale 24.10, but I couldn't fix the alarms it detected. like "trusted_proxies" You can first go to SSH to delete the relevant configuration, or re-mount the app path

patsytau commented 2 weeks ago

This was done with a known-unique app name - as far as I understand matters, that should mean no deletion of configurations from other attempts is necessary.

nblky commented 2 weeks ago

This was done with a known-unique app name - as far as I understand matters, that should mean no deletion of configurations from other attempts is necessary.

I failed to install at first, the container pool disk can overwrite the installation after the disk is remounted, delete the nextcoud container check delete ix and then reinstall

stavros-k commented 2 weeks ago

I've just tried a fresh nextcloud install. Used random name, random user and random passwords. (eg asdfasdfa) It deployed just fine.


Can you try a re-install and try to grab nextcloud logs as soon as possible? The current 'Configuring redis' log lines are probably only the logs after nextcloud failed once.

We will need the logs before those to find out what failed.

Thanks

patsytau commented 2 weeks ago

Hi there, no change unfortunately - it deploys and is listed as 'running' as before, but even if I click the log button as soon as it appears, I get a blank console that says No logs yet and it never updates, but if I refresh the page an re-open the logs I get the Configuring Redis as session handler lines again.

Is there another way that I might be able to access the logs? If not, is there any additional information I can provide?

patsytau commented 2 weeks ago

Same result with Nextcloud app version 1.4.3.

stavros-k commented 2 weeks ago

You can try opening another tab in truenas shell. Right after you hit install and the progress bar starts, you can start "spamming" this command, it will take few tries to start following the logs, until the nextcloud container is created.

sudo docker logs ix-nextcloud-nextcloud-1 -f
patsytau commented 2 weeks ago

I spammed the command as quickly as I could but only received the following:

root@anastasia:/home/truenas_admin# docker logs ix-nextcloud-nextcloud-1 -f
Error response from daemon: No such container: ix-nextcloud-nextcloud-1
root@anastasia:/home/truenas_admin# docker logs ix-nextcloud-nextcloud-1 -f
Error response from daemon: No such container: ix-nextcloud-nextcloud-1
root@anastasia:/home/truenas_admin# docker logs ix-nextcloud-nextcloud-1 -f
root@anastasia:/home/truenas_admin# docker logs ix-nextcloud-nextcloud-1 -f
root@anastasia:/home/truenas_admin# docker logs ix-nextcloud-nextcloud-1 -f
root@anastasia:/home/truenas_admin# docker logs ix-nextcloud-nextcloud-1 -f
root@anastasia:/home/truenas_admin# docker logs ix-nextcloud-nextcloud-1 -f
root@anastasia:/home/truenas_admin# docker logs ix-nextcloud-nextcloud-1 -f
^[[A
^[[A
^[[A
Configuring Redis as session handler
root@anastasia:/home/truenas_admin# docker logs ix-nextcloud-nextcloud-1 -f
^[[A
Configuring Redis as session handler
Configuring Redis as session handler
root@anastasia:/home/truenas_admin# docker logs ix-nextcloud-nextcloud-1 -f
^[[A
^[[A
Configuring Redis as session handler
Configuring Redis as session handler
Configuring Redis as session handler
root@anastasia:/home/truenas_admin# docker logs ix-nextcloud-nextcloud-1 -f
^[[A
Configuring Redis as session handler
Configuring Redis as session handler
Configuring Redis as session handler
Configuring Redis as session handler
root@anastasia:/home/truenas_admin# docker logs ix-nextcloud-nextcloud-1 -f
Configuring Redis as session handler
Configuring Redis as session handler
Configuring Redis as session handler
Configuring Redis as session handler

Running docker ps after this gives the following:

ONTAINER ID   IMAGE                                                                                  COMMAND                  CREATED          STATUS                            PORTS                                                                                                                                                                       NAMES
fb81c3f6ccde   ix-nextcloud:30.0.1_23837e39bc18b8f10a4bf4d228f5a96b010bf9255353ca6326cb15cef9c7d158   "/entrypoint.sh apac…"   2 minutes ago    Restarting (255) 27 seconds ago                                                                                                                                                                               ix-nextcloud-nextcloud-1
4ec350e8cbb8   postgres:13.16                                                                         "docker-entrypoint.s…"   2 minutes ago    Up 2 minutes (healthy)            5432/tcp                                                                                                                                                                    ix-nextcloud-postgres-1
5433586c4f9f   bitnami/redis:7.4.1                                                                    "/opt/bitnami/script…"   2 minutes ago    Up 2 minutes (healthy)            6379/tcp                                                                                                                                                                    ix-nextcloud-redis-1

It seems to keep restarting, which I guess is why Configuring Redis... keeps appearing.

stavros-k commented 2 weeks ago

You are deleting (selecting to delete ix volumes as well) and recreating each time right?

This seems like nextcloud skips initialization part and goes straight to configuration. Which isn't what should happen in a fresh install

patsytau commented 2 weeks ago

I am, yes. Could log output inadvertently be being redirected elsewhere?

stavros-k commented 2 weeks ago

Nope, at least not without manual changes.

Can you also check that there is nothing nextcloud related under /mnt/.ix-apps/app_configs and /mnt/.ix-apps/app_mounts?

patsytau commented 2 weeks ago

After deleting the app (with ixVolumes) shows the following before installation:

root@anastasia:/mnt/.ix-apps# ls -la app_configs/
total 20
drwxr-xr-x 8 root root 8 Nov  4 15:20 .
drwxr-xr-x 6 root root 8 Oct 28 19:14 ..
drwxr-xr-x 3 root root 4 Nov  4 14:32 adguard-home
drwxr-xr-x 3 root root 4 Oct 28 22:19 caddy
drwxr-xr-x 3 root root 4 Nov  4 14:32 ddns-updater
drwxr-xr-x 3 root root 4 Oct 29 18:44 forgejo
drwxr-xr-x 3 root root 4 Nov  4 14:32 jellyfin
drwxr-xr-x 3 root root 4 Nov  4 14:33 wg-easy
root@anastasia:/mnt/.ix-apps# ls -la app_mounts/
total 19
drwxr-xr-x 6 root root 6 Nov  4 15:20 .
drwxr-xr-x 6 root root 8 Oct 28 19:14 ..
drwxr-xr-x 4 root root 4 Oct 28 16:52 adguard-home
drwxr-xr-x 3 root root 3 Oct 28 17:05 ddns-updater
drwxr-xr-x 3 root root 3 Oct 28 17:14 jellyfin
drwxr-xr-x 3 root root 3 Nov  2 14:28 wg-easy
root@anastasia:/mnt/.ix-apps# mount | grep next
mycloud/nextcloud on /mnt/mycloud/nextcloud type zfs (rw,relatime,xattr,nfs4acl,casesensitive)
mycloud/nextcloud/db on /mnt/mycloud/nextcloud/db type zfs (rw,relatime,xattr,nfs4acl,casesensitive)
mycloud/nextcloud/files on /mnt/mycloud/nextcloud/files type zfs (rw,relatime,xattr,nfs4acl,casesensitive)

These mounted nextcloud datasets are from my installation on TrueNAS Core.

After installation:

root@anastasia:/mnt/.ix-apps# ls -la app_configs/
total 21
drwxr-xr-x 9 root root 9 Nov  4 15:22 .
drwxr-xr-x 6 root root 8 Oct 28 19:14 ..
drwxr-xr-x 3 root root 4 Nov  4 14:32 adguard-home
drwxr-xr-x 3 root root 4 Oct 28 22:19 caddy
drwxr-xr-x 3 root root 4 Nov  4 14:32 ddns-updater
drwxr-xr-x 3 root root 4 Oct 29 18:44 forgejo
drwxr-xr-x 3 root root 4 Nov  4 14:32 jellyfin
drwxr-xr-x 3 root root 4 Nov  4 15:22 nextcloud
drwxr-xr-x 3 root root 4 Nov  4 14:33 wg-easy
root@anastasia:/mnt/.ix-apps# ls -la app_mounts/
total 20
drwxr-xr-x 7 root root 7 Nov  4 15:21 .
drwxr-xr-x 6 root root 8 Oct 28 19:14 ..
drwxr-xr-x 4 root root 4 Oct 28 16:52 adguard-home
drwxr-xr-x 3 root root 3 Oct 28 17:05 ddns-updater
drwxr-xr-x 3 root root 3 Oct 28 17:14 jellyfin
drwxr-xr-x 5 root root 5 Nov  4 15:22 nextcloud
drwxr-xr-x 3 root root 3 Nov  2 14:28 wg-easy
root@anastasia:/mnt/.ix-apps# mount | grep next
mycloud/nextcloud on /mnt/mycloud/nextcloud type zfs (rw,relatime,xattr,nfs4acl,casesensitive)
mycloud/nextcloud/db on /mnt/mycloud/nextcloud/db type zfs (rw,relatime,xattr,nfs4acl,casesensitive)
mycloud/nextcloud/files on /mnt/mycloud/nextcloud/files type zfs (rw,relatime,xattr,nfs4acl,casesensitive)
mycloud/ix-apps/app_mounts/nextcloud on /mnt/.ix-apps/app_mounts/nextcloud type zfs (rw,noatime,xattr,posixacl,casesensitive)
mycloud/ix-apps/app_mounts/nextcloud/data on /mnt/.ix-apps/app_mounts/nextcloud/data type zfs (rw,noatime,xattr,posixacl,casesensitive)
mycloud/ix-apps/app_mounts/nextcloud/html on /mnt/.ix-apps/app_mounts/nextcloud/html type zfs (rw,noatime,xattr,posixacl,casesensitive)
mycloud/ix-apps/app_mounts/nextcloud/postgres_data on /mnt/.ix-apps/app_mounts/nextcloud/postgres_data type zfs (rw,noatime,xattr,posixacl,casesensitive)
stavros-k commented 2 weeks ago

Okay so it's indeed a fresh install. Can you please share the output of the following command?

midclt call app.config nextcloud | jq

Run this while nextcloud is installed, replace nextcloud with the name you gave to the app (if different) NOTE: it will contain the passwords you entered.

patsytau commented 2 weeks ago

Here you go. I set every username/password/appname to 'ilikecheese' :)

{
  "ix_certificate_authorities": {},
  "ix_certificates": {},
  "ix_context": {
    "app_metadata": {
      "app_version": "30.0.1",
      "capabilities": [
        {
          "description": "Nextcloud and Nginx are able to chown files.",
          "name": "CHOWN"
        },
        {
          "description": "Nextcloud and Nginx are able to bypass permission checks for it's sub-processes.",
          "name": "FOWNER"
        },
        {
          "description": "Nextcloud and Nginx are able to bypass permission checks.",
          "name": "DAC_OVERRIDE"
        },
        {
          "description": "Nextcloud and Nginx are able to set group ID for it's sub-processes.",
          "name": "SETGID"
        },
        {
          "description": "Nextcloud and Nginx are able to set user ID for it's sub-processes.",
          "name": "SETUID"
        },
        {
          "description": "Nextcloud and Nginx are able to bind to privileged ports.",
          "name": "NET_BIND_SERVICE"
        },
        {
          "description": "Nextcloud and Nginx are able to use raw sockets.",
          "name": "NET_RAW"
        }
      ],
      "categories": [
        "productivity"
      ],
      "description": "A file sharing server that puts the control and security of your own data back into your hands.",
      "home": "https://nextcloud.com/",
      "host_mounts": [],
      "icon": "https://media.sys.truenas.net/apps/nextcloud/icons/icon.svg",
      "keywords": [
        "nextcloud",
        "storage",
        "sync",
        "http",
        "web",
        "php"
      ],
      "last_update": "2024-11-04 13:18:25",
      "lib_version": "2.0.7",
      "lib_version_hash": "a483d30e0180b3e5f0cff93a55b867dbebe8e3b7561cacc376bfde91865f40d8",
      "maintainers": [
        {
          "email": "dev@ixsystems.com",
          "name": "truenas",
          "url": "https://www.truenas.com/"
        }
      ],
      "name": "nextcloud",
      "run_as_context": [
        {
          "description": "Nextcloud runs as root user.",
          "gid": 0,
          "group_name": "root",
          "uid": 0,
          "user_name": "root"
        },
        {
          "description": "Postgres runs as non-root user.",
          "gid": 999,
          "group_name": "postgres",
          "uid": 999,
          "user_name": "postgres"
        },
        {
          "description": "Redis runs as a non-root user and root group.",
          "gid": 0,
          "group_name": "root",
          "uid": 1001,
          "user_name": "redis"
        },
        {
          "description": "Nginx runs as root user.",
          "gid": 0,
          "group_name": "root",
          "uid": 0,
          "user_name": "root"
        }
      ],
      "screenshots": [
        "https://media.sys.truenas.net/apps/nextcloud/screenshots/screenshot1.png",
        "https://media.sys.truenas.net/apps/nextcloud/screenshots/screenshot2.png",
        "https://media.sys.truenas.net/apps/nextcloud/screenshots/screenshot3.png"
      ],
      "sources": [
        "https://github.com/nextcloud/docker",
        "https://github.com/nextcloud/helm",
        "https://github.com/truenas/charts/tree/master/charts/nextcloud"
      ],
      "title": "Nextcloud",
      "train": "stable",
      "version": "1.4.3"
    },
    "app_name": "ilikecheese",
    "is_install": true,
    "is_rollback": false,
    "is_update": false,
    "is_upgrade": false,
    "operation": "INSTALL",
    "upgrade_metadata": {}
  },
  "ix_volumes": {
    "data": "/mnt/.ix-apps/app_mounts/ilikecheese/data",
    "html": "/mnt/.ix-apps/app_mounts/ilikecheese/html",
    "postgres_data": "/mnt/.ix-apps/app_mounts/ilikecheese/postgres_data"
  },
  "network": {
    "certificate_id": null,
    "dns_opts": [],
    "web_port": 30027
  },
  "nextcloud": {
    "additional_envs": [],
    "admin_password": "ilikecheese",
    "admin_user": "ilikecheese",
    "apt_packages": [],
    "cron": {
      "enabled": false
    },
    "data_dir_path": "/var/www/html/data",
    "db_password": "ilikecheese",
    "db_user": "nextcloud",
    "host": "",
    "max_execution_time": 30,
    "op_cache_memory_consumption": 128,
    "php_memory_limit": 512,
    "php_upload_limit": 3,
    "redis_password": "ilikecheese",
    "tesseract_languages": []
  },
  "release_name": "ilikecheese",
  "resources": {
    "gpus": {
      "nvidia_gpu_selection": {},
      "use_all_gpus": false
    },
    "limits": {
      "cpus": 2,
      "memory": 4096
    }
  },
  "storage": {
    "additional_storage": [],
    "data": {
      "ix_volume_config": {
        "acl_enable": false,
        "dataset_name": "data"
      },
      "type": "ix_volume"
    },
    "html": {
      "ix_volume_config": {
        "acl_enable": false,
        "dataset_name": "html"
      },
      "type": "ix_volume"
    },
    "is_data_in_the_same_volume": false,
    "postgres_data": {
      "ix_volume_config": {
        "acl_enable": false,
        "dataset_name": "postgres_data"
      },
      "type": "ix_volume"
    }
  }
}
stavros-k commented 2 weeks ago

Well I like cheese too and I used the same as well.

2024-11-04 15:47:21.982080+00:00Configuring Redis as session handler
2024-11-04 15:47:22.014595+00:00Initializing nextcloud 30.0.1.2 ...
2024-11-04 15:47:30.284237+00:00New nextcloud instance
2024-11-04 15:47:30.312560+00:00Installing with PostgreSQL database
2024-11-04 15:47:30.312675+00:00=> Searching for scripts (*.sh) to run, located in the folder: /docker-entrypoint-hooks.d/pre-installation
2024-11-04 15:47:30.314184+00:00Starting nextcloud installation
2024-11-04 15:47:40.152625+00:00Nextcloud was successfully installed
2024-11-04 15:47:40.163713+00:00Setting trusted domains…
2024-11-04 15:47:40.384188+00:00System config value trusted_domains => 1 set to string 127.0.0.1
2024-11-04 15:47:40.594830+00:00System config value trusted_domains => 2 set to string localhost
2024-11-04 15:47:40.802813+00:00System config value trusted_domains => 3 set to string nextcloud
2024-11-04 15:47:40.812172+00:00=> Searching for scripts (*.sh) to run, located in the folder: /docker-entrypoint-hooks.d/post-installation
2024-11-04 15:47:40.814324+00:00Initializing finished
2024-11-04 15:47:40.829984+00:00=> Searching for scripts (*.sh) to run, located in the folder: /docker-entrypoint-hooks.d/before-starting
2024-11-04 15:47:40.831564+00:00==> Running the script (cwd: /var/www/html): "/docker-entrypoint-hooks.d/before-starting/ix-update-hosts-script.sh"
2024-11-04 15:47:40.836772+00:00Updating database and redis host in config.php
2024-11-04 15:47:41.044385+00:00System config value redis => host set to string redis
2024-11-04 15:47:41.057365+00:00==> Finished the script: "/docker-entrypoint-hooks.d/before-starting/ix-update-hosts-script.sh"
2024-11-04 15:47:41.088451+00:00AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.16.1.4. Set the 'ServerName' directive globally to suppress this message
2024-11-04 15:47:41.100970+00:00AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.16.1.4. Set the 'ServerName' directive globally to suppress this message
2024-11-04 15:47:41.128868+00:00[Mon Nov 04 15:47:41.128804 2024] [mpm_prefork:notice] [pid 1:tid 1] AH00163: Apache/2.4.62 (Debian) PHP/8.2.25 configured -- resuming normal operations
2024-11-04 15:47:41.128908+00:00[Mon Nov 04 15:47:41.128837 2024] [core:notice] [pid 1:tid 1] AH00094: Command line: 'apache2 -D FOREGROUND'
2024-11-04 15:47:42.398576+00:00127.0.0.1 - - [04/Nov/2024:15:47:42 +0000] "GET /status.php HTTP/1.1" 200 1537 "-" "curl/7.88.1"

This is so weird. The script (from upstream) between these 2 lines, has hardly something to fail. Not sure why it doesn't move on on your case :/

2024-11-04 15:47:21.982080+00:00Configuring Redis as session handler
2024-11-04 15:47:22.014595+00:00Initializing nextcloud 30.0.1.2 ...

Can you try:

nblky commented 2 weeks ago

After deleting the app (with ixVolumes) shows the following before installation:

root@anastasia:/mnt/.ix-apps# ls -la app_configs/
total 20
drwxr-xr-x 8 root root 8 Nov  4 15:20 .
drwxr-xr-x 6 root root 8 Oct 28 19:14 ..
drwxr-xr-x 3 root root 4 Nov  4 14:32 adguard-home
drwxr-xr-x 3 root root 4 Oct 28 22:19 caddy
drwxr-xr-x 3 root root 4 Nov  4 14:32 ddns-updater
drwxr-xr-x 3 root root 4 Oct 29 18:44 forgejo
drwxr-xr-x 3 root root 4 Nov  4 14:32 jellyfin
drwxr-xr-x 3 root root 4 Nov  4 14:33 wg-easy
root@anastasia:/mnt/.ix-apps# ls -la app_mounts/
total 19
drwxr-xr-x 6 root root 6 Nov  4 15:20 .
drwxr-xr-x 6 root root 8 Oct 28 19:14 ..
drwxr-xr-x 4 root root 4 Oct 28 16:52 adguard-home
drwxr-xr-x 3 root root 3 Oct 28 17:05 ddns-updater
drwxr-xr-x 3 root root 3 Oct 28 17:14 jellyfin
drwxr-xr-x 3 root root 3 Nov  2 14:28 wg-easy
root@anastasia:/mnt/.ix-apps# mount | grep next
mycloud/nextcloud on /mnt/mycloud/nextcloud type zfs (rw,relatime,xattr,nfs4acl,casesensitive)
mycloud/nextcloud/db on /mnt/mycloud/nextcloud/db type zfs (rw,relatime,xattr,nfs4acl,casesensitive)
mycloud/nextcloud/files on /mnt/mycloud/nextcloud/files type zfs (rw,relatime,xattr,nfs4acl,casesensitive)

These mounted nextcloud datasets are from my installation on TrueNAS Core.

After installation:

root@anastasia:/mnt/.ix-apps# ls -la app_configs/
total 21
drwxr-xr-x 9 root root 9 Nov  4 15:22 .
drwxr-xr-x 6 root root 8 Oct 28 19:14 ..
drwxr-xr-x 3 root root 4 Nov  4 14:32 adguard-home
drwxr-xr-x 3 root root 4 Oct 28 22:19 caddy
drwxr-xr-x 3 root root 4 Nov  4 14:32 ddns-updater
drwxr-xr-x 3 root root 4 Oct 29 18:44 forgejo
drwxr-xr-x 3 root root 4 Nov  4 14:32 jellyfin
drwxr-xr-x 3 root root 4 Nov  4 15:22 nextcloud
drwxr-xr-x 3 root root 4 Nov  4 14:33 wg-easy
root@anastasia:/mnt/.ix-apps# ls -la app_mounts/
total 20
drwxr-xr-x 7 root root 7 Nov  4 15:21 .
drwxr-xr-x 6 root root 8 Oct 28 19:14 ..
drwxr-xr-x 4 root root 4 Oct 28 16:52 adguard-home
drwxr-xr-x 3 root root 3 Oct 28 17:05 ddns-updater
drwxr-xr-x 3 root root 3 Oct 28 17:14 jellyfin
drwxr-xr-x 5 root root 5 Nov  4 15:22 nextcloud
drwxr-xr-x 3 root root 3 Nov  2 14:28 wg-easy
root@anastasia:/mnt/.ix-apps# mount | grep next
mycloud/nextcloud on /mnt/mycloud/nextcloud type zfs (rw,relatime,xattr,nfs4acl,casesensitive)
mycloud/nextcloud/db on /mnt/mycloud/nextcloud/db type zfs (rw,relatime,xattr,nfs4acl,casesensitive)
mycloud/nextcloud/files on /mnt/mycloud/nextcloud/files type zfs (rw,relatime,xattr,nfs4acl,casesensitive)
mycloud/ix-apps/app_mounts/nextcloud on /mnt/.ix-apps/app_mounts/nextcloud type zfs (rw,noatime,xattr,posixacl,casesensitive)
mycloud/ix-apps/app_mounts/nextcloud/data on /mnt/.ix-apps/app_mounts/nextcloud/data type zfs (rw,noatime,xattr,posixacl,casesensitive)
mycloud/ix-apps/app_mounts/nextcloud/html on /mnt/.ix-apps/app_mounts/nextcloud/html type zfs (rw,noatime,xattr,posixacl,casesensitive)
mycloud/ix-apps/app_mounts/nextcloud/postgres_data on /mnt/.ix-apps/app_mounts/nextcloud/postgres_data type zfs (rw,noatime,xattr,posixacl,casesensitive)

Switch back to the root directory in the ssh connection during the following operations

cmd:cd ~

First make sure there are no pg containers running Cmd:docker ps -a

  1. Delete nextcloud check box to delete ixa
  2. App-> config uninstall and remount the disk in use, reinstall the nextcloud and delete the nextcloud after installation.
  3. Do not check the path when installing the nextcloud configuration again
  4. If you want to customize the data path, you need to first create a corresponding folders to change their permissions nextcloud data and userdata folder properties user group to www-data (maybe), pgdata to user and group set 999
patsytau commented 2 weeks ago

There were a few things leftover from an attempt to install the Nextcloud AIO image, but having removed them I get the same logs as before.

patsytau commented 2 weeks ago

@nblky I'm doing this completely with ixVolumes to minimise the risk of any customisation causing problems. When I was trying to use host paths I was also setting the permissions as you suggest.

patsytau commented 2 weeks ago

@nblky unsetting/resetting the mount pool and removing/reinstalling has no impact on the outcome.

nblky commented 2 weeks ago

@nblky unsetting/resetting the mount pool and removing/reinstalling has no impact on the outcome.

reinstall and change the name like nextcloud-2

patsytau commented 2 weeks ago

I have done so with each reinstallation of the app.

stavros-k commented 2 weeks ago

To be honest, I'm currently out of ideas. Does it work if you use host paths? Ensure that postgres has 999:999 <user:group>. (Not ACLs, as it seems that postgres does not like that)

patsytau commented 2 weeks ago

It seems likely that this is something unusual or that I may have had remnants of the AIO image installation still lurking that caused problems. I've got the AIO image up and running, so (at least from my perspective) I'm happy if you want to close this issue with "Something weird happening on her machine.". Thank you for your persistence with this :)

stavros-k commented 2 weeks ago

It's still so weird for me :') I'll close this for now, but I'll keep this in the back of my head, if I stumble on something similar and find a solution. I'll let you know!

Thanks!