Bug 25636 - Amavis doesn't start
Summary: Amavis doesn't start
Status: RESOLVED INVALID
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 7
Hardware: All Linux
Priority: Normal major
Target Milestone: ---
Assignee: All Packagers
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-30 17:45 CET by Pascal Terjan
Modified: 2019-11-01 19:10 CET (History)
1 user (show)

See Also:
Source RPM: amavisd-new-2.11.0-7.mga7.src.rpm
CVE:
Status comment:


Attachments

Description Pascal Terjan 2019-10-30 17:45:08 CET
[root@neru ~]# su - amavis -s /bin/sh -c "/usr/sbin/amavisd -c /etc/amavisd/amavisd.conf -P /run/amavis/amavis.pid"
fetch_modules: error loading required module MIME/Head.pm:
  Storable object version 3.08_01 does not match bootstrap parameter 2.45 at /usr/lib64/perl5/DynaLoader.pm line 210.
  Compilation failed in require at /usr/lib64/perl5/vendor_perl/Encode.pm line 56.
  BEGIN failed--compilation aborted at /usr/lib64/perl5/vendor_perl/Encode.pm line 56.
  Compilation failed in require at /usr/share/perl5/vendor_perl/MIME/WordDecoder.pm line 601.
  BEGIN failed--compilation aborted at /usr/share/perl5/vendor_perl/MIME/WordDecoder.pm line 601.
  Compilation failed in require at /usr/share/perl5/vendor_perl/MIME/Head.pm line 3.
  BEGIN failed--compilation aborted at /usr/share/perl5/vendor_perl/MIME/Head.pm line 3.
  Compilation failed in require at /usr/sbin/amavisd line 210.
fetch_modules: error loading required module MIME/Entity.pm:
  Attempt to reload MIME/Head.pm aborted.
  Compilation failed in require at /usr/share/perl5/vendor_perl/MIME/Entity.pm line 244.
  BEGIN failed--compilation aborted at /usr/share/perl5/vendor_perl/MIME/Entity.pm line 244.
  Compilation failed in require at /usr/sbin/amavisd line 210.
fetch_modules: error loading required module MIME/Parser.pm:
  Attempt to reload MIME/Head.pm aborted.
  Compilation failed in require at /usr/share/perl5/vendor_perl/MIME/Parser.pm line 141.
  BEGIN failed--compilation aborted at /usr/share/perl5/vendor_perl/MIME/Parser.pm line 141.
  Compilation failed in require at /usr/sbin/amavisd line 210.
ERROR: MISSING REQUIRED BASIC MODULES:
  MIME::Head
  MIME::Entity
  MIME::Parser
BEGIN failed--compilation aborted at /usr/sbin/amavisd line 250.

# rpm -qf /usr/share/perl5/vendor_perl/MIME/WordDecoder.pm /usr/lib64/perl5/vendor_perl/Encode.pm /usr/lib64/perl5/DynaLoader.pm /usr/share/perl5/vendor_perl/MIME/Head.pm /usr/sbin/amavisd | sort -u
amavisd-new-2.11.0-7.mga7
perl-base-5.28.2-1.mga7
perl-Encode-3.10.0-1.mga7
perl-MIME-tools-5.509.0-2.mga7
Comment 1 Lewis Smith 2019-10-31 10:39:07 CET
Thank you for this report.

"AMaViS is a perl script that interfaces a Mail Transport Agent (MTA)
with one or more virus scanners (not provided)."
The SRPM has no maintainer, so assigning this globally; CC'ing the Perl group, since they may be able to help.

Assignee: bugsquad => pkg-bugs
Source RPM: amavisd-new => amavisd-new-2.11.0-7.mga7.src.rpm
CC: (none) => perl

Comment 2 Pascal Terjan 2019-11-01 18:58:55 CET
Actually the problem is probably not on Amavis, something broke on that server when it got updated to Mageia 7:

# urpmf MIME/Head.pm
    http://repository.mageia.org/distrib/infra_7/x86_64/media/infra/updates/media_info/20190926-175024-hdlist.cz
Attempt to reload Encode.pm aborted.                                                                                                                                                                              
Compilation failed in require at /usr/lib64/perl5/vendor_perl/XML/LibXML/Error.pm line 17.
BEGIN failed--compilation aborted at /usr/lib64/perl5/vendor_perl/XML/LibXML/Error.pm line 17.
Compilation failed in require at /usr/lib64/perl5/vendor_perl/XML/LibXML.pm line 26.
BEGIN failed--compilation aborted at /usr/lib64/perl5/vendor_perl/XML/LibXML.pm line 26.
Compilation failed in require at /usr/lib64/perl5/vendor_perl/XML/LibXML/Reader.pm line 11.
BEGIN failed--compilation aborted at /usr/lib64/perl5/vendor_perl/XML/LibXML/Reader.pm line 11.
Compilation failed in require at /usr/share/perl5/vendor_perl/urpm/xml_info.pm line 4.
BEGIN failed--compilation aborted at /usr/share/perl5/vendor_perl/urpm/xml_info.pm line 4.
Compilation failed in require at /usr/bin/urpmf line 308.


The common thing between those two is failing on /usr/lib64/perl5/vendor_perl/Encode.pm which is from perl-Encode package.
Comment 3 Pascal Terjan 2019-11-01 19:01:05 CET
As there is no dependency on it, I tried rpm -e perl-Encode

Same error now, but on /usr/lib64/perl5/Encode.pm which is from perl-base...

fetch_modules: error loading required module MIME/Head.pm:
  Storable object version 3.08_01 does not match bootstrap parameter 2.45 at /usr/lib64/perl5/DynaLoader.pm line 210.
  Compilation failed in require at /usr/lib64/perl5/Encode.pm line 55.
  BEGIN failed--compilation aborted at /usr/lib64/perl5/Encode.pm line 55.
  Compilation failed in require at /usr/share/perl5/vendor_perl/MIME/WordDecoder.pm line 601.
  BEGIN failed--compilation aborted at /usr/share/perl5/vendor_perl/MIME/WordDecoder.pm line 601.
  Compilation failed in require at /usr/share/perl5/vendor_perl/MIME/Head.pm line 3.
  BEGIN failed--compilation aborted at /usr/share/perl5/vendor_perl/MIME/Head.pm line 3.
  Compilation failed in require at /usr/sbin/amavisd line 210.
fetch_modules: error loading required module MIME/Entity.pm:
  Attempt to reload MIME/Head.pm aborted.
  Compilation failed in require at /usr/share/perl5/vendor_perl/MIME/Entity.pm line 244.
  BEGIN failed--compilation aborted at /usr/share/perl5/vendor_perl/MIME/Entity.pm line 244.
  Compilation failed in require at /usr/sbin/amavisd line 210.
fetch_modules: error loading required module MIME/Parser.pm:
  Attempt to reload MIME/Head.pm aborted.
  Compilation failed in require at /usr/share/perl5/vendor_perl/MIME/Parser.pm line 141.
  BEGIN failed--compilation aborted at /usr/share/perl5/vendor_perl/MIME/Parser.pm line 141.
  Compilation failed in require at /usr/sbin/amavisd line 210.
ERROR: MISSING REQUIRED BASIC MODULES:
  MIME::Head
  MIME::Entity
  MIME::Parser
BEGIN failed--compilation aborted at /usr/sbin/amavisd line 250.
Comment 4 Pascal Terjan 2019-11-01 19:07:59 CET
# grep -r 3.08_01 /usr/lib64/perl5/
/usr/lib64/perl5/Storable.pm:our $VERSION = '3.08_01';
Binary file /usr/lib64/perl5/auto/Storable/Storable.so matches
# grep -r '2\.45' /usr/lib64/perl5/
/usr/lib64/perl5/vendor_perl/Storable.pm:$VERSION = '2.45';


So this is the real source of the problem

[root@neru ~]# rpm -qf /usr/lib64/perl5/vendor_perl/Storable.pm
file /usr/lib64/perl5/vendor_perl/Storable.pm is not owned by any package
[root@neru ~]# ll /usr/lib64/perl5/vendor_perl/Storable.pm
-rw-r--r-- 1 root root 43133 Jul 13  2013 /usr/lib64/perl5/vendor_perl/Storable.pm


I have no idea how this happened...

# rpm -qf $(find /usr/lib64/perl5/vendor_perl/ -type f) | grep 'not owned'
file /usr/lib64/perl5/vendor_perl/Storable.pm is not owned by any package
file /usr/lib64/perl5/vendor_perl/auto/Filter/Util/Call/Call.so is not owned by any package
file /usr/lib64/perl5/vendor_perl/auto/Filter/Util/Exec/Exec.so is not owned by any package
file /usr/lib64/perl5/vendor_perl/auto/Filter/decrypt/decrypt.so is not owned by any package
file /usr/lib64/perl5/vendor_perl/auto/Filter/tee/tee.so is not owned by any package
file /usr/lib64/perl5/vendor_perl/auto/threads/shared/shared.so is not owned by any package
file /usr/lib64/perl5/vendor_perl/auto/threads/threads.so is not owned by any package
file /usr/lib64/perl5/vendor_perl/Filter/Util/Call.pm is not owned by any package
file /usr/lib64/perl5/vendor_perl/Filter/Util/Exec.pm is not owned by any package
file /usr/lib64/perl5/vendor_perl/Filter/Util/filter-util.pl is not owned by any package
file /usr/lib64/perl5/vendor_perl/Filter/Util/perlfilter.pod is not owned by any package
file /usr/lib64/perl5/vendor_perl/Filter/exec.pm is not owned by any package
file /usr/lib64/perl5/vendor_perl/Filter/tee.pm is not owned by any package
file /usr/lib64/perl5/vendor_perl/Filter/cpp.pm is not owned by any package
file /usr/lib64/perl5/vendor_perl/Filter/sh.pm is not owned by any package
file /usr/lib64/perl5/vendor_perl/Filter/decrypt.pm is not owned by any package
file /usr/lib64/perl5/vendor_perl/threads/shared.pm is not owned by any package
file /usr/lib64/perl5/vendor_perl/threads.pm is not owned by any package
Comment 5 Pascal Terjan 2019-11-01 19:09:44 CET
Also 

# rpm -qf $(find /usr/lib64/perl5/ -type f) | grep 'not owned' | cut -d' ' -f2
/usr/lib64/perl5/time.ph
/usr/lib64/perl5/sys/uio.ph
/usr/lib64/perl5/sys/sysmacros.ph
/usr/lib64/perl5/bits/time.ph
/usr/lib64/perl5/bits/uio.ph
/usr/lib64/perl5/bits/timex.ph
/usr/lib64/perl5/bits/sigset.ph
/usr/lib64/perl5/bits/byteswap-16.ph
/usr/lib64/perl5/bits/siginfo.ph
/usr/lib64/perl5/Config.pod
/usr/lib64/perl5/auto/DB_File/autosplit.ix
/usr/lib64/perl5/auto/sdbm/extralibs.ld
/usr/lib64/perl5/auto/Devel/PPPort/PPPort.so
/usr/lib64/perl5/xlocale.ph
/usr/lib64/perl5/POSIX.pod

I wonder if some update crashed or something and files didn't get deleted...
Comment 6 Pascal Terjan 2019-11-01 19:10:47 CET
Closing this as invalid as amavis is not broken

Status: NEW => RESOLVED
Resolution: (none) => INVALID


Note You need to log in before you can comment on or make changes to this bug.