Restore from Amazon S3 Bucket fails on fresh Centos 7 Ami

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

Looks like you're missing a Perl module - try running :

perl -MCPAN -e 'install LWP::Protocol::https'

Hi Jamie, I got another error:

[root@ip-172-30-0-122 ~]# perl -MCPAN -e 'install LWP::Protocol::https'
Can't locate CPAN.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .).
BEGIN failed--compilation aborted.
[root@ip-172-30-0-122 ~]# 

It looks like CPAN is missing too... try installing it with this command:

yum install perl-CPAN

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.

[root@ip-172-30-0-122 ~]# perl -MCPAN -e 'install LWP::Protocol::https'
 
CPAN.pm requires configuration, but most of it can be done automatically.
If you answer 'no' below, you will enter an interactive dialog for each
configuration option instead.
 
Would you like to configure as much as possible automatically? [yes] 
 
 <install_help>
 
Warning: You do not have write permission for Perl library directories.
 
To install modules, you need to configure a local Perl library directory or
escalate your privileges.  CPAN can help you by bootstrapping the local::lib
module or by configuring itself to use 'sudo' (if available).  You may also
resolve this problem manually if you need to customize your setup.
 
What approach do you want?  (Choose 'local::lib', 'sudo' or 'manual')
 [local::lib] 
 
Autoconfigured everything but 'urllist'.
 
Now you need to choose your CPAN mirror sites.  You can let me
pick mirrors for you, you can select them from a list or you
can enter them by hand.
 
Would you like me to automatically choose some CPAN mirror
sites for you? (This means connecting to the Internet) [yes] 
Trying to fetch a mirror list from the Internet
Fetching with LWP:
http://www.perl.org/CPAN/MIRRORED.BY
 
Looking for CPAN mirrors near you (please be patient)
........................... done!
 
New urllist
  http://mirror.nyi.net/pub/CPAN/
  http://metatraderprogramming.com/cpan/
  http://httpupdate1.cpanel.net/CPAN/
 
Autoconfiguration complete.
 
Attempting to bootstrap local::lib...
 
Writing /root/.cpan/CPAN/MyConfig.pm for bootstrap...
commit: wrote '/root/.cpan/CPAN/MyConfig.pm'
Fetching with LWP:
http://mirror.nyi.net/pub/CPAN/authors/01mailrc.txt.gz
Reading '/root/.cpan/sources/authors/01mailrc.txt.gz'
............................................................................DONE
Fetching with LWP:
http://mirror.nyi.net/pub/CPAN/modules/02packages.details.txt.gz
Reading '/root/.cpan/sources/modules/02packages.details.txt.gz'
  Database was generated on Thu, 19 Mar 2015 10:53:16 GMT
..............
  New CPAN.pm version (v2.10) available.
  [Currently running version is v1.9800]
  You might want to try
    install CPAN
    reload cpan
  to both upgrade CPAN.pm and run the new version without leaving
  the current session.
 
 
..............................................................DONE
Fetching with LWP:
http://mirror.nyi.net/pub/CPAN/modules/03modlist.data.gz
Reading '/root/.cpan/sources/modules/03modlist.data.gz'
DONE
Writing /root/.cpan/Metadata
Running make for H/HA/HAARG/local-lib-2.000015.tar.gz
Fetching with LWP:
http://mirror.nyi.net/pub/CPAN/authors/id/H/HA/HAARG/local-lib-2.000015.tar.gz
Fetching with LWP:
http://mirror.nyi.net/pub/CPAN/authors/id/H/HA/HAARG/CHECKSUMS
Checksum for /root/.cpan/sources/authors/id/H/HA/HAARG/local-lib-2.000015.tar.gz ok
 
  CPAN.pm: Building H/HA/HAARG/local-lib-2.000015.tar.gz
 
Attempting to create directory /root/perl5
 
Dispatching deprecated method 'CPAN::Config::load' to CPAN::HandleConfig
 
Reading '/root/.cpan/Metadata'
  Database was generated on Thu, 19 Mar 2015 10:53:16 GMT
Running install for module 'ExtUtils::MakeMaker'
Running make for B/BI/BINGOS/ExtUtils-MakeMaker-7.04.tar.gz
Fetching with LWP:
http://mirror.nyi.net/pub/CPAN/authors/id/B/BI/BINGOS/ExtUtils-MakeMaker-7.04.tar.gz
Fetching with LWP:
http://mirror.nyi.net/pub/CPAN/authors/id/B/BI/BINGOS/CHECKSUMS
Checksum for /root/.cpan/sources/authors/id/B/BI/BINGOS/ExtUtils-MakeMaker-7.04.tar.gz ok
 
  CPAN.pm: Building B/BI/BINGOS/ExtUtils-MakeMaker-7.04.tar.gz
 
Using included version of CPAN::Meta (2.120351) because it is not already installed.
Using included version of Parse::CPAN::Meta (1.4405) because it is not already installed.
Using included version of CPAN::Meta::YAML (0.008) because it is not already installed.
Using included version of ExtUtils::Manifest (1.65) as it is newer than the installed version (1.61).
Using included version of JSON::PP (2.27203) because it is not already installed.
Using included version of CPAN::Meta::Requirements (2.127) because it is not already installed.
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for ExtUtils::MakeMaker
Writing MYMETA.yml and MYMETA.json
Could not read metadata file. Falling back to other methods to determine prerequisites
cp inc/ExtUtils/Manifest.pm blib/lib/ExtUtils/Manifest.pm
cp lib/ExtUtils/MM_VOS.pm blib/lib/ExtUtils/MM_VOS.pm
cp lib/ExtUtils/MakeMaker/version/regex.pm blib/lib/ExtUtils/MakeMaker/version/regex.pm
cp lib/ExtUtils/MM.pm blib/lib/ExtUtils/MM.pm
cp inc/JSON/PP.pm blib/lib/JSON/PP.pm
cp lib/ExtUtils/MM_UWIN.pm blib/lib/ExtUtils/MM_UWIN.pm
cp lib/ExtUtils/MM_DOS.pm blib/lib/ExtUtils/MM_DOS.pm
cp lib/ExtUtils/MM_Cygwin.pm blib/lib/ExtUtils/MM_Cygwin.pm
cp lib/ExtUtils/MM_Win95.pm blib/lib/ExtUtils/MM_Win95.pm
cp lib/ExtUtils/Liblist.pm blib/lib/ExtUtils/Liblist.pm
cp lib/ExtUtils/MM_Darwin.pm blib/lib/ExtUtils/MM_Darwin.pm
cp lib/ExtUtils/MM_AIX.pm blib/lib/ExtUtils/MM_AIX.pm
cp inc/CPAN/Meta/Requirements.pm blib/lib/CPAN/Meta/Requirements.pm
cp lib/ExtUtils/Mkbootstrap.pm blib/lib/ExtUtils/Mkbootstrap.pm
cp lib/ExtUtils/Liblist/Kid.pm blib/lib/ExtUtils/Liblist/Kid.pm
cp lib/ExtUtils/MakeMaker/FAQ.pod blib/lib/ExtUtils/MakeMaker/FAQ.pod
cp inc/ExtUtils/MANIFEST.SKIP blib/lib/ExtUtils/MANIFEST.SKIP
cp lib/ExtUtils/MM_NW5.pm blib/lib/ExtUtils/MM_NW5.pm
cp lib/ExtUtils/MakeMaker/version/vpp.pm blib/lib/ExtUtils/MakeMaker/version/vpp.pm
cp lib/ExtUtils/MakeMaker/Locale.pm blib/lib/ExtUtils/MakeMaker/Locale.pm
cp lib/ExtUtils/MakeMaker.pm blib/lib/ExtUtils/MakeMaker.pm
cp lib/ExtUtils/MM_OS2.pm blib/lib/ExtUtils/MM_OS2.pm
cp inc/CPAN/Meta/Feature.pm blib/lib/CPAN/Meta/Feature.pm
cp lib/ExtUtils/MM_Unix.pm blib/lib/ExtUtils/MM_Unix.pm
cp lib/ExtUtils/MM_Win32.pm blib/lib/ExtUtils/MM_Win32.pm
cp inc/JSON/PP/Boolean.pm blib/lib/JSON/PP/Boolean.pm
cp inc/CPAN/Meta/Spec.pm blib/lib/CPAN/Meta/Spec.pm
cp inc/CPAN/Meta/History.pm blib/lib/CPAN/Meta/History.pm
cp lib/ExtUtils/MY.pm blib/lib/ExtUtils/MY.pm
cp lib/ExtUtils/MM_MacOS.pm blib/lib/ExtUtils/MM_MacOS.pm
cp lib/ExtUtils/MM_VMS.pm blib/lib/ExtUtils/MM_VMS.pm
cp lib/ExtUtils/MM_BeOS.pm blib/lib/ExtUtils/MM_BeOS.pm
cp lib/ExtUtils/MakeMaker/Tutorial.pod blib/lib/ExtUtils/MakeMaker/Tutorial.pod
cp inc/CPAN/Meta/YAML.pm blib/lib/CPAN/Meta/YAML.pm
cp lib/ExtUtils/MM_QNX.pm blib/lib/ExtUtils/MM_QNX.pm
cp inc/CPAN/Meta/Converter.pm blib/lib/CPAN/Meta/Converter.pm
cp lib/ExtUtils/Command/MM.pm blib/lib/ExtUtils/Command/MM.pm
cp lib/ExtUtils/MakeMaker/Config.pm blib/lib/ExtUtils/MakeMaker/Config.pm
cp inc/CPAN/Meta.pm blib/lib/CPAN/Meta.pm
cp inc/Parse/CPAN/Meta.pm blib/lib/Parse/CPAN/Meta.pm
cp inc/CPAN/Meta/Prereqs.pm blib/lib/CPAN/Meta/Prereqs.pm
cp inc/CPAN/Meta/Validator.pm blib/lib/CPAN/Meta/Validator.pm
cp lib/ExtUtils/MakeMaker/version.pm blib/lib/ExtUtils/MakeMaker/version.pm
cp lib/ExtUtils/MM_Any.pm blib/lib/ExtUtils/MM_Any.pm
cp lib/ExtUtils/testlib.pm blib/lib/ExtUtils/testlib.pm
cp lib/ExtUtils/Mksymlists.pm blib/lib/ExtUtils/Mksymlists.pm
cp bin/instmodsh blib/script/instmodsh
"/usr/bin/perl" "-Iblib/arch" "-Iblib/lib" -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/instmodsh
Manifying 1 pod document
Manifying 37 pod documents
Manifying 4 pod documents
  BINGOS/ExtUtils-MakeMaker-7.04.tar.gz
  /bin/make -- OK
'YAML' not installed, will not store persistent state
Running make test
PERL_DL_NONLAZY=1 "/usr/bin/perl" "-Iblib/arch" "-Iblib/lib" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00compile.t ............. ok     
t/01perl_bugs.t ........... ok   
t/arch_check.t ............ ok   
t/backwards.t ............. ok   
t/basic.t ................. ok       
t/build_man.t ............. ok   
t/cd.t .................... ok   
t/config.t ................ ok   
t/dir_target.t ............ ok   
t/echo.t .................. ok    
t/FIRST_MAKEFILE.t ........ ok   
t/fix_libs.t .............. ok   
t/fixin.t ................. ok     
t/hints.t ................. ok   
t/INST.t .................. ok     
t/INST_PREFIX.t ........... ok     
t/INSTALL_BASE.t .......... ok     
t/installed_file.t ........ ok   
t/is_of_type.t ............ ok    
t/Liblist.t ............... ok   
t/Liblist_Kid.t ........... 1/? Unrecognized argument in LIBS ignored: 'unreal_test'
Unrecognized argument in LIBS ignored: 'unreal_test'
t/Liblist_Kid.t ........... ok   
t/make.t .................. ok   
t/MakeMaker_Parameters.t .. ok   
t/maketext_filter.t ....... ok   
t/meta_convert.t .......... ok    
t/metafile_data.t ......... ok     
t/metafile_file.t ......... ok     
t/min_perl_version.t ...... ok     
t/miniperl.t .............. skipped: miniperl test only necessary for the perl core
t/Mkbootstrap.t ........... ok     
t/MM_Any.t ................ ok   
t/MM_BeOS.t ............... skipped: This is not BeOS
t/MM_Cygwin.t ............. skipped: This is not cygwin
t/MM_NW5.t ................ skipped: This is not NW5
t/MM_OS2.t ................ skipped: This is not OS/2
t/MM_Unix.t ............... ok       
t/MM_VMS.t ................ skipped: This is not VMS
t/MM_Win32.t .............. skipped: This is not Win32
t/oneliner.t .............. ok     
t/parse_abstract.t ........ ok   
t/parse_version.t ......... ok       
t/PL_FILES.t .............. ok   
t/pm.t .................... ok   
t/pm_to_blib.t ............ ok    
t/pod2man.t ............... ok   
t/postamble.t ............. ok   
t/prefixify.t ............. ok   
t/prereq.t ................ ok     
t/prereq_print.t .......... ok     
t/problems.t .............. ok   
t/prompt.t ................ ok     
t/recurs.t ................ ok     
t/revision.t .............. ok   
t/several_authors.t ....... ok     
t/split_command.t ......... ok   
t/test_boilerplate.t ...... ok   
t/testlib.t ............... ok   
t/unicode.t ............... ok   
t/VERSION_FROM.t .......... ok   
t/vstrings.t .............. ok    
t/WriteEmptyMakefile.t .... ok   
t/writemakefile_args.t .... ok     
t/xs.t .................... skipped: ExtUtils::CBuilder not installed or couldn't find a compiler
All tests successful.
 
Test Summary Report
-------------------
t/pm_to_blib.t          (Wstat: 0 Tests: 14 Failed: 0)
  TODO passed:   10-11
Files=63, Tests=1098, 20 wallclock secs ( 0.28 usr  0.05 sys + 15.64 cusr  2.24 csys = 18.21 CPU)
Result: PASS
  BINGOS/ExtUtils-MakeMaker-7.04.tar.gz
  /bin/make test -- OK
Running make install
Manifying 1 pod document
Manifying 37 pod documents
Manifying 4 pod documents
Installing /root/perl5/lib/perl5/ExtUtils/Manifest.pm
Installing /root/perl5/lib/perl5/ExtUtils/MM_VOS.pm
Installing /root/perl5/lib/perl5/ExtUtils/MM.pm
Installing /root/perl5/lib/perl5/ExtUtils/MM_UWIN.pm
Installing /root/perl5/lib/perl5/ExtUtils/MM_DOS.pm
Installing /root/perl5/lib/perl5/ExtUtils/MM_Cygwin.pm
Installing /root/perl5/lib/perl5/ExtUtils/MM_Win95.pm
Installing /root/perl5/lib/perl5/ExtUtils/Liblist.pm
Installing /root/perl5/lib/perl5/ExtUtils/MM_Darwin.pm
Installing /root/perl5/lib/perl5/ExtUtils/MM_AIX.pm
Installing /root/perl5/lib/perl5/ExtUtils/Mkbootstrap.pm
Installing /root/perl5/lib/perl5/ExtUtils/MANIFEST.SKIP
Installing /root/perl5/lib/perl5/ExtUtils/MM_NW5.pm
Installing /root/perl5/lib/perl5/ExtUtils/MakeMaker.pm
Installing /root/perl5/lib/perl5/ExtUtils/MM_OS2.pm
Installing /root/perl5/lib/perl5/ExtUtils/MM_Unix.pm
Installing /root/perl5/lib/perl5/ExtUtils/MM_Win32.pm
Installing /root/perl5/lib/perl5/ExtUtils/MY.pm
Installing /root/perl5/lib/perl5/ExtUtils/MM_MacOS.pm
Installing /root/perl5/lib/perl5/ExtUtils/MM_VMS.pm
Installing /root/perl5/lib/perl5/ExtUtils/MM_BeOS.pm
Installing /root/perl5/lib/perl5/ExtUtils/MM_QNX.pm
Installing /root/perl5/lib/perl5/ExtUtils/MM_Any.pm
Installing /root/perl5/lib/perl5/ExtUtils/testlib.pm
Installing /root/perl5/lib/perl5/ExtUtils/Mksymlists.pm
Installing /root/perl5/lib/perl5/ExtUtils/MakeMaker/FAQ.pod
Installing /root/perl5/lib/perl5/ExtUtils/MakeMaker/Locale.pm
Installing /root/perl5/lib/perl5/ExtUtils/MakeMaker/Tutorial.pod
Installing /root/perl5/lib/perl5/ExtUtils/MakeMaker/Config.pm
Installing /root/perl5/lib/perl5/ExtUtils/MakeMaker/version.pm
Installing /root/perl5/lib/perl5/ExtUtils/MakeMaker/version/regex.pm
Installing /root/perl5/lib/perl5/ExtUtils/MakeMaker/version/vpp.pm
Installing /root/perl5/lib/perl5/ExtUtils/Liblist/Kid.pm
Installing /root/perl5/lib/perl5/ExtUtils/Command/MM.pm
Installing /root/perl5/lib/perl5/JSON/PP.pm
Installing /root/perl5/lib/perl5/JSON/PP/Boolean.pm
Installing /root/perl5/lib/perl5/CPAN/Meta.pm
Installing /root/perl5/lib/perl5/CPAN/Meta/Requirements.pm
Installing /root/perl5/lib/perl5/CPAN/Meta/Feature.pm
Installing /root/perl5/lib/perl5/CPAN/Meta/Spec.pm
Installing /root/perl5/lib/perl5/CPAN/Meta/History.pm
Installing /root/perl5/lib/perl5/CPAN/Meta/YAML.pm
Installing /root/perl5/lib/perl5/CPAN/Meta/Converter.pm
Installing /root/perl5/lib/perl5/CPAN/Meta/Prereqs.pm
Installing /root/perl5/lib/perl5/CPAN/Meta/Validator.pm
Installing /root/perl5/lib/perl5/Parse/CPAN/Meta.pm
Installing /root/perl5/man/man1/instmodsh.1
Installing /root/perl5/man/man3/CPAN::Meta.3pm
Installing /root/perl5/man/man3/CPAN::Meta::Converter.3pm
Installing /root/perl5/man/man3/CPAN::Meta::Feature.3pm
Installing /root/perl5/man/man3/CPAN::Meta::History.3pm
Installing /root/perl5/man/man3/CPAN::Meta::Prereqs.3pm
Installing /root/perl5/man/man3/CPAN::Meta::Requirements.3pm
Installing /root/perl5/man/man3/CPAN::Meta::Spec.3pm
Installing /root/perl5/man/man3/CPAN::Meta::Validator.3pm
Installing /root/perl5/man/man3/CPAN::Meta::YAML.3pm
Installing /root/perl5/man/man3/ExtUtils::Manifest.3pm
Installing /root/perl5/man/man3/JSON::PP.3pm
Installing /root/perl5/man/man3/JSON::PP::Boolean.3pm
Installing /root/perl5/man/man3/Parse::CPAN::Meta.3pm
Installing /root/perl5/man/man3/ExtUtils::Command::MM.3pm
Installing /root/perl5/man/man3/ExtUtils::Liblist.3pm
Installing /root/perl5/man/man3/ExtUtils::MM.3pm
Installing /root/perl5/man/man3/ExtUtils::MM_AIX.3pm
Installing /root/perl5/man/man3/ExtUtils::MM_Any.3pm
Installing /root/perl5/man/man3/ExtUtils::MM_BeOS.3pm
Installing /root/perl5/man/man3/ExtUtils::MM_Cygwin.3pm
Installing /root/perl5/man/man3/ExtUtils::MM_DOS.3pm
Installing /root/perl5/man/man3/ExtUtils::MM_Darwin.3pm
Installing /root/perl5/man/man3/ExtUtils::MM_MacOS.3pm
Installing /root/perl5/man/man3/ExtUtils::MM_NW5.3pm
Installing /root/perl5/man/man3/ExtUtils::MM_OS2.3pm
Installing /root/perl5/man/man3/ExtUtils::MM_QNX.3pm
Installing /root/perl5/man/man3/ExtUtils::MM_UWIN.3pm
Installing /root/perl5/man/man3/ExtUtils::MM_Unix.3pm
Installing /root/perl5/man/man3/ExtUtils::MM_VMS.3pm
Installing /root/perl5/man/man3/ExtUtils::MM_VOS.3pm
Installing /root/perl5/man/man3/ExtUtils::MM_Win32.3pm
Installing /root/perl5/man/man3/ExtUtils::MM_Win95.3pm
Installing /root/perl5/man/man3/ExtUtils::MY.3pm
Installing /root/perl5/man/man3/ExtUtils::MakeMaker.3pm
Installing /root/perl5/man/man3/ExtUtils::MakeMaker::Config.3pm
Installing /root/perl5/man/man3/ExtUtils::MakeMaker::FAQ.3pm
Installing /root/perl5/man/man3/ExtUtils::MakeMaker::Locale.3pm
Installing /root/perl5/man/man3/ExtUtils::MakeMaker::Tutorial.3pm
Installing /root/perl5/man/man3/ExtUtils::Mkbootstrap.3pm
Installing /root/perl5/man/man3/ExtUtils::Mksymlists.3pm
Installing /root/perl5/man/man3/ExtUtils::testlib.3pm
Installing /root/perl5/bin/instmodsh
Appending installation info to /root/perl5/lib/perl5/x86_64-linux-thread-multi/perllocal.pod
  BINGOS/ExtUtils-MakeMaker-7.04.tar.gz
  /bin/make install  -- OK
 
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for local::lib
Writing MYMETA.yml and MYMETA.json
---- Unsatisfied dependencies detected during ----
----      HAARG/local-lib-2.000015.tar.gz     ----
    Test::More [build_requires]
Running make test
  Delayed until after prerequisites
Running make install
  Delayed until after prerequisites
Can't locate local/lib.pm in @INC (@INC contains: /root/perl5/lib/perl5 /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 /root) at /usr/share/perl5/CPAN/FirstTime.pm line 1300.
[root@ip-172-30-0-122 ~]# 

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.

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:

Error - Perl execution failed
 
File does not exist: Can't connect to s3.amazonaws.com:443
 
 at S3/ListBucketResponse.pm line 26.

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

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.

Thanks Jamie, I'm looking into adding that dependency to the installer.

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:

Starting backup of 1 domains to virtualmin-%Y-%m-%d_%H-%M in Amazon S3 bucket xxxxxxx ..
 
HTTP/1.0 500 Perl execution failed Server: MiniServ/1.740 Date: Wed, 25 Mar 2015 21:36:29 GMT Content-type: text/html; Charset=iso-8859-1 Connection: close
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.

The backup to S3 is essential for me, can you please check it?

Thanks

That looks like the same missing Perl module error. Did you try running yum install perl-LWP-Protocol-https ?

Hi Jamie,

Yes, running "yum install perl-LWP-Protocol-https" did solve the problem.

Thank you very much, []s

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:

HTTP/1.0 500 Perl execution failed Server: MiniServ/1.740 Date: Sat, 28 Mar 2015 16:25:21 GMT Content-type: text/html; Charset=iso-8859-1 Connection: close
 
Error - Perl execution failed
 
File does not exist: Can't connect to s3.amazonaws.com:443
 
 at S3/ListAllMyBucketsResponse.pm line 27.

How do I fix it? Thanks

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.

Hi Jamie, it connected successfully with telnet:

 
[root@ip-172-30-1-17 ~]# telnet s3.amazonaws.com 443
Trying 54.231.65.0...
Connected to s3.amazonaws.com.
Escape character is '^]'.

Thanks

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.

Ok, I'll wait for the fix. Meanwhile I'm using S3FS to save the backup locally to S3 bucket.

Thanks

Virtualmin 4.16 came out last night -- feel free to give it a try and let us know if that resolve your issue.

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:

HTTP/1.0 500 Perl execution failed Server: MiniServ/1.740 Date: Sat, 28 Mar 2015 16:25:21 GMT Content-type: text/html; Charset=iso-8859-1 Connection: close
 
Error - Perl execution failed
 
File does not exist: Can't connect to s3.amazonaws.com:443
 
 at S3/ListAllMyBucketsResponse.pm line 27.

Thanks

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:

[root@ip-172-30-0-122 ~]#  aws s3 ls s3://
2014-05-13 13:53:18 backup-controleicode
2013-12-06 10:22:18 backup-plugpec
2014-11-30 21:18:24 intercodegames
2015-03-18 19:55:10 plugpecfiles
2014-11-01 11:43:40 versoes-anteriores
2014-11-18 11:21:15 videosplugpec
[root@ip-172-30-0-122 ~]#  aws s3 ls s3://backup-plugpec
                           PRE backups/
[root@ip-172-30-0-122 ~]# 

But the backup to S3 still does not work. I get:

Starting backup of 1 domains to backups/teste in Amazon S3 bucket backup-plugpec ..
 
HTTP/1.0 500 Perl execution failed Server: MiniServ/1.740 Date: Thu, 2 Apr 2015 20:28:38 GMT Content-type: text/html; Charset=iso-8859-1 Connection: close
 
Error - Perl execution failed
 
File does not exist: Can't connect to s3.amazonaws.com:443
 
 at S3/ListBucketResponse.pm line 26.

Thanks

It looks like Virtualmin may not be using the aws command at all. Which directory is it installed into?

Hi Jamie, here is the location

[root@ip-172-30-1-28 ~]# whereis aws
aws: /usr/local/bin/aws /usr/local/aws
[root@ip-172-30-1-28 ~]# 

What's odd is that the schedule backup works! But when I open the schedule and click Backup Now it does not work.

Thanks

Try running /etc/webmin/restart to restart the Webmin server process, to ensure it is running the latest version..

Hi Jamie I've tried but still does not work. The Schedule backup is still working, good enough for me. Thank you