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

ddns-scripts_route53-v1: request rejected because Route53 is processing a prior request #7492

Closed
mark0n opened this issue Nov 21, 2018 · 3 comments · Fixed by #7505
Closed

Comments

@mark0n
Copy link
Contributor

mark0n commented Nov 21, 2018

Maintainer

@chris5560, @maxberger

Environment

OpenWRT 18.06.0
DDNS version: 2.7.8-5

Description

I have multiple host names that need to be updated using the Route53 DDNS script. After starting the scripts only one or two of them are submitting their first update to Route53 successfully. The others fail with the following message:

...<Code>PriorRequestNotComplete</Code><Message>The request was rejected because Route 53 was still processing a prior request.</Message>...

After 5 min the scripts retry and one or two more succeed. Eventually they all go to normal. Seems like this issue only occurs when too many updates occur within a short time. Checking the IP address doesn't seem to be an issue.

Turns out I'm hitting a limit documented in the Route53 documentation. Not sure if the script could prevent this somehow. (Maybe by sharing a lock (flock?) between all the instances of ddns-scripts_route53-v1 that ensures only one of them is requesting an update at a time?)

@maxberger
Copy link
Contributor

maxberger commented Nov 21, 2018 via email

mark0n added a commit to mark0n/packages that referenced this issue Nov 23, 2018
This prevents updates from failing if multiple instances of the
script are running in parallel. This fixes openwrt#7492.

Signed-off-by: Martin Konrad <[email protected]>
mark0n added a commit to mark0n/packages that referenced this issue Nov 23, 2018
This prevents updates from failing if multiple instances of the
script are running in parallel. This fixes openwrt#7492.

Signed-off-by: Martin Konrad <[email protected]>
@mark0n
Copy link
Contributor Author

mark0n commented Nov 23, 2018

Locking solves the problem reliably for me.

@maxberger
Copy link
Contributor

maxberger commented Nov 23, 2018 via email

thiagoricciardi pushed a commit to thiagoricciardi/packages that referenced this issue Apr 3, 2019
This prevents updates from failing if multiple instances of the
script are running in parallel. This fixes openwrt#7492.

Signed-off-by: Martin Konrad <[email protected]>
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