Sites-enabled/anydomain.com.conf file error after Debian and Virtualmin and Webmin update

SYSTEM INFORMATION
OS type and version Debian 12.12
Virtualmin version 7.40.0

I applied the latest updates this morning to several Debian 12 systems which included to Debian, Webmin and Virtualmin. I rebooted each as there was an updated Linux image.

Shortly after, I moved a Virtualmin site backup from one box to another using:
Virtualmin > Backup & Restore > Restore Virtual Servers

These usually happen without any issues. However, after the restore, I was presented with this Apache configuration error on the dashboard:

Warning!
The Apache configuration on your system has errors! This will prevent any new domains from being fully added by Virtualmin until the errors are fixed.

AH00526: Syntax error on line 78 of /etc/apache2/sites-enabled/anydomain.com.conf:
SSLCACertificateFile: file ‘/etc/ssl/virtualmin/17558032612771173/ssl.ca’ does not exist or is empty
Action ‘configtest’ failed.
The Apache error log may have more information.

I tried the restore onto a second box to see if it was unique to one but it happened identically on two separate boxes that had been updated.

I then ran:
Virtualmin > System Settings > Re-Check Configuration
and it continued to display the error.

I then changed the DNS and waited about a half hour after changing it and was able to generate a new certificate. I then re-ran:
Virtualmin > System Settings > Re-Check Configuration
and it appeared to clear the error.

Normally, when moving a site between servers I use my workstation’s hosts file to point the workstation at the new DNS location in order to test the site before committing the DNS to the new location. There was never an issue like this displayed before today. I noted that the SSL certificate did not indicate it needed redoing in the Virtualmin SSL interface before I redid the SSL.

Has anyone else experienced this?

I have the exact same problem after I transfer a server. It’s been happening since the past few days. Still looking for the solution.

I can delete the offending line and I did. The error message then went away. But I need to fix the root of the problem. I have many sites I need to transfer. So many nights just wasted.

AH00526: Syntax error on line 74 of /etc/apache2/sites-enabled/example.com.conf:
SSLCACertificateFile: file ‘/etc/ssl/virtualmin/169133753040921/ssl.ca’ does not exist or is empty
Action ‘configtest’ failed.
The Apache error log may have more information.

When I run ‘configtest’ in the terminal, it shows syntax OK

What is one to make out of this?

This is a well-known bug that has already been fixed and will be included in the Virtualmin 7.50.0 release.

In the meantime, you can apply the following patch to prevent this error from happening upon future backup restores.

webmin patch https://github.com/virtualmin/virtualmin-gpl/commit/868c2ca

Thank you. I have applied the patch. Everything works well now.

1 Like

Does the patch need to be on both the target and the sending system? I have 2 systems, both 7.40.1 pro and put the patch on the target. Is that ok, or put it on both?

It’s fine to put it on both.