Bug after upgrade ubuntu 20.04 to 22.04 not exist or empty certificate

Hello everyone,
I allow myself to post because I have just updated Ubuntu 20.04 to 22.04 and on my sites I get a "Service Unavailable

The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
" after some searching and running the command "

sudo apache2ctl -t && apache2ctl graceful

"this command returns:
"Syntax OK
AH00526: Syntax error on line 38 of /etc/apache2/sites-enabled/000-obierti-le-ssl.conf:
SSLCertificateFile: file '/etc/letsencrypt/live/obierti.com/fullchain.pem' does not exist or is empty
Action 'graceful' failed.
The Apache error log may have more information."

but the file exists and it is not null.
Can you tell me how to correct my error please?

Hi @sebastien31t,

In the command

sudo apache2ctl -t && apache2ctl graceful

the sudo only applies to the apache2ctl -t, not to the apache2ctl graceful. (This is because the && is processed by your user shell, treating these as two separate shell commands.)

To have sudo apply to both (which is necessary here), you need

sudo apache2ctl -t && sudo apache2ctl graceful

This may not fix all of your problems, but it will help you get further than you have gotten so far, and get rid of the specific error message that you encountered.


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