Backup issues after latest Virtualmin/Webmin update

SYSTEM INFORMATION
Version Usermin 2.400
Version Virtualmin 7.40.0
Version Apache 2.4.65

Hi

Backup issue since the last update of Virtualmin/Webmin and all packages.

Impossible de verrouiller le fichier /etc/webmin/virtual-server/domains/17023522483057 après 5 minutes. La dernière erreur était : Locked by PID 2460443

Impossible de verrouiller le fichier /etc/webmin/virtual-server/domains/17165433421494803 après 5 minutes. La dernière erreur était : Locked by PID 2101936

I tested 2 backups.

That looks like maybe the backup was interrupted. Maybe it was happening while the Webmin package was updated, forcing a restart, which interrupted the previous backup, leaving locks in place?

Just a guess. Are you sure the previous backup isn’t actually still running?

“Maybe it was happening while the Webmin package was updated, forcing a restart, which interrupted the previous backup, leaving locks in place?”

Ah yes, I remember, yes. I had to kill/stop the backup because it was taking 6 hours (as usual), and the Webmin/Virtualmin update was done while the backup was still running.
The backup was stopped to make the update faster.

1 Like

So, you can delete those locks and the failed backup temp files, if any.

In /home/tmp/.webmin ?

(I moved the folder 8 months ago because the /tmp partition is too small.)

I’m not sure where the locks end up, but probably next to the backup tmp files, yes.

Ok, thanks, I’ll test a backup tonight.

No, it failed after 5 minutes.

La sauvegarde a échoué. Voir ci-dessus le compte-rendu pour en déterminer la raison. Temps de sauvegarde totale a été 05 minutes, 03 secondes.

Envoyé par Virtualmin à: https:// :10000

Test de la destination de sauvegarde fichier local /backup/2025-09-09/backup-2025-09-09-20-33-09.tar.gz ..
.. fait!

Impossible de verrouiller le fichier /etc/webmin/virtual-server/domains/170206426837245 après 5 minutes. La dernière erreur était : Locked by PID 2642830

Maybe I should restart the dedicated server ?

Oh no, the backup is still failing. The dedicated server reboot was for nothing. I don’t know how to fix this.

It’s not clear to me whether you were able to locate and delete the lock files?

I don’t know where the lock files are. I deleted the contents of .webmin two or three times, but the lock files aren’t there.
They are probably somewhere else.

Check /var/webmin/locks

Generally, you should stop the webmin service while doing anything behind its back, like removing its lock files.

/var/webmin/locks

The folder is empty when there is no backup in progress.

Backup-related locks are in /var/webmin/modules/virtual-server/backuplocks.

Try running ps aux | grep 2642830 to get more details on the PID and see if it even exists.

Impossible de verrouiller le fichier /etc/webmin/virtual-server/domains/170226820128002 après 5 minutes. La dernière erreur était : Locked by PID 512944

I just typed in the most recent error PID:

ps aux | grep 512944

it doesn’t return any results, other than this:

root 649571 0.0 0.0 6680 2192 pts/1 S+ 14:58 0:00 grep --color=auto 512944

Just now I did this:

sudo systemctl restart webmin

There is a backup in progress at the moment for several hours, I don’t know if it will work

The last backup gave this result:

Impossible de verrouiller le fichier /etc/webmin/virtual-server/domains/17023522483057 après 5 minutes. La dernière erreur était : Locked by PID 771992

debian@ns:~$ ps aux | grep 771992
debian 822615 0.0 0.0 6680 2200 pts/0 S+ 19:08 0:00 grep --color=auto 771992

There is really nothing to do: the "/var/webmin/locks" folder is currently empty (I haven’t deleted anything)
in the folder "/var/webmin/modules/virtual-server/backuplocks" there is this:

Won’t I break anything if I delete all the .lock files?

If a backup is not running it will not break anything.

I removed the .lock files and relaunched the backup.

No, it doesn’t work

Sauvegarde de Virtualmin Échec sur ns.***.com

La sauvegarde a échoué. Voir ci-dessus le compte-rendu pour en déterminer la raison. Temps de sauvegarde totale a été 4 heures, 29:32 minutes.

Dump de la base MariaDB ***** en cours ..
.. fait!

Copie des fichiers de configuration Procmail et SpamAssassin
.. fait!

.. terminé en 3 minutes, 10 secondes

Impossible de verrouiller le fichier /etc/webmin/virtual-server/domains/170226844232803 après 5 minutes. La dernière erreur était : Locked by PID 1133220

It’s since the update of the Webmin and Virtualmin/Webmin packages. I also noticed that the ‘Backup Execution’ section in Virtualmin has a new interface.

The folder is currently empty (/var/webmin/modules/virtual-server/backuplocks), I haven’t touched anything.

I’m running Debian 12.

Without me manually changing anything since the last backup run:

  • The folder is empty: /var/webmin/modules/virtual-server/backuplocks
  • The PID shown in the error doesn’t return anything (since the backup ended with an error).

Do you know if I should delete anything in /etc/webmin/virtual-server/domains?
Do you need the backup configuration from /etc/webmin/virtual-server/backups?

Is there a command to run a backup with full debug output, for example to test it, with details ?