After performing a Nextcloud AIO migration, the container keeps restarting

I used the following command to run the container:

docker run \
--init \
--sig-proxy=false \
--name nextcloud-aio-mastercontainer \
--restart always \
--publish 8084:8080 \
--add-host=host.docker.internal:host-gateway \
--env APACHE_PORT=11004 \
--env APACHE_IP_BINDING=127.0.0.1 \
--env WATCHTOWER_DOCKER_SOCKET_PATH=$XDG_RUNTIME_DIR/docker.sock \
--volume nextcloud_aio_mastercontainer:/mnt/docker-aio-config \
--env TALK_PORT=3481 \
--env NEXTCLOUD_DATADIR=/data/nextcloud/test \
--volume $XDG_RUNTIME_DIR/docker.sock:/var/run/docker.sock:ro \
--env SKIP_DOMAIN_VALIDATION=true \
nextcloud/all-in-one:latest

2025-01-29 16:59:53.933173+05:30
(1 row)

'[' -f /dev-dri-group-was-added ']'
++ find /dev -maxdepth 1 -mindepth 1 -name dri

'[' -n '' ']'
set +x
Connection to nextcloud-aio-redis (172.18.0.4) 6379 port [tcp/redis] succeeded!
The initial Nextcloud installation failed.
Please reset AIO properly and try again. For further clues on what went wrong, check the logs above.
See https://github.com/nextcloud/all-in-one#how-to-properly-reset-the-instance

Has anyone encountered this issue before? Any suggestions on how to resolve it?

check if your datadir exist and is writable

I had a similar issue and the logs of the nextcloud container told to delete the file “update.failed” from the nextcloud_data container and this solved the problem.

→ Start a shell in the data container move to the data directory and delete the file. Afterwards restarting the containers worked fine again.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.