pi-hole / docker-pi-hole

Pi-hole in a docker container
https://pi-hole.net
Other
8.64k stars 1.14k forks source link

v5.7 cannot acquire lock #795

Closed parkr closed 3 years ago

parkr commented 3 years ago

Versions

Platform

Expected behavior

Upgrading from pihole/pihole:v5.6 to :v5.7 causes failure of DNS service.

Actual behavior / bug

When tailing pihole-FTL.log, I see:

[2021-02-16 21:38:11.395 1383M] ########## FTL started! ##########
[2021-02-16 21:38:11.395 1383M] FTL branch: master
[2021-02-16 21:38:11.395 1383M] FTL version: v5.7
[2021-02-16 21:38:11.395 1383M] FTL commit: 2999e2b5
[2021-02-16 21:38:11.395 1383M] FTL date: 2021-02-16 19:36:43 +0000
[2021-02-16 21:38:11.395 1383M] FTL user: root
[2021-02-16 21:38:11.395 1383M] Compiled for x86_64 (compiled on CI) using gcc (Debian 6.3.0-18+deb9u1) 6.3.0 20170516
[2021-02-16 21:38:11.395 1383M] FATAL: create_shm(): Failed to create shared memory object "FTL-lock": File exists
[2021-02-16 21:38:11.395 1383M] Initialization of shared memory failed.

docker logs pihole yields:

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] 01-resolver-resolv: applying...
[fix-attrs.d] 01-resolver-resolv: exited 0.
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 20-start.sh: executing...
 ::: Starting docker specific checks & setup for docker pihole/pihole

  [i] Installing configs from /etc/.pihole...
  [i] Existing dnsmasq.conf found... it is not a Pi-hole file, leaving alone!
  [✓] Copying 01-pihole.conf to /etc/dnsmasq.d/01-pihole.conf
Converting DNS1 to PIHOLE_DNS_
Converting DNS2 to PIHOLE_DNS_
Setting DNS servers based on PIHOLE_DNS_ variable
Custom WEB_PORT set to 6143
INFO: Without proper router DNAT forwarding to 127.0.0.1:6143, you may not get any blocked websites on ads
::: Pre existing WEBPASSWORD found
DNSMasq binding to default interface: eth0
Added ENV to php:
            "PHP_ERROR_LOG" => "/var/log/lighttpd/error.log",
            "ServerIP" => "127.0.0.1",
            "VIRTUAL_HOST" => "sink.parkermakes.tools",
Using IPv4 and IPv6
::: Preexisting ad list /etc/pihole/adlists.list detected ((exiting setup_blocklists early))
https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
https://mirror1.malwaredomains.com/files/justdomains
https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt
https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt
::: Testing pihole-FTL DNS: FTL started!
::: Testing lighttpd config: Syntax OK
::: All config checks passed, cleared for startup ...
::: Enabling Query Logging
  [i] Enabling logging...
  [✓] Logging has been enabled!
 ::: Docker start setup complete
  [i] Neutrino emissions detected...
  [✓] Pulling blocklist source list into range

  [✓] Preparing new gravity database
  [i] Using libz compression

  [i] Target: https://mirror1.malwaredomains.com/files/justdomains
  [✗] Status: Not found
  [✗] List download failed: using previously cached list
  [i] Received 26854 domains

  [i] Target: http://sysctl.org/cameleon/hosts
  [✓] Status: No changes detected
  [i] Received 20566 domains

  [i] Target: https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt
  [✓] Status: No changes detected
  [i] Received 2705 domains, 3 domains invalid!
      Sample of invalid domains:
      - # Ad filter list by Disconnect
      - # License: GPLv3
      - # Contact: support [at] disconnect.me

  [i] Target: https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt
  [✓] Status: No changes detected
  [i] Received 2701 domains

  [i] Target: https://hosts-file.net/ad_servers.txt
  [✗] Status: Not found
  [✗] List download failed: no cached list available

  [i] Target: https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts
  [✓] Status: Retrieval successful
  [i] Received 65463 domains

  [✓] Storing downloaded domains in new gravity database
  [✓] Building tree
  [✓] Swapping databases
  [i] Number of gravity domains: 118286 (103861 unique domains)
  [i] Number of exact blacklisted domains: 2
  [i] Number of regex blacklist filters: 0
  [i] Number of exact whitelisted domains: 7
  [i] Number of regex whitelist filters: 0
  [✓] Cleaning up stray matter

  [✓] DNS service is listening
     [✓] UDP (IPv4)
     [✓] TCP (IPv4)
     [✓] UDP (IPv6)
     [✓] TCP (IPv6)

  [✓] Pi-hole blocking is enabled
  Pi-hole version is v5.2.4 (Latest: v5.2.4)
  AdminLTE version is v5.4 (Latest: v5.4)
  FTL version is v5.7 (Latest: v5.7)
[cont-init.d] 20-start.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
Starting crond
Starting pihole-FTL (no-daemon) as root
Starting lighttpd
Stopping pihole-FTL
[services.d] done.
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
Starting pihole-FTL (no-daemon) as root
Stopping pihole-FTL
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
Starting pihole-FTL (no-daemon) as root
Stopping pihole-FTL
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
Starting pihole-FTL (no-daemon) as root
Stopping pihole-FTL
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
Starting pihole-FTL (no-daemon) as root
Stopping pihole-FTL

Steps to reproduce

Steps to reproduce the behavior:

  1. Run pihole/pihole:v5.6
  2. All is ✅
  3. Run pihole/pihole:v5.7 with same configuration
  4. 🔴
  5. Downgrade to v5.6
  6. All is ✅ again

Debug Token

patski123 commented 3 years ago

I believe this is a duplicate issue. Merge with: https://github.com/pi-hole/docker-pi-hole/issues/794