Renew certificates failed challenge with NodeJS


#1

When I try a “certbot-auto renew”, I get this log :

Saving debug log to /var/log/letsencrypt/letsencrypt.log


Processing /etc/letsencrypt/renewal/travelforlocal.com-0001.conf

Cert is due for renewal, auto-renewing…
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for travelforlocal.com
http-01 challenge for www.travelforlocal.com
Waiting for verification…
Cleaning up challenges
Attempting to renew cert from /etc/letsencrypt/renewal/travelforlocal.com-0001.conf produced an unexpected error: Failed authorization procedure. travelforlocal.com (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://travelforlocal.com/.well-known/acme-challenge/t5Y2GzPXwsslpueiN9HT6JGPDrs_QeOjE4hh6aal4Hg [54.85.16.51]: 404, www.travelforlocal.com (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://www.travelforlocal.com/.well-known/acme-challenge/rP5wqpafEUwCsRKO6ypNKdAZ5vDzIf2bNl4jEvRrejk [54.85.16.51]: 404. Skipping.

It’s a Ubuntu 14.04.3 LTS server, running with NodeJS.
Someone already get this error?


#2

nope probably because you haven’t acutally described your setup

try to explain things

Have you obtaned certificates before if so how did you do it?
Has there been any changes?

The reason why this is failing is because HTTP files aren’t been created

Andrei


#3

Is it possible that you now have a NodeJS server answering all web requests for that domain, and not a server like Apache or Nginx that serves files out of the filesystem? The webroot method that you’re using assumes that it’s been told a place where it can write files to cause those files to be served at a specific location on the web site.

If you were running Apache or something before and then switched to a 100% Node web server after obtaining the certificate, it would no longer be able to create the files to prove your control over the domain for the renewal.


#4

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