HI, I’m trying to renew my Let’s Encrypt certificate and it’s giving me an error
PluginError((‘There has been an error in parsing the file (%s): %s’, u’/etc/apache2/sites-available/000-default.conf.save’, u'Syntax error’),). Skipping.

Screenshot- Click Here

Please help me my certificate is going to expire in few hours and I’ve spent all day to find the solution.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
2 answers

What files are located in /etc/apache2/sites-available/

The presence of a .save file makes me think that you may have used an editor to modify your 000-default.conf file which created a backup (as the .save).

If the configuration in your 000-default.conf file looks correct you should be able to safely delete (or move somewhere else) the 000-default.conf.save file and try the renewal again.

FInally, after two hours of struggle, I landed on this page and this was the exact problem.
Just deleted the .saved file and the renewal worked.

Submit an Answer