Hi,
I just created a new VPS, where I’m trying to restore my virtual servers.
I started out by using CentOS, but I thought there was some issues with Apache, soi swapped it out with Debian 10 - just to be sure that everything was as expected.
But, after trying to restore one of my domains, it failed after the same step.
It’s failing after:
Checking restored PHP execution mode ..
.. mode FCGId OK for this system
The error is:
Restore failed : flush_file_lines called on non-loaded file /etc/apache2/sites-available/mydomain.com.conf
(In CentOS, it just reported problem with the primary /etc/httpd/conf.d/httpd.conf
file, instead)
Here’s the CALL STACK TRACE:
FILE LINE FUNCTION
/usr/share/webmin/web-lib-funcs.pl 3540 WebminCore::error
/usr/share/webmin/virtual-server/feature-web.pl 1710 WebminCore::flush_file_lines
/usr/share/webmin/virtual-server/backups-lib.pl 2829 virtual_server::restore_web
/usr/share/webmin/virtual-server/restore.cgi 355 virtual_server::restore_domains
(eval 76) 6 (eval)
/usr/share/webmin/miniserv.pl 2552 (eval)
/usr/share/webmin/miniserv.pl 1000 miniserv::handle_request
I’ve tried to look in the code-base, but I’m not really sure what to look for: webmin/web-lib-funcs.pl at 35108b2ba4a156ee17dec8a7eaef2728f1f180f2 · webmin/webmin · GitHub
After the error has shown, the restore-process stops.
However, the /etc/apache2/sites-available/mydomain.com.conf
file are created, if I take a look on the server.
It’s working fine with one domain
I’ve tried all the other virtual servers too, but they’re failing - except one.
According to the restore view, here’s the listed restored settings for the working - and failing one.
Here’s the one working just fine:
Virtual server password, description and other details
Administration user's password, quota and Cron jobs
Mail/FTP users and mail aliases
Apache webserver configuration
Webalizer configuration and schedule
Logrotate configuration for log file
Contents of server's MariaDB databases
Spam filtering
Webmin ACL files
Server's home directory and web pages
AWstats configuration file
DAV users file
And here’s an example of the pack if a failing restore:
Virtual server password, description and other details
Administration user's password, quota and Cron jobs
Mail/FTP users and mail aliases
Apache webserver configuration
Webalizer configuration and schedule
Apache SSL webserver configuration and certificate
Logrotate configuration for log file
Contents of server's MariaDB databases
Spam filtering
Webmin ACL files
Server's home directory and web pages
AWstats configuration file
The only thing I can spot, is the Apache SSL webserver configuration and certificate
in the broken one, and DAV users file
in the one working.
My bet it that it’s related to SSL… But… How?
Operating system: Debian 10, fully up-to-date fresh installed including Virtualmin, installed with the recommended script. Installed with no issues.