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

Getting Error in logs, but update working fine, any reason behind this? #147

Closed
iAmSaugata opened this issue Apr 14, 2022 · 7 comments · Fixed by #159
Closed

Getting Error in logs, but update working fine, any reason behind this? #147

iAmSaugata opened this issue Apr 14, 2022 · 7 comments · Fixed by #159

Comments

@iAmSaugata
Copy link

I am getting following error while it is trying to update the IP address, but in CF, ip getting updated successfully.

🌐 Detected the IPv4 address: X.X.X.X
😞 Failed to update a stale A record of "home.domain.fqdn" (ID: 294fcde3fbf00433d8c36b6cf47125d9): operation aborted during backoff: context deadline exceeded
😞 Failed to delete a stale A record of "home.domain.fqdn" (ID: 294fcde3fbf00433d8c36b6cf47125d9): operation aborted during backoff: context deadline exceeded
😞 Failed to add a new A record of "home.domain.fqdn": operation aborted during backoff: context deadline exceeded
😞 Failed to (fully) update A records of "home.domain.fqdn"
😞 Failed to retrieve records of "domain.fqdn": operation aborted during backoff: context deadline exceeded
😞 Failed to (fully) update A records of "domain.fqdn"
😞 Failed to send HTTP(S) request to "https://[2606:4700:4700::1111]/cdn-cgi/trace": Get "https://[2606:4700:4700::1111]/cdn-cgi/trace": dial tcp [2606:4700:4700::1111]:443: connect: cannot assign requested address
😞 Failed to detect the IPv6 address

@favonia
Copy link
Owner

favonia commented Apr 14, 2022

Thanks for the reporting. This means the tool (or the library cloudflare-go, more specifically) could not receive the HTTP response from Cloudflare before the connection times out, but the Cloudflare server actually received the request and implemented it correctly. It's just that the response was not properly received and thus the tool played safe and assumes the operation might have failed.

The most relevant setting is UPDATE_TIMEOUT which by default is 30s (30 seconds). It controls how soon timeouts would happen, and I thought 30 seconds would be sufficient. What's your setting of UPDATE_TIMEOUT? Does changing it into a different value (such as 5m for 5 minutes) solve the problem? If so, I prefer keeping the current default values until the next major release, and for now you can set it into a bigger value to prevent timeouts. If changing it into a large value still does not solve the problem, it means there's a serious bug and I'd like to fix it. Please let me know!

@favonia
Copy link
Owner

favonia commented Apr 14, 2022

😞 Failed to send HTTP(S) request to "https://[2606:4700:4700::1111]/cdn-cgi/trace": Get "https://[2606:4700:4700::1111]/cdn-cgi/trace": dial tcp [2606:4700:4700::1111]:443: connect: cannot assign requested address
😞 Failed to detect the IPv6 address

As for these two lines, it means your network blocked or did not support IPv6, which I believe is unrelated to the main concern.

@favonia
Copy link
Owner

favonia commented May 7, 2022

@iAmSaugata Hi, is there any progress on the issue? The value of UPDATE_TIMEOUT would be helpful to diagnose the issue.

@favonia
Copy link
Owner

favonia commented May 8, 2022

@iAmSaugata I am closing this with the PR #159 because I seemed to be able to re-create this bug. However, this does not mean your bug has the same cause and please re-open the issue if it's not fixed for you.

@favonia
Copy link
Owner

favonia commented May 9, 2022

@iAmSaugata The new release should have fixed the issue. Please check. Thanks!

@iAmSaugata
Copy link
Author

Yes, I have tested, no longer getting the error.

@favonia
Copy link
Owner

favonia commented May 12, 2022

Yes, I have tested, no longer getting the error.

Thanks for the confirmation.

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

Successfully merging a pull request may close this issue.

2 participants