Zimbra won't shutdown - Stopping zimlet webapp fails

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
NetCircle
Posts: 18
Joined: Sat Sep 13, 2014 12:22 am
Location: Shanghai, P.R.China
ZCS/ZD Version: Release 8.7.0_GA_1659.RHEL6_64_2016
Contact:

Zimbra won't shutdown - Stopping zimlet webapp fails

Post by NetCircle »

The subject pretty much says it all. When 'zmcontrol shutdown' is run, zmconfigd stops, it moves on to 'Stopping zimlet webapp...' which eventually fails.

I have a daily cron job that shuts zimbra down, rsyncs the zimbra root to another location, then restarts zimbra. It has been running flawlessly for years.

The server and nearly all its users are 14 hours ahead of me and when I tried connecting today I got an error that the server wasn't responding. I realized it was within the usual backup timeframe so I connected via ssh to check its progress. I found the backup was not running and there were a mixture of some services running, others not. I checked my cron job log and from the time stamps found the zimbra shutdown had been running for nearly 15 minutes but had not completed stopping zimbra. I needed to get it back up and online so I ran a zmcontrol start and all returned to normal. All services were up, I could logon through the web interface and send and receive mail.

I ran zmfixperms, then tried running 'zmcontrol stop' again. Same result. It hung on 'Stopping zimlet webapp.' After several minutes, I interrupted through the stop command, ran 'zmcontrol start,' and verified all services were running normally again.

The host O/S is CentOS release 6.8 with Zimbra Release 8.7.0_GA_1659.RHEL6_64_20160628192545 RHEL6_64 FOSS edition. The most recent upgrade was from 8.07 to 8.70 in early October. I find nothing of significance in either Zimbra.log or mailbox.log.

We have run Zimbra since early release 5 with very few previous problems but I have had to suspend my cron job pending resolution of this problem. There are other nagging problems with this release but having a production system that cannot be shutdown smoothly makes me very uncomfortable.
bhwong
Advanced member
Advanced member
Posts: 151
Joined: Thu Feb 27, 2014 8:40 pm

Re: Zimbra won't shutdown - Stopping zimlet webapp fails

Post by bhwong »

I notice zimlet webapp take the longest to stop. Potential issue.
User avatar
andreaswolske
Posts: 35
Joined: Tue Nov 26, 2013 11:24 am
Location: Berlin
ZCS/ZD Version: Release 8.8.15_GA_3829.RHEL7_64_201
Contact:

Re: Zimbra won't shutdown - Stopping zimlet webapp fails

Post by andreaswolske »

Same issue here with RHEL 6.8 ZCS 7.2. Do you have by any chance non-default Zimlets installed? I'm running zExtras Chat.
Pressing Ctrl-C on all Jetty Apps will finally stopping zimbra leaving MySQL still running.
What I'm wondering is the following "zmmailboxdctl stop" does work which is pretty much the same. zmstorectl stop does not work either.
I'll open a SR with Zimbra.
User avatar
andreaswolske
Posts: 35
Joined: Tue Nov 26, 2013 11:24 am
Location: Berlin
ZCS/ZD Version: Release 8.8.15_GA_3829.RHEL7_64_201
Contact:

Re: Zimbra won't shutdown - Stopping zimlet webapp fails

Post by andreaswolske »

amnesia
Advanced member
Advanced member
Posts: 85
Joined: Sat Sep 13, 2014 1:09 am
ZCS/ZD Version: 8.8.15.GA.4179.UBUNTU20.64

Re: Zimbra won't shutdown - Stopping zimlet webapp fails

Post by amnesia »

Has anyone discovered a workaround for this? I'm having the same issue on 8.7.4.GA.1730 on Ubuntu 16 and it is currently preventing me from upgrading.
jdossey7
Posts: 23
Joined: Fri Sep 12, 2014 10:43 pm

Re: Zimbra won't shutdown - Stopping zimlet webapp fails

Post by jdossey7 »

I'm having the same issue with a brand new install of Zimbra 8.8.5 on Centos 7.4. It started after I installed LetsEncrypt certs. Before I did that, I was using self-signed certs and did not have the shutdown problem.
zulhairiseman
Posts: 3
Joined: Wed May 24, 2017 8:34 am

Re: Zimbra won't shutdown - Stopping zimlet webapp fails

Post by zulhairiseman »

Anyone found solution for this issue?
stegbth
Advanced member
Advanced member
Posts: 141
Joined: Fri Sep 12, 2014 11:48 pm
Location: Bavaria in Germany

Re: Zimbra won't shutdown - Stopping zimlet webapp fails

Post by stegbth »

Hi,

same problem with
* Release 8.8.8.GA.2009.UBUNTU16.64 UBUNTU16_64 FOSS edition
* latest OS patches
* certificate from own CA

any solution known?

also after pressing Ctrl+C, the next Javaprocess seems to hang to stop
a

Code: Select all

pkill -u zimbra
seems to stop all processes.

regards
Thomas
zulhairiseman
Posts: 3
Joined: Wed May 24, 2017 8:34 am

Re: Zimbra won't shutdown - Stopping zimlet webapp fails

Post by zulhairiseman »

still hasn't find any solution. :(
psilvahr
Posts: 2
Joined: Tue Aug 30, 2016 3:22 pm

Re: Zimbra won't shutdown - Stopping zimlet webapp fails

Post by psilvahr »

Well, i see this solution, but not tested yet:

Jason Waters 2017-06-30 23:49:58 UTC
I got mine fixed! Thanks to Zimbra support. So I did this.

su - Zimbra
zmcontrol stop
Then control-C to to stop the services that don't start
mkdir /opt/zimbra/log/oldpids
mv /opt/zimbra/log/*.pid /opt/zimbra/log/oldpids
zmcontrol start
zmcontrol stop

And mine just worked! Hope it helps others!
Post Reply