linuxserver / docker-nextcloud

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

[BUG] Nexcloud web-install results in "504 Gateway Time-out" #415

Closed ceceba223 closed 3 months ago

ceceba223 commented 4 months ago

Is there an existing issue for this?

Current Behavior

I'm trying to set up the official linuxserver.io nexcloud image (first through portainer but I also tried CLI). The container deploys successfully and I can access the web setup. I enter admin username and password and click install, the server then loads for a while before displaying 504 Gateway Time-out. At the same time the docker log displays the following error:

Exception: Not installed in /app/www/public/lib/base.php:283
Stack trace:
#0 /app/www/public/lib/base.php(709): OC::checkInstalled()
#1 /app/www/public/lib/base.php(1200): OC::init()
#2 /app/www/public/cron.php(43): require_once('...')
#3 {main}

Expected Behavior

The Web setup finishes loading and creates an admin user from which i can user nextcloud.

Steps To Reproduce

  1. Run Debian GNU/Linux 12 (bookworm) (inside Proxmox)
  2. Run the CLI command from the linuxserver.io docs
  3. Access the webpage
  4. Enter Username and password & click install
  5. 504 Gateway Time-out

Environment

- OS: Debian GNU/Linux 12 (bookworm) (inside Proxmox 8)
- How docker service was installed: Docker version 25.0.3

CPU architecture

x86-64

Docker creation

docker run -d \
  --name=nextcloud \
  -e PUID=1000 \
  -e PGID=1000 \
  -e TZ=Europe/Berlin \
  -p 443:443 \
  -v /home/prox-deb/docker/config/nextcloud:/config \
  -v /mnt/true-nas-share/media/docker/nextcloud:/data \
  --restart unless-stopped \
  lscr.io/linuxserver/nextcloud:latest

Container logs

[migrations] started
[migrations] 01-nginx-site-confs-default: skipped
[migrations] 02-default-location: skipped
[migrations] done
───────────────────────────────────────

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

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

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

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

User UID:    1000
User GID:    1000
───────────────────────────────────────

using keys found in /config/keys
Initializing nextcloud 28.0.2.5 (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:283
Stack trace:
#0 /app/www/public/lib/base.php(709): OC::checkInstalled()
#1 /app/www/public/lib/base.php(1200): OC::init()
#2 /app/www/public/cron.php(43): require_once('...')
#3 {main}
Exception: Not installed in /app/www/public/lib/base.php:283
Stack trace:
#0 /app/www/public/lib/base.php(709): OC::checkInstalled()
#1 /app/www/public/lib/base.php(1200): OC::init()
#2 /app/www/public/cron.php(43): require_once('...')
#3 {main}
Exception: Not installed in /app/www/public/lib/base.php:283
Stack trace:
#0 /app/www/public/lib/base.php(709): OC::checkInstalled()
#1 /app/www/public/lib/base.php(1200): OC::init()
#2 /app/www/public/cron.php(43): require_once('...')
#3 {main}
Exception: Not installed in /app/www/public/lib/base.php:283
Stack trace:
#0 /app/www/public/lib/base.php(709): OC::checkInstalled()
#1 /app/www/public/lib/base.php(1200): OC::init()
#2 /app/www/public/cron.php(43): require_once('...')
#3 {main}
github-actions[bot] commented 4 months ago

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

ceceba223 commented 4 months ago

My issue seems to be really similar to issue #280 . but I'm not using a autoconfig.php file to skip the web setup (which is whats causing the issue on github if I understand it correctly)

LinuxServer-CI commented 3 months 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.

homerr commented 3 months ago

Issue was related to versions prior to 28.0.3 - closing.

github-actions[bot] commented 2 months ago

This issue is locked due to inactivity