Advertisement
Guest User

Untitled

a guest
Feb 20th, 2018
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.21 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-02-21:02:27:09 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-ge48aa295
  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.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.1.2/24 matches the IP found in /etc/pihole/setupVars.conf
  46.  
  47. [✓] IPv6 address(es) bound to the eth0 interface:
  48. fe80::a849:d93d:d44b:c5d2 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.1.1
  56. * Pinging 192.168.1.1...
  57. [✓] Gateway responded.
  58.  
  59. *** [ DIAGNOSING ]: Ports in use
  60. [22] is in use by sshd
  61. [53] is in use by dnsmasq
  62. [80] is in use by lighttpd
  63.  
  64. *** [ DIAGNOSING ]: Name resolution (IPv4) using a random blocked domain and a known ad-serving domain
  65. [✓] trafficmania.com is 192.168.1.2 via localhost (127.0.0.1)
  66. [✓] trafficmania.com is 192.168.1.2 via Pi-hole (192.168.1.2)
  67. [✓] doubleclick.com is 172.217.7.174 via a remote, public DNS server (8.8.8.8)
  68.  
  69. *** [ DIAGNOSING ]: Pi-hole processes
  70. [✓] dnsmasq daemon is active
  71. [✓] lighttpd daemon is active
  72. [✓] pihole-FTL daemon is active
  73.  
  74. *** [ DIAGNOSING ]: Setup variables
  75. PIHOLE_INTERFACE=eth0
  76. IPV4_ADDRESS=192.168.1.2/24
  77. IPV6_ADDRESS=
  78. PIHOLE_DNS_1=8.8.8.8
  79. PIHOLE_DNS_2=8.8.4.4
  80. QUERY_LOGGING=true
  81. INSTALL_WEB=true
  82. LIGHTTPD_ENABLED=1
  83.  
  84. *** [ DIAGNOSING ]: Dashboard and block page
  85. [✓] X-Pi-hole: A black hole for Internet advertisements.
  86. [✓] X-Pi-hole: The Pi-hole Web interface is working!
  87.  
  88. *** [ DIAGNOSING ]: Gravity list
  89. -rw-r--r-- 1 root root 4171509 Feb 21 02:18 /etc/pihole/gravity.list
  90. -----head of gravity.list------
  91. 192.168.1.2 0.0.0.0
  92. 192.168.1.2 0000mps.webpreview.dsl.net
  93. 192.168.1.2 0001.2waky.com
  94. 192.168.1.2 000dom.revenuedirect.com
  95.  
  96. -----tail of gravity.list------
  97. 192.168.1.2 zzsyw.com
  98. 192.168.1.2 zztxdown.com
  99. 192.168.1.2 zzz.clickbank.net
  100. 192.168.1.2 zz.zeroredirect1.com
  101.  
  102. *** [ DIAGNOSING ]: contents of /etc/pihole
  103.  
  104. -rw-r--r-- 1 root root 633 Oct 5 23:44 /etc/pihole/adlists.list
  105. https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
  106. https://mirror1.malwaredomains.com/files/justdomains
  107. http://sysctl.org/cameleon/hosts
  108. https://zeustracker.abuse.ch/blocklist.php?download=domainblocklist
  109. https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt
  110. https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt
  111. https://hosts-file.net/ad_servers.txt
  112.  
  113. -rw-r--r-- 1 root root 44 Feb 21 02:18 /etc/pihole/local.list
  114. 192.168.1.2 raspberrypi
  115. 192.168.1.2 pi.hole
  116.  
  117. -rw-r--r-- 1 root root 234 Feb 21 02:18 /etc/pihole/logrotate
  118. /var/log/pihole.log {
  119. su root root
  120. daily
  121. copytruncate
  122. rotate 5
  123. compress
  124. delaycompress
  125. notifempty
  126. nomail
  127. }
  128. /var/log/pihole-FTL.log {
  129. su root root
  130. weekly
  131. copytruncate
  132. rotate 3
  133. compress
  134. delaycompress
  135. notifempty
  136. nomail
  137. }
  138.  
  139. -rw-r--r-- 1 root root 131 Dec 13 17:50 /etc/pihole/whitelist.txt
  140. raw.githubusercontent.com
  141. mirror1.malwaredomains.com
  142. sysctl.org
  143. zeustracker.abuse.ch
  144. s3.amazonaws.com
  145. hosts-file.net
  146. wowtoken.info
  147.  
  148. *** [ DIAGNOSING ]: contents of /etc/dnsmasq.d
  149.  
  150. -rw-r--r-- 1 root root 1508 Feb 21 02:18 /etc/dnsmasq.d/01-pihole.conf
  151. addn-hosts=/etc/pihole/gravity.list
  152. addn-hosts=/etc/pihole/black.list
  153. addn-hosts=/etc/pihole/local.list
  154. localise-queries
  155. no-resolv
  156. cache-size=10000
  157. log-queries=extra
  158. log-facility=/var/log/pihole.log
  159. local-ttl=2
  160. log-async
  161. server=8.8.8.8
  162. server=8.8.4.4
  163. interface=eth0
  164.  
  165. *** [ DIAGNOSING ]: contents of /etc/lighttpd
  166.  
  167. -rw-r--r-- 1 root root 3027 Feb 21 02:18 /etc/lighttpd/lighttpd.conf
  168. server.modules = (
  169. "mod_access",
  170. "mod_accesslog",
  171. "mod_auth",
  172. "mod_expire",
  173. "mod_compress",
  174. "mod_redirect",
  175. "mod_setenv",
  176. "mod_rewrite"
  177. )
  178. server.document-root = "/var/www/html"
  179. server.error-handler-404 = "pihole/index.php"
  180. server.upload-dirs = ( "/var/cache/lighttpd/uploads" )
  181. server.errorlog = "/var/log/lighttpd/error.log"
  182. server.pid-file = "/var/run/lighttpd.pid"
  183. server.username = "www-data"
  184. server.groupname = "www-data"
  185. server.port = 80
  186. accesslog.filename = "/var/log/lighttpd/access.log"
  187. accesslog.format = "%{%s}t|%V|%r|%s|%b"
  188. index-file.names = ( "index.php", "index.html", "index.lighttpd.html" )
  189. url.access-deny = ( "~", ".inc", ".md", ".yml", ".ini" )
  190. static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
  191. compress.cache-dir = "/var/cache/lighttpd/compress/"
  192. compress.filetype = ( "application/javascript", "text/css", "text/html", "text/plain" )
  193. include_shell "/usr/share/lighttpd/use-ipv6.pl " + server.port
  194. include_shell "/usr/share/lighttpd/create-mime.assign.pl"
  195. include_shell "find /etc/lighttpd/conf-enabled -name '*.conf' -a ! -name 'letsencrypt.conf' -printf 'include \"%p\"
  196. ' 2>/dev/null"
  197. $HTTP["url"] =~ "^/admin/" {
  198.  
  199. setenv.add-response-header = (
  200. "X-Pi-hole" => "The Pi-hole Web interface is working!",
  201. "X-Frame-Options" => "DENY"
  202. )
  203. $HTTP["url"] =~ ".ttf$" {
  204.  
  205. setenv.add-response-header = ( "Access-Control-Allow-Origin" => "*" )
  206. }
  207. }
  208. $HTTP["url"] =~ "^/admin/\.(.*)" {
  209. url.access-deny = ("")
  210. }
  211. include_shell "cat external.conf 2>/dev/null"
  212.  
  213. *** [ DIAGNOSING ]: contents of /etc/cron.d
  214.  
  215. -rw-r--r-- 1 root root 1495 Feb 21 02:18 /etc/cron.d/pihole
  216. 55 4 * * 7 root PATH="$PATH:/usr/local/bin/" pihole updateGravity
  217. 00 00 * * * root PATH="$PATH:/usr/local/bin/" pihole flush once quiet
  218. @reboot root /usr/sbin/logrotate /etc/pihole/logrotate
  219. */10 * * * * root PATH="$PATH:/usr/local/bin/" pihole updatechecker local
  220. 3 16 * * * root PATH="$PATH:/usr/local/bin/" pihole updatechecker remote
  221. @reboot root PATH="$PATH:/usr/local/bin/" pihole updatechecker remote reboot
  222.  
  223. *** [ DIAGNOSING ]: contents of /var/log/lighttpd
  224.  
  225. -rw-r--r-- 1 www-data www-data 1861 Feb 21 02:18 /var/log/lighttpd/error.log
  226. 2018-02-18 06:25:01: (server.c.1534) logfiles cycled UID = 0 PID = 18755
  227. 2018-02-19 00:48:24: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning: file_get_contents(https://api.github.com/repos/pi-hole/pi-hole/releases/latest): failed to open stream: Connection timed out in /var/www/html/admin/scripts/pi-hole/php/update_checker.php on line 11
  228. 2018-02-19 00:48:24: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Notice: Trying to get property of non-object in /var/www/html/admin/scripts/pi-hole/php/update_checker.php on line 14
  229. 2018-02-19 00:48:24: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning: file_get_contents(https://api.github.com/repos/pi-hole/AdminLTE/releases/latest): failed to open stream: Connection timed out in /var/www/html/admin/scripts/pi-hole/php/update_checker.php on line 11
  230. 2018-02-19 00:48:24: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Notice: Trying to get property of non-object in /var/www/html/admin/scripts/pi-hole/php/update_checker.php on line 14
  231. 2018-02-19 00:48:24: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning: file_get_contents(https://api.github.com/repos/pi-hole/FTL/releases/latest): failed to open stream: Connection timed out in /var/www/html/admin/scripts/pi-hole/php/update_checker.php on line 11
  232. 2018-02-19 00:48:24: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Notice: Trying to get property of non-object in /var/www/html/admin/scripts/pi-hole/php/update_checker.php on line 14
  233. 2018-02-19 06:25:01: (server.c.1534) logfiles cycled UID = 0 PID = 22349
  234. 2018-02-21 02:08:46: (server.c.1828) server stopped by UID = 0 PID = 1
  235. 2018-02-21 02:08:47: (log.c.217) server started
  236. 2018-02-21 02:14:59: (server.c.1828) server stopped by UID = 0 PID = 1
  237. 2018-02-21 02:15:00: (log.c.217) server started
  238. 2018-02-21 02:17:47: (server.c.1828) server stopped by UID = 0 PID = 1
  239. 2018-02-21 02:18:18: (log.c.217) server started
  240.  
  241. *** [ DIAGNOSING ]: contents of /var/log
  242.  
  243. -rw-r--r-- 1 pihole pihole 16242 Feb 21 02:18 /var/log/pihole-FTL.log
  244. [2018-02-21 02:08:56.968]
  245. [2018-02-21 02:08:56.968] FTL branch: v3.0
  246. [2018-02-21 02:08:56.968] FTL version: v3.0
  247. [2018-02-21 02:08:56.968] FTL commit: a1b2fa03f8f3e3713b57a26a4e9a062fec0573d7
  248. [2018-02-21 02:08:56.968] FTL date: 2018-02-14 12:45:47 -0800
  249. [2018-02-21 02:08:56.968] FTL user: pihole
  250. [2018-02-21 02:08:56.968] Notice: Found no readable FTL config file
  251. [2018-02-21 02:08:56.968] Using default settings
  252. [2018-02-21 02:08:56.968] Starting config file parsing (/etc/pihole/pihole-FTL.conf)
  253. [2018-02-21 02:08:56.968] SOCKET_LISTENING: only local
  254. [2018-02-21 02:08:56.968] QUERY_DISPLAY: Show queries
  255. [2018-02-21 02:08:56.968] AAAA_QUERY_ANALYSIS: Show AAAA queries
  256. [2018-02-21 02:08:56.968] MAXDBDAYS: max age for stored queries is 365 days
  257. [2018-02-21 02:08:56.968] RESOLVE_IPV6: Resolve IPv6 addresses
  258. [2018-02-21 02:08:56.968] RESOLVE_IPV4: Resolve IPv4 addresses
  259. [2018-02-21 02:08:56.969] DBINTERVAL: saving to DB file every minute
  260. [2018-02-21 02:08:56.969] DBFILE: Using /etc/pihole/pihole-FTL.db
  261. [2018-02-21 02:08:56.969] MAXLOGAGE: Importing up to 24.0 hours of log data
  262. [2018-02-21 02:08:56.969] Finished config file parsing
  263. [2018-02-21 02:08:56.972] Found no other running pihole-FTL process
  264. [2018-02-21 02:08:56.974] PID of FTL process: 29837
  265. [2018-02-21 02:08:57.222] Gravity list entries: 121165
  266. [2018-02-21 02:08:57.222] No blacklist present
  267. [2018-02-21 02:08:57.222] No wildcard blocking list present
  268. [2018-02-21 02:08:57.223] Database initialized
  269.  
  270. *** [ DIAGNOSING ]: Pi-hole log
  271. -rw-r--r-- 1 dnsmasq root 64390 Feb 21 02:27 /var/log/pihole.log
  272. -----head of pihole.log------
  273. Feb 21 00:19:44 dnsmasq[18026]: query[A] 0.debian.pool.ntp.org from 127.0.0.1
  274. Feb 21 00:19:44 dnsmasq[18026]: forwarded 0.debian.pool.ntp.org to 8.8.4.4
  275. Feb 21 00:19:44 dnsmasq[18026]: forwarded 0.debian.pool.ntp.org to 8.8.8.8
  276. Feb 21 00:19:44 dnsmasq[18026]: query[AAAA] 0.debian.pool.ntp.org from 127.0.0.1
  277. Feb 21 00:19:44 dnsmasq[18026]: forwarded 0.debian.pool.ntp.org to 8.8.4.4
  278. Feb 21 00:19:44 dnsmasq[18026]: reply 0.debian.pool.ntp.org is 192.168.1.1
  279. Feb 21 00:19:54 dnsmasq[18026]: query[A] 1.debian.pool.ntp.org from 127.0.0.1
  280. Feb 21 00:19:54 dnsmasq[18026]: forwarded 1.debian.pool.ntp.org to 8.8.4.4
  281. Feb 21 00:19:54 dnsmasq[18026]: query[AAAA] 1.debian.pool.ntp.org from 127.0.0.1
  282. Feb 21 00:19:54 dnsmasq[18026]: forwarded 1.debian.pool.ntp.org to 8.8.4.4
  283. Feb 21 00:19:54 dnsmasq[18026]: reply 1.debian.pool.ntp.org is 192.168.1.1
  284. Feb 21 00:20:04 dnsmasq[18026]: query[A] 2.debian.pool.ntp.org from 127.0.0.1
  285. Feb 21 00:20:04 dnsmasq[18026]: forwarded 2.debian.pool.ntp.org to 8.8.4.4
  286. Feb 21 00:20:04 dnsmasq[18026]: query[AAAA] 2.debian.pool.ntp.org from 127.0.0.1
  287. Feb 21 00:20:04 dnsmasq[18026]: forwarded 2.debian.pool.ntp.org to 8.8.4.4
  288. Feb 21 00:20:04 dnsmasq[18026]: reply 2.debian.pool.ntp.org is 192.168.1.1
  289. Feb 21 00:20:14 dnsmasq[18026]: query[A] 3.debian.pool.ntp.org from 127.0.0.1
  290. Feb 21 00:20:14 dnsmasq[18026]: forwarded 3.debian.pool.ntp.org to 8.8.4.4
  291. Feb 21 00:20:14 dnsmasq[18026]: forwarded 3.debian.pool.ntp.org to 8.8.8.8
  292. Feb 21 00:20:14 dnsmasq[18026]: reply 3.debian.pool.ntp.org is 192.168.1.1
  293.  
  294.  
  295. ********************************************
  296. ********************************************
  297. [✓] ** FINISHED DEBUGGING! **
  298.  
  299. * The debug log can be uploaded to tricorder.pi-hole.net for sharing with developers only.
  300. * For more information, see: https://pi-hole.net/2016/11/07/crack-our-medical-tricorder-win-a-raspberry-pi-3/
  301. * If available, we'll use openssl to upload the log, otherwise it will fall back to netcat.
  302. [i] Debug script running in automated mode
  303. * Using openssl for transmission.
  304.  
  305. ***********************************
  306. ***********************************
  307. [✓] Your debug token is: 2rp3nyul8g
  308. ***********************************
  309. ***********************************
  310.  
  311. * Provide the token above to the Pi-hole team for assistance at
  312. * https://discourse.pi-hole.net
  313. * Your log will self-destruct on our server after 48 hours.
  314. * 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