Web interface not work

The issue I am facing: Web interface does not working. Browser showing:
ERR_CONNECTION_REFUSED

Details about my system:
machine: Orange Pi Zero 3 (1GB RAM)
os: Orange Pi 1.0.2 Ubuntu jammy server with linux 6.1.31
Pi-hole: 5.17.2
Web: 5.20.2
FTL: 5.23

What I have changed since installing Pi-hole:
After instaling Pi-hole I restarted machine and try log in to web interface but interface don't worked. I searched for solution and find one: I removed lighttpd with purge command and deleted all remaining files in directory /etc/lighttpd/, then I used commnand pihole -r to install lighttpd again. After this web interface started working but not for long because after second reboot machine I have same problem.

link to debug report: https://tricorder.pi-hole.net/7seM4CPb/

This seems to be a problem with lighttpd, not Pi-hole.

*** [ DIAGNOSING ]: Pi-hole processes
[✗] lighttpd daemon is failed

And multiple instances of:

*** [ DIAGNOSING ]: contents of /var/log/lighttpd

-rw-r--r-- 1 www-data www-data 5.5K Nov  5 14:35 /var/log/lighttpd/error-pihole.log
   -----head of error-pihole.log------
   2023-11-04 23:17:11: (server.c.1551) server started (lighttpd/1.4.63)
   2023-11-04 23:17:11: (mod_accesslog.c.565) opening log '/var/log/lighttpd/access.log' failed: Permission denied
   2023-11-04 23:17:11: (server.c.1555) Configuration of plugins failed. Going down.

Apparently you have a permission problem.

What is the output of:

ls -la /var/log/lighttpd/

This is the output:

total 16
drwxr-x---  2 www-data www-data 4096 Nov  4 23:17 .
drwxrwxr-x 12 root     syslog   4096 Nov  5 18:17 ..
-rw-r--r--  1 root     root        0 Nov  6 18:06 access.log
-rw-r--r--  1 root     root        0 Nov  6 18:06 error.log
-rw-r--r--  1 www-data www-data 5016 Nov  6 18:06 error-pihole.log

I'm not sure why your access.log is owned by root.
Did you install lighttpd before install Pi-hole?

Let's try to change the ownership with:
sudo chown www-data:www-data access.log

Then restart lighttpd.

I didn't install lighttpd, maybe it's was already installed on OS

After using your command:
chown: cannot access 'access.log': No such file or directory

I run ls -la /var/log/lighttpd/ again and:

total 16
drwxr-x---  2 www-data www-data 4096 Nov  4 23:17 .
drwxrwxr-x 12 root     syslog   4096 Nov  6 19:17 ..
-rw-r--r--  1 root     root        0 Nov  4 23:17 access.log
-rw-r--r--  1 root     root        0 Nov  4 23:17 error.log
-rw-r--r--  1 www-data www-data 6600 Nov  6 19:32 error-pihole.log

Sorry... I forgot to tell you this command should be executed in the log directory.

This command should work:

sudo chown www-data:www-data /var/log/lighttpd/access.log

So I reach 50% of success. After using command:

sudo chown www-data:www-data /var/log/lighttpd/access.log

lighttpd started working and web interface show up in browser, I reboot machine by command and after rebooting web interface still worked. Then I unpluged power from OrangePi and pluged and after this web interface stop working.

How I can resolve this problem? Maybe better way to fix this is install diffrent OS on Orange Pi?

Seems like the Orange Pi Zero 3 is pretty new and not widely supported.

Yes, I am aware of this so I used ubuntu image downloaded from Orange Pi website but looks like there is some issue with lighttpd. On Orange Pi website are available other imageges like debian and OrangePiOS. Is it good idea to try run Pihole on another linux distribution?

As long as it is a supported Linux distribution. I don't believe OrangePiOS is in that category.

We currently support:

Raspbian=10,11,12 Ubuntu=20,22,23 Debian=10,11,12 Fedora=36,37,38 CentOS=8,9

Yes, of course. Funy thing, I tried one more time do all steps again and it worked, at least for now. So thanks a lot for help.

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