linuxserver / docker-nextcloud

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

[BUG] New install, Can't Connect #443

Open F1zzyD opened 2 weeks ago

F1zzyD commented 2 weeks ago

Is there an existing issue for this?

Current Behavior

Ran docker compose up and the logs finish with "[ls.io--init] done. Tried to access with the default port and not messing with anything except for the volumes set to ./config:/config etc. I get the webpage "Unable to Connect".

Expected Behavior

I should be able to connect?

Steps To Reproduce

run docker compose up and access localhost:443.

Environment

- OS: Linux Mint
- How docker service was installed: using compose.yml

CPU architecture

x86-64

Docker creation

services:
  nextcloud:
    image: lscr.io/linuxserver/nextcloud:latest
    container_name: nextcloud
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Etc/UTC
    volumes:
      - ./config:/config
      - ./data:/data
    ports:
      - 443:443
    restart: unless-stopped

Container logs

✔ Container nextcloud  Created                                                                                  0.0s 
Attaching to nextcloud
nextcloud  | [migrations] started
nextcloud  | [migrations] 01-nginx-site-confs-default: executing...
nextcloud  | [migrations] 01-nginx-site-confs-default: succeeded
nextcloud  | [migrations] 02-default-location: executing...
nextcloud  | [migrations] 02-default-location: succeeded
nextcloud  | [migrations] done
nextcloud  | ───────────────────────────────────────
nextcloud  | 
nextcloud  |       ██╗     ███████╗██╗ ██████╗
nextcloud  |       ██║     ██╔════╝██║██╔═══██╗
nextcloud  |       ██║     ███████╗██║██║   ██║
nextcloud  |       ██║     ╚════██║██║██║   ██║
nextcloud  |       ███████╗███████║██║╚██████╔╝
nextcloud  |       ╚══════╝╚══════╝╚═╝ ╚═════╝
nextcloud  | 
nextcloud  |    Brought to you by linuxserver.io
nextcloud  | ───────────────────────────────────────
nextcloud  | 
nextcloud  | To support LSIO projects visit:
nextcloud  | https://www.linuxserver.io/donate/
nextcloud  | 
nextcloud  | ───────────────────────────────────────
nextcloud  | GID/UID
nextcloud  | ───────────────────────────────────────
nextcloud  | 
nextcloud  | User UID:    1000
nextcloud  | User GID:    1000
nextcloud  | ───────────────────────────────────────
nextcloud  | 
nextcloud  | Setting resolver to  127.0.0.11
nextcloud  | Setting worker_processes to 6
nextcloud  | generating self-signed keys in /config/keys, you can replace these with your own keys if required
nextcloud  | ......+.+........+.+..................+.....+...+...+.+...+..+.+.....+...............+....+.........+..+...+.......+........+.+...+.................+++++++++++++++++++++++++++++++++++++++*.......+...+++++++++++++++++++++++++++++++++++++++*.+....+........+...+....+..+...................+..............+.+.........+......+...........+...+.......+.....+.+..+.+.....+.+......++++++
nextcloud  | ..+....+.....+....+...............+++++++++++++++++++++++++++++++++++++++*.........+...+..+.+++++++++++++++++++++++++++++++++++++++*....+.+......+..............+...+.+.....+......+.+...+..+.........+.............+..+....+.....+......+....+..+....+........+.+..+...................+......+........++++++
nextcloud  | -----
nextcloud  | Initializing nextcloud 29.0.2.2 (this can take a while) ...
nextcloud  | Setting permissions
nextcloud  | New nextcloud instance
nextcloud  | Please run the web-based installer on first connect!
nextcloud  | Initializing finished
nextcloud  | After completing the web-based installer, restart the Nextcloud container to apply default memory caching and transactional file locking configurations.
nextcloud  | Alternatively, you can apply your own configurations by editing /config/www/nextcloud/config/config.php following the documentation:
nextcloud  | https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/caching_configuration.html
nextcloud  | https://docs.nextcloud.com/server/latest/admin_manual/configuration_files/files_locking_transactional.html
nextcloud  | [custom-init] No custom files found, skipping...
nextcloud  | [ls.io-init] done.
nextcloud  | Exception: Not installed in /app/www/public/lib/base.php:284
nextcloud  | Stack trace:
nextcloud  | #0 /app/www/public/lib/base.php(715): OC::checkInstalled()
nextcloud  | #1 /app/www/public/lib/base.php(1181): OC::init()
nextcloud  | #2 /app/www/public/cron.php(58): require_once('...')
nextcloud  | #3 {main}
nextcloud  | Exception: Not installed in /app/www/public/lib/base.php:284
nextcloud  | Stack trace:
nextcloud  | #0 /app/www/public/lib/base.php(715): OC::checkInstalled()
nextcloud  | #1 /app/www/public/lib/base.php(1181): OC::init()
nextcloud  | #2 /app/www/public/cron.php(58): require_once('...')
nextcloud  | #3 {main}
github-actions[bot] commented 2 weeks ago

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

annie-elequin commented 2 weeks ago

I have a similar issue, I get 400 bad request when trying to access the page - I think my stack trace is a bit different from yours, but instead of making a new ticket I thought I'd share here since they might be related.

---
services:
  nextcloud:
    image: lscr.io/linuxserver/nextcloud:latest
    container_name: nextcloud
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=America/Chicago
    volumes:
      - /config:/config
      - /data:/data
    ports:
      - 443:443
    restart: unless-stopped
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('...')

}
Felix2M commented 5 days ago

@annie-elequin I got the same error message from nginx. In my case I had to make sure, that I use https:// before the IP adress.