Advertisement
Guest User

Untitled

a guest
Mar 9th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.54 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-03-09:09:21:35 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 (https://discourse.pi-hole.net/t/how-do-i-update-pi-hole/249)
  15. [i] Branch: master
  16. [i] Commit: v3.3-0-g1e87850
  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 (https://discourse.pi-hole.net/t/how-do-i-update-pi-hole/249)
  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.27
  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.28/24 matches the IP found in /etc/pihole/setupVars.conf
  46.  
  47. [✓] IPv6 address(es) bound to the eth0 interface:
  48. fe80::da4f:5f84:1507:c608 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)
  49.  
  50. ^ Please note that you may have more than one IP address listed.
  51. As long as one of them is green, and it matches what is in /etc/pihole/setupVars.conf, there is no need for concern.
  52.  
  53. The link to the FAQ is for an issue that sometimes occurs when the IPv6 address changes, which is why we check for it.
  54.  
  55. [i] Default IPv4 gateway: 192.168.0.1
  56. * Pinging 192.168.0.1...
  57. [✓] Gateway responded.
  58.  
  59. *** [ DIAGNOSING ]: Ports in use
  60. [] is in use by
  61. [53] is in use by dnsmasq
  62. [80] is in use by lighttpd
  63. [4711] is in use by pihole-FTL
  64.  
  65. *** [ DIAGNOSING ]: Name resolution (IPv4) using a random blocked domain and a known ad-serving domain
  66. [✗] Failed to resolve via localhost (127.0.0.1)
  67. [✗] Failed to resolve via Pi-hole (192.168.0.28)
  68. [✗] Failed to resolve doubleclick.com via a remote, public DNS server (8.8.8.8)
  69.  
  70. *** [ DIAGNOSING ]: Pi-hole processes
  71. [✓] dnsmasq daemon is active
  72. [✓] lighttpd daemon is active
  73. [✓] pihole-FTL daemon is active
  74.  
  75. *** [ DIAGNOSING ]: Setup variables
  76. PIHOLE_INTERFACE=eth0
  77. IPV4_ADDRESS=192.168.0.28/24
  78. IPV6_ADDRESS=
  79. PIHOLE_DNS_1=8.8.8.8
  80. PIHOLE_DNS_2=8.8.4.4
  81. QUERY_LOGGING=true
  82. INSTALL_WEB=true
  83. LIGHTTPD_ENABLED=1
  84.  
  85. *** [ DIAGNOSING ]: Dashboard and block page
  86. [✗] X-Header does not match or could not be retrieved.
  87. HTTP/1.1 200 OK
  88. Content-type: text/html; charset=UTF-8
  89. Date: Fri, 09 Mar 2018 09:22:33 GMT
  90. Server: lighttpd/1.4.45
  91.  
  92. [✓] X-Pi-hole: The Pi-hole Web interface is working!
  93.  
  94. *** [ DIAGNOSING ]: Gravity list
  95.  
  96. -----head of gravity.list------
  97.  
  98. -----tail of gravity.list------
  99.  
  100. *** [ DIAGNOSING ]: contents of /etc/pihole
  101.  
  102. -rw-r--r-- 1 root root 633 Mar 9 09:03 /etc/pihole/adlists.default
  103. https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
  104. https://mirror1.malwaredomains.com/files/justdomains
  105. http://sysctl.org/cameleon/hosts
  106. https://zeustracker.abuse.ch/blocklist.php?download=domainblocklist
  107. https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt
  108. https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt
  109. https://hosts-file.net/ad_servers.txt
  110.  
  111. -rw-r--r-- 1 root root 234 Mar 9 09:03 /etc/pihole/logrotate
  112. /var/log/pihole.log {
  113. su root root
  114. daily
  115. copytruncate
  116. rotate 5
  117. compress
  118. delaycompress
  119. notifempty
  120. nomail
  121. }
  122. /var/log/pihole-FTL.log {
  123. su root root
  124. weekly
  125. copytruncate
  126. rotate 3
  127. compress
  128. delaycompress
  129. notifempty
  130. nomail
  131. }
  132.  
  133. *** [ DIAGNOSING ]: contents of /etc/dnsmasq.d
  134.  
  135. -rw-r--r-- 1 root root 1508 Mar 9 09:03 /etc/dnsmasq.d/01-pihole.conf
  136. addn-hosts=/etc/pihole/gravity.list
  137. addn-hosts=/etc/pihole/black.list
  138. addn-hosts=/etc/pihole/local.list
  139. localise-queries
  140. no-resolv
  141. cache-size=10000
  142. log-queries=extra
  143. log-facility=/var/log/pihole.log
  144. local-ttl=2
  145. log-async
  146. server=8.8.8.8
  147. server=8.8.4.4
  148. interface=eth0
  149.  
  150. *** [ DIAGNOSING ]: contents of /etc/lighttpd
  151.  
  152. -rw-r--r-- 1 root root 3027 Mar 9 09:03 /etc/lighttpd/lighttpd.conf
  153. server.modules = (
  154. "mod_access",
  155. "mod_accesslog",
  156. "mod_auth",
  157. "mod_expire",
  158. "mod_compress",
  159. "mod_redirect",
  160. "mod_setenv",
  161. "mod_rewrite"
  162. )
  163. server.document-root = "/var/www/html"
  164. server.error-handler-404 = "pihole/index.php"
  165. server.upload-dirs = ( "/var/cache/lighttpd/uploads" )
  166. server.errorlog = "/var/log/lighttpd/error.log"
  167. server.pid-file = "/var/run/lighttpd.pid"
  168. server.username = "www-data"
  169. server.groupname = "www-data"
  170. server.port = 80
  171. accesslog.filename = "/var/log/lighttpd/access.log"
  172. accesslog.format = "%{%s}t|%V|%r|%s|%b"
  173. index-file.names = ( "index.php", "index.html", "index.lighttpd.html" )
  174. url.access-deny = ( "~", ".inc", ".md", ".yml", ".ini" )
  175. static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
  176. compress.cache-dir = "/var/cache/lighttpd/compress/"
  177. compress.filetype = ( "application/javascript", "text/css", "text/html", "text/plain" )
  178. include_shell "/usr/share/lighttpd/use-ipv6.pl " + server.port
  179. include_shell "/usr/share/lighttpd/create-mime.assign.pl"
  180. include_shell "find /etc/lighttpd/conf-enabled -name '*.conf' -a ! -name 'letsencrypt.conf' -printf 'include \"%p\"
  181. ' 2>/dev/null"
  182. $HTTP["url"] =~ "^/admin/" {
  183.  
  184. setenv.add-response-header = (
  185. "X-Pi-hole" => "The Pi-hole Web interface is working!",
  186. "X-Frame-Options" => "DENY"
  187. )
  188. $HTTP["url"] =~ ".ttf$" {
  189.  
  190. setenv.add-response-header = ( "Access-Control-Allow-Origin" => "*" )
  191. }
  192. }
  193. $HTTP["url"] =~ "^/admin/\.(.*)" {
  194. url.access-deny = ("")
  195. }
  196. include_shell "cat external.conf 2>/dev/null"
  197.  
  198. *** [ DIAGNOSING ]: contents of /etc/cron.d
  199.  
  200. -rw-r--r-- 1 root root 1496 Mar 9 09:03 /etc/cron.d/pihole
  201. 57 3 * * 7 root PATH="$PATH:/usr/local/bin/" pihole updateGravity
  202. 00 00 * * * root PATH="$PATH:/usr/local/bin/" pihole flush once quiet
  203. @reboot root /usr/sbin/logrotate /etc/pihole/logrotate
  204. */10 * * * * root PATH="$PATH:/usr/local/bin/" pihole updatechecker local
  205. 17 15 * * * root PATH="$PATH:/usr/local/bin/" pihole updatechecker remote
  206. @reboot root PATH="$PATH:/usr/local/bin/" pihole updatechecker remote reboot
  207.  
  208. *** [ DIAGNOSING ]: contents of /var/log/lighttpd
  209.  
  210. -rw-r--r-- 1 www-data www-data 257 Mar 9 09:03 /var/log/lighttpd/error.log
  211. 2018-03-09 09:01:54: (log.c.217) server started
  212. 2018-03-09 09:03:34: (server.c.1828) server stopped by UID = 0 PID = 1
  213. 2018-03-09 09:03:35: (log.c.217) server started
  214. 2018-03-09 09:03:35: (server.c.1295) WARNING: unknown config-key: alias.url (ignored)
  215.  
  216. *** [ DIAGNOSING ]: contents of /var/log
  217.  
  218. -rw-r--r-- 1 pihole pihole 4208 Mar 9 09:12 /var/log/pihole-FTL.log
  219. [2018-03-09 09:03:38.108]
  220. [2018-03-09 09:03:38.108] FTL branch: v3.0
  221. [2018-03-09 09:03:38.108] FTL version: v3.0
  222. [2018-03-09 09:03:38.108] FTL commit: a1b2fa03f8f3e3713b57a26a4e9a062fec0573d7
  223. [2018-03-09 09:03:38.108] FTL date: 2018-02-14 12:45:47 -0800
  224. [2018-03-09 09:03:38.108] FTL user: pihole
  225. [2018-03-09 09:03:38.109] Notice: Found no readable FTL config file
  226. [2018-03-09 09:03:38.109] Using default settings
  227. [2018-03-09 09:03:38.109] Starting config file parsing (/etc/pihole/pihole-FTL.conf)
  228. [2018-03-09 09:03:38.109] SOCKET_LISTENING: only local
  229. [2018-03-09 09:03:38.109] QUERY_DISPLAY: Show queries
  230. [2018-03-09 09:03:38.109] AAAA_QUERY_ANALYSIS: Show AAAA queries
  231. [2018-03-09 09:03:38.109] MAXDBDAYS: max age for stored queries is 365 days
  232. [2018-03-09 09:03:38.109] RESOLVE_IPV6: Resolve IPv6 addresses
  233. [2018-03-09 09:03:38.109] RESOLVE_IPV4: Resolve IPv4 addresses
  234. [2018-03-09 09:03:38.109] DBINTERVAL: saving to DB file every minute
  235. [2018-03-09 09:03:38.109] DBFILE: Using /etc/pihole/pihole-FTL.db
  236. [2018-03-09 09:03:38.110] MAXLOGAGE: Importing up to 24.0 hours of log data
  237. [2018-03-09 09:03:38.110] Finished config file parsing
  238. [2018-03-09 09:03:38.119] Found no other running pihole-FTL process
  239. [2018-03-09 09:03:38.122] PID of FTL process: 9259
  240. [2018-03-09 09:03:38.122] Error: failed to read /etc/pihole/list.preEventHorizon
  241. [2018-03-09 09:03:38.122] Gravity list entries: -1
  242. [2018-03-09 09:03:38.122] No blacklist present
  243. [2018-03-09 09:03:38.123] No wildcard blocking list present
  244.  
  245. *** [ DIAGNOSING ]: Pi-hole log
  246. -rw-r--r-- 1 dnsmasq root 79549 Mar 9 09:15 /var/log/pihole.log
  247. -----head of pihole.log------
  248. Mar 9 09:03:33 dnsmasq[9073]: started, version 2.76 cachesize 10000
  249. Mar 9 09:03:33 dnsmasq[9073]: compile time options: IPv6 GNU-getopt DBus i18n IDN DHCP DHCPv6 no-Lua TFTP conntrack ipset auth DNSSEC loop-detect inotify
  250. Mar 9 09:03:33 dnsmasq[9073]: warning: ignoring resolv-file flag because no-resolv is set
  251. Mar 9 09:03:33 dnsmasq[9073]: using nameserver 8.8.4.4#53
  252. Mar 9 09:03:33 dnsmasq[9073]: using nameserver 8.8.8.8#53
  253. Mar 9 09:03:33 dnsmasq[9073]: read /etc/hosts - 5 addresses
  254. Mar 9 09:03:33 dnsmasq[9073]: failed to load names from /etc/pihole/local.list: No such file or directory
  255. Mar 9 09:03:33 dnsmasq[9073]: failed to load names from /etc/pihole/black.list: No such file or directory
  256. Mar 9 09:03:33 dnsmasq[9073]: failed to load names from /etc/pihole/gravity.list: No such file or directory
  257. Mar 9 09:03:40 dnsmasq[9073]: 1 127.0.0.1/54213 query[AAAA] raw.githubusercontent.com from 127.0.0.1
  258. Mar 9 09:03:40 dnsmasq[9073]: 1 127.0.0.1/54213 forwarded raw.githubusercontent.com to 8.8.4.4
  259. Mar 9 09:03:40 dnsmasq[9073]: 1 127.0.0.1/54213 forwarded raw.githubusercontent.com to 8.8.8.8
  260. Mar 9 09:03:40 dnsmasq[9073]: 2 127.0.0.1/40449 query[PTR] 4.4.8.8.in-addr.arpa from 127.0.0.1
  261. Mar 9 09:03:40 dnsmasq[9073]: 2 127.0.0.1/40449 forwarded 4.4.8.8.in-addr.arpa to 8.8.4.4
  262. Mar 9 09:03:40 dnsmasq[9073]: 2 127.0.0.1/40449 forwarded 4.4.8.8.in-addr.arpa to 8.8.8.8
  263. Mar 9 09:03:41 dnsmasq[9073]: 3 127.0.0.1/47701 query[A] raw.githubusercontent.com from 127.0.0.1
  264. Mar 9 09:03:41 dnsmasq[9073]: 3 127.0.0.1/47701 forwarded raw.githubusercontent.com to 8.8.4.4
  265. Mar 9 09:03:41 dnsmasq[9073]: 3 127.0.0.1/47701 forwarded raw.githubusercontent.com to 8.8.8.8
  266. Mar 9 09:03:42 dnsmasq[9073]: 4 127.0.0.1/36338 query[AAAA] raw.githubusercontent.com from 127.0.0.1
  267. Mar 9 09:03:42 dnsmasq[9073]: 4 127.0.0.1/36338 forwarded raw.githubusercontent.com to 8.8.4.4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement