Advertisement
Guest User

pihole debug

a guest
Jan 2nd, 2018
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.45 KB | None | 0 0
  1. This process collects information from your Pi-hole, and optionally uploads it to a unique and random directory on tricorder.pi-hole.net.
  2.  
  3. The intent of this script is to allow users to self-diagnose their installations. This is accomplished by running tests against our software and providing the user with links to FAQ articles when a problem is detected. Since we are a small team and Pi-hole has been growing steadily, it is our hope that this will help us spend more time on development.
  4.  
  5. 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.
  6.  
  7. *** [ INITIALIZING ]
  8. [i] 2018-01-02:13:42:35 debug log has been initiated.
  9.  
  10. *** [ INITIALIZING ] Sourcing setup variables
  11. [i] Sourcing /etc/pihole/setupVars.conf...
  12.  
  13. *** [ DIAGNOSING ]: Core version
  14. [i] Core: v3.2.1 (https://discourse.pi-hole.net/t/how-do-i-update-pi-hole/249)
  15. [i] Branch: master
  16. [i] Commit: v3.2.1-0-ge602008
  17.  
  18. *** [ DIAGNOSING ]: Web version
  19. [i] Web: v3.2.1 (https://discourse.pi-hole.net/t/how-do-i-update-pi-hole/249)
  20. [i] Branch: master
  21. [i] Commit: v3.2.1-0-g31dddd8
  22.  
  23. *** [ DIAGNOSING ]: FTL version
  24. [✓] FTL: v2.13.1
  25.  
  26. *** [ DIAGNOSING ]: dnsmasq version
  27. [i] 2.76
  28.  
  29. *** [ DIAGNOSING ]: lighttpd version
  30. [i] 1.4.44
  31.  
  32. *** [ DIAGNOSING ]: php version
  33. [i] 7.0.22
  34.  
  35. *** [ DIAGNOSING ]: Operating system
  36. [✓] Ubuntu 17.04
  37.  
  38. *** [ DIAGNOSING ]: SELinux
  39. [i] SELinux not detected
  40.  
  41. *** [ DIAGNOSING ]: Processor
  42. [i] x86_64
  43.  
  44. *** [ DIAGNOSING ]: Networking
  45. [✓] IPv4 address(es) bound to the ens18 interface:
  46. 10.0.0.5/24 matches the IP found in /etc/pihole/setupVars.conf
  47.  
  48. [✓] IPv6 address(es) bound to the ens18 interface:
  49. fe80::304d:83ff:fe6a:84b does not match the IP found in /etc/pihole/setupVars.conf (https://discourse.pi-hole.net/t/use-ipv6-ula-addresses-for-pi-hole/2127)
  50.  
  51. ^ Please note that you may have more than one IP address listed.
  52. As long as one of them is green, and it matches what is in /etc/pihole/setupVars.conf, there is no need for concern.
  53.  
  54. The link to the FAQ is for an issue that sometimes occurs when the IPv6 address changes, which is why we check for it.
  55.  
  56. [i] Default IPv4 gateway: 10.0.0.254
  57. * Pinging 10.0.0.254...
  58. [✓] Gateway responded.
  59.  
  60. *** [ DIAGNOSING ]: Ports in use
  61. [] is in use by
  62. [22] is in use by sshd
  63. [5355] is in use by systemd-r
  64. [80] is in use by lighttpd
  65. [9100] is in use by node_expo
  66. [] is in use by
  67. [53] is in use by dnsmasq
  68. [4711] is in use by pihole-FTL
  69. [53] is in use by dnsmasq
  70.  
  71. *** [ DIAGNOSING ]: Name resolution (IPv4) using a random blocked domain and a known ad-serving domain
  72. [✓] celibert.kegtux.org is 10.0.0.5 via localhost (127.0.0.1)
  73. [✓] celibert.kegtux.org is 10.0.0.5 via Pi-hole (10.0.0.5)
  74. [✓] doubleclick.com is 66.253.131.236 via a remote, public DNS server (8.8.8.8)
  75.  
  76. *** [ DIAGNOSING ]: Pi-hole processes
  77. [✓] dnsmasq daemon is active
  78. [✓] lighttpd daemon is active
  79. [✓] pihole-FTL daemon is active
  80.  
  81. *** [ DIAGNOSING ]: Setup variables
  82. TEMPERATUREUNIT=F
  83. WEBUIBOXEDLAYOUT=boxed
  84. DNSMASQ_LISTENING=single
  85. DNS_FQDN_REQUIRED=true
  86. DNS_BOGUS_PRIV=true
  87. DNSSEC=false
  88. PIHOLE_INTERFACE=ens18
  89. IPV4_ADDRESS=10.0.0.5/24
  90. IPV6_ADDRESS=
  91. PIHOLE_DNS_1=45.76.27.27
  92. PIHOLE_DNS_2=10.0.0.254
  93. QUERY_LOGGING=true
  94. INSTALL_WEB=true
  95. LIGHTTPD_ENABLED=1
  96.  
  97. *** [ DIAGNOSING ]: Dashboard and block page
  98. [✗] X-Header does not match or could not be retrieved.
  99. HTTP/1.1 200 OK
  100. Content-Type: text/html
  101. Accept-Ranges: bytes
  102. ETag: "1161031336"
  103. Last-Modified: Mon, 20 Nov 2017 18:05:27 GMT
  104. Content-Length: 123
  105. Date: Tue, 02 Jan 2018 18:42:39 GMT
  106. Server: lighttpd/1.4.44
  107.  
  108. [✓] X-Pi-hole: The Pi-hole Web interface is working!
  109.  
  110. *** [ DIAGNOSING ]: Gravity list
  111. -rw-r--r-- 1 root root 3411289 Jan 2 10:59 /etc/pihole/gravity.list
  112. -----head of gravity.list------
  113. 10.0.0.5 0.0.0.0
  114. 10.0.0.5 0000mps.webpreview.dsl.net
  115. 10.0.0.5 0001.2waky.com
  116. 10.0.0.5 000dom.revenuedirect.com
  117.  
  118. -----tail of gravity.list------
  119. 10.0.0.5 zzsyw.com
  120. 10.0.0.5 zztxdown.com
  121. 10.0.0.5 zzz.clickbank.net
  122. 10.0.0.5 zz.zeroredirect1.com
  123.  
  124. *** [ DIAGNOSING ]: contents of /etc/pihole
  125.  
  126. -rw-r--r-- 1 root root 672 Nov 20 13:26 /etc/pihole/adlists.list
  127. https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
  128. https://mirror1.malwaredomains.com/files/justdomains
  129. http://sysctl.org/cameleon/hosts
  130. https://zeustracker.abuse.ch/blocklist.php?download=domainblocklist
  131. https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt
  132. https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt
  133. https://hosts-file.net/ad_servers.txt
  134. http://someonewhocares.org/hosts/hosts
  135.  
  136. -rw-r--r-- 1 root root 38 Jan 2 10:59 /etc/pihole/local.list
  137. 10.0.0.5 UbuntuS-DNS
  138. 10.0.0.5 pi.hole
  139.  
  140. -rw-r--r-- 1 root root 238 Jan 2 10:59 /etc/pihole/logrotate
  141. /var/log/pihole.log {
  142. su root syslog
  143. daily
  144. copytruncate
  145. rotate 5
  146. compress
  147. delaycompress
  148. notifempty
  149. nomail
  150. }
  151. /var/log/pihole-FTL.log {
  152. su root syslog
  153. weekly
  154. copytruncate
  155. rotate 3
  156. compress
  157. delaycompress
  158. notifempty
  159. nomail
  160. }
  161.  
  162. -rw-r--r-- 1 root root 137 Nov 20 13:27 /etc/pihole/whitelist.txt
  163. raw.githubusercontent.com
  164. mirror1.malwaredomains.com
  165. sysctl.org
  166. zeustracker.abuse.ch
  167. s3.amazonaws.com
  168. hosts-file.net
  169. someonewhocares.org
  170.  
  171. *** [ DIAGNOSING ]: contents of /etc/dnsmasq.d
  172.  
  173. -rw-r--r-- 1 root root 1535 Jan 2 10:59 /etc/dnsmasq.d/01-pihole.conf
  174. addn-hosts=/etc/pihole/gravity.list
  175. addn-hosts=/etc/pihole/black.list
  176. addn-hosts=/etc/pihole/local.list
  177. localise-queries
  178. no-resolv
  179. cache-size=10000
  180. log-queries
  181. log-facility=/var/log/pihole.log
  182. local-ttl=2
  183. log-async
  184. server=45.76.27.27
  185. server=10.0.0.254
  186. domain-needed
  187. bogus-priv
  188. interface=ens18
  189.  
  190. *** [ DIAGNOSING ]: contents of /etc/lighttpd
  191.  
  192. -rw-r--r-- 1 root root 3027 Jan 2 10:59 /etc/lighttpd/lighttpd.conf
  193. server.modules = (
  194. "mod_access",
  195. "mod_accesslog",
  196. "mod_auth",
  197. "mod_expire",
  198. "mod_compress",
  199. "mod_redirect",
  200. "mod_setenv",
  201. "mod_rewrite"
  202. )
  203. server.document-root = "/var/www/html"
  204. server.error-handler-404 = "pihole/index.php"
  205. server.upload-dirs = ( "/var/cache/lighttpd/uploads" )
  206. server.errorlog = "/var/log/lighttpd/error.log"
  207. server.pid-file = "/var/run/lighttpd.pid"
  208. server.username = "www-data"
  209. server.groupname = "www-data"
  210. server.port = 80
  211. accesslog.filename = "/var/log/lighttpd/access.log"
  212. accesslog.format = "%{%s}t|%V|%r|%s|%b"
  213. index-file.names = ( "index.php", "index.html", "index.lighttpd.html" )
  214. url.access-deny = ( "~", ".inc", ".md", ".yml", ".ini" )
  215. static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
  216. compress.cache-dir = "/var/cache/lighttpd/compress/"
  217. compress.filetype = ( "application/javascript", "text/css", "text/html", "text/plain" )
  218. include_shell "/usr/share/lighttpd/use-ipv6.pl " + server.port
  219. include_shell "/usr/share/lighttpd/create-mime.assign.pl"
  220. include_shell "find /etc/lighttpd/conf-enabled -name '*.conf' -a ! -name 'letsencrypt.conf' -printf 'include \"%p\"
  221.  
  222. ' 2>/dev/null"
  223. $HTTP["url"] =~ "^/admin/" {
  224.  
  225. setenv.add-response-header = (
  226. "X-Pi-hole" => "The Pi-hole Web interface is working!",
  227. "X-Frame-Options" => "DENY"
  228. )
  229. $HTTP["url"] =~ ".ttf$" {
  230.  
  231. setenv.add-response-header = ( "Access-Control-Allow-Origin" => "*" )
  232. }
  233. }
  234. $HTTP["url"] =~ "^/admin/\.(.*)" {
  235. url.access-deny = ("")
  236. }
  237. include_shell "cat external.conf 2>/dev/null"
  238.  
  239. *** [ DIAGNOSING ]: contents of /etc/cron.d
  240.  
  241. -rw-r--r-- 1 root root 1630 Jan 2 10:59 /etc/cron.d/pihole
  242. 34 4 * * 7 root PATH="$PATH:/usr/local/bin/" pihole updateGravity
  243. 00 00 * * * root PATH="$PATH:/usr/local/bin/" pihole flush once quiet
  244. @reboot root /usr/sbin/logrotate /etc/pihole/logrotate
  245. */10 * * * * root PATH="$PATH:/usr/local/bin/" pihole updatechecker local
  246. 27 14 * * * root PATH="$PATH:/usr/local/bin/" pihole updatechecker remote
  247. @reboot root PATH="$PATH:/usr/local/bin/" pihole updatechecker remote reboot
  248.  
  249. *** [ DIAGNOSING ]: contents of /var/log/lighttpd
  250.  
  251. -rw-r--r-- 1 www-data www-data 195 Jan 2 10:59 /var/log/lighttpd/error.log
  252. 2018-01-01 06:25:01: (server.c.1534) logfiles cycled UID = 0 PID = 10475
  253. 2018-01-02 10:59:06: (server.c.1828) server stopped by UID = 0 PID = 1
  254. 2018-01-02 10:59:07: (log.c.217) server started
  255.  
  256. *** [ DIAGNOSING ]: contents of /var/log
  257.  
  258. -rw-r--r-- 1 pihole pihole 5176 Jan 2 12:46 /var/log/pihole-FTL.log
  259. [2018-01-02 00:00:01.439] NOTICE: pihole.log has been flushed
  260. [2018-01-02 00:00:01.439] Resetting internal data structure
  261. [2018-01-02 00:00:01.439] Queries in memory before flushing: 14947
  262. [2018-01-02 00:00:01.507] Gravity list entries: 107235
  263. [2018-01-02 00:00:01.507] No blacklist present
  264. [2018-01-02 00:00:01.507] No wildcard blocking list present
  265. [2018-01-02 00:00:01.507] Reading from /var/log/pihole.log.1 (rw-r--r--)
  266. [2018-01-02 00:00:01.507] Notice: Increasing queries struct size from 0 to 10000 (322.46 KB)
  267. [2018-01-02 00:00:01.507] Notice: Increasing overTime struct size from 0 to 100 (326.46 KB)
  268. [2018-01-02 00:00:01.507] Notice: Increasing domains struct size from 0 to 1000 (358.47 KB)
  269. [2018-01-02 00:00:01.507] Notice: Increasing clients struct size from 0 to 10 (358.73 KB)
  270. [2018-01-02 00:00:01.507] New client: 127.0.0.1 localhost (0/10)
  271. [2018-01-02 00:00:01.507] Notice: Increasing forwarded struct size from 0 to 4 (358.84 KB)
  272. [2018-01-02 00:00:01.903] New forward server: 10.0.0.254 gateway (0/4)
  273. [2018-01-02 00:00:02.056] New client: 10.1.0.2 (1/10)
  274. [2018-01-02 00:00:02.072] Notice: Increasing overTime struct size from 100 to 200 (365.85 KB)
  275. [2018-01-02 00:00:06.328] New forward server: 45.76.27.27 ns1.il.us.dns.opennic.glue (1/4)
  276. [2018-01-02 00:00:06.340] Reading from /var/log/pihole.log (rw-r--r--)
  277. [2018-01-02 08:14:42.284] Notice: Increasing queries struct size from 10000 to 20000 (691.84 KB)
  278. [2018-01-02 09:10:24.515] Notice: Increasing overTime struct size from 200 to 300 (695.89 KB)
  279. [2018-01-02 10:59:05.009] FATAL: FTL received SIGTERM from PID/UID 20951/0, scheduled to exit gracefully
  280. [2018-01-02 10:59:05.009] Shutting down...
  281. [2018-01-02 10:59:05.019]
  282. [2018-01-02 10:59:08.048]
  283. [2018-01-02 10:59:08.048] FTL branch: (no branch)
  284.  
  285. *** [ DIAGNOSING ]: Pi-hole log
  286. -rw-r--r-- 1 dnsmasq root 1110429 Jan 2 13:42 /var/log/pihole.log
  287. -----head of pihole.log------
  288. Jan 2 00:00:01 dnsmasq[14891]: query[PTR] 254.0.0.10.in-addr.arpa from 127.0.0.1
  289. Jan 2 00:00:01 dnsmasq[14891]: config 10.0.0.254 is NXDOMAIN
  290. Jan 2 00:00:01 dnsmasq[14891]: query[PTR] 2.0.1.10.in-addr.arpa from 127.0.0.1
  291. Jan 2 00:00:01 dnsmasq[14891]: config 10.1.0.2 is NXDOMAIN
  292. Jan 2 00:00:02 dnsmasq[14891]: query[PTR] 27.27.76.45.in-addr.arpa from 127.0.0.1
  293. Jan 2 00:00:02 dnsmasq[14891]: forwarded 27.27.76.45.in-addr.arpa to 10.0.0.254
  294. Jan 2 00:00:02 dnsmasq[14891]: forwarded 27.27.76.45.in-addr.arpa to 45.76.27.27
  295. Jan 2 00:00:04 dnsmasq[14891]: query[PTR] 27.27.76.45.in-addr.arpa from 127.0.0.1
  296. Jan 2 00:00:04 dnsmasq[14891]: forwarded 27.27.76.45.in-addr.arpa to 10.0.0.254
  297. Jan 2 00:00:04 dnsmasq[14891]: forwarded 27.27.76.45.in-addr.arpa to 45.76.27.27
  298. Jan 2 00:00:05 dnsmasq[14891]: query[A] log.watson.io from 127.0.0.1
  299. Jan 2 00:00:05 dnsmasq[14891]: cached log.watson.io is 10.0.0.3
  300. Jan 2 00:00:06 dnsmasq[14891]: reply 45.76.27.27 is ns1.il.us.dns.opennic.glue
  301. Jan 2 00:00:06 dnsmasq[14891]: query[PTR] 2.0.1.10.in-addr.arpa from 127.0.0.1
  302. Jan 2 00:00:06 dnsmasq[14891]: config 10.1.0.2 is NXDOMAIN
  303. Jan 2 00:00:10 dnsmasq[14891]: query[A] a.fc.namequery.com from 10.1.0.2
  304. Jan 2 00:00:10 dnsmasq[14891]: forwarded a.fc.namequery.com to 10.0.0.254
  305. Jan 2 00:00:11 dnsmasq[14891]: reply a.fc.namequery.com is 209.53.113.5
  306. Jan 2 00:00:18 dnsmasq[14891]: query[A] log.watson.io from 127.0.0.1
  307. Jan 2 00:00:18 dnsmasq[14891]: cached log.watson.io is 10.0.0.3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement