The error was: PluginError('There has been an error in parsing the file /etc/httpd/conf/httpd.conf on line 422: Syntax error',)

OK, I see the difference [now - my bad].

Let's focus on the error.

What shows?:
certbot certificates

and the log file:
cat /var/log/letsencrypt/letsencrypt.log

5 Likes

letsencrypt.log.txt (20.6 KB)

/var/log/letsencrypt/letsencrypt.log

Here it is

I just looked at the uploaded file from post #7 and it has 422 lines in it. This is a few more than appeared in the post prior to when Rudy counted them.

The last 2 are blank lines. The parse error is for line 422. Is it possible you have some non-printable chars at the end that also got stripped off in your conversion to a .txt to upload?

6 Likes

It does not look like that to me. I was concerned about that during the beginning of this and created a new line at the end of the file and the error message changed from 421 to 422. Here is the octal code for the end of the file

162 155 056 167 167 167 055 154 145 055 163 163 154 056 143 157 156 146 012 012

As you can see there are two line feed values at the end of file which is appropriate.
The above octal values represent the following ASCII characters

rm.www-le-ssl.conf..

1 Like

Found the following certs:
Certificate Name: www.eccare.com
Serial Number: 4517173ae7f4430bf122467112f62105960
Key Type: RSA
Domains: www.eccare.com
Expiry Date: 2022-07-08 23:41:09+00:00 (INVALID: EXPIRED)
Certificate Path: /etc/letsencrypt/live/www.eccare.com/fullchain.pem
Private Key Path: /etc/letsencrypt/live/www.eccare.com/privkey.pem
Certificate Name: www.ennform.com
Serial Number: 4529d85c378101787a6d3f8c2d5fe39c568
Key Type: RSA
Domains: www.ennform.com
Expiry Date: 2022-07-09 17:13:54+00:00 (INVALID: EXPIRED)
Certificate Path: /etc/letsencrypt/live/www.ennform.com/fullchain.pem
Private Key Path: /etc/letsencrypt/live/www.ennform.com/privkey.pem
Certificate Name: www.neuthesis.com-0001
Serial Number: 390cd6e212d57632fb7b317e8e85dbe45c1
Key Type: RSA
Domains: www.neuthesis.com
Expiry Date: 2022-07-09 00:46:39+00:00 (INVALID: EXPIRED)
Certificate Path: /etc/letsencrypt/live/www.neuthesis.com-0001/fullchain.pem
Private Key Path: /etc/letsencrypt/live/www.neuthesis.com-0001/privkey.pem
Certificate Name: www.neuthesis.com
Serial Number: 3b996d1614b1a58122259cba19f3d774a53
Key Type: RSA
Domains: www.neuthesis.com www.pomec.net
Expiry Date: 2022-07-08 23:42:02+00:00 (INVALID: EXPIRED)
Certificate Path: /etc/letsencrypt/live/www.neuthesis.com/fullchain.pem
Private Key Path: /etc/letsencrypt/live/www.neuthesis.com/privkey.pem
Certificate Name: www.pomec.net
Serial Number: 46318c9ff66b72209d01428ca8a52269ffa
Key Type: RSA
Domains: www.pomec.net
Expiry Date: 2022-07-09 00:10:05+00:00 (INVALID: EXPIRED)
Certificate Path: /etc/letsencrypt/live/www.pomec.net/fullchain.pem
Private Key Path: /etc/letsencrypt/live/www.pomec.net/privkey.pem
Certificate Name: www.professionalexamservices.com
Serial Number: 4df26327d40178ec7b763195510780acae8
Key Type: RSA
Domains: www.professionalexamservices.com
Expiry Date: 2022-07-09 17:13:03+00:00 (INVALID: EXPIRED)
Certificate Path: /etc/letsencrypt/live/www.professionalexamservices.com/fullchain.pem
Private Key Path: /etc/letsencrypt/live/www.professionalexamservices.com/privkey.pem


That's helpful to know the line number changed. Indicates likely a parse error in the main file rather than one of the includes.

The only other thing I noticed was a missing close to an <IfModule>. They can be nested but I never saw the matching close for both of these. Might explain why the last line is reported as failing if still looking for terminator. Simple fix to try anyway.

<IfModule alias_module>

Alias /usage.ennform/ "/var/www/usage/ennform/"
<Directory "/var/www/usage/ennform">
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    # For some reason the network range would not work
    Allow from All
    #Allow from 10.0.0.0/24 10.0.1.0/24 10.0.2.0/24
</Directory>

<IfModule alias_module>
6 Likes

That was the problem -
Congratulations, all renewals succeeded:
/etc/letsencrypt/live/www.eccare.com/fullchain.pem (success)
/etc/letsencrypt/live/www.ennform.com/fullchain.pem (success)
/etc/letsencrypt/live/www.neuthesis.com-0001/fullchain.pem (success)
/etc/letsencrypt/live/www.neuthesis.com/fullchain.pem (success)
/etc/letsencrypt/live/www.pomec.net/fullchain.pem (success)
/etc/letsencrypt/live/www.professionalexamservices.com/fullchain.pem (success)

I don't think I would have ever found the problem ... Congratulations and BIG Kudoo's
Thank you again, both of you for your help!!!!!
Greg Ennis

3 Likes

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