Random issues whit certbot renewal


#1

Hi.

I have issues whit Certbot renewals. Mostly Certbot fails to renew certificates that I have, but it is random. My domains have random error on renewal. i have noticed that it started after i changes servers ISP, but that could be coincidence. What could be an issue? All domains have A records setup.

Log:


Processing /etc/letsencrypt/renewal/phpmyadmin.harijs.id.lv.conf


Cert not due for renewal, but simulating renewal for dry run
Plugins selected: Authenticator apache, Installer apache
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for phpmyadmin.harijs.id.lv
Waiting for verification…
Cleaning up challenges
Attempting to renew cert (phpmyadmin.harijs.id.lv) from /etc/letsencrypt/renewal/phpmyadmin.harijs.id.lv.conf produced an unexpected error: Failed authorization procedure. phpmyadmin.harijs.id.lv (http-01): urn:ietf:params:acme:error:dns :: DNS problem: NXDOMAIN looking up A for phpmyadmin.harijs.id.lv. Skipping.


Processing /etc/letsencrypt/renewal/cloud.harijs.id.lv.conf


Cert not due for renewal, but simulating renewal for dry run
Plugins selected: Authenticator webroot, Installer apache
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for cloud.harijs.id.lv
Waiting for verification…
Cleaning up challenges
Attempting to renew cert (cloud.harijs.id.lv) from /etc/letsencrypt/renewal/cloud.harijs.id.lv.conf produced an unexpected error: Failed authorization procedure. cloud.harijs.id.lv (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://cloud.harijs.id.lv/.well-known/acme-challenge/5D-lKq1zJFvWa27xtGUHYOy8dI5OLzpO92YJ2eSlc74: "\n<html class=“ng-csp” data-placeholder-focus=“false” lang=“en” data-locale=“en” >\n\t<head data-requesttoken=“IDu70”. Skipping.


Processing /etc/letsencrypt/renewal/liepajnieks.lv.conf


Cert not due for renewal, but simulating renewal for dry run
Plugins selected: Authenticator apache, Installer apache
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for www.liepajnieks.lv
http-01 challenge for liepajnieks.lv
Waiting for verification…
Cleaning up challenges


new certificate deployed with reload of apache server; fullchain is
/etc/letsencrypt/live/liepajnieks.lv/fullchain.pem



Processing /etc/letsencrypt/renewal/office.harijs.id.lv.conf


Cert not due for renewal, but simulating renewal for dry run
Plugins selected: Authenticator apache, Installer apache
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for office.harijs.id.lv
Waiting for verification…
Cleaning up challenges


new certificate deployed with reload of apache server; fullchain is
/etc/letsencrypt/live/office.harijs.id.lv/fullchain.pem



Processing /etc/letsencrypt/renewal/mail.liepajnieks.lv.conf


Cert not due for renewal, but simulating renewal for dry run
Plugins selected: Authenticator apache, Installer apache
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for mail.liepajnieks.lv
http-01 challenge for mail.liepajniece.lv
Waiting for verification…
Cleaning up challenges


new certificate deployed with reload of apache server; fullchain is
/etc/letsencrypt/live/mail.liepajnieks.lv/fullchain.pem



Processing /etc/letsencrypt/renewal/ff.liepajnieks.lv.conf


Cert not due for renewal, but simulating renewal for dry run
Plugins selected: Authenticator apache, Installer apache
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for ff.liepajnieks.lv
Waiting for verification…
Cleaning up challenges


new certificate deployed with reload of apache server; fullchain is
/etc/letsencrypt/live/ff.liepajnieks.lv/fullchain.pem



Processing /etc/letsencrypt/renewal/test.harijs.id.lv.conf


Cert not due for renewal, but simulating renewal for dry run
Plugins selected: Authenticator webroot, Installer apache
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for test.harijs.id.lv
Waiting for verification…
Cleaning up challenges
Attempting to renew cert (test.harijs.id.lv) from /etc/letsencrypt/renewal/test.harijs.id.lv.conf produced an unexpected error: Failed authorization procedure. test.harijs.id.lv (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://test.harijs.id.lv/.well-known/acme-challenge/Rd6i7N77kf9G1nUZixYWLSjZBgdKvHWw8EKNmx3sFks: “\n\n404 Not Found\n\n

Not Found

\n<p”. Skipping.

Processing /etc/letsencrypt/renewal/pasts.liepajnieks.lv.conf


Cert not due for renewal, but simulating renewal for dry run
Plugins selected: Authenticator apache, Installer apache
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for pasts.liepajnieks.lv
Waiting for verification…
Cleaning up challenges


new certificate deployed with reload of apache server; fullchain is
/etc/letsencrypt/live/pasts.liepajnieks.lv/fullchain.pem


The following certs could not be renewed:
/etc/letsencrypt/live/phpmyadmin.harijs.id.lv/fullchain.pem (failure)
/etc/letsencrypt/live/cloud.harijs.id.lv/fullchain.pem (failure)
/etc/letsencrypt/live/test.harijs.id.lv/fullchain.pem (failure)


** DRY RUN: simulating ‘certbot renew’ close to cert expiry
** (The test certificates below have not been saved.)

The following certs were successfully renewed:
/etc/letsencrypt/live/liepajnieks.lv/fullchain.pem (success)
/etc/letsencrypt/live/office.harijs.id.lv/fullchain.pem (success)
/etc/letsencrypt/live/mail.liepajnieks.lv/fullchain.pem (success)
/etc/letsencrypt/live/ff.liepajnieks.lv/fullchain.pem (success)
/etc/letsencrypt/live/pasts.liepajnieks.lv/fullchain.pem (success)

The following certs could not be renewed:
/etc/letsencrypt/live/phpmyadmin.harijs.id.lv/fullchain.pem (failure)
/etc/letsencrypt/live/cloud.harijs.id.lv/fullchain.pem (failure)
/etc/letsencrypt/live/test.harijs.id.lv/fullchain.pem (failure)
** DRY RUN: simulating ‘certbot renew’ close to cert expiry
** (The test certificates above have not been saved.)


3 renew failure(s), 0 parse failure(s)

IMPORTANT NOTES:

  • The following errors were reported by the server:

    Domain: cloud.harijs.id.lv
    Type: unauthorized
    Detail: Invalid response from
    http://cloud.harijs.id.lv/.well-known/acme-challenge/5D-lKq1zJFvWa27xtGUHYOy8dI5OLzpO92YJ2eSlc74:
    "\n<html class=“ng-csp”
    data-placeholder-focus=“false” lang=“en” data-locale=“en”

    \n\t<head data-requesttoken=“IDu70”

    To fix these errors, please make sure that your domain name was
    entered correctly and the DNS A/AAAA record(s) for that domain
    contain(s) the right IP address.

  • The following errors were reported by the server:

    Domain: phpmyadmin.harijs.id.lv
    Type: None
    Detail: DNS problem: NXDOMAIN looking up A for
    phpmyadmin.harijs.id.lv

  • The following errors were reported by the server:

    Domain: test.harijs.id.lv
    Type: unauthorized
    Detail: Invalid response from
    http://test.harijs.id.lv/.well-known/acme-challenge/Rd6i7N77kf9G1nUZixYWLSjZBgdKvHWw8EKNmx3sFks:
    “\n\n404 Not
    Found\n\n

    Not Found

    \n<p”

    To fix these errors, please make sure that your domain name was
    entered correctly and the DNS A/AAAA record(s) for that domain
    contain(s) the right IP address.


#2

Hi @maigonis

checking this domain, there is a wrong redirect of the /.well-known/acme-challenge - subdirectory (via https://check-your-website.server-daten.de/?q=cloud.harijs.id.lv ):



The redirect http -> https is ok. But then there is a redirect with a login page as result. That can’t work.

The phpmyadmin.harijs.id.lv isn’t defined, no name server entry, no ip address.

Host T IP-Address is auth. ∑ Queries ∑ Timeout
phpmyadmin.harijs.id.lv Name Error yes 1 0
www.phpmyadmin.harijs.id.lv Name Error yes 1 0

#3

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