Advertisement
Guest User

Log

a guest
Apr 9th, 2019
648
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 16.71 KB | None | 0 0
  1. pi@PiHole:/etc/pihole $ sudo pihole -d
  2.  
  3. This process collects information from your Pi-hole, and optionally uploads it to a unique and random directory on tricorder.pi-hole.net.
  4.  
  5. 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.
  6.  
  7. 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.
  8.  
  9. *** [ INITIALIZING ]
  10. [i] 2018-11-14:08:23:26 debug log has been initialized.
  11.  
  12. *** [ INITIALIZING ] Sourcing setup variables
  13. [i] Sourcing /etc/pihole/setupVars.conf...
  14.  
  15. *** [ DIAGNOSING ]: Core version
  16. [i] Core: v4.2.2 (https://discourse.pi-hole.net/t/how-do-i-update-pi-hole/249)
  17. [i] Branch: master
  18. [i] Commit: v4.2.2-0-gba1e94d
  19.  
  20. *** [ DIAGNOSING ]: Web version
  21. [i] Web: v4.2 (https://discourse.pi-hole.net/t/how-do-i-update-pi-hole/249)
  22. [i] Branch: master
  23. [i] Commit: v4.2-0-g347994d
  24.  
  25. *** [ DIAGNOSING ]: FTL version
  26. [] FTL: v4.2.3
  27.  
  28. *** [ DIAGNOSING ]: lighttpd version
  29. [i] 1.4.45
  30.  
  31. *** [ DIAGNOSING ]: php version
  32. [i] 7.0.33
  33.  
  34. *** [ DIAGNOSING ]: Operating system
  35. [] Raspbian GNU/Linux 9 (stretch)
  36.  
  37. *** [ DIAGNOSING ]: SELinux
  38. [i] SELinux not detected
  39.  
  40. *** [ DIAGNOSING ]: Processor
  41. [] armv7l
  42.  
  43. *** [ DIAGNOSING ]: Networking
  44. [] IPv4 address(es) bound to the eth0 interface:
  45.    192.168.1.215/24 matches the IP found in /etc/pihole/setupVars.conf
  46.  
  47. [] IPv6 address(es) bound to the eth0 interface:
  48.    fe80::a22f:4046:1b79:6cd4 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.254
  56.    * Pinging 192.168.1.254...
  57. [] Gateway responded.
  58.  
  59. *** [ DIAGNOSING ]: Ports in use
  60. *:22 sshd (IPv4)
  61. *:22 sshd (IPv6)
  62. [*:80] is in use by lighttpd
  63. [*:80] is in use by lighttpd
  64. [*:53] is in use by pihole-FTL
  65. [*:53] is in use by pihole-FTL
  66. [127.0.0.1:4711] is in use by pihole-FTL
  67. [[::1]:4711] is in use by pihole-FTL
  68.  
  69. *** [ DIAGNOSING ]: Name resolution (IPv4) using a random blocked domain and a known ad-serving domain
  70. [] bob264.web3000.com is 0.0.0.0 via localhost (127.0.0.1)
  71. [] bob264.web3000.com is 0.0.0.0 via Pi-hole (192.168.1.215)
  72. [] doubleclick.com is 216.58.205.46 via a remote, public DNS server (8.8.8.8)
  73.  
  74. *** [ DIAGNOSING ]: Pi-hole processes
  75. [] lighttpd daemon is active
  76. [] pihole-FTL daemon is active
  77.  
  78. *** [ DIAGNOSING ]: Setup variables
  79.     PIHOLE_INTERFACE=eth0
  80.     IPV4_ADDRESS=192.168.1.215/24
  81.     IPV6_ADDRESS=
  82.     PIHOLE_DNS_1=1.1.1.1
  83.     PIHOLE_DNS_2=1.0.0.1
  84.     QUERY_LOGGING=true
  85.     INSTALL_WEB_SERVER=true
  86.     INSTALL_WEB_INTERFACE=true
  87.     LIGHTTPD_ENABLED=true
  88.     BLOCKING_ENABLED=true
  89.  
  90. *** [ DIAGNOSING ]: Dashboard and block page
  91. [] Block page X-Header: X-Pi-hole: A black hole for Internet advertisements.
  92. [] Web interface X-Header: X-Pi-hole: The Pi-hole Web interface is working!
  93.  
  94. *** [ DIAGNOSING ]: Gravity list
  95. -rw-r--r-- 1 root root 916975 nov 14 08:20 /etc/pihole/gravity.list
  96.    -----head of gravity.list------
  97.    0.0.0.0
  98.    0.nextyourcontent.com
  99.    0.r.msn.com
  100.    0.start.bz
  101.  
  102.    -----tail of gravity.list------
  103.    zzqrt.com
  104.    zzsyw.com
  105.    zzz.clickbank.net
  106.    zzzrtrcm2.com
  107.  
  108. *** [ DIAGNOSING ]: contents of /etc/pihole
  109.  
  110. -rw-r--r-- 1 root root 381 nov 14 08:20 /etc/pihole/adlists.list
  111.    https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
  112.    https://mirror1.malwaredomains.com/files/justdomains
  113.    http://sysctl.org/cameleon/hosts
  114.    https://zeustracker.abuse.ch/blocklist.php?download=domainblocklist
  115.    https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt
  116.    https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt
  117.    https://hosts-file.net/ad_servers.txt
  118.  
  119. -rw-r--r-- 1 root root 43 nov 14 08:20 /etc/pihole/local.list
  120.    192.168.1.215 PiHole
  121.    192.168.1.215 pi.hole
  122.  
  123. -rw-r--r-- 1 root root 234 nov 13 15:34 /etc/pihole/logrotate
  124.    /var/log/pihole.log {
  125.     su root root
  126.     daily
  127.     copytruncate
  128.     rotate 5
  129.     compress
  130.     delaycompress
  131.     notifempty
  132.     nomail
  133.    }
  134.    /var/log/pihole-FTL.log {
  135.     su root root
  136.     weekly
  137.     copytruncate
  138.     rotate 3
  139.     compress
  140.     delaycompress
  141.     notifempty
  142.     nomail
  143.    }
  144.  
  145. *** [ DIAGNOSING ]: contents of /etc/dnsmasq.d
  146.  
  147. -rw-r--r-- 1 root root 1586 nov 13 15:35 /etc/dnsmasq.d/01-pihole.conf
  148.    addn-hosts=/etc/pihole/gravity.list
  149.    addn-hosts=/etc/pihole/black.list
  150.    addn-hosts=/etc/pihole/local.list
  151.    localise-queries
  152.    no-resolv
  153.    cache-size=10000
  154.    log-queries
  155.    log-facility=/var/log/pihole.log
  156.    local-ttl=2
  157.    log-async
  158.    dhcp-name-match=set:wpad-ignore,wpad
  159.    dhcp-ignore-names=tag:wpad-ignore
  160.    server=1.1.1.1
  161.    server=1.0.0.1
  162.    interface=eth0
  163.  
  164. *** [ DIAGNOSING ]: contents of /etc/lighttpd
  165.  
  166. -rw-r--r-- 1 root root 3102 nov 13 15:34 /etc/lighttpd/lighttpd.conf
  167.    server.modules = (
  168.     "mod_access",
  169.     "mod_accesslog",
  170.     "mod_auth",
  171.     "mod_expire",
  172.     "mod_compress",
  173.     "mod_redirect",
  174.     "mod_setenv",
  175.     "mod_rewrite"
  176.    )
  177.    server.document-root        = "/var/www/html"
  178.    server.error-handler-404    = "pihole/index.php"
  179.    server.upload-dirs          = ( "/var/cache/lighttpd/uploads" )
  180.    server.errorlog             = "/var/log/lighttpd/error.log"
  181.    server.pid-file             = "/var/run/lighttpd.pid"
  182.    server.username             = "www-data"
  183.    server.groupname            = "www-data"
  184.    server.port                 = 80
  185.    accesslog.filename          = "/var/log/lighttpd/access.log"
  186.    accesslog.format            = "%{%s}t|%V|%r|%s|%b"
  187.    index-file.names            = ( "index.php", "index.html", "index.lighttpd.html" )
  188.    url.access-deny             = ( "~", ".inc", ".md", ".yml", ".ini" )
  189.    static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
  190.    compress.cache-dir          = "/var/cache/lighttpd/compress/"
  191.    compress.filetype           = ( "application/javascript", "text/css", "text/html", "text/plain" )
  192.    include_shell "/usr/share/lighttpd/use-ipv6.pl " + server.port
  193.    include_shell "/usr/share/lighttpd/create-mime.assign.pl"
  194.    include_shell "find /etc/lighttpd/conf-enabled -name '*.conf' -a ! -name 'letsencrypt.conf' -printf 'include \"%p\"
  195. ' 2>/dev/null"
  196.    $HTTP["url"] =~ "^/admin/" {
  197.        
  198.        setenv.add-response-header = (
  199.            "X-Pi-hole" => "The Pi-hole Web interface is working!",
  200.            "X-Frame-Options" => "DENY"
  201.        )
  202.        $HTTP["url"] =~ ".ttf$" {
  203.            
  204.            setenv.add-response-header = ( "Access-Control-Allow-Origin" => "*" )
  205.        }
  206.    }
  207.    $HTTP["url"] =~ "^/admin/\.(.*)" {
  208.         url.access-deny = ("")
  209.    }
  210.    include_shell "cat external.conf 2>/dev/null"
  211.  
  212. *** [ DIAGNOSING ]: contents of /etc/cron.d
  213.  
  214. -rw-r--r-- 1 root root 1704 nov 13 15:34 /etc/cron.d/pihole
  215.    48 3   * * 7   root    PATH="$PATH:/usr/local/bin/" pihole updateGravity >/var/log/pihole_updateGravity.log || cat /var/log/pihole_updateGravity.log
  216.    00 00   * * *   root    PATH="$PATH:/usr/local/bin/" pihole flush once quiet
  217.    @reboot root /usr/sbin/logrotate /etc/pihole/logrotate
  218.    */10 *  * * *   root    PATH="$PATH:/usr/local/bin/" pihole updatechecker local
  219.    16 19  * * *   root    PATH="$PATH:/usr/local/bin/" pihole updatechecker remote
  220.    @reboot root    PATH="$PATH:/usr/local/bin/" pihole updatechecker remote reboot
  221.  
  222. *** [ DIAGNOSING ]: contents of /var/log/lighttpd
  223.  
  224. -rw-r--r-- 1 www-data www-data 340 nov 14 07:17 /var/log/lighttpd/error.log
  225.    2018-11-13 15:33:26: (log.c.217) server started
  226.    2018-11-13 15:35:26: (server.c.1828) server stopped by UID = 0 PID = 1
  227.    2018-11-13 15:35:27: (log.c.217) server started
  228.    2018-11-13 15:52:39: (server.c.1828) server stopped by UID = 0 PID = 1
  229.    2018-11-13 15:52:50: (log.c.217) server started
  230.    2018-11-14 07:17:09: (log.c.217) server started
  231.  
  232. *** [ DIAGNOSING ]: contents of /var/log
  233.  
  234. -rw-r--r-- 1 pihole pihole 5393 nov 14 08:20 /var/log/pihole-FTL.log
  235.    -----head of pihole-FTL.log------
  236.    [2018-11-14 00:48:14.981 645] Resizing "/FTL-queries" from 229376 to 458752
  237.    [2018-11-14 07:17:14.304 653] Using log file /var/log/pihole-FTL.log
  238.    [2018-11-14 07:17:14.306 653] ########## FTL started! ##########
  239.    [2018-11-14 07:17:14.306 653] FTL branch: master
  240.    [2018-11-14 07:17:14.306 653] FTL version: v4.2.3
  241.    [2018-11-14 07:17:14.306 653] FTL commit: aae487e
  242.    [2018-11-14 07:17:14.306 653] FTL date: 2019-02-25 17:18:14 -0800
  243.    [2018-11-14 07:17:14.306 653] FTL user: pihole
  244.    [2018-11-14 07:17:14.306 653] Starting config file parsing (/etc/pihole/pihole-FTL.conf)
  245.    [2018-11-14 07:17:14.306 653]    SOCKET_LISTENING: only local
  246.    [2018-11-14 07:17:14.306 653]    AAAA_QUERY_ANALYSIS: Show AAAA queries
  247.    [2018-11-14 07:17:14.306 653]    MAXDBDAYS: max age for stored queries is 365 days
  248.    [2018-11-14 07:17:14.306 653]    RESOLVE_IPV6: Resolve IPv6 addresses
  249.    [2018-11-14 07:17:14.306 653]    RESOLVE_IPV4: Resolve IPv4 addresses
  250.    [2018-11-14 07:17:14.306 653]    DBINTERVAL: saving to DB file every minute
  251.    [2018-11-14 07:17:14.307 653]    DBFILE: Using /etc/pihole/pihole-FTL.db
  252.    [2018-11-14 07:17:14.307 653]    MAXLOGAGE: Importing up to 24.0 hours of log data
  253.    [2018-11-14 07:17:14.307 653]    PRIVACYLEVEL: Set to 0
  254.    [2018-11-14 07:17:14.307 653]    IGNORE_LOCALHOST: Show queries from localhost
  255.    [2018-11-14 07:17:14.307 653]    BLOCKINGMODE: Null IPs for blocked domains
  256.    [2018-11-14 07:17:14.307 653]    REGEX_DEBUGMODE: Inactive
  257.    [2018-11-14 07:17:14.307 653]    ANALYZE_ONLY_A_AND_AAAA: Disabled. Analyzing all queries
  258.    [2018-11-14 07:17:14.307 653]    DBIMPORT: Importing history from database
  259.    [2018-11-14 07:17:14.307 653]    PIDFILE: Using /var/run/pihole-FTL.pid
  260.    [2018-11-14 07:17:14.307 653]    PORTFILE: Using /var/run/pihole-FTL.port
  261.    [2018-11-14 07:17:14.307 653]    SOCKETFILE: Using /var/run/pihole/FTL.sock
  262.    [2018-11-14 07:17:14.307 653]    WHITELISTFILE: Using /etc/pihole/whitelist.txt
  263.    [2018-11-14 07:17:14.307 653]    BLACKLISTFILE: Using /etc/pihole/black.list
  264.    [2018-11-14 07:17:14.307 653]    GRAVITYFILE: Using /etc/pihole/gravity.list
  265.    [2018-11-14 07:17:14.307 653]    REGEXLISTFILE: Using /etc/pihole/regex.list
  266.    [2018-11-14 07:17:14.307 653]    SETUPVARSFILE: Using /etc/pihole/setupVars.conf
  267.    [2018-11-14 07:17:14.307 653]    AUDITLISTFILE: Using /etc/pihole/auditlog.list
  268.    [2018-11-14 07:17:14.307 653] Finished config file parsing
  269.    [2018-11-14 07:17:14.336 653] Database successfully initialized
  270.    [2018-11-14 07:17:14.339 653] New forward server: 1.0.0.1 (0/4096)
  271.  
  272.    -----tail of pihole-FTL.log------
  273.    [2018-11-14 07:17:14.378 653] Imported 5331 queries from the long-term database
  274.    [2018-11-14 07:17:14.379 653]  -> Total DNS queries: 5331
  275.    [2018-11-14 07:17:14.379 653]  -> Cached DNS queries: 777
  276.    [2018-11-14 07:17:14.379 653]  -> Forwarded DNS queries: 793
  277.    [2018-11-14 07:17:14.379 653]  -> Exactly blocked DNS queries: 114
  278.    [2018-11-14 07:17:14.379 653]  -> Unknown DNS queries: 3647
  279.    [2018-11-14 07:17:14.379 653]  -> Unique domains: 282
  280.    [2018-11-14 07:17:14.379 653]  -> Unique clients: 2
  281.    [2018-11-14 07:17:14.379 653]  -> Known forward destinations: 2
  282.    [2018-11-14 07:17:14.379 653] Successfully accessed setupVars.conf
  283.    [2018-11-14 07:17:14.399 656] PID of FTL process: 656
  284.    [2018-11-14 07:17:14.399 656] Listening on port 4711 for incoming IPv4 telnet connections
  285.    [2018-11-14 07:17:14.399 656] Listening on port 4711 for incoming IPv6 telnet connections
  286.    [2018-11-14 07:17:14.399 656] Listening on Unix socket
  287.    [2018-11-14 07:17:14.403 656] INFO: No whitelist file found
  288.    [2018-11-14 07:17:14.403 656] Compiled 0 Regex filters and 0 whitelisted domains in 0.2 msec (0 errors)
  289.    [2018-11-14 07:17:14.660 656] /etc/pihole/gravity.list: parsed 47082 domains (took 253.5 ms)
  290.    [2018-11-14 07:19:05.778 656] INFO: No whitelist file found
  291.    [2018-11-14 07:19:05.779 656] Compiled 0 Regex filters and 0 whitelisted domains in 0.2 msec (0 errors)
  292.    [2018-11-14 07:19:06.019 656] /etc/pihole/gravity.list: parsed 47082 domains (took 184.7 ms)
  293.    [2018-11-14 07:32:13.678 656] INFO: No whitelist file found
  294.    [2018-11-14 07:32:13.678 656] Compiled 0 Regex filters and 0 whitelisted domains in 0.2 msec (0 errors)
  295.    [2018-11-14 07:32:13.974 656] /etc/pihole/gravity.list: parsed 47082 domains (took 237.9 ms)
  296.    [2018-11-14 07:32:49.435 656] INFO: No whitelist file found
  297.    [2018-11-14 07:32:49.435 656] Compiled 0 Regex filters and 0 whitelisted domains in 0.1 msec (0 errors)
  298.    [2018-11-14 07:32:49.677 656] /etc/pihole/gravity.list: parsed 47082 domains (took 184.5 ms)
  299.    [2018-11-14 08:17:33.699 656] INFO: No whitelist file found
  300.    [2018-11-14 08:17:33.699 656] Compiled 0 Regex filters and 0 whitelisted domains in 0.1 msec (0 errors)
  301.    [2018-11-14 08:17:33.997 656] /etc/pihole/gravity.list: parsed 47082 domains (took 238.5 ms)
  302.    [2018-11-14 08:20:06.416 656] INFO: No whitelist file found
  303.    [2018-11-14 08:20:06.416 656] Compiled 0 Regex filters and 0 whitelisted domains in 0.1 msec (0 errors)
  304.    [2018-11-14 08:20:06.712 656] /etc/pihole/gravity.list: parsed 47082 domains (took 238.0 ms)
  305.    [2018-11-14 08:20:24.274 656] INFO: No whitelist file found
  306.    [2018-11-14 08:20:24.274 656] Compiled 0 Regex filters and 0 whitelisted domains in 0.1 msec (0 errors)
  307.    [2018-11-14 08:20:24.516 656] /etc/pihole/gravity.list: parsed 47082 domains (took 184.1 ms)
  308.  
  309. *** [ DIAGNOSING ]: contents of /dev/shm
  310. -rw------- 1 pihole pihole 2621440 nov 14 07:17 /dev/shm/FTL-clients
  311. -rw------- 1 pihole pihole 108 nov 14 07:17 /dev/shm/FTL-counters
  312. -rw------- 1 pihole pihole 131072 nov 14 07:17 /dev/shm/FTL-domains
  313. -rw------- 1 pihole pihole 163840 nov 14 07:17 /dev/shm/FTL-forwarded
  314. -rw------- 1 pihole pihole 28 nov 14 07:17 /dev/shm/FTL-lock
  315. -rw------- 1 pihole pihole 8192 nov 14 07:17 /dev/shm/FTL-overTime
  316. -rw------- 1 pihole pihole 458752 nov 14 07:59 /dev/shm/FTL-queries
  317. -rw------- 1 pihole pihole 12 nov 14 07:17 /dev/shm/FTL-settings
  318. -rw------- 1 pihole pihole 8192 nov 14 07:17 /dev/shm/FTL-strings
  319.  
  320. *** [ DIAGNOSING ]: Locale
  321.     LANG=it_IT.UTF-8
  322.  
  323. *** [ DIAGNOSING ]: Pi-hole log
  324. -rw-r--r-- 1 pihole pihole 340383 nov 14 08:23 /var/log/pihole.log
  325.    -----head of pihole.log------
  326.    Nov 14 00:00:56 dnsmasq[645]: query[A] server.lan from 127.0.0.1
  327.    Nov 14 00:00:56 dnsmasq[645]: config error is REFUSED
  328.    Nov 14 00:00:56 dnsmasq[645]: query[AAAA] server.lan from 127.0.0.1
  329.    Nov 14 00:00:56 dnsmasq[645]: config error is REFUSED
  330.    Nov 14 00:00:56 dnsmasq[645]: query[A] server.lan from 127.0.0.1
  331.    Nov 14 00:00:56 dnsmasq[645]: config error is REFUSED
  332.    Nov 14 00:00:56 dnsmasq[645]: query[AAAA] server.lan from 127.0.0.1
  333.    Nov 14 00:00:56 dnsmasq[645]: config error is REFUSED
  334.    Nov 14 00:00:56 dnsmasq[645]: query[A] server from 127.0.0.1
  335.    Nov 14 00:00:56 dnsmasq[645]: config error is REFUSED
  336.    Nov 14 00:00:56 dnsmasq[645]: query[AAAA] server from 127.0.0.1
  337.    Nov 14 00:00:56 dnsmasq[645]: config error is REFUSED
  338.    Nov 14 00:00:56 dnsmasq[645]: query[A] server from 127.0.0.1
  339.    Nov 14 00:00:56 dnsmasq[645]: config error is REFUSED
  340.    Nov 14 00:00:56 dnsmasq[645]: query[AAAA] server from 127.0.0.1
  341.    Nov 14 00:00:56 dnsmasq[645]: config error is REFUSED
  342.    Nov 14 00:02:00 dnsmasq[645]: query[A] server.lan from 127.0.0.1
  343.    Nov 14 00:02:00 dnsmasq[645]: config error is REFUSED
  344.    Nov 14 00:02:00 dnsmasq[645]: query[AAAA] server.lan from 127.0.0.1
  345.    Nov 14 00:02:00 dnsmasq[645]: config error is REFUSED
  346.  
  347.  
  348. ********************************************
  349. ********************************************
  350. [] ** FINISHED DEBUGGING! **
  351.  
  352.     * The debug log can be uploaded to tricorder.pi-hole.net for sharing with developers only.
  353.     * For more information, see: https://pi-hole.net/2016/11/07/crack-our-medical-tricorder-win-a-raspberry-pi-3/
  354.     * If available, we'll use openssl to upload the log, otherwise it will fall back to netcat.
  355.  
  356. [?] Would you like to upload the log? [y/N] y
  357.    * Using openssl for transmission.
  358. [✗]  There was an error uploading your debug log.
  359.   * Please try again or contact the Pi-hole team for assistance.
  360.   * 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