Long module?
Walt Thiessen
wt at dld2000.com
Wed Jul 10 19:40:15 UTC 2019
I discovered this morning that MailScanner wasn't running on my
WHM/Cpanel server. When I tried to restart it in the MailScanner
front-end I got, "Redirecting to /bin/systemctl restart MailScanner.service
Job for MailScanner.service failed because the control process exited
with error code. See 'systemctl status MailScanner.service' and
'journalctl -xe' for details."
When I ran those two commands, I merely got info that says that
MailScanner failed to start.
In /var/log/messages I found the following:
Jul 9 21:37:27 server MailScanner[31036]: Can't locate
Sys/Hostname/Long.pm in @INC (you may need to install the
Sys::Hostname::Long module) (@INC contains:
/usr/mailscanner/usr/share/MailScanner/perl
/usr/mailscanner/usr/share/MailScanner/perl /usr/local/cpanel
/usr/local/cpanel/3rdparty/perl/528/lib/perl5/cpanel_lib/x86_64-linux-64int
/usr/local/cpanel/3rdparty/perl/528/lib/perl5/cpanel_lib
/usr/local/cpanel/3rdparty/perl/528/lib/perl5/5.28.0/x86_64-linux-64int
/usr/local/cpanel/3rdparty/perl/528/lib/perl5/5.28.0
/opt/cpanel/perl5/528/site_lib/x86_64-linux-64int
/opt/cpanel/perl5/528/site_lib) at /usr/mailscanner/usr/sbin/MailScanner
line 86.
Jul 9 21:37:27 server MailScanner[31036]: BEGIN failed--compilation
aborted at /usr/mailscanner/usr/sbin/MailScanner line 86.
Jul 9 21:37:27 server MailScanner: Can't locate Sys/Hostname/Long.pm in
@INC (you may need to install the Sys::Hostname::Long module) (@INC
contains: /usr/mailscanner/usr/share/MailScanner/perl
/usr/mailscanner/usr/share/MailScanner/perl /usr/local/cpanel
/usr/local/cpanel/3rdparty/perl/528/lib/perl5/cpanel_lib/x86_64-linux-64int
/usr/local/cpanel/3rdparty/perl/528/lib/perl5/cpanel_lib
/usr/local/cpanel/3rdparty/perl/528/lib/perl5/5.28.0/x86_64-linux-64int
/usr/local/cpanel/3rdparty/perl/528/lib/perl5/5.28.0
/opt/cpanel/perl5/528/site_lib/x86_64-linux-64int
/opt/cpanel/perl5/528/site_lib) at /usr/mailscanner/usr/sbin/MailScanner
line 86.
Jul 9 21:37:27 server MailScanner: BEGIN failed--compilation aborted at
/usr/mailscanner/usr/sbin/MailScanner line 86.
Jul 9 21:37:27 server systemd[1]: MailScanner.service: control process
exited, code=exited status=2
Jul 9 21:37:27 server systemd: MailScanner.service: control process
exited, code=exited status=2
Jul 9 21:37:27 server systemd[1]: Failed to start MailScanner AntiSpam
and AntiVirus.
I noticed that there was a MailScanner upgrade from v3.16 to:v3.17
available in my MailScanner front end, so I tried running that to see if
it would clear the issue.
It did. MailScanner is now running again.
I don't really understand why this happened. Can anyone tell me why I
needed to upgrade in order to get MailScanner running again? What is
this "Long" perl module, why would it be gone, and why would it have to
be reinstalled during the upgrade?
Walt
More information about the MailScanner
mailing list