Carbonio 24.9.0 Sto...
 
Notifications
Clear all

Carbonio 24.9.0 Stopping zmconfigd...failed.

1 Posts
1 Users
0 Reactions
151 Views
 Nik
(@nik)
Joined: 3 years ago
Posts: 22
Topic starter  

Hi all,

I have found a solution to the problem with my carbonio server.
Maybe it will be useful to someone.

after upgrading carbonio to version 24.9.0, one service failed at the "zmcotrol restart" command:

zextras@mail:~/bin$ zmcontrol restart
Host mail.xxxxxxx.com
Stopping config service...Failed.
Stopping zmconfigd...failed.
Stopping service webapp...Done.
Stopping stats...Done.
Stopping mta...Done.
.........
.........

So... Let's get started.

1. Change the line number 114 in the /opt/zextras/bin/zmconfigdctl file as follows:

the source code

.........
'kill' | 'stop')
checkrunning
echo -n "Stopping zmconfigd..."
if [[ ${running} -lt 1 ]]; then
echo "zmconfigd is not running."
exit 0
else
kill "$pid" 2>/dev/null
.........

The chanded code (added the signal -HUP)
..........
'kill' | 'stop')
checkrunning
echo -n "Stopping zmconfigd..."
if [[ ${running} -lt 1 ]]; then
echo "zmconfigd is not running."
exit 0
else
kill -HUP "$pid" 2>/dev/null
.........

2. Check by running the command "zmcontrol restart" under zextras user.
If there are no errors, then the next step is not necessary.

3. In my case starting of milter server failed:

.........
.........
Starting opendkim...Done.
Starting mta...Failed.
Starting milter server...failed.
zmmilterctl failed to start
Starting saslauthd...done.
postfix/postlog: starting the Postfix mail system

Starting stats...Done.
Starting service webapp...Done.
..........

To fix this, change line 17 to increase the delay from 3 to 10 seconds in the /opt/zextras/bin/zmmilterctl file:

the source code

.............
nohup sh -c "exec ${runcmd} 2>&1" >/opt/zextras/log/milter.out 2>&1 &
sleep 3
.............

The chanded code

.............
nohup sh -c "exec ${runcmd} 2>&1" >/opt/zextras/log/milter.out 2>&1 &
sleep 10
.............


   
Quote