Advertisement
Guest User

Untitled

a guest
Mar 28th, 2019
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.58 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] 2019-03-28:22:13:11 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: v4.0 (https://discourse.pi-hole.net/t/how-do-i-update-pi-hole/249)
  15. [i] Branch: master
  16. [i] Commit: v4.0-0-gddbdb51
  17.  
  18. *** [ DIAGNOSING ]: Web version
  19. [i] Web: v4.0 (https://discourse.pi-hole.net/t/how-do-i-update-pi-hole/249)
  20. [i] Branch: master
  21. [i] Commit: v4.0-0-gaf8c926
  22.  
  23. *** [ DIAGNOSING ]: FTL version
  24. [✓] FTL: v4.0 (https://discourse.pi-hole.net/t/how-do-i-update-pi-hole/249)
  25.  
  26. *** [ DIAGNOSING ]: dnsmasq version
  27. [i] 340:
  28.  
  29. *** [ DIAGNOSING ]: lighttpd version
  30. [i] 1.4.35
  31.  
  32. *** [ DIAGNOSING ]: php version
  33. [i] 5.6.38
  34.  
  35. *** [ DIAGNOSING ]: Operating system
  36. [✓] Raspbian GNU/Linux 8 (jessie)
  37.  
  38. *** [ DIAGNOSING ]: SELinux
  39. [i] SELinux not detected
  40.  
  41. *** [ DIAGNOSING ]: Processor
  42. [✓] armv6l
  43.  
  44. *** [ DIAGNOSING ]: Networking
  45. [✓] IPv4 address(es) bound to the wlan0 interface:
  46. 192.168.1.167/24 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)
  47.  
  48. [✓] IPv6 address(es) bound to the wlan0 interface:
  49. fe80::5f5e:221b:f811:c8d3 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.1.1
  57. 192.168.1.1
  58. * Pinging 192.168.1.1
  59. 192.168.1.1...
  60. [✓] Gateway responded.
  61.  
  62. *** [ DIAGNOSING ]: Ports in use
  63. *:9418 git-daemon (IPv4)
  64. *:9418 git-daemon (IPv6)
  65. *:22 sshd (IPv4)
  66. *:22 sshd (IPv6)
  67. *:80 lighttpd (IPv4)
  68. *:80 lighttpd (IPv6)
  69. *:53 pihole-FTL (IPv4)
  70. *:53 pihole-FTL (IPv6)
  71. 127.0.0.1:4711 pihole-FTL (IPv4)
  72. [::1]:4711 pihole-FTL (IPv6)
  73.  
  74. *** [ DIAGNOSING ]: Name resolution (IPv4) using a random blocked domain and a known ad-serving domain
  75. dig: '' is not a legal name (unexpected end of input)
  76. [✗] Failed to resolve via localhost (127.0.0.1)
  77. dig: '' is not a legal name (unexpected end of input)
  78. [✗] Failed to resolve via Pi-hole (192.168.137.128)
  79. [✗] Failed to resolve doubleclick.com via a remote, public DNS server (8.8.8.8)
  80.  
  81. *** [ DIAGNOSING ]: Pi-hole processes
  82. [✗] dnsmasq daemon is unknown
  83. [✓] lighttpd daemon is active
  84. [✓] pihole-FTL daemon is active
  85.  
  86. *** [ DIAGNOSING ]: Setup variables
  87. PIHOLE_INTERFACE=wlan0
  88. IPV4_ADDRESS=192.168.137.128/24
  89. IPV6_ADDRESS=
  90. PIHOLE_DNS_1=8.8.8.8
  91. PIHOLE_DNS_2=8.8.4.4
  92. QUERY_LOGGING=true
  93. INSTALL_WEB_SERVER=true
  94. INSTALL_WEB_INTERFACE=true
  95. LIGHTTPD_ENABLED=true
  96.  
  97. *** [ DIAGNOSING ]: Dashboard and block page
  98. [✗] Block page X-Header: 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: "1354374491"
  103. Last-Modified: Sat, 01 Dec 2018 19:19:36 GMT
  104. Content-Length: 10701
  105. Date: Thu, 28 Mar 2019 22:16:25 GMT
  106. Server: lighttpd/1.4.35
  107.  
  108. [✓] Web interface X-Header: X-Pi-hole: The Pi-hole Web interface is working!
  109.  
  110. *** [ DIAGNOSING ]: Gravity list
  111. -rw-r--r-- 1 root root 0 Mar 27 05:16 /etc/pihole/gravity.list
  112. -----head of gravity.list------
  113.  
  114. -----tail of gravity.list------
  115.  
  116. *** [ DIAGNOSING ]: contents of /etc/pihole
  117.  
  118. -rw-r--r-- 1 root root 381 Mar 27 03:53 /etc/pihole/adlists.list
  119. https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
  120. https://mirror1.malwaredomains.com/files/justdomains
  121. http://sysctl.org/cameleon/hosts
  122. https://zeustracker.abuse.ch/blocklist.php?download=domainblocklist
  123. https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt
  124. https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt
  125. https://hosts-file.net/ad_servers.txt
  126.  
  127. -rw-r--r-- 1 root root 0 Dec 3 17:06 /etc/pihole/blacklist.txt
  128.  
  129. -rw-r--r-- 1 root root 48 Mar 27 05:16 /etc/pihole/local.list
  130. 192.168.137.128 pi-hole
  131. 192.168.137.128 pi.hole
  132.  
  133. -rw-r--r-- 1 root root 234 Mar 27 05:12 /etc/pihole/logrotate
  134. /var/log/pihole.log {
  135. su root root
  136. daily
  137. copytruncate
  138. rotate 5
  139. compress
  140. delaycompress
  141. notifempty
  142. nomail
  143. }
  144. /var/log/pihole-FTL.log {
  145. su root root
  146. weekly
  147. copytruncate
  148. rotate 3
  149. compress
  150. delaycompress
  151. notifempty
  152. nomail
  153. }
  154.  
  155. -rw-r--r-- 1 root root 41 Dec 3 17:07 /etc/pihole/whitelist.txt
  156. fitgirl-repacks.com
  157. fitgirl-repacks.site
  158.  
  159. *** [ DIAGNOSING ]: contents of /etc/dnsmasq.d
  160.  
  161. -rw-r--r-- 1 root root 1509 Mar 27 05:13 /etc/dnsmasq.d/01-pihole.conf
  162. addn-hosts=/etc/pihole/gravity.list
  163. addn-hosts=/etc/pihole/black.list
  164. addn-hosts=/etc/pihole/local.list
  165. localise-queries
  166. no-resolv
  167. cache-size=10000
  168. log-queries=extra
  169. log-facility=/var/log/pihole.log
  170. local-ttl=2
  171. log-async
  172. server=8.8.8.8
  173. server=8.8.4.4
  174. interface=wlan0
  175.  
  176. *** [ DIAGNOSING ]: contents of /etc/lighttpd
  177.  
  178. -rw-r--r-- 1 root root 3027 Mar 27 05:12 /etc/lighttpd/lighttpd.conf
  179. server.modules = (
  180. "mod_access",
  181. "mod_accesslog",
  182. "mod_auth",
  183. "mod_expire",
  184. "mod_compress",
  185. "mod_redirect",
  186. "mod_setenv",
  187. "mod_rewrite"
  188. )
  189. server.document-root = "/var/www/html"
  190. server.error-handler-404 = "pihole/index.php"
  191. server.upload-dirs = ( "/var/cache/lighttpd/uploads" )
  192. server.errorlog = "/var/log/lighttpd/error.log"
  193. server.pid-file = "/var/run/lighttpd.pid"
  194. server.username = "www-data"
  195. server.groupname = "www-data"
  196. server.port = 80
  197. accesslog.filename = "/var/log/lighttpd/access.log"
  198. accesslog.format = "%{%s}t|%V|%r|%s|%b"
  199. index-file.names = ( "index.php", "index.html", "index.lighttpd.html" )
  200. url.access-deny = ( "~", ".inc", ".md", ".yml", ".ini" )
  201. static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
  202. compress.cache-dir = "/var/cache/lighttpd/compress/"
  203. compress.filetype = ( "application/javascript", "text/css", "text/html", "text/plain" )
  204. include_shell "/usr/share/lighttpd/use-ipv6.pl " + server.port
  205. include_shell "/usr/share/lighttpd/create-mime.assign.pl"
  206. include_shell "find /etc/lighttpd/conf-enabled -name '*.conf' -a ! -name 'letsencrypt.conf' -printf 'include \"%p\"
  207. ' 2>/dev/null"
  208. $HTTP["url"] =~ "^/admin/" {
  209.  
  210. setenv.add-response-header = (
  211. "X-Pi-hole" => "The Pi-hole Web interface is working!",
  212. "X-Frame-Options" => "DENY"
  213. )
  214. $HTTP["url"] =~ ".ttf$" {
  215.  
  216. setenv.add-response-header = ( "Access-Control-Allow-Origin" => "*" )
  217. }
  218. }
  219. $HTTP["url"] =~ "^/admin/\.(.*)" {
  220. url.access-deny = ("")
  221. }
  222. include_shell "cat external.conf 2>/dev/null"
  223.  
  224. *** [ DIAGNOSING ]: contents of /etc/cron.d
  225.  
  226. -rw-r--r-- 1 root root 1496 Mar 27 05:12 /etc/cron.d/pihole
  227. 21 3 * * 7 root PATH="$PATH:/usr/local/bin/" pihole updateGravity
  228. 00 00 * * * root PATH="$PATH:/usr/local/bin/" pihole flush once quiet
  229. @reboot root /usr/sbin/logrotate /etc/pihole/logrotate
  230. */10 * * * * root PATH="$PATH:/usr/local/bin/" pihole updatechecker local
  231. 16 13 * * * root PATH="$PATH:/usr/local/bin/" pihole updatechecker remote
  232. @reboot root PATH="$PATH:/usr/local/bin/" pihole updatechecker remote reboot
  233.  
  234. *** [ DIAGNOSING ]: contents of /var/log/lighttpd
  235.  
  236. -rw-r--r-- 1 www-data www-data 1041 Mar 27 05:13 /var/log/lighttpd/error.log
  237. 2019-03-25 00:17:48: (log.c.164) server started
  238. 2019-03-25 00:17:48: (server.c.1045) WARNING: unknown config-key: alias.url (ignored)
  239. 2019-03-25 06:25:12: (server.c.1242) logfiles cycled UID = 0 PID = 6502
  240. 2019-03-27 03:57:35: (server.c.1558) server stopped by UID = 0 PID = 1
  241. 2019-03-27 03:57:36: (log.c.164) server started
  242. 2019-03-27 03:57:36: (server.c.1045) WARNING: unknown config-key: alias.url (ignored)
  243. 2019-03-27 04:06:37: (server.c.1558) server stopped by UID = 0 PID = 1
  244. 2019-03-27 04:06:38: (log.c.164) server started
  245. 2019-03-27 04:06:38: (server.c.1045) WARNING: unknown config-key: alias.url (ignored)
  246. 2019-03-27 04:52:40: (server.c.1558) server stopped by UID = 0 PID = 1
  247. 2019-03-27 04:52:42: (log.c.164) server started
  248. 2019-03-27 04:52:42: (server.c.1045) WARNING: unknown config-key: alias.url (ignored)
  249. 2019-03-27 05:13:23: (server.c.1558) server stopped by UID = 0 PID = 1
  250. 2019-03-27 05:13:24: (log.c.164) server started
  251. 2019-03-27 05:13:24: (server.c.1045) WARNING: unknown config-key: alias.url (ignored)
  252.  
  253. *** [ DIAGNOSING ]: contents of /var/log
  254.  
  255. -rw-r--r-- 1 pihole pihole 82 Mar 28 07:04 /var/log/pihole-FTL.log
  256. -----head of pihole-FTL.log------
  257. [2019-03-28 07:04:20.861] Notice: Increasing overTime struct size from 300 to 400
  258.  
  259. -----tail of pihole-FTL.log------
  260. [2019-03-28 07:04:20.861] Notice: Increasing overTime struct size from 300 to 400
  261.  
  262. *** [ DIAGNOSING ]: Locale
  263. LANG=en_GB.UTF-8
  264. LANGUAGE=
  265. LC_CTYPE="en_GB.UTF-8"
  266. LC_NUMERIC="en_GB.UTF-8"
  267. LC_TIME="en_GB.UTF-8"
  268. LC_COLLATE="en_GB.UTF-8"
  269. LC_MONETARY="en_GB.UTF-8"
  270. LC_MESSAGES="en_GB.UTF-8"
  271. LC_PAPER="en_GB.UTF-8"
  272. LC_NAME="en_GB.UTF-8"
  273. LC_ADDRESS="en_GB.UTF-8"
  274. LC_TELEPHONE="en_GB.UTF-8"
  275. LC_MEASUREMENT="en_GB.UTF-8"
  276. LC_IDENTIFICATION="en_GB.UTF-8"
  277. LC_ALL=
  278.  
  279. *** [ DIAGNOSING ]: Pi-hole log
  280. -rw-r--r-- 1 pihole pihole 214947 Mar 28 22:16 /var/log/pihole.log
  281. -----head of pihole.log------
  282. Mar 28 00:14:52 dnsmasq[19146]: 781 127.0.0.1/56796 query[A] 0.debian.pool.ntp.org from 127.0.0.1
  283. Mar 28 00:14:52 dnsmasq[19146]: 781 127.0.0.1/56796 forwarded 0.debian.pool.ntp.org to 8.8.4.4
  284. Mar 28 00:14:52 dnsmasq[19146]: 781 127.0.0.1/56796 forwarded 0.debian.pool.ntp.org to 8.8.8.8
  285. Mar 28 00:14:52 dnsmasq[19146]: 782 127.0.0.1/56796 query[AAAA] 0.debian.pool.ntp.org from 127.0.0.1
  286. Mar 28 00:14:52 dnsmasq[19146]: 782 127.0.0.1/56796 forwarded 0.debian.pool.ntp.org to 8.8.4.4
  287. Mar 28 00:14:52 dnsmasq[19146]: 782 127.0.0.1/56796 forwarded 0.debian.pool.ntp.org to 8.8.8.8
  288. Mar 28 00:14:57 dnsmasq[19146]: 783 127.0.0.1/56796 query[A] 0.debian.pool.ntp.org from 127.0.0.1
  289. Mar 28 00:14:57 dnsmasq[19146]: 783 127.0.0.1/56796 forwarded 0.debian.pool.ntp.org to 8.8.4.4
  290. Mar 28 00:14:57 dnsmasq[19146]: 783 127.0.0.1/56796 forwarded 0.debian.pool.ntp.org to 8.8.8.8
  291. Mar 28 00:14:57 dnsmasq[19146]: 784 127.0.0.1/56796 query[AAAA] 0.debian.pool.ntp.org from 127.0.0.1
  292. Mar 28 00:14:57 dnsmasq[19146]: 784 127.0.0.1/56796 forwarded 0.debian.pool.ntp.org to 8.8.4.4
  293. Mar 28 00:14:57 dnsmasq[19146]: 784 127.0.0.1/56796 forwarded 0.debian.pool.ntp.org to 8.8.8.8
  294. Mar 28 00:15:02 dnsmasq[19146]: 785 127.0.0.1/41286 query[A] 0.debian.pool.ntp.org from 127.0.0.1
  295. Mar 28 00:15:02 dnsmasq[19146]: 785 127.0.0.1/41286 forwarded 0.debian.pool.ntp.org to 8.8.4.4
  296. Mar 28 00:15:02 dnsmasq[19146]: 785 127.0.0.1/41286 forwarded 0.debian.pool.ntp.org to 8.8.8.8
  297. Mar 28 00:15:02 dnsmasq[19146]: 786 127.0.0.1/41286 query[AAAA] 0.debian.pool.ntp.org from 127.0.0.1
  298. Mar 28 00:15:02 dnsmasq[19146]: 786 127.0.0.1/41286 forwarded 0.debian.pool.ntp.org to 8.8.4.4
  299. Mar 28 00:15:02 dnsmasq[19146]: 786 127.0.0.1/41286 forwarded 0.debian.pool.ntp.org to 8.8.8.8
  300. Mar 28 00:15:07 dnsmasq[19146]: 787 127.0.0.1/41286 query[A] 0.debian.pool.ntp.org from 127.0.0.1
  301. Mar 28 00:15:07 dnsmasq[19146]: 787 127.0.0.1/41286 forwarded 0.debian.pool.ntp.org to 8.8.4.4
  302.  
  303.  
  304. ********************************************
  305. ********************************************
  306. [✓] ** FINISHED DEBUGGING! **
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement