Submitted by rogeriobrito on Wed, 03/18/2015 - 19:04
Hello,
I've just installed Virtualmin on a fresh Centos 7 Official AMI. The installation completed successfully.
Now I need to restore a Virtualmin Backup from a S3 Bucket. When I click "Show what will be restored" I get the following error:
Error - Perl execution failed File does not exist: LWP will support https URLs if the LWP::Protocol::https module is installed. at S3/ListBucketResponse.pm line 26.
Please check it - Thanks
Status:
Closed (fixed)
Comments
Submitted by JamieCameron on Wed, 03/18/2015 - 21:37 Comment #1
Looks like you're missing a Perl module - try running :
perl -MCPAN -e 'install LWP::Protocol::https'
Submitted by rogeriobrito on Thu, 03/19/2015 - 09:07 Comment #2
Hi Jamie, I got another error:
Submitted by andreychek on Thu, 03/19/2015 - 09:21 Comment #3
It looks like CPAN is missing too... try installing it with this command:
yum install perl-CPAN
Submitted by rogeriobrito on Thu, 03/19/2015 - 10:03 Comment #4
Hi Jamie,
I've installed perl-CPAM successfully, and then I got other erros running "perl -MCPAN -e 'install LWP::Protocol::https' ", please see bellow:
I've used the default options.
Submitted by andreychek on Thu, 03/19/2015 - 10:23 Comment #5
Hmm, it looks like some of these Perl tools are trickier to get working on CentOS 7 than other distros, we'll look into that deeper so that this works out of the box in the future.
Doing some additional testing, I was able to resolve the issue you're seeing by running this command:
yum install perl-local-lib
Once I ran that, I was then able to successfully run this:
perl -MCPAN -e 'install LWP::Protocol::https'
Let us know if that allows you to restore your backup at Amazon S3.
Submitted by rogeriobrito on Thu, 03/19/2015 - 11:13 Comment #6
Hi Jamie,
Now it installed successfully, but I still can't restore the backup: I've even restarted the server to see if it would make any difference, but no change. I get the following message:
I'm pretty sure the file and path do exist... I'm copying it from S3. All traffic on port 443 (in/out) is enabled on the instance Security Group...
What can I do now? Thanks
Submitted by JamieCameron on Thu, 03/19/2015 - 18:55 Comment #7
BTW, it looks like this Perl module could also be installed from the
perl-LWP-Protocol-https
RPM package.We should add that as an optional dependency at install time.
Submitted by andreychek on Thu, 03/19/2015 - 22:21 Comment #8
Thanks Jamie, I'm looking into adding that dependency to the installer.
Submitted by rogeriobrito on Wed, 03/25/2015 - 16:46 Comment #9
Guys, I was able to restore the backup downloading the file and restoring from the command line. But today I've tried to do a backup to amazon S3, and it also does not work. I got the message:
The backup to S3 is essential for me, can you please check it?
Thanks
Submitted by JamieCameron on Wed, 03/25/2015 - 23:18 Comment #10
That looks like the same missing Perl module error. Did you try running
yum install perl-LWP-Protocol-https
?Submitted by rogeriobrito on Thu, 03/26/2015 - 08:43 Comment #11
Hi Jamie,
Yes, running "yum install perl-LWP-Protocol-https" did solve the problem.
Thank you very much, []s
Submitted by rogeriobrito on Sat, 03/28/2015 - 11:29 Comment #12
Hello Jamie,
The problem was solved on an new Virtualmin Install... the VM that I used on this threat still does not work. When I try to access anything on Amazon S3 (backup/restore/list buckets) I get the following:
How do I fix it? Thanks
Submitted by JamieCameron on Sat, 03/28/2015 - 18:59 Comment #13
That looks like a different issue - a network problem connecting to s3.amazonaws.com on port 443.
On your system, try running
telnet s3.amazonaws.com 443
and let us know what it outputs.Submitted by rogeriobrito on Mon, 03/30/2015 - 09:29 Comment #14
Hi Jamie, it connected successfully with telnet:
Thanks
Submitted by JamieCameron on Mon, 03/30/2015 - 22:16 Comment #15
So, in Virtualmin 4.16 we are going to completely work around this problem (and other S3 issues) by using Amazon's
aws
shell command to perform all remote operations. See http://aws.amazon.com/cli/ for information on how to install it.Submitted by rogeriobrito on Tue, 03/31/2015 - 18:15 Comment #16
Ok, I'll wait for the fix. Meanwhile I'm using S3FS to save the backup locally to S3 bucket.
Thanks
Submitted by andreychek on Tue, 03/31/2015 - 18:26 Comment #17
Virtualmin 4.16 came out last night -- feel free to give it a try and let us know if that resolve your issue.
Submitted by rogeriobrito on Tue, 03/31/2015 - 18:42 Comment #18
Hi Andrey,
I just checked and I already have the latest version. I updated everything a few hours ago, now I'm runinng CentOS 7.1. Now I can list my bucktes on amazon S3, but when I try to backup I get the same error:
Thanks
Submitted by JamieCameron on Tue, 03/31/2015 - 18:57 Comment #19
Did you follow the install instructions at http://aws.amazon.com/cli/
Submitted by rogeriobrito on Thu, 04/02/2015 - 15:31 Comment #20
Hi Jamie,
Yes, I had followed the instructions to install aws cli, but I did not configure it. I did it now, and I can access the buckets from the command line:
But the backup to S3 still does not work. I get:
Thanks
Submitted by JamieCameron on Thu, 04/02/2015 - 19:09 Comment #21
It looks like Virtualmin may not be using the
aws
command at all. Which directory is it installed into?Submitted by rogeriobrito on Tue, 04/07/2015 - 10:32 Comment #22
Hi Jamie, here is the location
What's odd is that the schedule backup works! But when I open the schedule and click Backup Now it does not work.
Thanks
Submitted by JamieCameron on Tue, 04/07/2015 - 13:47 Comment #23
Try running
/etc/webmin/restart
to restart the Webmin server process, to ensure it is running the latest version..Submitted by rogeriobrito on Thu, 04/09/2015 - 13:16 Comment #24
Hi Jamie I've tried but still does not work. The Schedule backup is still working, good enough for me. Thank you