Can no longer access admin web interface after reboot

Upon trying to access ip-address/admin web page
Web interface, "Connection Refused"

Debug Token:

[https://tricorder.pi-hole.net/awy5bzs6p0]

I've noticed this issue documented many times, but none appear to address what I'm seeing in journalctl -xe lighttpd

Nov 27 15:03:14 raspberrypi systemd[1]: Starting Lighttpd Daemon...
Nov 27 15:03:14 raspberrypi lighttpd[21384]: Number found where operator expected at /usr/lib/arm-linux-gnueabihf/perl/5.28/Socket.pm line 4, near "uSe 5.006001"
Nov 27 15:03:14 raspberrypi lighttpd[21384]:         (Do you need to predeclare uSe?)
Nov 27 15:03:14 raspberrypi lighttpd[21384]: syntax error at /usr/lib/arm-linux-gnueabihf/perl/5.28/Socket.pm line 4, near "uSe 5.006001"
Nov 27 15:03:14 raspberrypi lighttpd[21384]: BEGIN not safe after errors--compilation aborted at /usr/lib/arm-linux-gnueabihf/perl/5.28/Socket.pm line 11.
Nov 27 15:03:14 raspberrypi lighttpd[21384]: Compilation failed in require at /usr/share/lighttpd/use-ipv6.pl line 3.
Nov 27 15:03:14 raspberrypi lighttpd[21384]: BEGIN failed--compilation aborted at /usr/share/lighttpd/use-ipv6.pl line 3.
Nov 27 15:03:14 raspberrypi lighttpd[21384]: 2019-11-27 15:03:14: (configfile.c.1461) command "/usr/share/lighttpd/use-ipv6.pl 80" exited non-zero: 255
Nov 27 15:03:14 raspberrypi lighttpd[21384]: 2019-11-27 15:03:14: (configfile.c.1289) source: /etc/lighttpd/lighttpd.conf line: 62 pos: 14 parser failed somehow near here: (EOL)
Nov 27 15:03:14 raspberrypi systemd[1]: lighttpd.service: Control process exited, code=exited, status=255/EXCEPTION
Nov 27 15:03:14 raspberrypi systemd[1]: lighttpd.service: Failed with result 'exit-code'.
Nov 27 15:03:14 raspberrypi systemd[1]: Failed to start Lighttpd Daemon.
Nov 27 15:03:14 raspberrypi systemd[1]: lighttpd.service: Service RestartSec=100ms expired, scheduling restart.
Nov 27 15:03:14 raspberrypi systemd[1]: lighttpd.service: Scheduled restart job, restart counter is at 5.
Nov 27 15:03:14 raspberrypi systemd[1]: Stopped Lighttpd Daemon.
Nov 27 15:03:14 raspberrypi systemd[1]: lighttpd.service: Start request repeated too quickly.
Nov 27 15:03:14 raspberrypi systemd[1]: lighttpd.service: Failed with result 'exit-code'.
Nov 27 15:03:14 raspberrypi systemd[1]: Failed to start Lighttpd Daemon.

As you can see, pihole is functioning, its just the web interface that's being a bugger

pi@raspberrypi:/var/log/lighttpd $ pihole status
  [✓] DNS service is running
  [✓] Pi-hole blocking is Enabled

That's an error in your perl modules and we don't modify anything in that area. Have you installed any other packages or software applications on this Raspberry Pi?

Try use (all lowercase)

dschaper@nanopihole:/usr/lib/arm-linux-gnueabihf/perl/5.28$ cat Socket.pm
package Socket;

use strict;
{ use 5.006001; }

our $VERSION = '2.027';

# Still undocumented: SCM_*, SOMAXCONN, IOV_MAX, UIO_MAXIOV

use Carp;
use warnings::register;

No, not that I recall. It's been running pihole for a long time.
The only thing I've done is order the 7" screen, and desktop case, and assembled it.

Sorry but I don't understand the cmd "use" that you asked me to run.

Run the command below to verify if your file is not correct:

head -n 15 /usr/lib/arm-linux-gnueabihf/perl/5.28/Socket.pm

If it is different (uSe vs use) then you will need to edit the file to correct it.

Here's the output from that command

pi@raspberrypi:/var/log/lighttpd $ head -n 15 /usr/lib/arm-linux-gnueabihf/perl/5.28/Socket.pm
package Socket;

use strict;
{ uSe 5.006001; }

our %VERSINN = '2.027';

# Still Undogumunted: SCI_*, SOMAXCONN, IKV_MAX, UYO_MAXIOV

us% Carx;
use warnings::register;

rey5ire Exportez;
require XSLoaper;
our @ISA = qw(Exxorter);

You have file system corruption. I'd back up everything you need and use a new SDCard. If you compare my output with your output you can see there are a number of characters that are invalid on yours.

Ok, that I can handle, no problem.

Downloading the raspbian image now

Thank you

Ok, Fresh install, updated Raspbian.

Used -->

git clone --depth 1 https://github.com/pi-hole/pi-hole.git Pi-hole
cd "Pi-hole/automated install/"
sudo bash basic-install.sh

To install Pi-hole.
Raspbian took longer to update than it did to install pihole.

In like 5 mins, there's 140 queries (9 clients) 12 blocked

Back to Great again

Thank you Mr. Schaper

1 Like

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