amavisd is not runn...
 
Notifications
Clear all

amavisd is not running after upgrading Carbonio 24.7.1

8 Posts
2 Users
0 Reactions
284 Views
 puvi
(@puvi)
Joined: 8 months ago
Posts: 26
Topic starter  

Hello Team,

I recently upgraded Carbonio CE from version 24.5.0 to 24.7.1 by following the steps outlined in the official documentation here. While the upgrade process was smooth, I encountered an issue upon restarting zmcontrol: services related to amavis, such as antispam and antivirus, are failing to start.

For your reference, I have attached the relevant logs (note: the FQDN has been renamed for safety). Could someone assist me in resolving this issue?

root@carbonio1:~# cd /usr/lib/ocf/resource.d/btactic/
root@carbonio1:/usr/lib/ocf/resource.d/btactic#
root@carbonio1:/usr/lib/ocf/resource.d/btactic# ./zimbra status
Host cmail.example.com
amavis Stopped
amavisd is not running.
antispam Stopped
zmamavisdctl is not running
antivirus Stopped
zmamavisdctl is not running
directory-server Running
mailbox Running
memcached Running
mta Running
opendkim Running
proxy Running
service webapp Running
service-discover Running
stats Running
config service Running
INFO: Zimbra is stopped.
root@carbonio1:/usr/lib/ocf/resource.d/btactic# su - zextras
zextras@carbonio1:~$ zmamavisdctl start
Starting amavisd-mc...amavisd-mc is already running.
Starting amavisd...LibIDN.c: loadable library and perl binaries are mismatched (got handshake key 0xcd00080, needed 0xeb00080)
failed.
zextras@carbonio1:~$ zmcontrol -v
Carbonio Release 24.7.1
zextras@carbonio1:~$ exit
logout
root@carbonio1:/usr/lib/ocf/resource.d/btactic# cat /etc/*elease
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04.4 LTS"
PRETTY_NAME="Ubuntu 22.04.4 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.4 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy
root@carbonio1:/usr/lib/ocf/resource.d/btactic#


   
Quote
(@sharif)
Admin
Joined: 3 years ago
Posts: 591
 

Posted by: @puvi

Starting amavisd...LibIDN.c: loadable library and perl binaries are mismatched (got handshake key 0xcd00080, needed 0xeb00080)
failed.

@puvi

Hi,

Could you please share the output of the following commands:

zextras@mail:~$ perl -MRRDs -le 'print q(ok!)'

Regards,

Sharif

 


   
ReplyQuote
 puvi
(@puvi)
Joined: 8 months ago
Posts: 26
Topic starter  

Hello @sharif,

Please find the output of the command you requested below.

zextras@carbonio1:~$ perl -MRRDs -le 'print q(ok!)'
Can't locate RRDs.pm in @INC (you may need to install the RRDs module) (@INC contains: /opt/zextras/common/lib/perl5/x86_64-linux-gnu-thread-multi /opt/zextras/common/lib/perl5/x86_64-linux-gnu-thread-multi /opt/zextras/common/lib/perl5 /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.34.0 /usr/local/share/perl/5.34.0 /usr/lib/x86_64-linux-gnu/perl5/5.34 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.34 /usr/share/perl/5.34 /usr/local/lib/site_perl).
BEGIN failed--compilation aborted.
zextras@carbonio1:~$


   
ReplyQuote
(@sharif)
Admin
Joined: 3 years ago
Posts: 591
 

@puvi 

Hi,

Could please restart/check services again after installing the librrds-perl package. 

root@mail:~# apt install librrds-perl

Though, this package should have been in your system.

Regards,

Sharif


   
ReplyQuote
 puvi
(@puvi)
Joined: 8 months ago
Posts: 26
Topic starter  

Hello @sharif,

I installed the librrds-perl package and rebooted the server. However, upon checking the service again, I am still experiencing the same library and perl binaries mismatch issue. 

Here are the logs for your references:

zextras@carbonio1:~$ perl -MRRDs -le 'print q(ok!)'
ok!
zextras@carbonio1:~$
zextras@carbonio1:~$ zmamavisdctl restart
Stopping amavisd...amavisd is not running.
Stopping amavisd-mc... done.
Starting amavisd-mc...done.
Starting amavisd...LibIDN.c: loadable library and perl binaries are mismatched (got handshake key 0xcd00080, needed 0xeb00080)
failed.
zextras@carbonio1:~$ zmcontrol status
Host carboniomail.azpired.net
amavis Stopped
amavisd is not running.
antispam Stopped
zmamavisdctl is not running
antivirus Stopped
zmamavisdctl is not running
directory-server Running
mailbox Running
memcached Running
mta Running
opendkim Running
proxy Running
service webapp Running
service-discover Running
stats Running
config service Running
zextras@carbonio1:~$

 


   
ReplyQuote
(@sharif)
Admin
Joined: 3 years ago
Posts: 591
 

@puvi 

Could you please check the /var/log/carbonio.log when you try to restart the zmamavisdctl?

Regards,

Sharif


   
ReplyQuote
 puvi
(@puvi)
Joined: 8 months ago
Posts: 26
Topic starter  

Hello @sharif,

Attached are the logs from /var/log/carbonio.log during the restart of zmamavisdctl.

Sep 13 05:50:25 carbonio2 amavis-mc[193582]: Master process shutting down
Sep 13 05:50:27 carbonio2 amavis-mc[193582]: Master process exiting: TERM
Sep 13 05:50:30 carbonio2 amavis-mc[195032]: amavis master process starting. daemonized as PID [195032], perl 5.034000
Sep 13 05:50:30 carbonio2 amavis-mc[195032]: Process [195033] started: /opt/zextras/common/sbin/amavis-services msg-forwarder
Sep 13 05:50:30 carbonio2 amavis-mc[195032]: Process [195035] started: /opt/zextras/common/sbin/amavis-services childproc-minder
Sep 13 05:50:30 carbonio2 amavis-mc[195032]: Process [195036] started: /opt/zextras/common/sbin/amavis-services snmp-responder
Sep 13 05:50:30 carbonio2 amavis-mc[195032]: Process [195036] exited (/opt/zextras/common/sbin/amavis-services snmp-responder) after 0.0 s: exit 2
Sep 13 05:50:30 carbonio2 amavis-mc[195032]: Process [195033] exited (/opt/zextras/common/sbin/amavis-services msg-forwarder) after 0.0 s: exit 2
Sep 13 05:50:30 carbonio2 amavis-mc[195032]: Process [195035] exited (/opt/zextras/common/sbin/amavis-services childproc-minder) after 0.0 s: exit 2
Sep 13 05:50:31 carbonio2 zmconfigd[172785]: Processing rewrite request for amavis
Sep 13 05:50:31 carbonio2 zmconfigd[172785]: Tracking service amavis
Sep 13 05:50:36 carbonio2 amavis-mc[195032]: Process [195146] started: /opt/zextras/common/sbin/amavis-services msg-forwarder
Sep 13 05:50:36 carbonio2 amavis-mc[195032]: Process [195147] started: /opt/zextras/common/sbin/amavis-services childproc-minder
Sep 13 05:50:36 carbonio2 amavis-mc[195032]: Process [195148] started: /opt/zextras/common/sbin/amavis-services snmp-responder
Sep 13 05:50:36 carbonio2 amavis-mc[195032]: Process [195146] exited (/opt/zextras/common/sbin/amavis-services msg-forwarder) after 0.0 s: exit 2
Sep 13 05:50:36 carbonio2 amavis-mc[195032]: Process [195147] exited (/opt/zextras/common/sbin/amavis-services childproc-minder) after 0.1 s: exit 2
Sep 13 05:50:36 carbonio2 amavis-mc[195032]: Process [195148] exited (/opt/zextras/common/sbin/amavis-services snmp-responder) after 0.1 s: exit 2
Sep 13 05:50:38 carbonio2 zmconfigd[172785]: Rewrote: /opt/zextras/conf/amavisd.conf with mode 440 (0.03 sec)
Sep 13 05:50:41 carbonio2 amavis-mc[195032]: Process [195291] started: /opt/zextras/common/sbin/amavis-services msg-forwarder
Sep 13 05:50:41 carbonio2 amavis-mc[195032]: Process [195292] started: /opt/zextras/common/sbin/amavis-services childproc-minder
Sep 13 05:50:41 carbonio2 amavis-mc[195032]: Process [195293] started: /opt/zextras/common/sbin/amavis-services snmp-responder
Sep 13 05:50:41 carbonio2 amavis-mc[195032]: Process [195291] exited (/opt/zextras/common/sbin/amavis-services msg-forwarder) after 0.0 s: exit 2
Sep 13 05:50:41 carbonio2 amavis-mc[195032]: Process [195292] exited (/opt/zextras/common/sbin/amavis-services childproc-minder) after 0.0 s: exit 2
Sep 13 05:50:41 carbonio2 amavis-mc[195032]: Process [195293] exited (/opt/zextras/common/sbin/amavis-services snmp-responder) after 0.0 s: exit 2
Sep 13 05:50:46 carbonio2 amavis-mc[195032]: Process [195371] started: /opt/zextras/common/sbin/amavis-services msg-forwarder
Sep 13 05:50:46 carbonio2 amavis-mc[195032]: Process [195372] started: /opt/zextras/common/sbin/amavis-services childproc-minder
Sep 13 05:50:46 carbonio2 amavis-mc[195032]: Process [195373] started: /opt/zextras/common/sbin/amavis-services snmp-responder
Sep 13 05:50:46 carbonio2 amavis-mc[195032]: Process [195372] exited (/opt/zextras/common/sbin/amavis-services childproc-minder) after 0.0 s: exit 2
Sep 13 05:50:46 carbonio2 amavis-mc[195032]: Process [195371] exited (/opt/zextras/common/sbin/amavis-services msg-forwarder) after 0.0 s: exit 2
Sep 13 05:50:46 carbonio2 amavis-mc[195032]: Process [195373] exited (/opt/zextras/common/sbin/amavis-services snmp-responder) after 0.1 s: exit 2
Sep 13 05:50:51 carbonio2 amavis-mc[195032]: Process [195436] started: /opt/zextras/common/sbin/amavis-services msg-forwarder
Sep 13 05:50:51 carbonio2 amavis-mc[195032]: Process [195437] started: /opt/zextras/common/sbin/amavis-services childproc-minder
Sep 13 05:50:51 carbonio2 amavis-mc[195032]: Process [195438] started: /opt/zextras/common/sbin/amavis-services snmp-responder
Sep 13 05:50:51 carbonio2 amavis-mc[195032]: Process [195436] exited (/opt/zextras/common/sbin/amavis-services msg-forwarder) after 0.0 s: exit 2
Sep 13 05:50:51 carbonio2 amavis-mc[195032]: Process [195438] exited (/opt/zextras/common/sbin/amavis-services snmp-responder) after 0.0 s: exit 2
Sep 13 05:50:51 carbonio2 amavis-mc[195032]: Exceeded restart count, giving up on (/opt/zextras/common/sbin/amavis-services msg-forwarder)
Sep 13 05:50:51 carbonio2 amavis-mc[195032]: Exceeded restart count, giving up on (/opt/zextras/common/sbin/amavis-services snmp-responder)
Sep 13 05:50:51 carbonio2 amavis-mc[195032]: Process [195437] exited (/opt/zextras/common/sbin/amavis-services childproc-minder) after 0.0 s: exit 2
Sep 13 05:50:51 carbonio2 amavis-mc[195032]: Exceeded restart count, giving up on (/opt/zextras/common/sbin/amavis-services childproc-minder)

 


   
ReplyQuote
 puvi
(@puvi)
Joined: 8 months ago
Posts: 26
Topic starter  

Hello @sharif,

Have you had the opportunity to review the carbonio logs(/var/log/carbonio.log)?


   
ReplyQuote