Nextcloud version (eg, 20.0.5): 27.1.4
Operating system and version (eg, Ubuntu 20.04): Ubuntu 22.04.3 LTS
PHP version (eg, 7.4): 8
The issue you are facing:
After installing Pi-Hole, I cannot access Nextcloud anymore.
Is this the first time you’ve seen this error? (Y/N): Y
Steps to replicate it:
- Install Nextcloud
- Install PiHole Docker following the GitHub guide. Change port to 8888 to not conflict with reverse proxy
- Run
sudo sed -r -i.orig 's/#?DNSStubListener=yes/DNSStubListener=no/g' /etc/systemd/resolved.conf
sudo sh -c 'rm /etc/resolv.conf && ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf'
As described in the GitHub to allow PiHole to listen on port 53
4. Try to access Nextcloud through reverse proxy (using the domain name).
The output of your Apache/nginx/system log in using docker logs nextcloud-aio-apache
:
Waiting for Nextcloud to start...
Waiting for Nextcloud to start...
{"level":"info","ts":1702804757.125837,"msg":"using provided configuration","config_file":"/tmp/Caddyfile","config_adapter":""}
[Sun Dec 17 17:19:17.448362 2023] [mpm_event:notice] [pid 43:tid 140116860902216] AH00489: Apache/2.4.58 (Unix) configured -- resuming normal operations
[Sun Dec 17 17:19:17.448415 2023] [core:notice] [pid 43:tid 140116860902216] AH00094: Command line: '/usr/local/apache2/bin/httpd -D FOREGROUND'
I’m sure it is a problem to do with the bash commands to allow pihole to listen to port 53, pihole and my other services run like normal, its just Nextcloud that doesn’t work. I get error 502 when trying to curl
the NC subdomain