Can't restore virtual servers : Error: flush_file_lines called on non-loaded file /etc/apache2/sites-available/mydomain.com.conf

Operating system: Debian
OS version: 10

Hi guys, I had a crash on my debian 10 server.

I quickly set up another one, and tried to make a restore from my old but have an error message and am pretty stucked.

Please help

Here’s the full log :

Checking for errors in backup …
… no errors found

Starting restore…
Extracting backup archive files …
… done

Re-creating virtual server mydomain.com
Creating administration group maziar …
… done

Creating administration user maziar ..
.. done

Creating aliases for administration user ..
.. done

Adding administration user to groups ..
.. done

Creating home directory ..
.. done

Creating mailbox for administration user ..
.. done

Adding new DNS zone ..
.. done

Adding new virtual website ..
.. done

Adding webserver user www-data to server's group ..
.. done

Performing other Apache configuration ..
.. done

Creating SSL certificate and private key ..
.. done

Adding new SSL virtual website ..
.. done

Setting up log file rotation ..
.. done

Creating MySQL login ..
.. done

Creating MySQL database maziar ..
.. done

Saving server details ..
.. done

Re-starting DNS server ..
.. done

Applying web server configuration ..
.. done

Restoring backup for virtual server mydomain.com
Restoring virtual server password, quota and other details …
… done

Updating administration password and quotas ..
.. done

Restoring Cron jobs ..
.. done

Extracting TAR file of home directory ..
.. done

Setting ownership of home directory ..
.. done

Re-creating records in DNS domain ..
.. done

Restoring Apache virtual host configuration ..
.. done

Checking restored PHP execution mode ..
.. mode FPM OK for this system

Error: flush_file_lines called on non-loaded file /etc/apache2/sites-available/mydomain.com.conf
Error

flush_file_lines called on non-loaded file /etc/apache2/sites-available/mydomain.com.conf

Virtualmin version:
6.15
Webmin version:
1.973

Hi,

Thanks for contacting us.

You are right, that was a bug and it will be fixed shortly in upcoming Virtualmin release.

Meanwhile, as this patch very simple, you could apply it manually and restart Webmin with /etc/webmin/restart command.

3 Likes

[edit]
ok just found the file in /usr/share/webmin/virtual-server and edited it
[/edit]

Hi,
Many thanks for your reply, and sorry I just saw issue was raised before.

Sorry for the question but could you explain how to apply the patch?

Many thanks

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