Echec d'installation en mode --noninteractive

Je peux lire des réponses en Anglais : yes , but in french it’s better :slight_smile:

Mon nom de domaine est : www.solutech-industry.com , arch.solutech-industry.com , test.solutech-industry.com ,

J’ai exécuté cette commande : certbot --apache --noninteractive --redirect -d www.solutech-industry.com,arch.solutech-industry.com,test.solutech-industry.com -m admin@cms2i.com --agree-tos

Elle a produit cette sortie : (voir logs plus loin)

Mon serveur Web est (inclure la version) : Apache version 2.4.25

Le système d’exploitation sur lequel mon serveur Web s’exécute est (version incluse) : debian 9

Mon hébergeur, le cas échéant, est :

Je peux me connecter à un shell root sur ma machine (oui ou non, ou je ne sais pas) : oui

J’utilise un panneau de configuration pour gérer mon site (non, ou fournit le nom et la version du panneau de configuration) : non

L’installation a échoué en mode noninteractive, avec une erreur interne 500 .
J’ai tenté ensuite une installation automatique avec la commande standard : certbot --apache et tout a bien fonctionné.

Le problème c’est que je dois automatiser l’installation dans un script bash , mais je n’arrive pas à trouver où se situe mon erreur.

Voilà ce que j’ai trouvé dans les logs, est-ce que vous pouvez m’aider ?

2019-05-08 21:50:17,402:DEBUG:requests.packages.urllib3.connectionpool:https://acme-v02.api.letsencrypt.org:443 “POST /acme/challenge/x1bK3nCRPGvQ7cskwoAKF8f6mHkvMJcYYDML6kwuKJY/15638216343 HTTP/1.1” 500 119
2019-05-08 21:50:17,404:DEBUG:acme.client:Received response:
HTTP 500
Server: nginx
Content-Type: application/problem+json
Content-Length: 119
Link: https://acme-v02.api.letsencrypt.org/directory;rel=“index”
Replay-Nonce: vlG0YUo5LX7QzYWORh8Ad_eQHHvkkqYdXWpZfJSTBkc
Expires: Wed, 08 May 2019 19:50:17 GMT
Cache-Control: max-age=0, no-cache, no-store
Pragma: no-cache
Date: Wed, 08 May 2019 19:50:17 GMT
Connection: close

{
“type”: “urn:ietf:params:acme:error:serverInternal”,
“detail”: “Problem getting authorization”,
“status”: 500
}
2019-05-08 21:50:17,406:DEBUG:certbot.error_handler:Encountered exception:
Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/certbot/auth_handler.py”, line 82, in handle_authorizations
self._respond(aauthzrs, resp, best_effort)
File “/usr/lib/python3/dist-packages/certbot/auth_handler.py”, line 158, in _respond
self._send_responses(aauthzrs, resp, chall_update)
File “/usr/lib/python3/dist-packages/certbot/auth_handler.py”, line 191, in _send_responses
self.acme.answer_challenge(achall.challb, resp)
File “/usr/lib/python3/dist-packages/acme/client.py”, line 157, in answer_challenge
response = self._post(challb.uri, response)
File “/usr/lib/python3/dist-packages/acme/client.py”, line 94, in _post
return self.net.post(*args, **kwargs)
File “/usr/lib/python3/dist-packages/acme/client.py”, line 1130, in post
return self._post_once(*args, **kwargs)
File “/usr/lib/python3/dist-packages/acme/client.py”, line 1147, in _post_once
response = self._check_response(response, content_type=content_type)
File “/usr/lib/python3/dist-packages/acme/client.py”, line 999, in _check_response
raise messages.Error.from_json(jobj)
acme.messages.Error: urn:ietf:params:acme:error:serverInternal :: The server experienced an internal error :: Problem getting authorization

2019-05-08 21:50:17,407:DEBUG:certbot.error_handler:Calling registered functions
2019-05-08 21:50:17,407:INFO:certbot.auth_handler:Cleaning up challenges
2019-05-08 21:50:18,016:DEBUG:certbot.log:Exiting abnormally:
Traceback (most recent call last):
File “/usr/bin/certbot”, line 11, in
load_entry_point(‘certbot==0.28.0’, ‘console_scripts’, ‘certbot’)()
File “/usr/lib/python3/dist-packages/certbot/main.py”, line 1340, in main
return config.func(config, plugins)
File “/usr/lib/python3/dist-packages/certbot/main.py”, line 1094, in run
certname, lineage)
File “/usr/lib/python3/dist-packages/certbot/main.py”, line 121, in _get_and_save_cert
lineage = le_client.obtain_and_enroll_certificate(domains, certname)
File “/usr/lib/python3/dist-packages/certbot/client.py”, line 392, in obtain_and_enroll_certificate
cert, chain, key, _ = self.obtain_certificate(domains)
File “/usr/lib/python3/dist-packages/certbot/client.py”, line 335, in obtain_certificate
orderr = self._get_order_and_authorizations(csr.data, self.config.allow_subset_of_names)
File “/usr/lib/python3/dist-packages/certbot/client.py”, line 371, in _get_order_and_authorizations
authzr = self.auth_handler.handle_authorizations(orderr, best_effort)
File “/usr/lib/python3/dist-packages/certbot/auth_handler.py”, line 82, in handle_authorizations
self._respond(aauthzrs, resp, best_effort)
File “/usr/lib/python3/dist-packages/certbot/auth_handler.py”, line 158, in _respond
self._send_responses(aauthzrs, resp, chall_update)
File “/usr/lib/python3/dist-packages/certbot/auth_handler.py”, line 191, in _send_responses
self.acme.answer_challenge(achall.challb, resp)
File “/usr/lib/python3/dist-packages/acme/client.py”, line 157, in answer_challenge
response = self._post(challb.uri, response)
File “/usr/lib/python3/dist-packages/acme/client.py”, line 94, in _post
return self.net.post(*args, **kwargs)
File “/usr/lib/python3/dist-packages/acme/client.py”, line 1130, in post
return self._post_once(*args, **kwargs)
File “/usr/lib/python3/dist-packages/acme/client.py”, line 1147, in _post_once
response = self._check_response(response, content_type=content_type)
File “/usr/lib/python3/dist-packages/acme/client.py”, line 999, in _check_response
raise messages.Error.from_json(jobj)
acme.messages.Error: urn:ietf:params:acme:error:serverInternal :: The server experienced an internal error :: Problem getting authorization
2019-05-08 21:50:18,019:ERROR:certbot.log:An unexpected error occurred:
2019-05-08 21:50:18,020:ERROR:certbot.log:The server experienced an internal error :: Problem getting authorization

@cpu could this have a common cause with the other serverInternal earlier today? Is there some kind of problem affecting back-end infrastructure?

@cms2i, je pense que c’est un problème temporaire qui n’est pas de votre faute!

1 Like

Merci de cette réponse rapide.
J’attend votre retour pour avoir plus d’infos sur ce point.
Cordialement.

Maybe, want to tag an SRE team member to ask?

Bonjour,
quelqu’un a une solution ?

Vous avez toujours la même erreur 500 “urn:ietf:params:acme:error:serverInternal” avec certbot ?