Can't access nextcloud web login page - pihole and unbound installed already

Creating a bug report/issue

I have searched the existing open and closed issues

Required Information

  • DietPi version | cat /boot/dietpi/.version
    G_DIETPI_VERSION_CORE=9 G_DIETPI_VERSION_SUB=11 G_DIETPI_VERSION_RC=2 G_GITBRANCH='master' G_GITOWNER='MichaIng'
  • Distro version | echo $G_DISTRO_NAME $G_RASPBIAN
    bookworm 0
  • Kernel version | uname --all
    Linux DietPi21 6.6.74+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.6.74-1+rpt1 (2025-01-27) aarch64 GNU/Linux
  • Architecture | dpkg --print-architecture
    arm64
  • SBC model | echo $G_HW_MODEL_NAME or (EG: RPi3)
    RPi 4 Model B (aarch64)
  • Power supply used | 5.1V 3A
  • SD card used | SanDisk extreme

Additional Information (if applicable)

  • Software title | Nextcloud
  • Was the software title installed freshly or updated/migrated? yes
  • Can this issue be replicated on a fresh installation of DietPi?
    ← If you sent a “dietpi-bugreport”, please paste the ID here →
  • Bug report ID | echo $G_HW_UUID

Steps to reproduce

  1. …install pihole and unbound from dietpi-software
  2. …install nextcloud from dietpi-software

Expected behaviour

Actual behaviour

  • … it seems pihole is taking precedence over that address, but i am using the https for pihole. This is what I see when i go to the http site
    403 Oops! Access denied. You don't have permission to access / on this server. Did you mean to go to your Pi-hole's dashboard instead?

Extra details

  • …Ive searched the forums for similar problems, and found a couple in which pihole was not inistalled via dietpi-software
  • Do I need to use a port number after the address to access the nextcloud for the first time?

Thanks guys

Look at docs. Nexcloud should be accessible at http://<your.IP>/nextcloud

Did you installed PiHole manually?
Which version of PiHole you are running?
Can you check available ports?

ss -alnp | grep LISTEN

that takes me to the pihole login page

Hi Joulinar
I installed pihole and unbound with dietpi-software
The last pihole update changed the web login page, but thats working fine.
Im on the latest pihole -

  • Core [v6.0.5]
  • FTL [v6.0.4]
  • Web interface [v6.0.2]
~# ss -alnp | grep LISTEN
u_str LISTEN 0      0         /run/systemd/journal/io.systemd.journal 238                    * 0    users:(("systemd-journal",pid=142,fd=10))                                                                                        
u_str LISTEN 0      0                            /run/systemd/private 2209                   * 0    users:(("systemd",pid=1,fd=19))                                                                                                  
u_str LISTEN 0      0      /run/systemd/userdb/io.systemd.DynamicUser 2211                   * 0    users:(("systemd",pid=1,fd=20))                                                                                                  
u_str LISTEN 0      0               /run/systemd/io.system.ManagedOOM 2212                   * 0    users:(("systemd",pid=1,fd=21))                                                                                                  
u_str LISTEN 0      0                      /run/systemd/fsck.progress 2223                   * 0    users:(("systemd",pid=1,fd=60))                                                                                                  
u_str LISTEN 0      0                     /run/systemd/journal/stdout 2232                   * 0    users:(("systemd-journal",pid=142,fd=4),("systemd",pid=1,fd=81))                                                                 
u_str LISTEN 0      0                                /run/unbound.ctl 2571                   * 0    users:(("unbound",pid=445,fd=5))                                                                                                 
u_str LISTEN 0      0                   /run/postgresql/.s.PGSQL.5432 2603                   * 0    users:(("postgres",pid=483,fd=5))                                                                                                
u_str LISTEN 0      0                         /run/mysqld/mysqld.sock 3419                   * 0    users:(("mariadbd",pid=433,fd=20))                                                                                               
u_str LISTEN 0      0                    /run/redis/redis-server.sock 5458                   * 0    users:(("redis-server",pid=392,fd=9))                                                                                            
u_str LISTEN 0      0                        /run/php/php8.2-fpm.sock 5641                   * 0    users:(("php-fpm8.2",pid=629,fd=10),("php-fpm8.2",pid=628,fd=10),("php-fpm8.2",pid=627,fd=10),("php-fpm8.2",pid=626,fd=10),("php-fpm8.2",pid=619,fd=8))
u_seq LISTEN 0      0                               /run/udev/control 2234                   * 0    users:(("systemd-udevd",pid=170,fd=4),("systemd",pid=1,fd=77))                                                                   
tcp   LISTEN 0      256                                     127.0.0.1:5335             0.0.0.0:*    users:(("unbound",pid=445,fd=4))                                                                                                 
tcp   LISTEN 0      80                                      127.0.0.1:3306             0.0.0.0:*    users:(("mariadbd",pid=433,fd=18))                                                                                               
tcp   LISTEN 0      1024                                    127.0.0.1:3478             0.0.0.0:*    users:(("turnserver",pid=386,fd=65))                                                                                             
tcp   LISTEN 0      1024                                    127.0.0.1:3478             0.0.0.0:*    users:(("turnserver",pid=386,fd=63))                                                                                             
tcp   LISTEN 0      1024                                    127.0.0.1:3478             0.0.0.0:*    users:(("turnserver",pid=386,fd=53))                                                                                             
tcp   LISTEN 0      1024                                    127.0.0.1:3478             0.0.0.0:*    users:(("turnserver",pid=386,fd=54))                                                                                             
tcp   LISTEN 0      1024                                 192.168.x.x:3478             0.0.0.0:*    users:(("turnserver",pid=386,fd=69))                                                                                             
tcp   LISTEN 0      1024                                 192.168..x.x:3478             0.0.0.0:*    users:(("turnserver",pid=386,fd=66))                                                                                             
tcp   LISTEN 0      1024                                 192.168..x.x:3478             0.0.0.0:*    users:(("turnserver",pid=386,fd=57))                                                                                             
tcp   LISTEN 0      1024                                 192.168..x.x:3478             0.0.0.0:*    users:(("turnserver",pid=386,fd=58))                                                                                             
tcp   LISTEN 0      511                                     127.0.0.1:6379             0.0.0.0:*    users:(("redis-server",pid=392,fd=7))                                                                                            
tcp   LISTEN 0      32                                        0.0.0.0:53               0.0.0.0:*    users:(("pihole-FTL",pid=442,fd=21))                                                                                             
tcp   LISTEN 0      1000                                      0.0.0.0:22               0.0.0.0:*    users:(("dropbear",pid=388,fd=3))                                                                                                
tcp   LISTEN 0      200                                       0.0.0.0:80               0.0.0.0:*    users:(("pihole-FTL",pid=442,fd=35))                                                                                             
tcp   LISTEN 0      200                                       0.0.0.0:443              0.0.0.0:*    users:(("pihole-FTL",pid=442,fd=36))                                                                                             
tcp   LISTEN 0      511                                         [::1]:6379                [::]:*    users:(("redis-server",pid=392,fd=8))                                                                                            
tcp   LISTEN 0      1024                                        [::1]:3478                [::]:*    users:(("turnserver",pid=386,fd=61))                                                                                             
tcp   LISTEN 0      1024                                        [::1]:3478                [::]:*    users:(("turnserver",pid=386,fd=62))                                                                                             
tcp   LISTEN 0      1024                                        [::1]:3478                [::]:*    users:(("turnserver",pid=386,fd=71))                                                                                             
tcp   LISTEN 0      1024                                        [::1]:3478                [::]:*    users:(("turnserver",pid=386,fd=72))                                                                                             
tcp   LISTEN 0      32                                           [::]:53                  [::]:*    users:(("pihole-FTL",pid=442,fd=23))                                                                                             
tcp   LISTEN 0      1000                                         [::]:22                  [::]:*    users:(("dropbear",pid=388,fd=4))                                                                                                
tcp   LISTEN 0      200                                          [::]:80                  [::]:*    users:(("pihole-FTL",pid=442,fd=37))                                                                                             
tcp   LISTEN 0      200                                          [::]:443                 [::]:*    users:(("pihole-FTL",pid=442,fd=38))                                                                                             
sctp  LISTEN 0      1024                                 192.168..x.x:3478             0.0.0.0:*    users:(("turnserver",pid=386,fd=67))                                                                                             
sctp  LISTEN 0      1024                                 192.168..x.x:3478             0.0.0.0:*    users:(("turnserver",pid=386,fd=64))                                                                                             
sctp  LISTEN 0      1024                                    127.0.0.1:3478             0.0.0.0:*    users:(("turnserver",pid=386,fd=52))                                                                                             
sctp  LISTEN 0      1024                                    127.0.0.1:3478             0.0.0.0:*    users:(("turnserver",pid=386,fd=50))                                                                                             
sctp  LISTEN 0      1024                                 192.168..x.x:3478             0.0.0.0:*    users:(("turnserver",pid=386,fd=56))                                                                                             
sctp  LISTEN 0      1024                                 192.168..x.x:3478             0.0.0.0:*    users:(("turnserver",pid=386,fd=55))                                                                                             
sctp  LISTEN 0      1024                                    127.0.0.1:3478             0.0.0.0:*    users:(("turnserver",pid=386,fd=49))                                                                                             
sctp  LISTEN 0      1024                                    127.0.0.1:3478             0.0.0.0:*    users:(("turnserver",pid=386,fd=51))                                                                                             
sctp  LISTEN 0      1024                                        [::1]:3478                   *:*    users:(("turnserver",pid=386,fd=70))                                                                                             
sctp  LISTEN 0      1024                                        [::1]:3478                   *:*    users:(("turnserver",pid=386,fd=68))                                                                                             
sctp  LISTEN 0      1024                                        [::1]:3478                   *:*    users:(("turnserver",pid=386,fd=60))                                                                                             
sctp  LISTEN 0      1024                                        [::1]:3478                   *:*    users:(("turnserver",pid=386,fd=59)) 

Did you adjust PiHole web server configuration yourself? Because our default for PiHole is not port 80/443.

No, i didnt adjust anything myself, and i can access pihole on port 80, but since the new update it highly recommends using 443.
I was only going to try nextcloud anyway, if it doesnt work, its not a big deal

I appreciate your help
:slight_smile:

Did you update PiHole to V6 after you have updated DietPi to latest 9.11?

Because we will move PiHole to a different port away from 80/443 to avoid any port conflicts with web server apps like Nextcloud and to allow both running next to each other. This procedure we did on the update to 9.11 for existing installation. But if you did PiHole v6 update afterwards, this step was not done. However we will do this again on next update. If you like to have Nextcloud running now, we can adjust your PiHole configuration to free up port 80/443.

As an alternative we could adjust the web server port to be able to LISTEN on something else if it is just for testing purposes.

For production operations I would recommend Nextcloud web server to take port 80/443

Hello
Ok thanks, that makes sense.
For now i will uninstall nextcloud. I have a spare pi, and i will install it on that with nothing else to avoid conflicts.

Thanks again for your help