AWSAuthConnection

S3 Perl Module

Hello, I use Virtualmin Gpl on 2 small servers with Debian9. For data backup I use the function under> Virtualmin> Backup other restore> Amazon S3

On the two servers, this works fine after installing Perl xml :: simple. Now I have set up a new server and would like to use S3 again as a backup solution. After installing evon xml :: simple I receive the error message:

The Perl module S3 :: AWSAuthConnection needed to communicate with Amazon's S3 service is not installed

This message came with no other server I have set up so far. I tried to install the module. But this module does not exist on Cpan.

In the forum andere Bug report I can only find posts from 2006 by this is described as a bug.

What can I do? Would be grateful for help

Status: 
Closed (fixed)

Comments

Assigned: » Unassigned

That is surprising, as that perl module is part of the Virtualmin install.

Does the file /usr/share/webmin/virtual-server/S3/AWSAuthConnection.pm exist on your system?

Hello Jamie, Thank you for replying. Yes the File ist there. 10.73KB

Ive reinstalled the Server three Times. But every Time i got this Error.

Can you check if the following Perl modules are installed :

HTTP::Date
URI::Escape
Carp
XML::Simple
Digest::MD5

Hello, yes i can do that.

installed:

HTTP::Date 6.02\cf1\highlight1

URI::Escape 3.31\cf1\highlight1

Carp 1.40\cf1\highlight1

XML::Simple 2.22\cf1\highlight1

Digest::MD5

oh Sorry i did a mistake. URI::Escape was not installed.

After installation, the same issue occur The Perl module S3 :: AWSAuthConnection needed to communicate with Amazon's S3 service is not installed

Try running the following command to see more details about why the module isn't loading :

perl -I/usr/share/webmin/virtual-server -e 'use S3::AWSAuthConnection'

Herr the Output:

perl -I/usr/share/webmin/virtual-server -e 'use S3::AWSAuthConnection'
Can't locate LWP/UserAgent.pm in @INC (you may need to install the LWP::UserAgent module) (@INC contains: /usr/share/webmin/virtual-server /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.24.1 /usr/local/share/perl/5.24.1 /usr/lib/x86_64-linux-gnu/perl5/5.24 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.24 /usr/share/perl/5.24 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at /usr/share/webmin/virtual-server/S3.pm line 24.
BEGIN failed--compilation aborted at /usr/share/webmin/virtual-server/S3.pm line 24.
Compilation failed in require at /usr/share/webmin/virtual-server/S3/AWSAuthConnection.pm line 23.
BEGIN failed--compilation aborted at /usr/share/webmin/virtual-server/S3/AWSAuthConnection.pm line 23.
Compilation failed in require at -e line 1.
BEGIN failed--compilation aborted at -e line 1.

I ve tried to Install LWP::UserAgent but IT fails because libwww::perl is not installed and it ist not available by cpan

Try installing the package "libwww-perl" using apt:

apt-get install libwww-perl

That should include "LWP::UserAgent".

Hello Again, I can now use Amazon s3 backup. It will work after installing libwww-perl. I would be interested to know why the server had problems here. I have 2-3 months before exactly the same vserver with the same provider without problems to install.

Thanks a lot David

Maybe different perl packages were included during the install of your OS, depending on the initial package selection?

Anyway, in the next Virtualmin release we will make it clearer which required Perl package is missing to make problems like this easier to resolved.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

I had the same issue (Ubuntu 16.04 LTS) and can confirm that installing libwww-perl immediately fixed the issue for me too.