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

DNS service not running randomly every few days #3484

Closed
3 tasks done
morph13nd opened this issue Jun 8, 2020 · 12 comments
Closed
3 tasks done

DNS service not running randomly every few days #3484

morph13nd opened this issue Jun 8, 2020 · 12 comments

Comments

@morph13nd
Copy link

morph13nd commented Jun 8, 2020

In raising this issue, I confirm the following: {please fill the checkboxes, e.g: [X]}

How familiar are you with the the source code relevant to this issue?:

1


Expected behaviour:

I am expecting the pihole DNS server to not fail randomly.

Actual behaviour:

DNS completely fails and I cannot resolve any webpages and the web UI lags when attempting to load it.

image

image

Steps to reproduce:

image

image

image

It constantly occurs randomly on its own. I have no control over reproducing it other than what is described later on.

Debug token provided by uploading pihole -d log:

59xx0u927p

Full URL: https://tricorder.pi-hole.net/59xx0u927p

Troubleshooting undertaken, and/or other relevant information:

I have attempted to restart the DNS server and that is all. I have uploaded my results up above as I do not know what to do from here. The issue seems to keep occurring randomly during the week once a week, this just happened 20 minutes ago and the entire network was down. I have a cron job to restart the pi everyday at 3am, which helps it from happening more frequently, otherwise, it happens nearly everyday mid-day, but no guarantee as it is unexpected. Please help.

@volcano4life
Copy link

volcano4life commented Jun 8, 2020

getting the same issues here as well.. now a new one - whenever I hit gravity update on the web interface, the whole service crashes, does not come back online until i reboot the whole VM. When I do pihole -g via terminal, DNS resolution crashes also. DNS service does not start working until I kill the pihole -g command.

@dschaper
Copy link
Member

dschaper commented Jun 8, 2020

Are you both using cloudflared as an upstream?

@volcano4life
Copy link

I definitely am

@dschaper
Copy link
Member

dschaper commented Jun 8, 2020

Okay, then both of you are. Try not using cloudflared and see if things are more stable.

@volcano4life
Copy link

volcano4life commented Jun 8, 2020

Disabled cloudflare. Just hit gravity update still crashing the DNS service.
Tried pihole -g in terminal - still crashing dns...
image

@dschaper
Copy link
Member

dschaper commented Jun 8, 2020

Since this is homunculus39's issue and your issue is different please open a new issue.

@morph13nd
Copy link
Author

morph13nd commented Jun 9, 2020

Are you both using cloudflared as an upstream?

Hey there! Thanks for swinging by to try and help.

I am used cloudflared because it's pretty sexy!.. I really want to continue using it. Before I have been using the standard cloudflare server without cloudflared, there were no problems. I can confirm this.

Is there any way around this? The reason why cloudflared makes this happen?

I can make the Pi-hole reboot more frequently if that's what is needed...

EDIT: Thanks for the speedy response.

EDIT 2: Perhaps instead of rebooting the entire pi-hole, it would be better to restart the cloudflared service when DNS seems to fail? Maybe write a script to check for this condition such as when "DNS service is NOT running" then systemctl restart cloudflared.service?

@dschaper
Copy link
Member

dschaper commented Jun 9, 2020

cloudflared isn't something we write or maintain. I can't give you any guidance on how to make that package work.

@morph13nd
Copy link
Author

morph13nd commented Jun 9, 2020

cloudflared isn't something we write or maintain. I can't give you any guidance on how to make that package work.

I figured as much... not a problem. I wrote a script to continuously check for server status and upon failure, log and restart cloudflared.

@dschaper
Copy link
Member

dschaper commented Jun 9, 2020

Closed threads still show up in searches and can still be commented on.

@dschaper dschaper closed this as completed Jun 9, 2020
@morph13nd
Copy link
Author

Quite honestly just happy that others are experiencing the same issue. Hopefully something can be patched programmatically speaking.

@morph13nd
Copy link
Author

Solution to this issue:

https://github.com/themaverick/pihole-patches/tree/master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants