Staging API returning 500 errors

Hey there!

We're running a dry run to check to ensure success:

021-01-26 01:24:37,931:DEBUG:acme.client:Storing nonce: 0004hkOOGUgEz6LtWjcc6H_CErBtC8t8TM_W02nzNN9uEOk
2021-01-26 01:24:37,931:DEBUG:acme.client:JWS payload:
b'{\n "identifiers": [\n {\n "type": "dns",\n "value": "spuddavenport.com"\n }\n ]\n}'
2021-01-26 01:24:37,932:DEBUG:acme.client:Sending POST request to https://acme-staging-v02.api.letsencrypt.org/acme/new-order:
{
"protected": "eyJhbGciOiAiUlMyNTYiLCAia2lkIjogImh0dHBzOi8vYWNtZS1zdGFnaW5nLXYwMi5hcGkubGV0c2VuY3J5cHQub3JnL2FjbWUvYWNjdC8xMzM1MTkxNCIsICJub25jZSI6ICIwMDA0aGtPT0dVZ0V6Nkx0V2pjYzZIX0NFckJ0Qzh0OFRNX1cwMm56Tk45dUVPayIsICJ1cmwiOiAiaHR0cHM6Ly9hY21lLXN0YWdpbmctdjAyLmFwaS5sZXRzZW5jcnlwdC5vcmcvYWNtZS9uZXctb3JkZXIifQ",
"signature": "gnU6cHLo7K-N4mEWi9OMXqLvoMu7WnaX7A78PcquAIj-t_DHPfUBWnTyALraOyAdSPHqTtNmJxJa3UpqdLHiraPcb9jJ0CVrKc4tdjq5VCh635EVvfn8ZTDlGavgqqAfjhAuCQXeyW3AjPhZXTesy3T27Ok7VkwmVz6a6fq0WykFxxRzDkETSpOT8TtWR8byojs4tjyLMxhXr2UibNxBRn5uOl-0CCr7uqG8VHMJC8wGHcKSptreffD_gPeP9w1Xq-YUz3a214FaWNc6A33Yd6GbgNdATgX0YgN-F6pqKasEhwUicuQLRYhI5tdcYIs4ifLlOATLgiJMBAMFq-ehhA",
"payload": "ewogICJpZGVudGlmaWVycyI6IFsKICAgIHsKICAgICAgInR5cGUiOiAiZG5zIiwKICAgICAgInZhbHVlIjogInNwdWRkYXZlbnBvcnQuY29tIgogICAgfQogIF0KfQ"
}
2021-01-26 01:24:38,002:DEBUG:urllib3.connectionpool:https://acme-staging-v02.api.letsencrypt.org:443 "POST /acme/new-order HTTP/1.1" 500 114
2021-01-26 01:24:38,003:DEBUG:acme.client:Received response:
HTTP 500
Server: nginx
Date: Tue, 26 Jan 2021 01:24:37 GMT
Content-Type: application/problem+json
Content-Length: 114
Connection: keep-alive
Boulder-Requester: 13351914
Cache-Control: public, max-age=0, no-cache
Link: https://acme-staging-v02.api.letsencrypt.org/directory;rel="index"
Replay-Nonce: 0004arvBdAT195gU4aRAuDmWesCgEvkpDb3Ld0HsQZUcSNU

{
"type": "urn:ietf:params:acme:error:serverInternal",
"detail": "Error creating new order",
"status": 500
}
2021-01-26 01:24:38,003:DEBUG:certbot._internal.log:Exiting abnormally:
Traceback (most recent call last):
File "/snap/certbot/889/bin/certbot", line 8, in
sys.exit(main())
File "/snap/certbot/889/lib/python3.8/site-packages/certbot/main.py", line 15, in main
return internal_main.main(cli_args)
File "/snap/certbot/889/lib/python3.8/site-packages/certbot/_internal/main.py", line 1421, in main
return config.func(config, plugins)
File "/snap/certbot/889/lib/python3.8/site-packages/certbot/_internal/main.py", line 1294, in certonly
lineage = _get_and_save_cert(le_client, config, domains, certname, lineage)
File "/snap/certbot/889/lib/python3.8/site-packages/certbot/_internal/main.py", line 135, in _get_and_save_cert
lineage = le_client.obtain_and_enroll_certificate(domains, certname)
File "/snap/certbot/889/lib/python3.8/site-packages/certbot/_internal/client.py", line 441, in obtain_and_enroll_certificate
cert, chain, key, _ = self.obtain_certificate(domains)
File "/snap/certbot/889/lib/python3.8/site-packages/certbot/_internal/client.py", line 374, in obtain_certificate
orderr = self._get_order_and_authorizations(csr.data, self.config.allow_subset_of_names)
File "/snap/certbot/889/lib/python3.8/site-packages/certbot/_internal/client.py", line 406, in _get_order_and_authorizations
orderr = self.acme.new_order(csr_pem)
File "/snap/certbot/889/lib/python3.8/site-packages/acme/client.py", line 886, in new_order
return self.client.new_order(csr_pem)
File "/snap/certbot/889/lib/python3.8/site-packages/acme/client.py", line 668, in new_order
response = self._post(self.directory['newOrder'], order)
File "/snap/certbot/889/lib/python3.8/site-packages/acme/client.py", line 97, in _post
return self.net.post(*args, **kwargs)
File "/snap/certbot/889/lib/python3.8/site-packages/acme/client.py", line 1201, in post
return self._post_once(*args, **kwargs)
File "/snap/certbot/889/lib/python3.8/site-packages/acme/client.py", line 1214, in _post_once
response = self._check_response(response, content_type=content_type)
File "/snap/certbot/889/lib/python3.8/site-packages/acme/client.py", line 1072, in _check_response
raise messages.Error.from_json(jobj)
acme.messages.Error: urn:ietf:params:acme:error:serverInternal :: The server experienced an internal error :: Error creating new order
2021-01-26 01:24:38,004:ERROR:certbot._internal.log:An unexpected error occurred:
2021-01-26 01:24:38,004:ERROR:certbot._internal.log:The server experienced an internal error :: Error creating new order

This looks to be on the LE side to me.

Thanks!

This might be related to the recent database maintenance on the staging server (but maybe not).

if you get this error consistently, it might be worth ditching your staging account:

certbot unregister --staging

and try the dry-run again.

4 Likes

This seemed to help! Thanks!

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.