Pihole not starting

Help, not sure what to do

this in debug error

---= Daemon Process Information
::: Checking http port for lighttpd listener.
::: Failure: IPv4 Port not in use
:::
::: ---= Daemon Process Information
::: Checking domain port for dnsmasq listener.
::: Failure: IPv4 Port not in use
:::
::: ---= Daemon Process Information
::: Checking 4711 port for pihole-FTL listener.
::: Failure: IPv4 Port not in use

pi@raspberrypi:~ $ systemctl status dnsmasq.service
● dnsmasq.service - dnsmasq - A lightweight DHCP and caching DNS server
Loaded: loaded (/lib/systemd/system/dnsmasq.service; enabled)
Drop-In: /run/systemd/generator/dnsmasq.service.d
└─50-dnsmasq-$named.conf, 50-insserv.conf-$named.conf
Active: failed (Result: exit-code) since Tue 2017-10-24 23:26:48 CEST; 18min ago
Process: 3261 ExecStartPre=/usr/sbin/dnsmasq --test (code=exited, status=1/FAILURE)
pi@raspberrypi:~ $

Have you tried to list the ip configuration?

ifconfig -a

There is a script to uninstall I have used it once. Then ran the reinstall command.

https://github.com/pi-hole/pi-hole/blob/master/automated%20install/uninstall.sh

You have to copy the github code/text on the page and save it to a file then run it.

I have reinstalled all. But still not working

pi@raspberrypi:~ $ ifconfig -a
eth0 Link encap:Ethernet HWaddr b8:27:eb:bd:6c:14
inet addr:192.168.1.239 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::352c:xxx/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:800124 errors:0 dropped:136 overruns:0 frame:0
TX packets:233303 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:125303812 (119.4 MiB) TX bytes:27978921 (26.6 MiB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:43058 errors:0 dropped:0 overruns:0 frame:0
TX packets:43058 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:2705467 (2.5 MiB) TX bytes:2705467 (2.5 MiB)

tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:10.8.0.1 P-t-P:10.8.0.1 Mask:255.255.255.0
inet6 addr: fe80::6aa1:yyy0/64 Scope:Link
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:300 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 B) TX bytes:37962 (37.0 KiB)

wlan0 Link encap:Ethernet HWaddr b8:27:eb:e8:39:41
inet6 addr: fe80::zzz:ae3d/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

pi@raspberrypi:~ $

pi@raspberrypi:~ $ journalctl -xn
No journal files were found.
pi@raspberrypi:~ $

pi@raspberrypi:~ $ systemctl status dnsmasq.service
● dnsmasq.service - dnsmasq - A lightweight DHCP and caching DNS server
Loaded: loaded (/lib/systemd/system/dnsmasq.service; enabled)
Drop-In: /run/systemd/generator/dnsmasq.service.d
└─50-dnsmasq-$named.conf, 50-insserv.conf-$named.conf
Active: failed (Result: exit-code) since Tue 2017-10-24 23:53:53 CEST; 8h ago
Process: 648 ExecStartPre=/usr/sbin/dnsmasq --test (code=exited, status=1/FAIL URE)
pi@raspberrypi:~ $ ^C
pi@raspberrypi:~ $ pihole restartdns
Job for dnsmasq.service failed. See 'systemctl status dnsmasq.service' and 'jour nalctl -xn' for details.
pi@raspberrypi:~ $ ^C
pi@raspberrypi:~ $ journalctl -xn
No journal files were found.
pi@raspberrypi:~ $ ^C
pi@raspberrypi:~ $ pihole -d
::: Beginning Pi-hole debug at Wed 25 Oct 08:16:10 CEST 2017!
:::
::: This process collects information from your Pi-hole, and optionally uploads
::: it to a unique and random directory on tricorder.pi-hole.net.
:::
::: NOTE: All log files auto-delete after 48 hours and ONLY the Pi-hole developers
::: can access your data via the given token. We have taken these extra steps to
::: secure your data and will work to further reduce any personal information gathered.
:::
::: Please read and note any issues, and follow any directions advised during this process.
:::
::: ---= Detecting Installed Package Versions:
::: Pi-hole: v3.1.4 (master:v3.1.4-0-gb0ecedd)
::: Pi-hole Dashboard: v3.1 (master:v3.1-0-gf204b71)
::: lighttpd/1.4.35
::: PHP 5.6.30-0+deb8u1 (cli) (built: Apr 14 2017 16:20:58)
:::
::: ---= Detecting existence of /etc/pihole/setupVars.conf:
::: File exists, parsing...done and was successfully sourced
:::
::: ---= Detecting installed OS Distribution
:::
::: ---= Checking processor variety
:::
::: ---= Checking IPv6 Stack
::: IPv6 addresses located on eth0
::: No gateway detected.
:::
::: ---= Checking IPv4 Stack
::: IPv4 addresses located on eth0
::: Pinging default IPv4 gateway: ::: Gateway responded.
::: Pinging Internet via IPv4: ::: Query responded.
:::
::: ---= Daemon Process Information
::: Checking http port for lighttpd listener.
::: Correctly configured.
:::
::: ---= Daemon Process Information
::: Checking domain port for dnsmasq listener.
::: Failure: IPv4 Port not in use
:::
::: ---= Daemon Process Information
::: Checking 4711 port for pihole-FTL listener.
::: Correctly configured.
:::
::: ---= Processes Check
::: Logging status of lighttpd, dnsmasq and pihole-FTL...
:::
::: ---= Resolver Functions Check (IPv4)
shuf: /etc/pihole/gravity.list: No such file or directory

Broadcast message from nut@raspberrypi (somewhere) (Wed Oct 25 08:16:43 2017):

UPS ups@localhost is unavailable

::: Checking for necessary lighttpd files.
:::
::: ---= Detecting existence of /etc/lighttpd/lighttpd.conf:
::: File exists, parsing...done
:::
::: ---= Detecting existence of /var/log/lighttpd/error.log:
::: File exists, parsing...done
:::
:::
::: ---= Detecting existence of /etc/dnsmasq.conf:
::: File exists, parsing...done
:::
::: ---= Detecting contents of /etc/dnsmasq.d/*:
:::
::: ---= File /etc/dnsmasq.d/01-pihole.conf found
::: Parsing...done
:::
::: ---= File /etc/dnsmasq.d/02-pihole-dhcp.conf found
::: Parsing...done
:::
::: ---= File /etc/dnsmasq.d/04-pihole-static-dhcp.conf found
::: Parsing...done
:::
::: ---= File /etc/dnsmasq.d/README found
::: Parsing...done
:::
:::
::: ---= Detecting existence of /etc/pihole/whitelist.txt:
::: /etc/pihole/whitelist.txt not found!
:::
::: ---= Detecting existence of /etc/pihole/blacklist.txt:
::: /etc/pihole/blacklist.txt not found!
:::
::: ---= Detecting existence of /etc/pihole/adlists.list:
::: /etc/pihole/adlists.list not found!
:::
::: ---= Analyzing gravity.list
grep: /etc/pihole/gravity.list: No such file or directory
::: Warning: No gravity.list file found!
:::
::: ---= Analyzing pihole.log
::: Warning: No pihole.log file found!
:::
::: ---= Analyzing pihole-FTL.log
::: Warning: No pihole-FTL.log file found!
:::
::: --= User Action Required =--
::: Try loading a site that you are having trouble with now from a client web browser..
::: (Press CTRL+C to finish logging.)
:::
::: ---= pihole.log
::: Logging will automatically teminate in 60 seconds
^C: 50 seconds left.
::: Finishing debug write from interrupt... Quitting!
::: Finshed debugging!
::: The debug log can be uploaded to tricorder.pi-hole.net for sharing with developers only.
::: Would you like to upload the log? [y/N]

With token lwk9b299b1

pi@raspberrypi:~ $ pihole -d
::: Beginning Pi-hole debug at Wed 25 Oct 08:18:51 CEST 2017!
:::
::: This process collects information from your Pi-hole, and optionally uploads
::: it to a unique and random directory on tricorder.pi-hole.net.
:::
::: NOTE: All log files auto-delete after 48 hours and ONLY the Pi-hole developers
::: can access your data via the given token. We have taken these extra steps to
::: secure your data and will work to further reduce any personal information gathered.
:::
::: Please read and note any issues, and follow any directions advised during this process.
:::
:::  ---= Detecting Installed Package Versions:
:::       Pi-hole: v3.1.4 (master:v3.1.4-0-gb0ecedd)
:::       Pi-hole Dashboard: v3.1 (master:v3.1-0-gf204b71)
:::       lighttpd/1.4.35
:::       PHP 5.6.30-0+deb8u1 (cli) (built: Apr 14 2017 16:20:58)
:::
:::  ---= Detecting existence of /etc/pihole/setupVars.conf:
:::       File exists, parsing...done and was successfully sourced
:::
:::  ---= Detecting installed OS Distribution
:::
:::  ---= Checking processor variety
:::
:::  ---= Checking IPv6 Stack
:::       IPv6 addresses located on eth0
:::          No gateway detected.
:::
:::  ---= Checking IPv4 Stack
:::       IPv4 addresses located on eth0
:::        Pinging default IPv4 gateway: :::  Gateway responded.
:::        Pinging Internet via IPv4: :::  Query responded.
:::
:::  ---= Daemon Process Information
:::     Checking http port for lighttpd listener.
:::       Correctly configured.
:::
:::  ---= Daemon Process Information
:::     Checking domain port for dnsmasq listener.
:::  Failure: IPv4 Port not in use
:::
:::  ---= Daemon Process Information
:::     Checking 4711 port for pihole-FTL listener.
:::       Correctly configured.
:::
:::  ---= Processes Check
:::     Logging status of lighttpd, dnsmasq and pihole-FTL...
:::
:::  ---= Resolver Functions Check (IPv4)
shuf: /etc/pihole/gravity.list: No such file or directory
:::     Checking for necessary lighttpd files.
:::
:::  ---= Detecting existence of /etc/lighttpd/lighttpd.conf:
:::       File exists, parsing...done
:::
:::  ---= Detecting existence of /var/log/lighttpd/error.log:
:::       File exists, parsing...done
:::
:::
:::  ---= Detecting existence of /etc/dnsmasq.conf:
:::       File exists, parsing...done
:::
:::  ---= Detecting contents of /etc/dnsmasq.d/*:
:::
:::  ---= File /etc/dnsmasq.d/01-pihole.conf found
:::       Parsing...done
:::
:::  ---= File /etc/dnsmasq.d/02-pihole-dhcp.conf found
:::       Parsing...done
:::
:::  ---= File /etc/dnsmasq.d/04-pihole-static-dhcp.conf found
:::       Parsing...done
:::
:::  ---= File /etc/dnsmasq.d/README found
:::       Parsing...done
:::
:::
:::  ---= Detecting existence of /etc/pihole/whitelist.txt:
:::  /etc/pihole/whitelist.txt not found!
:::
:::  ---= Detecting existence of /etc/pihole/blacklist.txt:
:::  /etc/pihole/blacklist.txt not found!
:::
:::  ---= Detecting existence of /etc/pihole/adlists.list:
:::  /etc/pihole/adlists.list not found!
:::
:::  ---= Analyzing gravity.list
grep: /etc/pihole/gravity.list: No such file or directory
:::  Warning: No gravity.list file found!
:::
:::  ---= Analyzing pihole.log
:::  Warning: No pihole.log file found!
:::
:::  ---= Analyzing pihole-FTL.log
:::  Warning: No pihole-FTL.log file found!
:::
::: --= User Action Required =--
::: Try loading a site that you are having trouble with now from a client web browser..
:::     (Press CTRL+C to finish logging.)
:::
:::  ---= pihole.log
::: Logging will automatically teminate in 60 seconds
::: Finshed debugging!.
::: The debug log can be uploaded to tricorder.pi-hole.net for sharing with developers only.
::: Would you like to upload the log? [y/N] y
::: ---=== Your debug token is : lwk9b299b1 Please make a note of it. ===---
::: Contact the Pi-hole team with your token for assistance.
::: Thank you.
::: A local copy of the Debug log can be found at : /var/log/pihole_debug.log
pi@raspberrypi:~ $

this is log

---= Detecting Installed Package Versions:

Pi-hole: v3.1.4 (master:v3.1.4-0-gb0ecedd)
Pi-hole Dashboard: v3.1 (master:v3.1-0-gf204b71)
lighttpd/1.4.35
PHP 5.6.30-0+deb8u1 (cli) (built: Apr 14 2017 16:20:58) 

---= Detecting existence of /etc/pihole/setupVars.conf:

PIHOLE_INTERFACE=eth0
IPV4_ADDRESS=192.168.1.239/24
IPV6_ADDRESS=
PIHOLE_DNS_1=8.8.8.8
PIHOLE_DNS_2=8.8.4.4
QUERY_LOGGING=true
INSTALL_WEB=true


---= Detecting installed OS Distribution

PRETTY_NAME="Raspbian GNU/Linux 8 (jessie)"
NAME="Raspbian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

---= Checking processor variety

armv7l

---= Checking IPv6 Stack

IPv6 on eth0
Gravity configured for: NOT CONFIGURED
----
fe80::352c:7e44:33ac:692e/64
        No gateway detected.

---= Checking IPv4 Stack

IPv4 on eth0
Gravity configured for: 192.168.1.239/24
----
192.168.1.239/24
Gateway responded.
--- 192.168.1.253 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2087ms
rtt min/avg/max/mdev = 0.612/0.619/0.629/0.029 ms
Query responded.
--- 8.8.8.8 ping statistics ---
3 packets transmitted, 2 received, 33% packet loss, time 2002ms
rtt min/avg/max/mdev = 17.888/17.989/18.091/0.168 ms

---= Daemon Process Information

Found user www-data with process lighttpd

---= Daemon Process Information

Failure: IPv4 Port not in use

---= Daemon Process Information

Found user pihole with process pihole-FTL

---= Processes Check

Status for lighttpd daemon:
active
Status for dnsmasq daemon:
failed
Status for pihole-FTL daemon:
active


---= Resolver Functions Check (IPv4)

Resolution of doubleclick.com from Pi-hole (127.0.0.1):
Failed to resolve doubleclick.com on Pi-hole (127.0.0.1)

Resolution of doubleclick.com from Pi-hole (192.168.1.239):
Failed to resolve doubleclick.com on Pi-hole (192.168.1.239)

Resolution of doubleclick.com from 8.8.8.8:
216.58.205.78

Pi-hole dnsmasq specific records lookups
Cache Size:
"1500"
Upstream Servers:
"192.168.0.1#53 0 0" "85.37.17.16#53 6391 28" "85.38.28.68#53 1657 12"


---= Detecting existence of /etc/lighttpd/lighttpd.conf:

server.modules = (
"mod_access",
"mod_accesslog",
"mod_auth",
"mod_expire",
"mod_compress",
"mod_redirect",
"mod_setenv",
"mod_rewrite"
)
server.document-root        = "/var/www/html"
server.error-handler-404    = "pihole/index.php"
server.upload-dirs          = ( "/var/cache/lighttpd/uploads" )
server.errorlog             = "/var/log/lighttpd/error.log"
server.pid-file             = "/var/run/lighttpd.pid"
server.username             = "www-data"
server.groupname            = "www-data"
server.port                 = 80
accesslog.filename          = "/var/log/lighttpd/access.log"
accesslog.format            = "%{%s}t|%V|%r|%s|%b"
index-file.names            = ( "index.php", "index.html", "index.lighttpd.html" )
url.access-deny             = ( "~", ".inc" )
static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
compress.cache-dir          = "/var/cache/lighttpd/compress/"
compress.filetype           = ( "application/javascript", "text/css", "text/html", "text/plain" )
include_shell "/usr/share/lighttpd/use-ipv6.pl " + server.port
include_shell "/usr/share/lighttpd/create-mime.assign.pl"
include_shell "/usr/share/lighttpd/include-conf-enabled.pl"
$HTTP["url"] =~ "^/admin/" {
setenv.add-response-header = (
"X-Pi-hole" => "The Pi-hole Web interface is working!",
"X-Frame-Options" => "DENY"
)
}
url.rewrite = ( "^(?!/admin/).*\.js$"  => "pihole/index.js"   )
$HTTP["url"] =~ "^(?!/admin)/.*" {
setenv.add-response-header = ( "X-Pi-hole" => "A black hole for Internet advertisements." )
}
$HTTP["host"] == "pi.hole" {
$HTTP["url"] == "/" {
url.redirect = ( "" => "/admin/" )
}
}
include_shell "cat external.conf 2>/dev/null"


---= Detecting existence of /var/log/lighttpd/error.log:

2017-10-24 23:52:34: (log.c.164) server started
2017-10-24 23:53:11: (server.c.1558) server stopped by UID = 0 PID = 1
2017-10-24 23:53:55: (log.c.164) server started


---= Detecting existence of /etc/dnsmasq.conf:

conf-dir=/etc/dnsmasq.d


---= Detecting contents of /etc/dnsmasq.d/*:


---= File /etc/dnsmasq.d/01-pihole.conf found

addn-hosts=/etc/pihole/gravity.list
addn-hosts=/etc/pihole/local.list
addn-hosts=/etc/pihole/black.list
domain-needed
localise-queries
bogus-priv
no-resolv
server=8.8.8.8
server=8.8.4.4
interface=eth0
cache-size=10000
log-queries
log-facility=/var/log/pihole.log
local-ttl=300
log-async


---= File /etc/dnsmasq.d/02-pihole-dhcp.conf found

dhcp-authoritative
dhcp-range=192.168.1.1,192.168.1.252,24h
dhcp-option=option:router,192.168.1.253
dhcp-leasefile=/etc/pihole/dhcp.leases
domain=local


---= File /etc/dnsmasq.d/04-pihole-static-dhcp.conf found

dhcp-host=30:F7:C5:xxx,192.168.1.65,Iphone-Marisol



---= File /etc/dnsmasq.d/README found



---= Detecting existence of /etc/pihole/whitelist.txt:

/etc/pihole/whitelist.txt not found!

---= Detecting existence of /etc/pihole/blacklist.txt:

/etc/pihole/blacklist.txt not found!

---= Detecting existence of /etc/pihole/adlists.list:

/etc/pihole/adlists.list not found!

---= Analyzing gravity.list

Warning: No gravity.list file found!

---= Analyzing pihole.log

Warning: No pihole.log file found!
/var/log/pihole.log is 0.

---= Analyzing pihole-FTL.log

Warning: No pihole-FTL.log file found!
/var/log/pihole-FTL.log is 0.

---= pihole.log

Remove the Quote from the 3 lines below and create /etc/pihole/adlists.list with the contents below.

"## The below list amalgamates several lists we used previously.
"## See https://github.com/StevenBlack/hosts for details
"##StevenBlack's list
https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts

##MalwareDomains
https://mirror1.malwaredomains.com/files/justdomains

##Cameleon
http://sysctl.org/cameleon/hosts

##Zeustracker
https://zeustracker.abuse.ch/blocklist.php?download=domainblocklist

##Disconnect.me Tracking
https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt

##Disconnect.me Ads
https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt

##Hosts-file.net
https://hosts-file.net/ad_servers.txt

That should restore the lists and cure the Warning: No gravity.list file found!
Be aware I am not a developer, have only been using Pi-Hole since the mid OCT.

You may of bought a ready image of Raspbian or did you do it yourself?
The journal problem could you summarize what PC you used and the program to do the Micro SD card if you burnt an image?

What is the output of these commands?

sudo service dnsmasq status
pihole -g

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