Server fails to start (nginx start failed)

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
Post Reply
mack3457
Posts: 12
Joined: Fri Jun 05, 2015 8:37 am

Server fails to start (nginx start failed)

Post by mack3457 »

Hi!

About 10 hours ago, our web server stopped working. When restarting it, we see an error message:
nginx start failed. reason: No available memcached servers could be contacted
Funnily, we disabled memcached completely, so there shouldn't be any reason to look for memcached. I then activated memcached and told it to bind to localhost only. Testing with telnet was successful, but the error message didn't change.

I'm a little confused on what is going on. In trace.log I found a possible hint, when the failure started:
21:26:45.459:qtp1286783232-100491:http://localhost:8080/service/soap/AuthRequest REQUEST 127.0.0.1 POST null; zclient 8.8.9_GA_3006
21:26:45.467:qtp1286783232-100491:http://localhost:8080/service/soap/AuthRequest RESPONSE 200 text/xml;charset=utf-8
21:26:45.473:qtp1286783232-100535:http://localhost:8080/service/soap/GetInfoRequest REQUEST 127.0.0.1 POST null; zclient 8.8.9_GA_3006
21:26:45.476:qtp1286783232-100535:http://localhost:8080/service/soap/GetInfoRequest RESPONSE 500 text/xml;charset=utf-8
and repeating the last two REQUEST/RESPONS pairs multiple times.

What can I do to resolve the problem?

Thomas Mack

PS: This is version Release 8.8.9_GA_2055.RHEL7_64_20180703080917 RHEL7_64 FOSS edition, Patch 8.8.9_P1.
mack3457
Posts: 12
Joined: Fri Jun 05, 2015 8:37 am

Re: Server fails to start (nginx start failed)

Post by mack3457 »

So, I switch off proxy and remapped the ports - this is the "quick" solution.

Still don't know, why proxy doesn't like to start.

(And why proxy looks for memchached, when memcached isn't enabled. And why it cannot connect to memcached, even when it is installed?)

Maybe a reinstallation might clear this up...?


Thanks,
Thomas
phoenix
Ambassador
Ambassador
Posts: 27278
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

Re: Server fails to start (nginx start failed)

Post by phoenix »

Proxy & memcached have both been required since ZCS 8.8.7, I'd suggest you make sure they're both installed and configured correctly: https://wiki.zimbra.com/wiki/Enabling_Z ... _memcached
Regards

Bill

Rspamd: A high performance spamassassin replacement

Per ardua ad astra
mack3457
Posts: 12
Joined: Fri Jun 05, 2015 8:37 am

Re: Server fails to start (nginx start failed)

Post by mack3457 »

Yes, it looks like this. Still had accesses to memcached, even though it wasn't enabled.

So, finally re-ran install.sh and now it seems to work properly.

Thanks for the hint - didn't notice the necessity for it since 8.8.7.

Thomas
phoenix
Ambassador
Ambassador
Posts: 27278
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

Re: Server fails to start (nginx start failed)

Post by phoenix »

These things are often easy to miss in the Release Notes. I'm glad you've fixed it and it's working. :)
Regards

Bill

Rspamd: A high performance spamassassin replacement

Per ardua ad astra
msisami
Posts: 1
Joined: Sun Dec 25, 2022 8:46 pm

Re: Server fails to start (nginx start failed)

Post by msisami »

zmmemcachedctl start
Starting memcached...memcached is already running.

zmprov ms "mail.domain.com" +zimbraServiceEnabled memcached


zmcontrol restart

zmcontrol status
Post Reply