[Solved]How to stop / kill mailinabox service ? API key out of sync

Hey there,

i’d like to restart/stop my mailinabox service as i get the following error:
“The management daemon refused access. The API key file may be out of sync. Try ‘service mailinabox restart’.”

As suggested in Error upgrading from v0.25 to v0.26 , https://github.com/mail-in-a-box/mailinabox/issues/1328#issuecomment-360777850 i’ve tried…

root@www:~# ps auxf | grep mailinabox
root     27398  0.0  0.0  14088   704 pts/4    S+   10:26   0:00  |       \_ grep --color=auto mailinabox
root     27503  0.0  0.6 344192 39304 ?        S    Jan27   8:48 python /root/mailinabox/management/daemon.py
root@www:~# killall -9 27503
27503: no process found
root@www:~# ps -aef | grep mailinabox
root     27503     1  0 Jan27 ?        00:08:49 python /root/mailinabox/management/daemon.py
root     28390 19182  0 10:35 pts/4    00:00:00 grep --color=auto mailinabox
root@www:~# killall mailinabox
mailinabox: no process found
root@www:~# killall mailinabox
mailinabox: no process found
root@www:~# killall -I mailinabox
mailinabox: no process found
root@www:~# killall -i mailinabox
mailinabox: no process found
root@www:~# 

So far no luck with killing that process. Any suggestions ? Thanks !

Seems like one killed the PID. Deleted /usr/local/lib/mailinabox . Reboot and ran setup again. Error is gone…