Failure to Initialise Two-Factor Auth - Help Needed

4 posts / 0 new
Last post
#1 Fri, 05/30/2014 - 05:45
jbrice

Failure to Initialise Two-Factor Auth - Help Needed

VirtualMin and Ubuntu server 12.04 - on attempting to activate Google Too-Factor authentication produces the error message: Failed to save two-factor authentication : The Perl module Authen::OATH needed for two-factor authentication is not installed. Use the Perl Modules page in Webmin to install it.

Using the link to "Perl Modules" appears to work OK except for "Simple Moose (Missing 1 modules)".

"Fetching missing prerequisites" results in Pre-requisites Package::DeprecationManager Scalar::Util Test::Requires CPAN::Meta::Check Package::Stash::XS Sub::Exporter Test::Fatal Module::Runtime Params::Util List::MoreUtils MRO::Compat Task::Weaken Class::Load::XS Try::Tiny parent Eval::Closure Devel::StackTrace Package::Stash Class::Load Dist::CheckConflicts Sub::Name Data::OptList Carp Test::More Devel::GlobalDestruction CPAN::Meta::Requirements Digest::HMAC Digest::SHA1 Math::BigInt Test::Simple Moose (Missing 21 modules)

"Continue With Install" ends up with pages of error messages and "Possible endless loop in output detected!"

Any suggestions appreciated before I give two-factor auth. in VMin. up as a bad job!

TIA

Fri, 05/30/2014 - 15:06
andreychek

Howdy,

It looks like Webmin is trying to install that module from CPAN, which in theory should work... since it's not, I wonder if maybe we could use the Ubuntu packaged module for that instead.

Try running this command:

apt-get install libauthen-oath-perl

Once you do that, are you able to enable Two-Factor Auth in Webmin/Virtualmin?

-Eric

Fri, 05/30/2014 - 15:48
jbrice

Eric, Many thanks for the quick reply. Unfortunately the response to this command is: "E: Unable to locate package libauthen-oath-perl"

As far as I can see that library is not available in Ub, 12.04 although it is with later versions: https://launchpad.net/ubuntu/precise/+source/libauthen-oath-perl

Where to go from here?

JB

Tue, 06/03/2014 - 05:22
jbrice

Now solved. Went back to install Perl modules and installed "Moose" module as a separate step.

Re-ran Two-Factor Auth. setup, which then worked as intended.

Thanks for the support.

JB

Topic locked