Open Vad1mo opened 6 years ago
Are you trying to use a "real" certificate for your proxied service ?
If you already have a certificate for your proxied service, you should not use the letsencrypt service and you docker-flow-proxy configuration options to make it work.
Ping me if I misunderstood.
DFPLE created the cert in the first place. While the service wasn't deployed the cert secrets got removed. However it was still in the volume /etc/letsencrypt
.
When the service was deployed again I started to see this error.
I'm getting the same issue. What's is the solution?
2018-06-27 15:27:07,751:DEBUG:urllib3.connectionpool:https://acme-v01.api.letsencrypt.org:443 "POST /acme/new-authz HTTP/1.1" 429 189
2018-06-27 15:27:07,753:DEBUG:acme.client:Received response:
HTTP 429
Server: nginx
Content-Type: application/problem+json
Content-Length: 189
Boulder-Requester: 37309940
Replay-Nonce: _CbgUiTR9OKABryvqum0Ua0_jBU8vSBZjLdw8smwt74
Expires: Wed, 27 Jun 2018 15:27:07 GMT
Cache-Control: max-age=0, no-cache, no-store
Pragma: no-cache
Date: Wed, 27 Jun 2018 15:27:07 GMT
Connection: close
{
"type": "urn:acme:error:rateLimited",
"detail": "Error creating new authz :: too many failed authorizations recently: see https://letsencrypt.org/docs/rate-limits/",
"status": 429
}
2018-06-27 15:27:07,753:DEBUG:acme.client:Storing nonce: _CbgUiTR9OKABryvqum0Ua0_jBU8vSBZjLdw8smwt74
2018-06-27 15:27:07,754:ERROR:certbot.log:Exiting abnormally:
Traceback (most recent call last):
File "/usr/local/bin/certbot", line 11, in <module>
load_entry_point('certbot', 'console_scripts', 'certbot')()
File "/opt/certbot/src/certbot/main.py", line 861, in main
return config.func(config, plugins)
File "/opt/certbot/src/certbot/main.py", line 786, in certonly
lineage = _get_and_save_cert(le_client, config, domains, certname, lineage)
File "/opt/certbot/src/certbot/main.py", line 85, in _get_and_save_cert
lineage = le_client.obtain_and_enroll_certificate(domains, certname)
File "/opt/certbot/src/certbot/client.py", line 357, in obtain_and_enroll_certificate
certr, chain, key, _ = self.obtain_certificate(domains)
File "/opt/certbot/src/certbot/client.py", line 318, in obtain_certificate
self.config.allow_subset_of_names)
File "/opt/certbot/src/certbot/auth_handler.py", line 66, in get_authorizations
self.authzr[domain] = self.acme.request_domain_challenges(domain)
File "/opt/certbot/src/acme/acme/client.py", line 213, in request_domain_challenges
typ=messages.IDENTIFIER_FQDN, value=domain), new_authzr_uri)
File "/opt/certbot/src/acme/acme/client.py", line 192, in request_challenges
response = self.net.post(self.directory.new_authz, new_authz)
File "/opt/certbot/src/acme/acme/client.py", line 709, in post
return self._post_once(*args, **kwargs)
File "/opt/certbot/src/acme/acme/client.py", line 722, in _post_once
return self._check_response(response, content_type=content_type)
File "/opt/certbot/src/acme/acme/client.py", line 583, in _check_response
raise messages.Error.from_json(jobj)
Error: urn:acme:error:rateLimited :: There were too many requests of a given type :: Error creating new authz :: too many failed authorizations recently: see https://letsencrypt.org/docs/rate-limits/
Related #24
it seems that you are hitting LE rates limits. Did you test your setup against staging servers first ?
No, what I'm doing is switching from one production server to another. So my setup is tested against staging servers on another server.
There seems to be two issues that's happening:
On Wed, Jun 27, 2018 at 6:30 PM, Robin notifications@github.com wrote:
it seems that you are hitting LE rates limits. Did you test your setup against staging servers first ?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/n1b0r/docker-flow-proxy-letsencrypt/issues/25#issuecomment-400742922, or mute the thread https://github.com/notifications/unsubscribe-auth/AAUtqYpCThn-ClOw3Jw4SeeJ5rMNpepVks5uA7MvgaJpZM4SWSBu .
@n1b0r Any update on this? I've seen the combined cert not found
error several times, most recently last night when I had a certificate expire for the first time and DFPLE failed to renew it then hit the Let's Encrypt rate limit.
This is a really urgent issue for me as I now have clients complaining of security errors and I don't know how to get my certificate renewed.
I'm having a similar error. DFPLE fails everytime with the Error while generating certs for [DOMAIN]
error. Logs:
2018-07-11 18:23:07,892;ERROR;Certbot return code: 1. Skipping
2018-07-11 18:23:07,892;ERROR;Error while generating certs for [DOMAIN]
2018-07-11 18:23:07,892;ERROR;Combined certificate not found. Check logs for errors.
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1997, in __call__
return self.wsgi_app(environ, start_response)
File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1985, in wsgi_ap
response = self.handle_exception(e)
File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1540, in handle_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1982, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1614, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1517, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1612, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1598, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/app/app.py", line 81, in reconfigure
client.process(args['letsencrypt.host'].split(','), args['letsencrypt.email'], testing=testing)
File "/app/client_dfple.py", line 184, in process
raise Exception('Combined cert not found')
Exception: Combined cert not found
If I try to access the DOMAIN url DFP fails with a 503 error No server is available to handle this request
. When I restart the DFP service Error while generating certs for
keeps happening in DPFLE but the service loads succesfully and on HTTPS.
I'm available to help debug this, just ping me if you want a hand.
Ok, new info. After cleaning my docker host of containers, images and volumes accessing the URL of a new service worked correctly with letsencrypt. The service domain begins with vboufleur.*
.
I tried to create a new service with a URL beginning with vboufleur_2.*
and it failed with the error I described in the comment above. I think it failed because it has a similar domain name to the first already created service.
I tried to create a new service with a domain starting with test.*
(completely different from the first one) and it worked too.
Bump on this. This is still a problem. When a service and its keys are removed, and the service is brought back again later, the cert request process fails.
This is huge problem. If i need to re-deploy dfple it always runs LE error: "There were too many requests of a given type". And I only got less than 10 domains.
My DFPL gets this error from DFPLE and stops working because of the exception.
The cert
example.container-stuff.com
is on disk under/etc/letsencrypt
however there is no secret as it was cleaned up. I was expecting that it will recover once the cert is needed again.The exception is actually a HTML page, I just pasted the contents here in text format.
Service Definition: