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

Using retry=yes results in a silent failure #656

Closed
f1sherman opened this issue Apr 28, 2024 · 1 comment · Fixed by #666
Closed

Using retry=yes results in a silent failure #656

f1sherman opened this issue Apr 28, 2024 · 1 comment · Fixed by #666
Labels
bug Something isn't working

Comments

@f1sherman
Copy link

I'm on version 3.11.2.

I'm using the command ddclient -daemon=0 -verbose -noquiet for testing.

My /etc/ddclient/ddclient.conf:

daemon=5m
mail-failure=root
ssl=yes
pid=/var/run/ddclient.pid
usev4=webv4
webv4=ipify-ipv4
protocol=cloudflare
login=token
zone=<REDACTED>
password=<REDACTED>
<REDACTED>

All works fine unless I add retry=yes to the config. If I do that and run the command above, I get no output and an exit code of 1.

@rhansen
Copy link
Member

rhansen commented May 14, 2024

If I'm reading the code correctly, the --retry option does not do what --help says it does. It does not cause ddclient to automatically retry failed updates; instead, it causes ddclient to forever ignore any hosts whose cache status was "good" (successfully updated) when ddclient started. If all hosts were marked as "good", then there are no hosts to update so ddclient exits with a non-zero exit code. It should log a warning ("no hosts to update") in this case, but a bug in the warning line prevents it from outputting anything.

It looks like the --retry option is not intended to be used with --daemon; instead, it is used to initiate an immediate one-time update attempt for each previously failed update.

@rhansen rhansen added the bug Something isn't working label May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants