Certbot stop working on Opensuse 15.4

Trying to find the fault. This was working on opensuse 15.4.
using this version /repositories/home:/ecsos - openSUSE Download

Error while running apachectl configtest.

httpd-prefork: Syntax error on line 235 of /etc/apache2/httpd.conf: Syntax error on line 9 of /etc/apache2/vhosts.d/vhost-no-ssl.conf: Could not open configuration file /etc/apache2/vhosts.d/le_http_01_challenge_pre.conf: No such file or directory

Failed to renew certificate [mysite.redirectme.net](http://mysite.redirectme.net) with error: The apache plugin is not working; there may be problems with your existing configuration.
The error was: MisconfigurationError(‘Error while running apachectl configtest.\n\nhttpd-prefork: Syntax error on line 235 of /etc/apache2/httpd.conf: Syntax error on line 9 of /etc/apache2/vhosts.d/vhost-no-ssl.conf: Could not open configuration file /etc/apache2/vhosts.d/le_http_01_challenge_pre.conf: No such file or directory\n’,)

All renewals failed. The following certificates could not be renewed:
/etc/letsencrypt/live/mysite.redirectme.net/fullchain.pem (failure)

vhost-no-ssl.conf

<VirtualHost *:80>
ServerName mysite.redirectme.net
ServerAlias *.mysite.redirectme.net
DocumentRoot “/srv/www/htdocs”
ErrorLog /var/log/apache2/error_log
TransferLog /var/log/apache2/access_log

vhost-ssl.conf

<VirtualHost *:443>
ServerName mysite.redirectme.net
ServerAlias *.mysite.redirectme.net
DocumentRoot “/srv/www/htdocs”
ErrorLog /var/log/apache2/error_log
TransferLog /var/log/apache2/access_log

Include /etc/letsencrypt/options-ssl-apache.conf
    SSLCertificateFile /etc/letsencrypt/live/mysite.redirectme.net/fullchain.pem
    SSLCertificateKeyFile /etc/letsencrypt/live/mysite.redirectme.net/privkey.pem
</VirtualHost>

Hi @thomasrich007, and welcome to the LE community forum :slight_smile:

Please show both lines.

Until then, try changing both instances of:
DocumentRoot “/srv/www/htdocs”
To:
DocumentRoot /srv/www/htdocs

3 Likes

Thank you.
It's working.

Python 3.6 support will be dropped in the next release of Certbot - please upgrade your Python version.


Processing /etc/letsencrypt/renewal/mysite.redirectme.net.conf


All simulated renewals failed. The following certificates could not be renewed:
/etc/letsencrypt/live/mysite.redirectme.net/fullchain.pem (failure)


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

Did you miss the error opening /etc/apache2/vhosts.d/le_http_01_challenge_pre.conf, or did you think it was not relevant due to those other two lines?

3 Likes

One problem at a time - LOL

4 Likes

LOL. I thought you had some extra insight into those other two lines that I could learn from!

3 Likes

image

image

As you can see I've left out the #Include /etc/apache2/vhosts.d/le_http_01_challenge_pre.conf

Does that path exist?:
ls -l /etc/apache2/vhosts.d/

3 Likes

YES it does

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