Skip to content

HTTP response status 503 must be handled as retry after a sleep #4530

Closed
@mhoffrog

Description

@mhoffrog

Currently acme.sh is failing on HTTP status 503.
As of https://community.letsencrypt.org/t/new-service-busy-responses-beginning-during-high-load/184174 this is to be handled with a re-send of the current request after a certain period of sleep.

Steps to reproduce

This issue can only be reproduced, if Let's Encrypt (LE) server is temporary overloaded. This most likely happens at the beginning of a month.
As you can see in the debug log - this situation is currently ending up with a Challenge error: ....

Debug log

...
[Wed Mar  1 21:31:13 UTC 2023] The txt record is added: Success.
[Wed Mar  1 21:31:13 UTC 2023] Sleep 800 seconds for the txt records to take effect
[Wed Mar  1 21:44:33 UTC 2023] ok, let's start to verify
[Wed Mar  1 21:44:33 UTC 2023] Verifying: my-domain.de
[Wed Mar  1 21:44:33 UTC 2023] d='my-domain.de'
[Wed Mar  1 21:44:33 UTC 2023] keyauthorization='6aDkv949NQt6XLaDMeb2BdqyjAdvHRxid2L-GbZ5d2M.kiChmmDdQVZ_qKAGwE8q-fIK0HMUF9VwVPPaVECfuFk'
[Wed Mar  1 21:44:33 UTC 2023] uri='https://acme-staging-v02.api.letsencrypt.org/acme/chall-v3/5565958713/UQFNQA'
[Wed Mar  1 21:44:33 UTC 2023] _currentRoot='dns_netcup'
[Wed Mar  1 21:44:33 UTC 2023] url='https://acme-staging-v02.api.letsencrypt.org/acme/chall-v3/5565958713/UQFNQA'
[Wed Mar  1 21:44:33 UTC 2023] payload='{}'
[Wed Mar  1 21:44:33 UTC 2023] POST
[Wed Mar  1 21:44:33 UTC 2023] _post_url='https://acme-staging-v02.api.letsencrypt.org/acme/chall-v3/5565958713/UQFNQA'
[Wed Mar  1 21:44:33 UTC 2023] _CURL='curl --silent --dump-header /home/runner/work/nc_wildcerts/nc_wildcerts/acme.sh/config/http.header  -L  -g '
[Wed Mar  1 21:44:33 UTC 2023] _ret='0'
[Wed Mar  1 21:44:33 UTC 2023] code='503'
[Wed Mar  1 21:44:33 UTC 2023] my-domain.de:Challenge error: {"type": "urn:ietf:params:acme:error:rateLimited", "detail": "Service busy; retry later."}
[Wed Mar  1 21:44:33 UTC 2023] Skip for removelevel:
[Wed Mar  1 21:44:33 UTC 2023] pid
[Wed Mar  1 21:44:33 UTC 2023] No need to restore nginx, skip.
[Wed Mar  1 21:44:33 UTC 2023] _clearupdns
[Wed Mar  1 21:44:34 UTC 2023] dns_entries='my-domain.de,_acme-challenge.my-domain.de,,dns_netcup,SxyZ3mAffFg2Ze7sRE3wstLRoVqRQ9GLb46ok49gRyE,/home/runner/work/nc_wildcerts/nc_wildcerts/acme.sh/dnsapi/dns_netcup.sh
my-domain.de,_acme-challenge.my-domain.de,,dns_netcup,u2oyCG6Pm8fdcGdVxlLtFwGf1s-gqflwW-2XFpjnaRk,/home/runner/work/nc_wildcerts/nc_wildcerts/acme.sh/dnsapi/dns_netcup.sh'
[Wed Mar  1 21:44:34 UTC 2023] Removing DNS records.
...

Potential fix

This issue is simple to be fixed.
PR #4531 will fix this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions