Guest User

Untitled

a guest
Jan 1st, 2018
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.60 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-01:14:45: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.45
  31.  
  32. *** [ DIAGNOSING ]: php version
  33. [i] 7.0.19
  34.  
  35. *** [ DIAGNOSING ]: Operating system
  36. [✓] Raspbian GNU/Linux 9 (stretch)
  37.  
  38. *** [ DIAGNOSING ]: SELinux
  39. [i] SELinux not detected
  40.  
  41. *** [ DIAGNOSING ]: Processor
  42. /opt/pihole/piholeDebug.sh: line 474: $'[E[32m✓E[0m] E[32marmv7lE[0m': command not found
  43.  
  44. *** [ DIAGNOSING ]: Networking
  45. [✓] IPv4 address(es) bound to the eth0 interface:
  46. 10.0.0.148/24 matches the IP found in /etc/pihole/setupVars.conf
  47.  
  48. [✓] IPv6 address(es) bound to the eth0 interface:
  49. 2601:280:4400:60ce::8371 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. 2601:280:4400:60ce:c915:734e:b487:5aa7 matches the IP found in /etc/pihole/setupVars.conf
  51. fe80::ec83:7866:6ca8:542 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)
  52.  
  53. ^ Please note that you may have more than one IP address listed.
  54. As long as one of them is green, and it matches what is in /etc/pihole/setupVars.conf, there is no need for concern.
  55.  
  56. The link to the FAQ is for an issue that sometimes occurs when the IPv6 address changes, which is why we check for it.
  57.  
  58. [i] Default IPv4 gateway: 10.0.0.1
  59. * Pinging 10.0.0.1...
  60. [✓] Gateway responded.
  61. [i] Default IPv6 gateway: fe80::250:f1ff:fe80:0
  62. * Pinging fe80::250:f1ff:fe80:0...
  63. [✓] Gateway responded.
  64.  
  65. *** [ DIAGNOSING ]: Ports in use
  66. [22] is in use by sshd
  67. [53] is in use by dnsmasq
  68. [80] is in use by lighttpd
  69. [4711] is in use by pihole-FTL
  70.  
  71. *** [ DIAGNOSING ]: Name resolution (IPv4) using a random blocked domain and a known ad-serving domain
  72. [✓] www4.efailf.us is 10.0.0.148 via localhost (127.0.0.1)
  73. [✓] www4.efailf.us is 10.0.0.148 via Pi-hole (10.0.0.148)
  74. [✓] doubleclick.com is 172.217.3.14 via a remote, public DNS server (8.8.8.8)
  75.  
  76. *** [ DIAGNOSING ]: Name resolution (IPv6) using a random blocked domain and a known ad-serving domain
  77. [✓] fbpageunblock.co.nf is 2601:280:4400:60ce:c915:734e:b487:5aa7 via localhost (::1)
  78. [✓] fbpageunblock.co.nf is 2601:280:4400:60ce:c915:734e:b487:5aa7 via Pi-hole (2601:280:4400:60ce:c915:734e:b487:5aa7)
  79. [✓] doubleclick.com is 2607:f8b0:400f:800::200e via a remote, public DNS server (2001:4860:4860::8888)
  80.  
  81. *** [ DIAGNOSING ]: Pi-hole processes
  82. [✓] dnsmasq daemon is active
  83. [✓] lighttpd daemon is active
  84. [✓] pihole-FTL daemon is active
  85.  
  86. *** [ DIAGNOSING ]: Setup variables
  87. DHCP_START=10.0.0.2
  88. DHCP_END=10.0.0.253
  89. DHCP_ROUTER=10.0.0.1
  90. DHCP_LEASETIME=24
  91. PIHOLE_DOMAIN=local
  92. DHCP_IPv6=true
  93. PIHOLE_INTERFACE=eth0
  94. IPV4_ADDRESS=10.0.0.148/24
  95. IPV6_ADDRESS=2601:280:4400:60ce:c915:734e:b487:5aa7
  96. QUERY_LOGGING=true
  97. INSTALL_WEB=true
  98. LIGHTTPD_ENABLED=1
  99. DHCP_ACTIVE=false
  100. DNSMASQ_LISTENING=local
  101. PIHOLE_DNS_1=8.8.8.8
  102. PIHOLE_DNS_2=8.8.4.4
  103. PIHOLE_DNS_3=2001:4860:4860:0:0:0:0:8888
  104. PIHOLE_DNS_4=2001:4860:4860:0:0:0:0:8844
  105. PIHOLE_DNS_5=208.67.222.222
  106. PIHOLE_DNS_6=208.67.220.220
  107. PIHOLE_DNS_7=2620:0:ccc::2
  108. PIHOLE_DNS_8=2620:0:ccd::2
  109. DNS_FQDN_REQUIRED=true
  110. DNS_BOGUS_PRIV=true
  111. DNSSEC=false
  112.  
  113. *** [ DIAGNOSING ]: Dashboard and block page
  114. [✓] X-Pi-hole: A black hole for Internet advertisements.
  115. [✓] X-Pi-hole: The Pi-hole Web interface is working!
  116.  
  117. *** [ DIAGNOSING ]: Gravity list
  118. -rw-r--r-- 1 root root 10250658 Jan 1 12:03 /etc/pihole/gravity.list
  119. -----head of gravity.list------
  120. 10.0.0.148 0.0.0.0
  121. 2601:280:4400:60ce:c915:734e:b487:5aa7 0.0.0.0
  122. 10.0.0.148 0000mps.webpreview.dsl.net
  123. 2601:280:4400:60ce:c915:734e:b487:5aa7 0000mps.webpreview.dsl.net
  124.  
  125. -----tail of gravity.list------
  126. 10.0.0.148 zzz.clickbank.net
  127. 2601:280:4400:60ce:c915:734e:b487:5aa7 zzz.clickbank.net
  128. 10.0.0.148 zz.zeroredirect1.com
  129. 2601:280:4400:60ce:c915:734e:b487:5aa7 zz.zeroredirect1.com
  130.  
  131. *** [ DIAGNOSING ]: contents of /etc/pihole
  132.  
  133. -rw-r--r-- 1 root root 633 Dec 20 01:00 /etc/pihole/adlists.list
  134. https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
  135. https://mirror1.malwaredomains.com/files/justdomains
  136. http://sysctl.org/cameleon/hosts
  137. https://zeustracker.abuse.ch/blocklist.php?download=domainblocklist
  138. https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt
  139. https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt
  140. https://hosts-file.net/ad_servers.txt
  141.  
  142. -rw-r--r-- 1 root root 122 Jan 1 12:03 /etc/pihole/local.list
  143. 10.0.0.148 pi
  144. 2601:280:4400:60ce:c915:734e:b487:5aa7 pi
  145. 10.0.0.148 pi.hole
  146. 2601:280:4400:60ce:c915:734e:b487:5aa7 pi.hole
  147.  
  148. -rw-r--r-- 1 root root 234 Jan 1 12:03 /etc/pihole/logrotate
  149. /var/log/pihole.log {
  150. su root root
  151. daily
  152. copytruncate
  153. rotate 5
  154. compress
  155. delaycompress
  156. notifempty
  157. nomail
  158. }
  159. /var/log/pihole-FTL.log {
  160. su root root
  161. weekly
  162. copytruncate
  163. rotate 3
  164. compress
  165. delaycompress
  166. notifempty
  167. nomail
  168. }
  169.  
  170. -rw-r--r-- 1 root root 117 Dec 31 19:59 /etc/pihole/whitelist.txt
  171. raw.githubusercontent.com
  172. mirror1.malwaredomains.com
  173. sysctl.org
  174. zeustracker.abuse.ch
  175. s3.amazonaws.com
  176. hosts-file.net
  177.  
  178. *** [ DIAGNOSING ]: contents of /etc/dnsmasq.d
  179.  
  180. -rw-r--r-- 1 root root 1682 Jan 1 14:35 /etc/dnsmasq.d/01-pihole.conf
  181. addn-hosts=/etc/pihole/gravity.list
  182. addn-hosts=/etc/pihole/black.list
  183. addn-hosts=/etc/pihole/local.list
  184. localise-queries
  185. no-resolv
  186. cache-size=10000
  187. log-queries
  188. log-facility=/var/log/pihole.log
  189. local-ttl=2
  190. log-async
  191. server=8.8.8.8
  192. server=8.8.4.4
  193. server=2001:4860:4860:0:0:0:0:8888
  194. server=2001:4860:4860:0:0:0:0:8844
  195. server=208.67.222.222
  196. server=208.67.220.220
  197. server=2620:0:ccc::2
  198. server=2620:0:ccd::2
  199. domain-needed
  200. bogus-priv
  201. local-service
  202.  
  203. *** [ DIAGNOSING ]: contents of /etc/lighttpd
  204.  
  205. -rw-r--r-- 1 root root 3027 Jan 1 12:03 /etc/lighttpd/lighttpd.conf
  206. server.modules = (
  207. "mod_access",
  208. "mod_accesslog",
  209. "mod_auth",
  210. "mod_expire",
  211. "mod_compress",
  212. "mod_redirect",
  213. "mod_setenv",
  214. "mod_rewrite"
  215. )
  216. server.document-root = "/var/www/html"
  217. server.error-handler-404 = "pihole/index.php"
  218. server.upload-dirs = ( "/var/cache/lighttpd/uploads" )
  219. server.errorlog = "/var/log/lighttpd/error.log"
  220. server.pid-file = "/var/run/lighttpd.pid"
  221. server.username = "www-data"
  222. server.groupname = "www-data"
  223. server.port = 80
  224. accesslog.filename = "/var/log/lighttpd/access.log"
  225. accesslog.format = "%{%s}t|%V|%r|%s|%b"
  226. index-file.names = ( "index.php", "index.html", "index.lighttpd.html" )
  227. url.access-deny = ( "~", ".inc", ".md", ".yml", ".ini" )
  228. static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
  229. compress.cache-dir = "/var/cache/lighttpd/compress/"
  230. compress.filetype = ( "application/javascript", "text/css", "text/html", "text/plain" )
  231. include_shell "/usr/share/lighttpd/use-ipv6.pl " + server.port
  232. include_shell "/usr/share/lighttpd/create-mime.assign.pl"
  233. include_shell "find /etc/lighttpd/conf-enabled -name '*.conf' -a ! -name 'letsencrypt.conf' -printf 'include "%p"
  234. ' 2>/dev/null"
  235. $HTTP["url"] =~ "^/admin/" {
  236.  
  237. setenv.add-response-header = (
  238. "X-Pi-hole" => "The Pi-hole Web interface is working!",
  239. "X-Frame-Options" => "DENY"
  240. )
  241. $HTTP["url"] =~ ".ttf$" {
  242.  
  243. setenv.add-response-header = ( "Access-Control-Allow-Origin" => "*" )
  244. }
  245. }
  246. $HTTP["url"] =~ "^/admin/.(.*)" {
  247. url.access-deny = ("")
  248. }
  249. include_shell "cat external.conf 2>/dev/null"
  250.  
  251. *** [ DIAGNOSING ]: contents of /etc/cron.d
  252.  
  253. -rw-r--r-- 1 root root 1629 Jan 1 12:03 /etc/cron.d/pihole
  254. 7 3 * * 7 root PATH="$PATH:/usr/local/bin/" pihole updateGravity
  255. 00 00 * * * root PATH="$PATH:/usr/local/bin/" pihole flush once quiet
  256. @reboot root /usr/sbin/logrotate /etc/pihole/logrotate
  257. */10 * * * * root PATH="$PATH:/usr/local/bin/" pihole updatechecker local
  258. 55 17 * * * root PATH="$PATH:/usr/local/bin/" pihole updatechecker remote
  259. @reboot root PATH="$PATH:/usr/local/bin/" pihole updatechecker remote reboot
  260.  
  261. *** [ DIAGNOSING ]: contents of /var/log/lighttpd
  262.  
  263. -rw-r--r-- 1 www-data www-data 1666 Jan 1 13:25 /var/log/lighttpd/error.log
  264. 2018-01-01 06:25:02: (server.c.1534) logfiles cycled UID = 0 PID = 11919
  265. 2018-01-01 12:03:12: (server.c.1828) server stopped by UID = 0 PID = 1
  266. 2018-01-01 12:03:30: (log.c.217) server started
  267. 2018-01-01 12:03:30: (server.c.1295) WARNING: unknown config-key: alias.url (ignored)
  268. 2018-01-01 12:04:50: (server.c.1828) server stopped by UID = 0 PID = 1
  269. 2018-01-01 12:05:00: (log.c.217) server started
  270. 2018-01-01 12:05:00: (server.c.1295) WARNING: unknown config-key: alias.url (ignored)
  271. 2018-01-01 12:25:26: (server.c.1828) server stopped by UID = 0 PID = 1
  272. 2018-01-01 12:25:33: (log.c.217) server started
  273. 2018-01-01 12:25:33: (server.c.1295) WARNING: unknown config-key: alias.url (ignored)
  274. 2018-01-01 12:51:16: (server.c.1828) server stopped by UID = 0 PID = 1
  275. 2018-01-01 12:51:27: (log.c.217) server started
  276. 2018-01-01 12:51:27: (server.c.1295) WARNING: unknown config-key: alias.url (ignored)
  277. 2018-01-01 13:00:08: (log.c.217) server started
  278. 2018-01-01 13:00:08: (server.c.1295) WARNING: unknown config-key: alias.url (ignored)
  279. 2018-01-01 13:08:46: (server.c.1828) server stopped by UID = 0 PID = 1
  280. 2018-01-01 13:09:11: (log.c.217) server started
  281. 2018-01-01 13:09:11: (server.c.1295) WARNING: unknown config-key: alias.url (ignored)
  282. 2018-01-01 13:21:30: (server.c.1828) server stopped by UID = 0 PID = 1
  283. 2018-01-01 13:21:38: (log.c.217) server started
  284. 2018-01-01 13:21:38: (server.c.1295) WARNING: unknown config-key: alias.url (ignored)
  285. 2018-01-01 13:25:46: (server.c.1828) server stopped by UID = 0 PID = 1
  286. 2018-01-01 13:25:52: (log.c.217) server started
  287. 2018-01-01 13:25:52: (server.c.1295) WARNING: unknown config-key: alias.url (ignored)
  288.  
  289. *** [ DIAGNOSING ]: contents of /var/log
  290.  
  291. -rw-r--r-- 1 pihole pihole 75947 Jan 1 14:45 /var/log/pihole-FTL.log
  292. [2018-01-01 00:00:02.050] NOTICE: pihole.log has been flushed
  293. [2018-01-01 00:00:02.051] Resetting internal data structure
  294. [2018-01-01 00:00:02.051] Queries in memory before flushing: 11476
  295. [2018-01-01 00:00:02.257] Gravity list entries: 107129
  296. [2018-01-01 00:00:02.257] No blacklist present
  297. [2018-01-01 00:00:02.257] No wildcard blocking list present
  298. [2018-01-01 00:00:02.257] Reading from /var/log/pihole.log.1 (rw-r--r--)
  299. [2018-01-01 00:00:02.257] Notice: Increasing forwarded struct size from 0 to 4 (464.00 B)
  300. [2018-01-01 00:00:02.299] New forward server: 8.8.4.4 google-public-dns-b.google.com (0/4)
  301. [2018-01-01 00:00:02.299] Notice: Increasing overTime struct size from 0 to 100 (4.50 KB)
  302. [2018-01-01 00:00:02.299] Notice: Increasing queries struct size from 0 to 10000 (324.51 KB)
  303. [2018-01-01 00:00:02.299] Notice: Increasing domains struct size from 0 to 1000 (344.51 KB)
  304. [2018-01-01 00:00:02.299] Notice: Increasing clients struct size from 0 to 10 (344.68 KB)
  305. [2018-01-01 00:00:02.306] New client: 2601:280:4400:60ce:dcb0:52ff:7d5d:6250 (0/10)
  306. [2018-01-01 00:00:02.331] New forward server: 8.8.8.8 google-public-dns-a.google.com (1/4)
  307. [2018-01-01 00:00:02.338] New client: 10.0.0.232 oa.local (1/10)
  308. [2018-01-01 00:00:02.340] New client: 127.0.0.1 localhost (2/10)
  309. [2018-01-01 00:00:02.783] New client: 10.0.0.114 (3/10)
  310. [2018-01-01 00:00:02.847] New client: 2601:280:4400:60ce::22ce (4/10)
  311. [2018-01-01 00:00:02.856] New client: 10.0.0.168 retropie.local (5/10)
  312. [2018-01-01 00:00:02.907] Notice: Increasing overTime struct size from 100 to 200 (353.98 KB)
  313. [2018-01-01 00:00:03.124] New client: 2601:280:4400:60ce:1115:2697:34d8:fa57 (6/10)
  314. [2018-01-01 00:00:03.200] New client: 2601:280:4400:60ce::7680 (7/10)
  315. [2018-01-01 00:00:03.214] New client: 10.0.0.163 chromecast.local (8/10)
  316. [2018-01-01 00:00:03.222] New client: 2601:280:4400:60ce:8959:444d:8a89:508d (9/10)
  317.  
  318. *** [ DIAGNOSING ]: Pi-hole log
  319. -rw-r--r-- 1 dnsmasq root 12379711 Jan 1 14:45 /var/log/pihole.log
  320. -----head of pihole.log------
  321. Jan 1 00:00:02 dnsmasq[562]: query[PTR] 4.4.8.8.in-addr.arpa from 127.0.0.1
  322. Jan 1 00:00:02 dnsmasq[562]: forwarded 4.4.8.8.in-addr.arpa to 8.8.4.4
  323. Jan 1 00:00:02 dnsmasq[562]: forwarded 4.4.8.8.in-addr.arpa to 8.8.8.8
  324. Jan 1 00:00:02 dnsmasq[562]: reply 8.8.4.4 is google-public-dns-b.google.com
  325. Jan 1 00:00:02 dnsmasq[562]: query[PTR] 0.5.2.6.d.5.d.7.f.f.2.5.0.b.c.d.e.c.0.6.0.0.4.4.0.8.2.0.1.0.6.2.ip6.arpa from 127.0.0.1
  326. Jan 1 00:00:02 dnsmasq[562]: cached 2601:280:4400:60ce:dcb0:52ff:7d5d:6250 is NXDOMAIN
  327. Jan 1 00:00:02 dnsmasq[562]: query[PTR] 8.8.8.8.in-addr.arpa from 127.0.0.1
  328. Jan 1 00:00:02 dnsmasq[562]: forwarded 8.8.8.8.in-addr.arpa to 8.8.4.4
  329. Jan 1 00:00:02 dnsmasq[562]: reply 8.8.8.8 is google-public-dns-a.google.com
  330. Jan 1 00:00:02 dnsmasq[562]: query[PTR] 232.0.0.10.in-addr.arpa from 127.0.0.1
  331. Jan 1 00:00:02 dnsmasq[562]: DHCP 10.0.0.232 is OA.local
  332. Jan 1 00:00:02 dnsmasq[562]: query[PTR] 114.0.0.10.in-addr.arpa from 127.0.0.1
  333. Jan 1 00:00:02 dnsmasq[562]: forwarded 114.0.0.10.in-addr.arpa to 8.8.4.4
  334. Jan 1 00:00:02 dnsmasq[562]: query[PTR] e.c.2.2.0.0.0.0.0.0.0.0.0.0.0.0.e.c.0.6.0.0.4.4.0.8.2.0.1.0.6.2.ip6.arpa from 127.0.0.1
  335. Jan 1 00:00:02 dnsmasq[562]: cached 2601:280:4400:60ce::22ce is NXDOMAIN
  336. Jan 1 00:00:02 dnsmasq[562]: query[PTR] 168.0.0.10.in-addr.arpa from 127.0.0.1
  337. Jan 1 00:00:02 dnsmasq[562]: DHCP 10.0.0.168 is retropie.local
  338. Jan 1 00:00:03 dnsmasq[562]: query[PTR] 7.5.a.f.8.d.4.3.7.9.6.2.5.1.1.1.e.c.0.6.0.0.4.4.0.8.2.0.1.0.6.2.ip6.arpa from 127.0.0.1
  339. Jan 1 00:00:03 dnsmasq[562]: cached 2601:280:4400:60ce:1115:2697:34d8:fa57 is NXDOMAIN
  340. Jan 1 00:00:03 dnsmasq[562]: query[PTR] 0.8.6.7.0.0.0.0.0.0.0.0.0.0.0.0.e.c.0.6.0.0.4.4.0.8.2.0.1.0.6.2.ip6.arpa from 127.0.0.1
  341.  
  342.  
  343. ********************************************
  344. ********************************************
  345. [✓] ** FINISHED DEBUGGING! **
  346.  
  347. * The debug log can be uploaded to tricorder.pi-hole.net for sharing with developers only.
  348. * For more information, see: https://pi-hole.net/2016/11/07/crack-our-medical-tricorder-win-a-raspberry-pi-3/
  349. * If available, we'll use openssl to upload the log, otherwise it will fall back to netcat.
Add Comment
Please, Sign In to add comment