Perl errors running MAM commands on RHEL 7


Problem:  When running mam commands on RHEL/CentOS 7 you can get Perl errors, similar to these:

mam-balance
ERROR: can't load appenderclass 'Log::Dispatch::FileRotate'
ERROR LOADING MODULE at /usr/share/perl5/vendor_perl/Date/Manip.pm line 35.
Compilation failed in require at /usr/share/perl5/vendor_perl/Log/Dispatch/FileRotate.pm line 12.
BEGIN failed--compilation aborted at /usr/share/perl5/vendor_perl/Log/Dispatch/FileRotate.pm line 12.
Compilation failed in require at (eval 22) line 2.
BEGIN failed--compilation aborted at /opt/mam/lib/MAM.pm line 163.
Compilation failed in require at /opt/mam/bin/mam-balance line 74.
BEGIN failed--compilation aborted at /opt/mam/bin/mam-balance line 74.

 

The commands will probably succeed when run as root and fail when run as another user.

 

Solution:  This is a known bug, which happens if the "taint" option (-T) is used, and it's documented here: https://bugs.archlinux.org/task/18467

One workaround for this is to set the TZ environment variable with your time zone.


Another is to remove the -T from the mam client commands (perl taint checking is not needed in RHEL7 because mam clients do not use suidperl in red hat 7).

Tags: account, allocation, chargerate, client, fund, lien, mam, perl, quote, role, transaction, usagerecord, user
Last update:
2017-03-03 21:07
Author:
Ben Roberts
Revision:
1.2
Average rating:0 (0 Votes)

You cannot comment on this entry

Chuck Norris has counted to infinity. Twice.

Records in this category

Tags