Having trouble with certificate renewal, again :( #4

Closed
opened 2019-09-02 01:46:46 +00:00 by Ghost · 4 comments

Below are the error I am seeing this time:

web_1    | [acme-v2] DEBUG get cert 1
web_1    | [acme-v2] certificates.create
web_1    | [DEBUG] newOrder
web_1    | https://acme-v02.api.letsencrypt.org/acme/order/32429380/1006761182
--
web_1    | [acme-v2] POST newOrder has authorizations
web_1    | [DEBUG] getChallenges
web_1    | [greenlock/lib/core.js] setChallenge called for 'checkin.wednesdaynighthop.com'
--
web_1    | [gl/index.js] gl.getCertificates called for checkin.wednesdaynighthop.com with certs for [ 'checkin.wednesdaynighthop.com' ]
web_1    | [gl/index.js] gl.approveDomains called with certs for [ 'checkin.wednesdaynighthop.com' ] and options:
web_1    | [gl/index.js] { domain: 'checkin.wednesdaynighthop.com',
web_1    |   domains: [ 'checkin.wednesdaynighthop.com' ],
web_1    |   certs:
--
web_1    | [gl/index.js] gl renewing
web_1    | Mon, 02 Sep 2019 01:41:24 GMT auth:log checkAuth unprotected route /api/webhook/order
web_1    | Mon, 02 Sep 2019 01:41:24 GMT expressServer:log Received a webhook post request!! order
--
web_1    | [acme-v2.js] challenge accepted!
web_1    | { server: 'nginx',
web_1    |   'content-type': 'application/json',
--
web_1    | [acme-v2] handled(?) rejection as errback:
web_1    | Error: [acme-v2] (E_STATE_INVALID) challenge state for 'checkin.wednesdaynighthop.com': 'invalid'
web_1    |     at /home/app_user/checkin-app/server/node_modules/acme-v2/node.js:784:27
web_1    |     at processTicksAndRejections (internal/process/next_tick.js:81:5)
web_1    | Error renewing certificate for 'checkin.wednesdaynighthop.com':
web_1    | Error: [acme-v2] (E_STATE_INVALID) challenge state for 'checkin.wednesdaynighthop.com': 'invalid'
web_1    |     at /home/app_user/checkin-app/server/node_modules/acme-v2/node.js:784:27
web_1    |     at processTicksAndRejections (internal/process/next_tick.js:81:5)
Below are the error I am seeing this time: ``` web_1 | [acme-v2] DEBUG get cert 1 web_1 | [acme-v2] certificates.create web_1 | [DEBUG] newOrder web_1 | https://acme-v02.api.letsencrypt.org/acme/order/32429380/1006761182 -- web_1 | [acme-v2] POST newOrder has authorizations web_1 | [DEBUG] getChallenges web_1 | [greenlock/lib/core.js] setChallenge called for 'checkin.wednesdaynighthop.com' -- web_1 | [gl/index.js] gl.getCertificates called for checkin.wednesdaynighthop.com with certs for [ 'checkin.wednesdaynighthop.com' ] web_1 | [gl/index.js] gl.approveDomains called with certs for [ 'checkin.wednesdaynighthop.com' ] and options: web_1 | [gl/index.js] { domain: 'checkin.wednesdaynighthop.com', web_1 | domains: [ 'checkin.wednesdaynighthop.com' ], web_1 | certs: -- web_1 | [gl/index.js] gl renewing web_1 | Mon, 02 Sep 2019 01:41:24 GMT auth:log checkAuth unprotected route /api/webhook/order web_1 | Mon, 02 Sep 2019 01:41:24 GMT expressServer:log Received a webhook post request!! order -- web_1 | [acme-v2.js] challenge accepted! web_1 | { server: 'nginx', web_1 | 'content-type': 'application/json', -- web_1 | [acme-v2] handled(?) rejection as errback: web_1 | Error: [acme-v2] (E_STATE_INVALID) challenge state for 'checkin.wednesdaynighthop.com': 'invalid' web_1 | at /home/app_user/checkin-app/server/node_modules/acme-v2/node.js:784:27 web_1 | at processTicksAndRejections (internal/process/next_tick.js:81:5) web_1 | Error renewing certificate for 'checkin.wednesdaynighthop.com': web_1 | Error: [acme-v2] (E_STATE_INVALID) challenge state for 'checkin.wednesdaynighthop.com': 'invalid' web_1 | at /home/app_user/checkin-app/server/node_modules/acme-v2/node.js:784:27 web_1 | at processTicksAndRejections (internal/process/next_tick.js:81:5) ```
Author

I see that the TXT record added has an extra '.checkin' at its end:

   _acme-challenge.checkin.wednesdaynighthop.com.checkin

Any idea why?

I see that the TXT record added has an extra '.checkin' at its end: ``` _acme-challenge.checkin.wednesdaynighthop.com.checkin ``` Any idea why?
Author

Is the solution to switch to using the acme-dns-01-cloudflare plugin instead of le-challenge-cloudflare?

Is the solution to switch to using the acme-dns-01-cloudflare plugin instead of le-challenge-cloudflare?
Author

I switched to acme-dns-01-cloudflare and greenlock-store-fs and now I get the following error:

Waiting for 10000 ms before attempting propagation verification retry 21 / 30.
web_1    | { Error: queryTxt ENODATA _greenlock-dryrun-8672.checkin.wednesdaynighthop.com
web_1    |     at QueryReqWrap.onresolve [as oncomplete] (dns.js:199:19)
web_1    |   errno: 'ENODATA',
web_1    |   code: 'ENODATA',
web_1    |   syscall: 'queryTxt',
web_1    |   hostname: '_greenlock-dryrun-8672.checkin.wednesdaynighthop.com' }

I see the TXT record on Cloudflare. What could explain this error?

I switched to acme-dns-01-cloudflare and greenlock-store-fs and now I get the following error: ``` Waiting for 10000 ms before attempting propagation verification retry 21 / 30. web_1 | { Error: queryTxt ENODATA _greenlock-dryrun-8672.checkin.wednesdaynighthop.com web_1 | at QueryReqWrap.onresolve [as oncomplete] (dns.js:199:19) web_1 | errno: 'ENODATA', web_1 | code: 'ENODATA', web_1 | syscall: 'queryTxt', web_1 | hostname: '_greenlock-dryrun-8672.checkin.wednesdaynighthop.com' } ``` I see the TXT record on Cloudflare. What could explain this error?
Author

Okay, my bad, I was able to solve the problem by changing the DNS nameservers on the host to point to the Cloudflare nameservers first. Otherwise the DNS record propagation was taking too long.

Okay, my bad, I was able to solve the problem by changing the DNS nameservers on the host to point to the Cloudflare nameservers first. Otherwise the DNS record propagation was taking too long.
Ghost closed this issue 2019-09-02 06:31:04 +00:00
Sign in to join this conversation.
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: root/greenlock-express.js#4
No description provided.