Skip to content

Initial Nextcloud installation fails immediately after setup ("The initial Nextcloud installation failed") #6788

@shamanwiz

Description

@shamanwiz

Hi, I’m trying to deploy Nextcloud AIO with Docker Compose, but the initial installation always fails right after the setup phase, without a detailed error message.

Steps to reproduce

  1. Run AIO with Docker Compose
  2. Map data directory to /mnt/disco2/nextcloud (empty and owned by www-data:www-data)
  3. Start containers with docker compose up -d
  4. Go through the AIO installer
The nextcloud_aio_nextcloud container doesn't start and its logs says:
`2025-08-25T19:54:35.807067251Z Connection to nextcloud-aio-database (192.168.144.5) 5432 port [tcp/postgresql] succeeded!
2025-08-25T19:54:35.807954300Z + '[' -f /dev-dri-group-was-added ']'
2025-08-25T19:54:35.808426809Z ++ find /dev -maxdepth 1 -mindepth 1 -name dri
2025-08-25T19:54:35.809239248Z + '[' -n '' ']'
2025-08-25T19:54:35.809256848Z + set +x
2025-08-25T19:54:35.819275498Z Enabling Imagick...
2025-08-25T19:54:37.516753617Z WARNING: opening from cache https://dl-cdn.alpinelinux.org/alpine/v3.22/main: No such file or directory
2025-08-25T19:54:37.516779130Z WARNING: opening from cache https://dl-cdn.alpinelinux.org/alpine/v3.22/community: No such file or directory
2025-08-25T19:54:37.571718558Z Connection to nextcloud-aio-redis (192.168.144.6) 6379 port [tcp/redis] succeeded!
2025-08-25T19:54:37.670087401Z The initial Nextcloud installation failed.
2025-08-25T19:54:37.670109144Z Please reset AIO properly and try again. For further clues what went wrong, check the logs above.
2025-08-25T19:54:37.670114559Z See https://github.com/nextcloud/all-in-one#how-to-properly-reset-the-instance

Things already tried

  • Stopped and removed all containers
  • Removed all AIO-related volumes
  • Ensured /mnt/disco2/nextcloud is empty and has correct ownership/permissions (www-data:www-data, 770)
  • Verified that the data directory is clean at every attempt
  • Tried both default ports (80:80) and remapped ones (81:80)

Same issue every time: installation fails right after DB/Redis setup.

My docker-compose.yml:

services:
  nextcloud-aio-mastercontainer:
    image: ghcr.io/nextcloud-releases/all-in-one:latest
    init: true
    restart: always
    container_name: nextcloud-aio-mastercontainer
    volumes:
      - nextcloud_aio_mastercontainer:/mnt/docker-aio-config
      - /var/run/docker.sock:/var/run/docker.sock:ro
      - /mnt/disco2/nextcloud:/mnt/ncdata
    network_mode: bridge
    ports:
      - 81:80
      - 8082:8080
      - 8443:8443
    environment:
      - NEXTCLOUD_DATADIR=/mnt/ncdata
      - SKIP_DOMAIN_VALIDATION=true
      - APACHE_DISABLE_REWRITE_IP=1
      - NEXTCLOUD_ENABLE_TLS=false
volumes:
  nextcloud_aio_mastercontainer:
    name: nextcloud_aio_mastercontainer

Debian 12
Docker version 28.3.2
Docker Compose version v2.38.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    0. Needs triagePending approval or rejection. This issue is pending approval.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions