Lighttpd having issues

I am on unraid and using this container to run pihole - https://hub.docker.com/r/flippinturt/pihole-dot-doh/

I don't know if that means no one will help me here, but I am going to give it a shot.
When I install the container, everything works great, but upon restart I get 503 Service Not Available when I try to go to the admin site. If I look at the docker log I see a lot of:

Thu Aug 26 18:36:20 2021 (11277): Fatal Error Unable to create lock file: Bad file descriptor (9)

Thu Aug 26 18:36:21 2021 (11278): Fatal Error Unable to create lock file: Bad file descriptor (9)

Thu Aug 26 18:36:22 2021 (11279): Fatal Error Unable to create lock file: Bad file descriptor (9)

Thu Aug 26 18:36:23 2021 (11280): Fatal Error Unable to create lock file: Bad file descriptor (9)

Thu Aug 26 18:36:24 2021 (11281): Fatal Error Unable to create lock file: Bad file descriptor (9)

Thu Aug 26 18:36:25 2021 (11282): Fatal Error Unable to create lock file: Bad file descriptor (9)

Thu Aug 26 18:36:26 2021 (11283): Fatal Error Unable to create lock file: Bad file descriptor (9)

Thu Aug 26 18:36:27 2021 (11284): Fatal Error Unable to create lock file: Bad file descriptor (9)

Thu Aug 26 18:36:28 2021 (11285): Fatal Error Unable to create lock file: Bad file descriptor (9)

Thu Aug 26 18:36:29 2021 (11296): Fatal Error Unable to create lock file: Bad file descriptor (9)

Thu Aug 26 18:36:30 2021 (11297): Fatal Error Unable to create lock file: Bad file descriptor (9)

Thu Aug 26 18:36:31 2021 (11298): Fatal Error Unable to create lock file: Bad file descriptor (9)

So I tried to track that down, but it looks like the real issue is lighthttpd?
The log for that has:
2021-08-26 14:43:43: (gw_backend.c.476) unlink /var/run/lighttpd/php.socket-0 after connect failed: Connection refused
2021-08-26 14:43:43: (gw_backend.c.328) child exited: 254 unix:/var/run/lighttpd/php.socket-0
2021-08-26 14:43:43: (gw_backend.c.607) gw-backend failed to start: /usr/bin/php-cgi
2021-08-26 14:43:43: (gw_backend.c.609) If you're trying to run your app as a FastCGI backend, make sure you're using the FastCGI-enabled version. If this is PHP on Gentoo, add 'fastcgi' to the USE flags. If this is PHP, try removing the bytecode caches for now and try again.
2021-08-26 14:43:43: (gw_backend.c.1047) ERROR: spawning gw failed.

over and over and over.

I did a pihole -d and my token is https://tricorder.pi-hole.net/e0uvxNad/

Is it a permission issuse? I am at a loss here. If I delete the container, image, and persistant storage where the config is kept and reinstall it, it works great until restart and then same issue. pihole works, but the admin console does not.

As you've stated, the image you are using is not an official Pi-hole image.
In addition, it neither seems to be based on the official image.

Your debug log shows the Pi-hole installation within your Docker container to have been massively altered:

*** [ DIAGNOSING ]: Core version
[i] Core: v5.3.1 (https://discourse.pi-hole.net/t/how-do-i-update-pi-hole/249)
[i] Remotes: origin	https://github.com/pi-hole/pi-hole (fetch)
             origin	https://github.com/pi-hole/pi-hole (push)
[i] Branch: master
[i] Commit: v5.3.1-0-g4736e031-dirty
[i] Status:  M .editorconfig
             M .gitattributes
             M .github/dco.yml
             M .github/workflows/test.yml
             M .gitignore
             M .idea/codeStyleSettings.xml
             M .idea/codeStyles/Project.xml
             M .idea/codeStyles/codeStyleConfig.xml
             M .stickler.yml
             M CONTRIBUTING.md
             M LICENSE
             M README.md
             M advanced/01-pihole.conf
             M advanced/GIFs/25Bytes.gif
             M advanced/GIFs/26Bytes.gif
             M advanced/GIFs/37Bytes.gif
             M advanced/GIFs/43Bytes.gif
             M advanced/Scripts/COL_TABLE
             M advanced/Scripts/database_migration/gravity-db.sh
             M advanced/Scripts/database_migration/gravity/10_to_11.sql
             M advanced/Scripts/database_migration/gravity/11_to_12.sql
             M advanced/Scripts/database_migration/gravity/12_to_13.sql
             M advanced/Scripts/database_migration/gravity/13_to_14.sql
             M advanced/Scripts/database_migration/gravity/1_to_2.sql
             M advanced/Scripts/database_migration/gravity/2_to_3.sql
             M advanced/Scripts/database_migration/gravity/3_to_4.sql
             M advanced/Scripts/database_migration/gravity/4_to_5.sql
             M advanced/Scripts/database_migration/gravity/5_to_6.sql
             M advanced/Scripts/database_migration/gravity/6_to_7.sql
             M advanced/Scripts/database_migration/gravity/7_to_8.sql
             M advanced/Scripts/database_migration/gravity/8_to_9.sql
             M advanced/Scripts/database_migration/gravity/9_to_10.sql
             M advanced/Scripts/piholeCheckout.sh
             M advanced/Scripts/wildcard_regex_converter.sh
             M advanced/Templates/gravity.db.sql
             M advanced/Templates/gravity_copy.sql
             M advanced/Templates/logrotate
             M advanced/Templates/pihole-FTL.service
             M advanced/Templates/pihole.cron
             M advanced/Templates/pihole.sudo
             M advanced/bash-completion/pihole
             M advanced/blockingpage.css
             M advanced/cmdline.txt
             M advanced/console-setup
             M advanced/dnsmasq.conf.original
             M advanced/index.php
             M advanced/lighttpd.conf.debian
             M advanced/lighttpd.conf.fedora
             M manpages/pihole-FTL.8
             M manpages/pihole-FTL.conf.5
             M manpages/pihole.8
             M supportedos.txt
             M test/README.md
             M test/__init__.py
             M test/_centos_7.Dockerfile
             M test/_centos_8.Dockerfile
             M test/_debian_10.Dockerfile
             M test/_debian_9.Dockerfile
             M test/_fedora_32.Dockerfile
             M test/_fedora_33.Dockerfile
             M test/_ubuntu_16.Dockerfile
             M test/_ubuntu_18.Dockerfile
             M test/_ubuntu_20.Dockerfile
             M test/conftest.py
             M test/requirements.txt
             M test/setup.py
             M test/test_automated_install.py
             M test/test_centos_7_support.py
             M test/test_centos_8_support.py
             M test/test_centos_common_support.py
             M test/test_centos_fedora_common_support.py
             M test/test_fedora_support.py
             M test/tox.centos_7.ini
             M test/tox.centos_8.ini
             M test/tox.debian_10.ini
             M test/tox.debian_9.ini
             M test/tox.fedora_32.ini
             M test/tox.fedora_33.ini
             M test/tox.ubuntu_16.ini
             M test/tox.ubuntu_18.ini
             M test/tox.ubuntu_20.ini
             (...)

*** [ DIAGNOSING ]: Web version
[i] Web: v5.5.1 (https://discourse.pi-hole.net/t/how-do-i-update-pi-hole/249)
[i] Remotes: origin	https://github.com/pi-hole/adminLTE (fetch)
             origin	https://github.com/pi-hole/adminLTE (push)
[i] Branch: master
[i] Commit: v5.5.1-0-gfb9bd561-dirty
[i] Status:  M .gitattributes
             M .github/ISSUE_TEMPLATE.md
             M .github/PULL_REQUEST_TEMPLATE.md
             M .github/workflows/codeql.yml
             M .github/workflows/phpstan.yml
             M .github/workflows/test.yml
             M .gitignore
             M .user.php.ini
             M CONTRIBUTING.md
             M LICENSE
             M README.md
             M api.php
             M api_FTL.php
             M api_db.php
             M auditlog.php
             M cname_records.php
             M composer.json
             M composer.lock
             M db_graph.php
             M db_lists.php
             M db_queries.php
             M debug.php
             M dns_records.php
             M gravity.php
             M groups-adlists.php
             M groups-clients.php
             M groups-domains.php
             M groups.php
             M img/boxed-bg-dark.jpg
             M img/boxed-bg.jpg
             M img/donate.gif
             M img/favicons/android-chrome-192x192.png
             M img/favicons/android-chrome-512x512.png
             M img/favicons/apple-touch-icon.png
             M img/favicons/favicon-16x16.png
             M img/favicons/favicon-32x32.png
             M img/favicons/favicon.ico
             M img/favicons/manifest.json
             M img/favicons/mstile-150x150.png
             M img/favicons/safari-pinned-tab.svg
             M img/logo.svg
             M index.php
             M messages.php
             M network.php
             M package-lock.json
             M package.json
             M phpstan.neon.dist
             M queries.php
             M queryads.php
             M scripts/pi-hole/js/auditlog.js
             M scripts/pi-hole/js/customcname.js
             M scripts/pi-hole/js/customdns.js
             M scripts/pi-hole/js/db_graph.js
             M scripts/pi-hole/js/db_lists.js
             M scripts/pi-hole/js/db_queries.js
             M scripts/pi-hole/js/debug.js
             M scripts/pi-hole/js/footer.js
             M scripts/pi-hole/js/gravity.js
             M scripts/pi-hole/js/groups-adlists.js
             M scripts/pi-hole/js/groups-clients.js
             M scripts/pi-hole/js/groups-domains.js
             M scripts/pi-hole/js/groups.js
             M scripts/pi-hole/js/index.js
             M scripts/pi-hole/js/ip-address-sorting.js
             M scripts/pi-hole/js/messages.js
             M scripts/pi-hole/js/network.js
             M scripts/pi-hole/js/queries.js
             M scripts/pi-hole/js/queryads.js
             M scripts/pi-hole/js/settings.js
             M scripts/pi-hole/js/taillog-FTL.js
             M scripts/pi-hole/js/taillog.js
             M scripts/pi-hole/js/utils.js
             M scripts/pi-hole/php/FTL.php
             M scripts/pi-hole/php/api_token.php
             M scripts/pi-hole/php/auth.php
             M scripts/pi-hole/php/customcname.php
             M scripts/pi-hole/php/customdns.php
             M scripts/pi-hole/php/database.php
             M scripts/pi-hole/php/debug.php
             M scripts/pi-hole/php/footer.php
             M scripts/pi-hole/php/func.php
             M scripts/pi-hole/php/gravity.php
             M scripts/pi-hole/php/gravity.sh.php
             M scripts/pi-hole/php/groups.php
             M scripts/pi-hole/php/header.php
             M scripts/pi-hole/php/loginpage.php
             M scripts/pi-hole/php/password.php
             M scripts/pi-hole/php/queryads.php
             M scripts/pi-hole/php/savesettings.php
             M scripts/pi-hole/php/tailLog.php
             M scripts/pi-hole/php/teleporter.php
             M scripts/pi-hole/php/theme.php
             M scripts/pi-hole/php/update_checker.php
             M scripts/vendor/Chart.min.js
             M scripts/vendor/LICENSE
             M scripts/vendor/adminlte.min.js
             M scripts/vendor/bootstrap-notify.min.js
             M scripts/vendor/bootstrap-select.min.js
             M scripts/vendor/bootstrap-select.min.js.map
             M scripts/vendor/bootstrap-toggle.min.js
             M scripts/vendor/bootstrap-toggle.min.js.map
             M scripts/vendor/datatables.min.js
             M scripts/vendor/daterangepicker.min.js
             M scripts/vendor/daterangepicker.min.js.map
             M scripts/vendor/jquery.confirm.min.js
             M scripts/vendor/jquery.min.js
             M scripts/vendor/moment.min.js
             M scripts/vendor/qrcode.php
             M scripts/vendor/select2.min.js
             M settings.php
             M style/pi-hole.css
             M style/themes/default-dark.css
             M style/themes/default-darker.css
             M style/themes/default-light.css
             M style/vendor/AdminLTE.min.css
             M style/vendor/LICENSE
             M style/vendor/SourceSansPro/SourceSansPro.css
             M style/vendor/SourceSansPro/source-sans-pro-v13-latin-300.woff
             M style/vendor/SourceSansPro/source-sans-pro-v13-latin-300.woff2
             M style/vendor/SourceSansPro/source-sans-pro-v13-latin-300italic.woff
             M style/vendor/SourceSansPro/source-sans-pro-v13-latin-300italic.woff2
             M style/vendor/SourceSansPro/source-sans-pro-v13-latin-600.woff
             M style/vendor/SourceSansPro/source-sans-pro-v13-latin-600.woff2
             M style/vendor/SourceSansPro/source-sans-pro-v13-latin-600italic.woff
             M style/vendor/SourceSansPro/source-sans-pro-v13-latin-600italic.woff2
             M style/vendor/SourceSansPro/source-sans-pro-v13-latin-700.woff
             M style/vendor/SourceSansPro/source-sans-pro-v13-latin-700.woff2
             M style/vendor/SourceSansPro/source-sans-pro-v13-latin-italic.woff
             M style/vendor/SourceSansPro/source-sans-pro-v13-latin-italic.woff2
             M style/vendor/SourceSansPro/source-sans-pro-v13-latin-regular.woff
             M style/vendor/SourceSansPro/source-sans-pro-v13-latin-regular.woff2
             M style/vendor/animate.min.css
             M style/vendor/bootstrap-select.min.css
             M style/vendor/bootstrap-toggle.min.css
             M style/vendor/bootstrap/css/bootstrap.min.css
             M style/vendor/bootstrap/css/bootstrap.min.css.map
             M style/vendor/bootstrap/fonts/glyphicons-halflings-regular.eot
             M style/vendor/bootstrap/fonts/glyphicons-halflings-regular.svg
             M style/vendor/bootstrap/fonts/glyphicons-halflings-regular.ttf
             M style/vendor/bootstrap/fonts/glyphicons-halflings-regular.woff
             M style/vendor/bootstrap/fonts/glyphicons-halflings-regular.woff2
             M style/vendor/bootstrap/js/bootstrap.min.js
             M style/vendor/datatables.min.css
             M style/vendor/daterangepicker.min.css
             M style/vendor/font-awesome/js/all.min.js
             M style/vendor/icheck-bootstrap.min.css
             M style/vendor/icheck-material.min.css
             M style/vendor/js-warn.css
             M style/vendor/select2.min.css
             M taillog-FTL.php
             M taillog.php
             (...)

If you are intent on sticking with your current third-party image, you'd have to contact its maintainer for support.

I'd recommend to change your configuration to make use of the official Pi-hole Docker image, in conjunction with separate DoH/DoT clients, or your router as Pi-hole's only upstream in case your router would support DoT or DoH.

1 Like

That's what I figured. Thank you for confirming. I will do as you suggest and not use this custom unraid docker.
Thanks again!

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.