How to remove/fresh install broken Nextcloud AIO setup on Synology NAS

Nextcloud version (eg, 29.0.5): Nextcloud AIO v8.3.0
Operating system and version (eg, Ubuntu 29.04): Synology NAS with latest DSM

The issue you are facing:
I have installed nextcloud AIO using the following script found from the guides:

docker run -d --name=nextcloud-aio-mastercontainer \
-p 9010:8080 \
-v /var/run/docker.sock:/var/run/docker.sock:ro \
-v nextcloud_aio_mastercontainer:/mnt/docker-aio-config \
-e APACHE_PORT=11000 \
-e APACHE_IP_BINDING=0.0.0.0 \
-e NEXTCLOUD_UPLOAD_LIMIT=10G \
-e NEXTCLOUD_MEMORY_LIMIT=4096M \
--restart always \
--init \
--sig-proxy=false \
--env SKIP_DOMAIN_VALIDATION=true \
nextcloud/all-in-one:latest

I have a cloudflare zero trust tunnel setup to access my nas and have provided the path to my domain while installing. The installation took a while and then came to the admin screen when I am shown the password to login. Now I can access this page by using the domain i configured in cloudflare, but clicking on ‘Open your Nextcloud’ button takes me back to the same page agin showing admin login details and nothing beyond this.

I am sure I have done something wrong in the reverse proxy settings and wanted to try again and deleted all the containers to retry. But nothing changes. I am shown the same screen and same password again and again. How do I completely get rid of the nextcloud instance on my synology NAS and restart/retry properly ? and please can someone tell me what I should be doing in the reverse proxy setting to make it work correctly ? I was afraid of using port 8080 in the installation script, so made it 9010. Does it break the installation ?

The output of your Nextcloud log in Admin > Logging:

Trying to fix docker.sock permissions internally...
Adding internal www-data to group root
WARNING: No kernel memory TCP limit support
WARNING: No cpu cfs quota support
WARNING: No cpu cfs period support
WARNING: No blkio throttle.read_bps_device support
WARNING: No blkio throttle.write_bps_device support
WARNING: No blkio throttle.read_iops_device support
WARNING: No blkio throttle.write_iops_device support
e[0;92mInitial startup of Nextcloud All-in-One complete!
You should be able to open the Nextcloud AIO Interface now on port 8080 of this server!
E.g. https://internal.ip.of.this.server:8080
⚠️ Important: do always use an ip-address if you access this port and not a domain as HSTS might block access to it later!

If your server has port 80 and 8443 open and you point a domain to your server, you can get a valid certificate automatically by opening the Nextcloud AIO Interface via:
https://your-domain-that-points-to-this-server.tld:8443e[0m
{"level":"info","ts":1717752039.0053594,"msg":"using provided configuration","config_file":"/Caddyfile","config_adapter":""}
[Fri Jun 07 09:20:39.123229 2024] [mpm_event:notice] [pid 122:tid 140604907260680] AH00489: Apache/2.4.59 (Unix) OpenSSL/3.1.5 configured -- resuming normal operations
[Fri Jun 07 09:20:39.123264 2024] [core:notice] [pid 122:tid 140604907260680] AH00094: Command line: 'httpd -D FOREGROUND'
[07-Jun-2024 09:20:39] NOTICE: fpm is running, pid 127
[07-Jun-2024 09:20:39] NOTICE: ready to handle connections
WARNING: No kernel memory TCP limit support
WARNING: No cpu cfs quota support
WARNING: No cpu cfs period support
WARNING: No blkio throttle.read_bps_device support
WARNING: No blkio throttle.write_bps_device support
WARNING: No blkio throttle.read_iops_device support
WARNING: No blkio throttle.write_iops_device support
e[0;92mInitial startup of Nextcloud All-in-One complete!
You should be able to open the Nextcloud AIO Interface now on port 8080 of this server!
E.g. https://internal.ip.of.this.server:8080
⚠️ Important: do always use an ip-address if you access this port and not a domain as HSTS might block access to it later!

If your server has port 80 and 8443 open and you point a domain to your server, you can get a valid certificate automatically by opening the Nextcloud AIO Interface via:
https://your-domain-that-points-to-this-server.tld:8443e[0m
[07-Jun-2024 09:32:23] NOTICE: fpm is running, pid 120
[07-Jun-2024 09:32:23] NOTICE: ready to handle connections
{"level":"info","ts":1717752743.282917,"msg":"using provided configuration","config_file":"/Caddyfile","config_adapter":""}
[Fri Jun 07 09:32:23.328329 2024] [mpm_event:notice] [pid 115:tid 140135841417992] AH00489: Apache/2.4.59 (Unix) OpenSSL/3.1.5 configured -- resuming normal operations
[Fri Jun 07 09:32:23.328863 2024] [core:notice] [pid 115:tid 140135841417992] AH00094: Command line: 'httpd -D FOREGROUND'

I dont know where to find the nextcloud config file either.



hi @binaryshadow welcome to the community :handshake: please follow the docs: how-to-properly-reset-the-instance

1 Like