Virtualmin restore hangs (on "Show what will be restored")

8 posts / 0 new
Last post
#1 Sat, 08/11/2018 - 14:33
Brook

Virtualmin restore hangs (on "Show what will be restored")

The backup and restore feature is one of my most loved features of Virtualmin! It makes moving to a new server super easy. However unfortunately it doesn't seem to be working for me on this latest server.

I've upgraded the old server so it's on the latest webmin/virtualmin, and I'm trying to restore a small 43mb account (it's mainly just a virtualmin account that holds some files) however it just hangs on Show what will be restored.

Looking at the items in top doesn't really suggest anything is happening either.

Any ideas on how to troubleshoot this please?

EDIT:

I wonder if this is a bug? I have created a back up with just the following clicked:

  • Virtual server password, description and other details
  • Administration user's password, quota and Cron jobs
  • Server's home directory and web pages

Still only a 43mb backup, but I get the exact same thing when trying to restore.

EDIT2:

Was getting these errors:

[11/Aug/2018:21:05:23 +0100] miniserv.pl started
[11/Aug/2018:21:05:23 +0100] IPv6 support enabled
[11/Aug/2018:21:05:23 +0100] Using MD5 module Digest::MD5
[11/Aug/2018:21:05:23 +0100] Using SHA512 module Crypt::SHA
[11/Aug/2018:21:05:23 +0100] Perl module Authen::PAM needed for PAM is not installed : Can't locate Authen/PAM.pm in @INC (@INC contains: /usr/libexec/webmin /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at (eval 18) line 1.
BEGIN failed--compilation aborted at (eval 18) line 1.

So installed:

yum install pam-devel yum install perl-Authen-PAM

Which then on reboot showed:

[11/Aug/2018:22:51:15 +0100] miniserv.pl started
[11/Aug/2018:22:51:15 +0100] IPv6 support enabled
[11/Aug/2018:22:51:15 +0100] Using MD5 module Digest::MD5
[11/Aug/2018:22:51:15 +0100] Using SHA512 module Crypt::SHA
[11/Aug/2018:22:51:15 +0100] PAM authentication enabled

However, still getting the same problem.

I don't recall any problems when I installed Virtuamin, so wondering why these dependencies weren't installed..

EDIT3:

I've just reinstalled the OS/Virtualmin but unfortunately I am getting the same thing :-(

The only thing of note in the logs is:

[12/Aug/2018:03:03:14 +0100] [my.ip] /virtual-server/restore.cgi : Timeout : Waited more than 60 seconds for request data Use of uninitialized value $settings{"settings_sysinfo_real_time_statu"...} in string eq at /usr/libexec/webmin/authentic-theme/stats.cgi line 25.

Tue, 12/18/2018 - 09:11
Nico94

Hello all,

I am getting the same problem overhere: trying to restore a backup hangs indefinitely on "Show what will be restored".

I am running Debian 8 an 9 systems and, interestingly enough, it only happens on Debian 9 (everything works fine on Debian 8 servers).

All Webmin/Virtualmin are up to date.

These are scheduled backup / full / through SSH / using strftime-style time substitutions on directory names like "virtualmin_%Y_%m_%d"

Just to make it clear : when I restore a backup on a Debian 8 server, it works like a charm. If I restore the exact same backup on a Debian 9 server, it hangs on "Show what will be restored".

What am I missing?

Tue, 12/18/2018 - 13:44
mvmagalhaes

Hello All and Virtualmin administrators...

I am getting the same problem over here: trying to restore a backup hangs indefinitely on "Show what will be restored".

Please ... help us.

Tue, 12/18/2018 - 14:05
Nico94
Wed, 12/19/2018 - 04:16 (Reply to #4)
mvmagalhaes

thank you. just a question. Where do I find the file restore.cgi to do the fix?

Wed, 12/19/2018 - 04:23 (Reply to #5)
mvmagalhaes

I found .. /usr/libexec/webmin/virtual-server/restore.cgi thanks

Mon, 12/24/2018 - 23:55 (Reply to #6)
keroseno

i found on this path: /usr/share/webmin/virtual-server/restore.cgi

apply the fix:

$sudo nano /usr/share/webmin/virtual-server/restore.cgi and.. change the line 160 (press ctrl+c on nano to see the line) change "$cont" to "%$cont"

Wed, 12/19/2018 - 10:16
applejack

It still doesn't work in Safari which the restore function hasn't for quite sometime.

Topic locked