(Solved) Nextcloud AIO error on initial setup, could use help please!

Hello all,
I’m new to the AIO docker setup. I use to have Nextcloud on a VM ESXI but couldn’t get reverse proxy to work correctly with Cloudflare. So I would like to tr y this option.

So, I have made it to this point of the install.

Also, here is the Log from the Nextcloud container.

now stdout

11:02:13 am ------------------------------- stdout

11:02:13 am 2023-06-09 11:02:13.737646-05 stdout

11:02:13 am (1 row) stdout

11:02:13 am stdout

11:02:14 am + ‘[’ -f /dev-dri-group-was-added ‘]’ stderr

11:02:14 am ++ find /dev -maxdepth 1 -mindepth 1 -name dri stderr

11:02:14 am + ‘[’ -n ‘’ ‘]’ stderr

11:02:14 am + set +x stderr

11:02:14 am Installing imagemagick via apk… stdout

11:02:20 am Enabling Imagick… stdout

11:02:26 am Configuring Redis as session handler… stdout

11:02:27 am Setting php max children… stdout

11:02:28 am The initial Nextcloud installation failed. stdout

11:02:30 am Please reset AIO properly and try again. For further clues what went wrong, check the logs above. stdout

11:02:30 am See GitHub - nextcloud/all-in-one: Nextcloud AIO stands for Nextcloud All-in-One and provides easy deployment and maintenance with most features included in this one Nextcloud instance. stdout

11:02:38 am now stdout

11:02:38 am ------------------------------- stdout

11:02:38 am 2023-06-09 11:02:38.721612-05 stdout

11:02:38 am (1 row) stdout

11:02:38 am stdout

11:02:38 am + ‘[’ -f /dev-dri-group-was-added ‘]’ stderr

11:02:38 am ++ find /dev -maxdepth 1 -mindepth 1 -name dri stderr

11:02:38 am + ‘[’ -n ‘’ ‘]’ stderr

11:02:38 am + set +x stderr

11:02:38 am Configuring Redis as session handler… stdout

11:02:38 am Setting php max children… stdout

11:02:39 am The initial Nextcloud installation failed. stdout

11:02:39 am Please reset AIO properly and try again. For further clues what went wrong, check the logs above. stdout

11:02:39 am See GitHub - nextcloud/all-in-one: Nextcloud AIO stands for Nextcloud All-in-One and provides easy deployment and maintenance with most features included in this one Nextcloud instance. stdout

11:02:45 am now stdout

11:02:45 am ------------------------------- stdout

11:02:45 am 2023-06-09 11:02:45.773974-05 stdout

11:02:45 am (1 row) stdout

11:02:45 am stdout

11:02:45 am + ‘[’ -f /dev-dri-group-was-added ‘]’ stderr

11:02:45 am ++ find /dev -maxdepth 1 -mindepth 1 -name dri stderr

11:02:45 am + ‘[’ -n ‘’ ‘]’ stderr

11:02:45 am + set +x stderr

11:02:45 am Configuring Redis as session handler… stdout

11:02:45 am Setting php max children… stdout

11:02:46 am The initial Nextcloud installation failed. stdout

11:02:46 am Please reset AIO properly and try again. For further clues what went wrong, check the logs above. stdout

11:02:46 am See GitHub - nextcloud/all-in-one: Nextcloud AIO stands for Nextcloud All-in-One and provides easy deployment and maintenance with most features included in this one Nextcloud instance. stdout

11:02:54 am now stdout

11:02:54 am ------------------------------- stdout

11:02:54 am 2023-06-09 11:02:54.762491-05 stdout

11:02:54 am (1 row) stdout

11:02:54 am stdout

11:02:54 am + ‘[’ -f /dev-dri-group-was-added ‘]’ stderr

11:02:54 am ++ find /dev -maxdepth 1 -mindepth 1 -name dri stderr

11:02:54 am + ‘[’ -n ‘’ ‘]’ stderr

11:02:54 am + set +x stderr

11:02:54 am Configuring Redis as session handler… stdout

11:02:54 am Setting php max children… stdout

11:02:55 am The initial Nextcloud installation failed. stdout

11:02:55 am Please reset AIO properly and try again. For further clues what went wrong, check the logs above. stdout

11:02:55 am See GitHub - nextcloud/all-in-one: Nextcloud AIO stands for Nextcloud All-in-One and provides easy deployment and maintenance with most features included in this one Nextcloud instance. stdout

11:03:02 am now stdout

11:03:02 am -------------------------------

Not sure what happened but the Nextcloud container is in a constant loop of restarting. I have this on my Synology NAS and 443 and 80 are used, this is why I would like it to work with Cloudflare and my purchased domain.

Any help would be appreciated!

Hi, possibly you didnt set the permissions correctly for the chosen datadir. It must be owned by 33:0 as documented on github.

Thank you for the reply, I believe you are referring to this?

If not, could you please guide me as I have tried the the instructions I posted with no luck.

Thank you!

Actually, if I would have looked just a bit further I would have seen this

The question I have is what is referred to the “your drive mount point”

I’m so stuck right now, not sure what to do. Could really use some assistance.

Thank you to all that can help…

Here is my AIO- Nextcloud container log

Here is my Apache container Log
image

Not sure where I went wrong.

I should also mention, I did change datadir but was unaware of the issues this would cause. I tried the instructions to resolve this but does not appear to work for me.

Am I asking these questions in the wrong forums?

Thank you.

Apparently you changed the datadir after the initial installation was done already which is not possible. See GitHub - nextcloud/all-in-one: Nextcloud AIO stands for Nextcloud All-in-One and provides easy deployment and maintenance with most features included in this one Nextcloud instance.

I tried the steps to fix it but I’m missing something.
(Sorry I just posted on github too but i can delete that if need be.)

Not really sure what i need to do to fix this.

This is what I just used to start after i removed all the containers

sudo docker run
–sig-proxy=false
–name nextcloud-aio-mastercontainer
–restart always
–publish 8008:8008
–publish 8082:8080
–publish 4443:8443
–env APACHE_PORT=11000
–env APACHE_IP_BINDING=0.0.0.0
–volume nextcloud_aio_mastercontainer:/mnt/docker-aio-config
–volume /var/run/docker.sock:/var/run/docker.sock:ro
–env SKIP_DOMAIN_VALIDATION=true
-e NEXTCLOUD_DATADIR=/mnt/ncdata
nextcloud/all-in-one:latest

I have a domian and will use Cloudflare

I should be good with this now as I do have Nextcloud up and running.

Thank you for the help.

1 Like

I don’t see how this is a solution. Could you share your final configuration? What steps did you take to make it work?

found a solution to mine, i did the normal reset from “docker stop nextcloud-aio-mastercontainer” to “docker image prune -a” but it seems like it didn’t automatically delete the default NEXTCLOUD_DATADIR.

it seems like the /run/desktop/mnt/host/c/ncdata from the AIO Command & its hints tell us that there is a file at C:/ncdata which is left behind somehow. So i deleted that and started reinstalling, boom! its fixed.