Bug 256974 - security/amavisd-new won't start with jail - Net::Server::Proto::UNIX, later manual start brings it up
Summary: security/amavisd-new won't start with jail - Net::Server::Proto::UNIX, later ...
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Florian Smeets
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-04 11:39 UTC by Marko Cupać
Modified: 2021-09-15 14:03 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (flo)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marko Cupać 2021-07-04 11:39:02 UTC
Hi,

I moved two of my 12.2 jails from 12.2 to 13.0 host, and upgraded them to 13.0. During the process, all the packages were upgraded to latest main.

After the upgrade, amavisd-new won't start with jail, it throws the following:

Jul  3 18:57:03 mx amavis[76304]: (!)Net::Server: 2021/07/03-18:57:03 Unable to load module for proto "Net::Server::Proto::UNIX": Can't locate Net/Server/Proto/UNIX.pm:   lib/Net/Server/Proto/UNIX.pm: Permission denied at /usr/local/lib/perl5/site_perl/Net/Server/Proto.pm line 194, <GEN34> line 6.\n\n  at line 194 in file /usr/local/lib/perl5/site_perl/Net/Server/Proto.pm

Manual service start has no problem.

I have another identical 12.2 jail which I moved from 12.2 to 13.0 host, but haven't upgraded the jail and packages. This one has no problem.

amavisd-new is same on both jails (2.12.0_1,1), however some perl modules are higher on 13.0 (problematic) jail, including p5-Net-Server (2.009 on jail without the problem, 2.010 on jail with the problem).

Could it be that p5-Net-Server bump caused amavisd-new to refuse to start with jail, but still be able to start on later manual start?

Thank you in advance,
Comment 1 Marko Cupać 2021-09-15 14:03:28 UTC
Any news?

---jail start---
Sep 15 15:59:47 mx2 amavis[13296]: starting. /usr/local/sbin/amavisd at mx2.example.org amavisd-new-2.12.0 (20190725), Unicode aware, LANG="C.UTF-8"
Sep 15 15:59:47 mx2 amavis[13296]: perl=5.032001, user=, EUID: 110 (110);  group=, EGID: 110 110 (110 110)
Sep 15 15:59:47 mx2 amavis[13298]: (!)Net::Server: 2021/09/15-15:59:47 Unable to load module for proto "Net::Server::Proto::UNIX": Can't locate Net/Server/Proto/UNIX.pm:   lib/Net/Server/Proto/UNIX.pm: Permission denied at /usr/local/lib/perl5/site_perl/Net/Server/Proto.pm line 194.\n\n  at line 194 in file /usr/local/lib/perl5/site_perl/Net/Server/Proto.pm

---service amavisd restart inside jail---
Sep 15 16:00:11 mx2 amavis[13609]: starting. /usr/local/sbin/amavisd at mx2.example.org amavisd-new-2.12.0 (20190725), Unicode aware, LANG="C.UTF-8"
Sep 15 16:00:11 mx2 amavis[13609]: perl=5.032001, user=, EUID: 110 (110);  group=, EGID: 110 110 (110 110)
Sep 15 16:00:12 mx2 amavis[13621]: Net::Server: Group Not Defined.  Defaulting to EGID '110 110'
Sep 15 16:00:12 mx2 amavis[13621]: Net::Server: User Not Defined.  Defaulting to EUID '110'
Sep 15 16:00:12 mx2 amavis[13621]: No $altermime,         not using it
Sep 15 16:00:12 mx2 amavis[13621]: No ext program for   .F, tried: unfreeze, freeze -d, melt, fcat
Sep 15 16:00:12 mx2 amavis[13621]: No ext program for   .lrz, tried: lrzip -q -k -d -o -, lrzcat -q -k
Sep 15 16:00:12 mx2 amavis[13621]: No ext program for   .lz4, tried: lz4c -d
Sep 15 16:00:12 mx2 amavis[13621]: No ext program for   .tnef, tried: tnef
Sep 15 16:00:12 mx2 amavis[13621]: No decoder for       .F   
Sep 15 16:00:12 mx2 amavis[13621]: No decoder for       .lrz 
Sep 15 16:00:12 mx2 amavis[13621]: No decoder for       .lz4 
Sep 15 16:00:12 mx2 amavis[13621]: Using primary internal av scanner code for ClamAV-clamd
Sep 15 16:00:12 mx2 amavis[13621]: Found secondary av scanner ClamAV-clamscan at /usr/local/bin/clamscan