Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v5.7 cannot acquire lock #795

Closed
parkr opened this issue Feb 16, 2021 · 1 comment
Closed

v5.7 cannot acquire lock #795

parkr opened this issue Feb 16, 2021 · 1 comment

Comments

@parkr
Copy link

parkr commented Feb 16, 2021

Versions

  • Pi-hole: v5.2.4
  • AdminLTE: v5.4
  • FTL: v5.7

Platform

  • OS and version: Debian 9/10
  • Platform: VM

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

  • URL: pihole admin wouldn't let me upload! I have a secret gist of the data.
@patski123
Copy link

I believe this is a duplicate issue. Merge with: #794

@DL6ER DL6ER assigned PromoFaux and unassigned PromoFaux Feb 16, 2021
@DL6ER DL6ER closed this as completed Feb 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants