[Pi-hole Docker] lsof -Pni:53 Using 100% CPU

So the issue is that the Pi-hole web interface dosen't work


This part works but when I click
Did you mean to go to the admin panel?
It dosen't load
image
And lsof starts using all the cpu (This only happens if I open the admin php site)

Pihole worked normaly for 4 months
Today I wanted to add a custom local dns and I couldn't open the web interface and when I checked htop I saw that

Things I have tried to fix this
Restart the docker container
Restart the docker service
Restart linux
Create a new blank container of pihole pihole/pihole:latest
^ None of these solved my problem and I used the same commands of how to create the new docker container as I did 4 months ago

So this leads me to the tought of something wrong with my linux machine or something wrong with pihole on docker

Is anyone able to help me?

These topics aren't similar because it is lsof that is using 100% cpu and not pihole-ftl

Hey! Did you find the solution? I have the same issue.

Also facing the same issue on arch based distro...

Note: Pi-hole on Arch Linux is not officially supported by the Pi-hole project.

https://wiki.archlinux.org/title/Pi-hole

Please ask arch.

@JadenJSJ @fustom I finally resolved this on my machine. It turns out that containerd service was causing the issue. It's not specific to pihole but any docker container and running lsof. I found out that when I do a systemctl status, containerd was running under system

containerd under system

It needs to run under docker.service. I did the following steps:

  1. sudo systemctl stop containerd
  2. sudo systemctl disable containerd
  3. sudo reboot

After that when I do a systemctl status I see that containerd now runs under docker:

And now pi-hole docker runs without any issues. I hope this helps you out too.

2 Likes