linuxserver / docker-nextcloud

GNU General Public License v3.0
677 stars 128 forks source link

[BUG] Always have the installer page when i restart nextcloud #437

Closed ddcorazon closed 2 weeks ago

ddcorazon commented 1 month ago

Is there an existing issue for this?

Current Behavior

Hello,

I have a weird behavior when trying to run nextcloud on my docker at home using the image tag latest (i tried using first docker swarm stacl and after docker compose on a standalone server, same issue)

The first install is OK when i run the container, it show the configuration web UI and then i enter all the informations (i'am using mariadb as database but the same issue happen using sqlite). I have a volume in my docker compose file and everything running ok until i stop my containers. and the issue is when i stop the docker compose and run it again, it still show me the webui installer page like on first installer.

For infos use docker exec command on the database container and log in into mysql using username provided and i have after the first initialization the database containing all tables and the table oc_users containing the admin user i created

Expected Behavior

No response

Steps To Reproduce

1 - create a docker compose file launch docker compose up -d

Environment

- OS: Ubuntu 22.04
- Docker version 26.0.0, build 2ae903e
- How docker service was installed: using official methods https://docs.docker.com/engine/install/ubuntu/

CPU architecture

x86-64

Docker creation

version: "3.7"
services:
  nextcloud_db:
    image: mariadb:10.6
    command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW
    container_name: nextcloud_db
    volumes:
      # - /cephfs/docker/nextcloud/config/mariadb:/var/lib/mysql
      - /home/dockeruser/nextcloud/config/mariadb:/var/lib/mysql
    environment:
      - MYSQL_ROOT_PASSWORD=mL-boa2qM9
      - MYSQL_PASSWORD=chuck2jamaican
      - MYSQL_DATABASE=nextcloud
      - MYSQL_USER=nextcloud
      - TZ=Europe/Paris
      - PUID=1010
      - PGID=1010
    networks:
      - nextcloud_int

  nextcloud_app:
    image: lscr.io/linuxserver/nextcloud:latest
    container_name: nextcloud_app
    ports:
      - 4358:443
    volumes:
      # - /cephfs/docker/nextcloud/config/app:/var/www/html
      # - /syno/nextcloud:/data
      - /home/dockeruser/nextcloud/config/app:/var/www/html
      - /home/dockeruser/nextcloud/data:/data

    environment:
      - MYSQL_PASSWORD=chuck2jamaican
      - MYSQL_DATABASE=nextcloud
      - MYSQL_USER=nextcloud
      - MYSQL_HOST=nextcloud_db
      - PUID=1010
      - PGID=1010
      - TZ=Europe/Paris
    networks:
      - allcontainers
      - nextcloud_int
    depends_on:
      - nextcloud_db

networks:
  allcontainers:
  nextcloud_int:

Container logs

[migrations] started
[migrations] 01-nginx-site-confs-default: executing...
[migrations] 01-nginx-site-confs-default: succeeded
[migrations] 02-default-location: executing...
[migrations] 02-default-location: succeeded
[migrations] done
───────────────────────────────────────

      ██╗     ███████╗██╗ ██████╗
      ██║     ██╔════╝██║██╔═══██╗
      ██║     ███████╗██║██║   ██║
      ██║     ╚════██║██║██║   ██║
      ███████╗███████║██║╚██████╔╝
      ╚══════╝╚══════╝╚═╝ ╚═════╝

   Brought to you by linuxserver.io
───────────────────────────────────────

To support LSIO projects visit:
https://www.linuxserver.io/donate/

───────────────────────────────────────
GID/UID
───────────────────────────────────────

User UID:    1010
User GID:    1010
───────────────────────────────────────

Setting resolver to  127.0.0.11
Setting worker_processes to 8
generating self-signed keys in /config/keys, you can replace these with your own keys if required
...+.............+.....+.+++++++++++++++++++++++++++++++++++++++*.......+...+.....+.........+++++++++++++++++++++++++++++++++++++++*...........+.+...........+.+.....+...+.+.....+....+..+..........+...+......+..............+............+...+.+...+.....+......+...............+.+...+..+.........+....+..+....+............+..+.+.........+............+........+...............+.+............+...+..+...+.+...+.....+..........+........+...+....+...+..+................+..+.............+......+......+...+..........................+.+........+....+..+.+........+......+...............+....+..+...............+.........+.+..+.+......+......+..+..........+...+..+...+.............+.........+............+.....+...+......+.......+..+.+.........+.....+............+....+......+.....+...+.......+.....+.............+...+.....+....+.....................+.....+...+.+...+..+...+.......++++++
.....+.......+........+.......+++++++++++++++++++++++++++++++++++++++*.+...+++++++++++++++++++++++++++++++++++++++*.+....+..+.+........++++++
-----
Initializing nextcloud 29.0.0.19 (this can take a while) ...
Setting permissions
New nextcloud instance
Please run the web-based installer on first connect!
Initializing finished
After completing the web-based installer, restart the Nextcloud container to apply default memory caching and transactional file locking configurations.
Alternatively, you can apply your own configurations by editing /config/www/nextcloud/config/config.php following the documentation:
https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/caching_configuration.html
https://docs.nextcloud.com/server/latest/admin_manual/configuration_files/files_locking_transactional.html
[custom-init] No custom files found, skipping...
[ls.io-init] done.
Exception: Not installed in /app/www/public/lib/base.php:284
Stack trace:
#0 /app/www/public/lib/base.php(715): OC::checkInstalled()
#1 /app/www/public/lib/base.php(1181): OC::init()
#2 /app/www/public/cron.php(58): require_once('...')
#3 {main}
Exception: Not installed in /app/www/public/lib/base.php:284
Stack trace:
#0 /app/www/public/lib/base.php(715): OC::checkInstalled()
#1 /app/www/public/lib/base.php(1181): OC::init()
#2 /app/www/public/cron.php(58): require_once('...')
#3 {main}
github-actions[bot] commented 1 month ago

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

LinuxServer-CI commented 2 weeks ago

This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.