Advertisement
Guest User

Untitled

a guest
Jul 7th, 2018
492
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.88 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-07-08:04:32:57 debug log has been initialized.
  9.  
  10. *** [ INITIALIZING ] Sourcing setup variables
  11. [i] Sourcing /etc/pihole/setupVars.conf...
  12.  
  13. *** [ DIAGNOSING ]: Core version
  14. [i] Core: v3.3.1 (https://discourse.pi-hole.net/t/how-do-i-update-pi-hole/249)
  15. [i] Branch: master
  16. [i] Commit: v3.3.1-0-gfbee18e
  17.  
  18. *** [ DIAGNOSING ]: Web version
  19. [i] Web: v3.3 (https://discourse.pi-hole.net/t/how-do-i-update-pi-hole/249)
  20. [i] Branch: master
  21. [i] Commit: v3.3-0-ge48aa29
  22.  
  23. *** [ DIAGNOSING ]: FTL version
  24. [✓] FTL: v3.0
  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.30
  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.  
  43. *** [ DIAGNOSING ]: Networking
  44. [✓] IPv4 address(es) bound to the eth0 interface:
  45. 192.168.0.116/24 matches the IP found in /etc/pihole/setupVars.conf
  46.  
  47. [✓] IPv6 address(es) bound to the eth0 interface:
  48. 2601:883:8000:48f0:53cc:71f7:1902:eda matches the IP found in /etc/pihole/setupVars.conf
  49. fe80::6eec:9f24:16e8:47fb 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: 192.168.0.1
  57. * Pinging 192.168.0.1...
  58. [✓] Gateway responded.
  59. [i] Default IPv6 gateway: fe80::b2b9:8aff:fed4:f01b
  60. * Pinging fe80::b2b9:8aff:fed4:f01b...
  61. [✓] Gateway responded.
  62.  
  63. *** [ DIAGNOSING ]: Ports in use
  64. [22] is in use by sshd
  65. [53] is in use by dnsmasq
  66. [80] is in use by lighttpd
  67. [] is in use by
  68. [4711] is in use by pihole-FTL
  69.  
  70. *** [ DIAGNOSING ]: Name resolution (IPv4) using a random blocked domain and a known ad-serving domain
  71. [✓] sview.avenuea.com is 192.168.0.116 via localhost (127.0.0.1)
  72. [✓] sview.avenuea.com is 192.168.0.116 via Pi-hole (192.168.0.116)
  73. [✓] doubleclick.com is 172.217.3.78 via a remote, public DNS server (8.8.8.8)
  74.  
  75. *** [ DIAGNOSING ]: Name resolution (IPv6) using a random blocked domain and a known ad-serving domain
  76. [✓] hustler-life.com is 2601:883:8000:48f0:53cc:71f7:1902:eda via localhost (::1)
  77. [✓] hustler-life.com is 2601:883:8000:48f0:53cc:71f7:1902:eda via Pi-hole (2601:883:8000:48f0:53cc:71f7:1902:eda)
  78. [✓] doubleclick.com is 2607:f8b0:4008:811::200e via a remote, public DNS server (2001:4860:4860::8888)
  79.  
  80. *** [ DIAGNOSING ]: Pi-hole processes
  81. [✓] dnsmasq daemon is active
  82. [✓] lighttpd daemon is active
  83. [✓] pihole-FTL daemon is active
  84.  
  85. *** [ DIAGNOSING ]: Setup variables
  86. DNSMASQ_LISTENING=single
  87. PIHOLE_DNS_3=2001:4860:4860:0:0:0:0:8888
  88. PIHOLE_DNS_4=2001:4860:4860:0:0:0:0:8844
  89. DNS_FQDN_REQUIRED=true
  90. DNS_BOGUS_PRIV=true
  91. DNSSEC=false
  92. CONDITIONAL_FORWARDING=false
  93. DHCP_ACTIVE=true
  94. DHCP_START=192.168.0.117
  95. DHCP_END=192.168.0.254
  96. DHCP_ROUTER=192.168.0.1
  97. DHCP_LEASETIME=24
  98. PIHOLE_DOMAIN=lan
  99. DHCP_IPv6=true
  100. PIHOLE_INTERFACE=eth0
  101. IPV4_ADDRESS=192.168.0.116/24
  102. IPV6_ADDRESS=2601:883:8000:48f0:53cc:71f7:1902:eda
  103. PIHOLE_DNS_1=8.8.8.8
  104. PIHOLE_DNS_2=8.8.4.4
  105. QUERY_LOGGING=true
  106. INSTALL_WEB=true
  107. LIGHTTPD_ENABLED=1
  108.  
  109. *** [ DIAGNOSING ]: Dashboard and block page
  110. [✓] X-Pi-hole: A black hole for Internet advertisements.
  111. [✓] X-Pi-hole: The Pi-hole Web interface is working!
  112.  
  113. *** [ DIAGNOSING ]: Gravity list
  114. -rw-r--r-- 1 root root 12921244 Jul 8 04:31 /etc/pihole/gravity.list
  115. -----head of gravity.list------
  116. 192.168.0.116 0.0.0.0
  117. 2601:883:8000:48f0:53cc:71f7:1902:eda 0.0.0.0
  118. 192.168.0.116 0.r.msn.com
  119. 2601:883:8000:48f0:53cc:71f7:1902:eda 0.r.msn.com
  120.  
  121. -----tail of gravity.list------
  122. 192.168.0.116 zzzpooeaz-france.com
  123. 2601:883:8000:48f0:53cc:71f7:1902:eda zzzpooeaz-france.com
  124. 192.168.0.116 zzzrtrcm2.com
  125. 2601:883:8000:48f0:53cc:71f7:1902:eda zzzrtrcm2.com
  126.  
  127. *** [ DIAGNOSING ]: contents of /etc/pihole
  128.  
  129. -rw-r--r-- 1 root root 1036 Jul 7 14:38 /etc/pihole/adlists.list
  130. https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
  131. https://mirror1.malwaredomains.com/files/justdomains
  132. http://sysctl.org/cameleon/hosts
  133. https://zeustracker.abuse.ch/blocklist.php?download=domainblocklist
  134. https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt
  135. https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt
  136. https://hosts-file.net/ad_servers.txt
  137. https://wally3k.github.io/
  138. rcm-na.amazon-adsystem.com
  139. pagead2.googlesyndication.com
  140. r4---sn-vgqs7nez.googlevideo.com
  141. r4.sn-vgqs7nez.googlevideo.com
  142. www.youtube-nocookie.com
  143. i1.ytimg.com
  144. r17---sn-vgqsenes.googlevideo.com
  145. r2---sn-vgqs7n7k.googlevideo.com
  146. clients6.google.com
  147. r1---sn-vgqsen7z.googlevideo.com
  148. r1.sn-vgqsen7z.googlevideo.com
  149. r20---sn-vgqs7ne7.googlevideo.com
  150. r20.sn-vgqs7ne7.googlevideo.com
  151.  
  152. -rw-r--r-- 1 root root 144 Jul 8 04:31 /etc/pihole/local.list
  153. 192.168.0.116 raspberrypi
  154. 2601:883:8000:48f0:53cc:71f7:1902:eda raspberrypi
  155. 192.168.0.116 pi.hole
  156. 2601:883:8000:48f0:53cc:71f7:1902:eda pi.hole
  157.  
  158. -rw-r--r-- 1 root root 234 Jul 8 04:20 /etc/pihole/logrotate
  159. /var/log/pihole.log {
  160. su root root
  161. daily
  162. copytruncate
  163. rotate 5
  164. compress
  165. delaycompress
  166. notifempty
  167. nomail
  168. }
  169. /var/log/pihole-FTL.log {
  170. su root root
  171. weekly
  172. copytruncate
  173. rotate 3
  174. compress
  175. delaycompress
  176. notifempty
  177. nomail
  178. }
  179.  
  180. *** [ DIAGNOSING ]: contents of /etc/dnsmasq.d
  181.  
  182. -rw-r--r-- 1 root root 1603 Jul 8 04:20 /etc/dnsmasq.d/01-pihole.conf
  183. addn-hosts=/etc/pihole/gravity.list
  184. addn-hosts=/etc/pihole/black.list
  185. addn-hosts=/etc/pihole/local.list
  186. localise-queries
  187. no-resolv
  188. cache-size=10000
  189. log-queries=extra
  190. log-facility=/var/log/pihole.log
  191. local-ttl=2
  192. log-async
  193. server=8.8.8.8
  194. server=8.8.4.4
  195. server=2001:4860:4860:0:0:0:0:8888
  196. server=2001:4860:4860:0:0:0:0:8844
  197. domain-needed
  198. bogus-priv
  199. interface=eth0
  200.  
  201. -rw-r--r-- 1 root root 618 Jul 8 04:20 /etc/dnsmasq.d/02-pihole-dhcp.conf
  202. dhcp-authoritative
  203. dhcp-range=192.168.0.117,192.168.0.254,24h
  204. dhcp-option=option:router,192.168.0.1
  205. dhcp-leasefile=/etc/pihole/dhcp.leases
  206. domain=lan
  207. dhcp-option=option6:dns-server,[::]
  208. dhcp-range=::100,::1ff,constructor:eth0,ra-names,slaac,24h
  209. ra-param=*,0,0
  210.  
  211. *** [ DIAGNOSING ]: contents of /etc/lighttpd
  212.  
  213. -rw-r--r-- 1 root root 3027 Jul 8 04:20 /etc/lighttpd/lighttpd.conf
  214. server.modules = (
  215. "mod_access",
  216. "mod_accesslog",
  217. "mod_auth",
  218. "mod_expire",
  219. "mod_compress",
  220. "mod_redirect",
  221. "mod_setenv",
  222. "mod_rewrite"
  223. )
  224. server.document-root = "/var/www/html"
  225. server.error-handler-404 = "pihole/index.php"
  226. server.upload-dirs = ( "/var/cache/lighttpd/uploads" )
  227. server.errorlog = "/var/log/lighttpd/error.log"
  228. server.pid-file = "/var/run/lighttpd.pid"
  229. server.username = "www-data"
  230. server.groupname = "www-data"
  231. server.port = 80
  232. accesslog.filename = "/var/log/lighttpd/access.log"
  233. accesslog.format = "%{%s}t|%V|%r|%s|%b"
  234. index-file.names = ( "index.php", "index.html", "index.lighttpd.html" )
  235. url.access-deny = ( "~", ".inc", ".md", ".yml", ".ini" )
  236. static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
  237. compress.cache-dir = "/var/cache/lighttpd/compress/"
  238. compress.filetype = ( "application/javascript", "text/css", "text/html", "text/plain" )
  239. include_shell "/usr/share/lighttpd/use-ipv6.pl " + server.port
  240. include_shell "/usr/share/lighttpd/create-mime.assign.pl"
  241. include_shell "find /etc/lighttpd/conf-enabled -name '*.conf' -a ! -name 'letsencrypt.conf' -printf 'include \"%p\"
  242. ' 2>/dev/null"
  243. $HTTP["url"] =~ "^/admin/" {
  244.  
  245. setenv.add-response-header = (
  246. "X-Pi-hole" => "The Pi-hole Web interface is working!",
  247. "X-Frame-Options" => "DENY"
  248. )
  249. $HTTP["url"] =~ ".ttf$" {
  250.  
  251. setenv.add-response-header = ( "Access-Control-Allow-Origin" => "*" )
  252. }
  253. }
  254. $HTTP["url"] =~ "^/admin/\.(.*)" {
  255. url.access-deny = ("")
  256. }
  257. include_shell "cat external.conf 2>/dev/null"
  258.  
  259. *** [ DIAGNOSING ]: contents of /etc/cron.d
  260.  
  261. -rw-r--r-- 1 root root 1496 Jul 8 04:20 /etc/cron.d/pihole
  262. 31 4 * * 7 root PATH="$PATH:/usr/local/bin/" pihole updateGravity
  263. 00 00 * * * root PATH="$PATH:/usr/local/bin/" pihole flush once quiet
  264. @reboot root /usr/sbin/logrotate /etc/pihole/logrotate
  265. */10 * * * * root PATH="$PATH:/usr/local/bin/" pihole updatechecker local
  266. 18 16 * * * root PATH="$PATH:/usr/local/bin/" pihole updatechecker remote
  267. @reboot root PATH="$PATH:/usr/local/bin/" pihole updatechecker remote reboot
  268.  
  269. *** [ DIAGNOSING ]: contents of /var/log/lighttpd
  270.  
  271. -rw-r--r-- 1 www-data www-data 1569 Jul 8 04:20 /var/log/lighttpd/error.log
  272. 2018-07-07 04:32:00: (log.c.217) server started
  273. 2018-07-07 04:33:11: (server.c.1828) server stopped by UID = 0 PID = 1
  274. 2018-07-07 04:33:11: (log.c.217) server started
  275. 2018-07-07 04:33:11: (server.c.1295) WARNING: unknown config-key: alias.url (ignored)
  276. 2018-07-07 05:01:14: (log.c.217) server started
  277. 2018-07-07 05:01:14: (server.c.1295) WARNING: unknown config-key: alias.url (ignored)
  278. 2018-07-07 05:25:36: (server.c.1828) server stopped by UID = 0 PID = 1
  279. 2018-07-07 05:36:33: (log.c.217) server started
  280. 2018-07-07 05:36:33: (server.c.1295) WARNING: unknown config-key: alias.url (ignored)
  281. 2018-07-07 05:38:36: (server.c.1828) server stopped by UID = 0 PID = 1
  282. 2018-07-07 05:44:00: (log.c.217) server started
  283. 2018-07-07 05:44:00: (server.c.1295) WARNING: unknown config-key: alias.url (ignored)
  284. 2018-07-07 06:39:09: (server.c.1828) server stopped by UID = 0 PID = 1
  285. 2018-07-07 06:39:09: (log.c.217) server started
  286. 2018-07-07 06:39:09: (server.c.1295) WARNING: unknown config-key: alias.url (ignored)
  287. 2018-07-07 14:08:59: (server.c.1828) server stopped by UID = 0 PID = 1
  288. 2018-07-07 14:11:20: (log.c.217) server started
  289. 2018-07-07 14:11:20: (server.c.1295) WARNING: unknown config-key: alias.url (ignored)
  290. 2018-07-07 14:17:16: (log.c.217) server started
  291. 2018-07-07 14:17:16: (server.c.1295) WARNING: unknown config-key: alias.url (ignored)
  292. 2018-07-08 04:20:09: (server.c.1828) server stopped by UID = 0 PID = 1
  293. 2018-07-08 04:20:10: (log.c.217) server started
  294. 2018-07-08 04:20:10: (server.c.1295) WARNING: unknown config-key: alias.url (ignored)
  295.  
  296. *** [ DIAGNOSING ]: contents of /var/log
  297.  
  298. -rw-r--r-- 1 pihole pihole 11736 Jul 8 04:31 /var/log/pihole-FTL.log
  299. [2018-07-08 00:00:02.027] NOTICE: pihole.log has been flushed
  300. [2018-07-08 00:00:02.028] Resetting internal data structure
  301. [2018-07-08 00:00:02.028] Queries in memory before flushing: 18061
  302. [2018-07-08 00:00:02.029] FATAL: Trying to free NULL pointer in pihole_log_flushed() (flush.c:61)
  303. [2018-07-08 00:00:02.353] Gravity list entries: 132580
  304. [2018-07-08 00:00:02.353] No blacklist present
  305. [2018-07-08 00:00:02.353] No wildcard blocking list present
  306. [2018-07-08 00:00:02.354] Notice: Increasing queries struct size from 0 to 10000 (440.77 KB)
  307. [2018-07-08 00:00:02.354] Notice: Increasing domains struct size from 0 to 1000 (460.77 KB)
  308. [2018-07-08 00:00:02.354] Notice: Increasing clients struct size from 0 to 10 (460.93 KB)
  309. [2018-07-08 00:00:02.354] New client: 127.0.0.1 localhost (0/10)
  310. [2018-07-08 00:00:02.354] Notice: Increasing forwarded struct size from 0 to 4 (461.04 KB)
  311. [2018-07-08 00:00:02.401] New forward server: 8.8.4.4 google-public-dns-b.google.com (0/4)
  312. [2018-07-08 00:00:02.401] Notice: Increasing overTime struct size from 0 to 100 (465.08 KB)
  313. [2018-07-08 00:00:02.449] New forward server: 8.8.8.8 google-public-dns-a.google.com (1/4)
  314. [2018-07-08 00:00:02.494] New forward server: 208.67.220.220 resolver2.opendns.com (2/4)
  315. [2018-07-08 00:00:02.501] New client: 174.58.247.12 c-174-58-247-12.hsd1.fl.comcast.net (1/10)
  316. [2018-07-08 00:00:02.508] New client: 192.168.0.117 pavilion.lan (2/10)
  317. [2018-07-08 00:00:02.515] New client: 192.168.0.121 chromecast.lan (3/10)
  318. [2018-07-08 00:00:02.521] New client: 192.168.0.122 desktop-3cmd4t0.lan (4/10)
  319. [2018-07-08 00:00:02.528] New client: 192.168.0.124 ex6100v2.lan (5/10)
  320. [2018-07-08 00:00:02.535] New client: 192.168.0.126 android-2191b92f0672cd4.lan (6/10)
  321. [2018-07-08 00:00:02.542] New client: 192.168.0.116 raspberrypi (7/10)
  322. [2018-07-08 00:00:02.588] New forward server: 208.67.222.222 resolver1.opendns.com (3/4)
  323. [2018-07-08 00:00:02.588] Notice: Increasing forwarded struct size from 4 to 8 (467.31 KB)
  324.  
  325. *** [ DIAGNOSING ]: Pi-hole log
  326. -rw-r--r-- 1 dnsmasq root 1214666 Jul 8 04:33 /var/log/pihole.log
  327. -----head of pihole.log------
  328. Jul 8 00:00:02 dnsmasq[524]: 2176 127.0.0.1/51925 query[PTR] 4.4.8.8.in-addr.arpa from 127.0.0.1
  329. Jul 8 00:00:02 dnsmasq[524]: 2176 127.0.0.1/51925 forwarded 4.4.8.8.in-addr.arpa to 2001:4860:4860::8844
  330. Jul 8 00:00:02 dnsmasq[524]: 2176 127.0.0.1/51925 forwarded 4.4.8.8.in-addr.arpa to 2001:4860:4860::8888
  331. Jul 8 00:00:02 dnsmasq[524]: 2176 127.0.0.1/51925 forwarded 4.4.8.8.in-addr.arpa to 8.8.4.4
  332. Jul 8 00:00:02 dnsmasq[524]: 2176 127.0.0.1/51925 forwarded 4.4.8.8.in-addr.arpa to 8.8.8.8
  333. Jul 8 00:00:02 dnsmasq[524]: 2176 127.0.0.1/51925 reply 8.8.4.4 is google-public-dns-b.google.com
  334. Jul 8 00:00:02 dnsmasq[524]: 2177 127.0.0.1/34406 query[PTR] 8.8.8.8.in-addr.arpa from 127.0.0.1
  335. Jul 8 00:00:02 dnsmasq[524]: 2177 127.0.0.1/34406 forwarded 8.8.8.8.in-addr.arpa to 2001:4860:4860::8888
  336. Jul 8 00:00:02 dnsmasq[524]: 2177 127.0.0.1/34406 reply 8.8.8.8 is google-public-dns-a.google.com
  337. Jul 8 00:00:02 dnsmasq[524]: 2178 127.0.0.1/41891 query[PTR] 220.220.67.208.in-addr.arpa from 127.0.0.1
  338. Jul 8 00:00:02 dnsmasq[524]: 2178 127.0.0.1/41891 forwarded 220.220.67.208.in-addr.arpa to 2001:4860:4860::8888
  339. Jul 8 00:00:02 dnsmasq[524]: 2178 127.0.0.1/41891 reply 208.67.220.220 is resolver2.opendns.com
  340. Jul 8 00:00:02 dnsmasq[524]: 2179 127.0.0.1/55006 query[PTR] 12.247.58.174.in-addr.arpa from 127.0.0.1
  341. Jul 8 00:00:02 dnsmasq[524]: 2179 127.0.0.1/55006 cached 174.58.247.12 is c-174-58-247-12.hsd1.fl.comcast.net
  342. Jul 8 00:00:02 dnsmasq[524]: 2180 127.0.0.1/45664 query[PTR] 117.0.168.192.in-addr.arpa from 127.0.0.1
  343. Jul 8 00:00:02 dnsmasq[524]: 2180 127.0.0.1/45664 DHCP 192.168.0.117 is Pavilion.lan
  344. Jul 8 00:00:02 dnsmasq[524]: 2181 127.0.0.1/53324 query[PTR] 121.0.168.192.in-addr.arpa from 127.0.0.1
  345. Jul 8 00:00:02 dnsmasq[524]: 2181 127.0.0.1/53324 DHCP 192.168.0.121 is Chromecast.lan
  346. Jul 8 00:00:02 dnsmasq[524]: 2182 127.0.0.1/47291 query[PTR] 122.0.168.192.in-addr.arpa from 127.0.0.1
  347. Jul 8 00:00:02 dnsmasq[524]: 2182 127.0.0.1/47291 DHCP 192.168.0.122 is DESKTOP-3CMD4T0.lan
  348.  
  349.  
  350. ********************************************
  351. ********************************************
  352. [✓] ** FINISHED DEBUGGING! **
  353.  
  354. * The debug log can be uploaded to tricorder.pi-hole.net for sharing with developers only.
  355. * For more information, see: https://pi-hole.net/2016/11/07/crack-our-medical-tricorder-win-a-raspberry-pi-3/
  356. * If available, we'll use openssl to upload the log, otherwise it will fall back to netcat.
  357. [i] Debug script running in automated mode
  358. * Using openssl for transmission.
  359.  
  360. ***********************************
  361. ***********************************
  362. [✓] Your debug token is: 9cg8c3cex1
  363. ***********************************
  364. ***********************************
  365.  
  366. * Provide the token above to the Pi-hole team for assistance at
  367. * https://discourse.pi-hole.net
  368. * Your log will self-destruct on our server after 48 hours.
  369. * A local copy of the debug log can be found at: /var/log/pihole_debug-sanitized.log
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement