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

Service fails after some time #10

Open
Emporioo opened this issue Jun 5, 2021 · 0 comments
Open

Service fails after some time #10

Emporioo opened this issue Jun 5, 2021 · 0 comments

Comments

@Emporioo
Copy link

Emporioo commented Jun 5, 2021

Bad news, the service has failed again after about 2 weeks. I have extended the polling time to 1 hour now. I would rather it stay up for months on end with a longer polling time then break every couple of weeks.

Good news, the service has stayed up for a week after I changed the polling time to 30 minutes.
I think the issue is more to do with the ipify API not being able to keep up with the 'frequent' requests as I noticed in the log files it populates the IP field with a webpage for a CDN provider (heroku) that ipify uses, instead of my IP which then breaks the Ubuntu service.

If I get a month solid run on it with a 30 minute polling time I will drop it to 15 minutes and see if it remains stable.
I will keep the issue open for now and edit my findings in a couple of months or so.

The service appears to fail after running for several hours.

When I first got it running I tested it by forcing my IP to change. It automatically updated my Hover DNS records, so I can at least confirm it definitely works for my environment when it is up. The failure isn't related to my IP changing or Internet going down.

It would be interesting to see if anyone else is currently getting experiencing this behaviour? (while having the default polling set to 10 minutes).

Hover-dns-updater.service - Hover DNS Updater for Dynamic IP
Loaded: loaded (/etc/systemd/system/hover-dns-updater.service; enabled; vendor prese> Active: failed (Result: exit-code) since Fri 2021-06-04 22:52:52 BST; 11h ago Process: 10134 ExecStart=/usr/bin/python3 /etc/hover-dns-updater/hover-dns-updater.py> Main PID: 10134 (code=exited, status=1/FAILURE)
Jun 04 22:52:52 Chris-Pi python3[10134]: return session.request(method=method, url=ur>Jun 04 22:52:52 Chris-Pi python3[10134]: File "/usr/lib/python3/dist-packages/requests/>Jun 04 22:52:52 Chris-Pi python3[10134]: resp = self.send(prep, **send_kwargs) Jun 04 22:52:52 Chris-Pi python3[10134]: File "/usr/lib/python3/dist-packages/requests/>Jun 04 22:52:52 Chris-Pi python3[10134]: r = adapter.send(request, **kwargs) Jun 04 22:52:52 Chris-Pi python3[10134]: File "/usr/lib/python3/dist-packages/requests/>Jun 04 22:52:52 Chris-Pi python3[10134]: raise ConnectionError(e, request=request)
Jun 04 22:52:52 Chris-Pi python3[10134]: requests.exceptions.ConnectionError: HTTPSConnec>Jun 04 22:52:52 Chris-Pi systemd[1]: hover-dns-updater.service: Main process exited, code>Jun 04 22:52:52 Chris-Pi systemd[1]: hover-dns-updater.service: Failed with result 'exit->

I am running it natively on a RPi 3 with Ubuntu Server 64-Bit 21.04 (raspi). All packages are fully up to date.

I am going to try and change the default polling time to 30 minutes and see if this helps, I will update if it does.

Last of all, a million thanks to you and anyone else involved in developing this. If I can get it to work consistently it will be incredibly useful, as my ISP is BT (UK) and my external IP changes pretty regularly. I don't think Hover will ever support updating DNS A records via hostname.

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

1 participant