Results 1 to 5 of 5

Thread: Nginx Bad Gateway occurs when one mailbox server is unavailable

  1. #1
    Jesster's Avatar
    Jesster is offline Trained Alumni
    Join Date
    Nov 2007
    Location
    Santa Barbara, CA.
    Posts
    109
    Rep Power
    7

    Question Nginx Bad Gateway occurs when one mailbox server is unavailable

    Hey All,

    We have a 5.0.13 Multi Server Install:

    2 Proxies
    2 Mailbox Servers
    2 LDAP Servers
    2 MTA Relay Servers
    12 MTA MX & AntiVirus/AntiSpam Servers


    The two proxies handle all reverse-proxied pop,imap, http/https traffic for Zimbra to our users.
    When we take one of the mailbox servers down, the Proxies immediately return 502 Bad Gateway for http/https users.

    What's the best way to take a mailbox server down without nginx disrupting service?

    Code:
    $ zmprov garpu
    zmbx01.example.org:7072/service/extension/nginx-lookup zmbx02.example.org:7072/service/extension/nginx-lookup
    Code:
    $ zmprov gamcs
    zproxy01.example.org:11211 zproxy02.example.org:11211

    Thanks!

    -Jesster
    Last edited by Jesster; 03-08-2009 at 05:44 PM. Reason: Updating correct error code from 503 to 502

  2. #2
    Klug's Avatar
    Klug is offline Moderator
    Join Date
    Mar 2006
    Location
    Beaucaire, France
    Posts
    2,316
    Rep Power
    13

    Default

    Quote Originally Posted by Jesster View Post
    When we take one of the mailbox servers down, the Proxies immediately return 503 Bad Gateway for http/https users.
    You're getting this whatever mailbox server you put down ?

    Or you're getting this only when a user on the server you put down wants to log in ?

  3. #3
    Jesster's Avatar
    Jesster is offline Trained Alumni
    Join Date
    Nov 2007
    Location
    Santa Barbara, CA.
    Posts
    109
    Rep Power
    7

    Default

    Quote Originally Posted by Klug View Post
    You're getting this whatever mailbox server you put down ?

    Or you're getting this only when a user on the server you put down wants to log in ?
    Klug,
    I had to test this to be sure. I logged myself out of Webmail, waited about 2 minutes, then shut zimbra down on zmbx02, sure enough, I got "502 Bad Gateway".

  4. #4
    Jesster's Avatar
    Jesster is offline Trained Alumni
    Join Date
    Nov 2007
    Location
    Santa Barbara, CA.
    Posts
    109
    Rep Power
    7

    Default

    It seems our users experience this even when both mailbox servers are online. We cannot identify patterns by the impaired users. The problem is intermittent .

    I've searched the forums, and found posts about dns, host files, and zimbraMailReferMode on the mailbox servers.

    Perhaps it's time to open a Support Case..

  5. #5
    mmorse's Avatar
    mmorse is offline Moderator
    Join Date
    May 2006
    Location
    USA
    Posts
    6,242
    Rep Power
    21

    Default

    -Might set zmprov mcf zimbraReverseProxyLogLevel debug for a bit.
    -nginx logs (when it happens / if you get a chance to trigger it)
    -nginx conf files
    -zmprov gs `zmhostname` | grep Proxy (on proxies & stores, or better yet without the grep if your sending a file to support - label which is which what your passing `zmhostname` instead of ztype0#)
    Last edited by mmorse; 03-18-2009 at 09:34 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. initializing ldap...FAILED(256)ERROR
    By manjunath in forum Installation
    Replies: 39
    Last Post: 06-07-2013, 10:27 AM
  2. Zimbra fails after working for 2 weeks
    By Linsys in forum Administrators
    Replies: 10
    Last Post: 10-07-2008, 12:42 AM
  3. mailbox stopped
    By rene.metaal in forum Installation
    Replies: 10
    Last Post: 06-20-2008, 05:15 AM
  4. can't you help me
    By iwan siahaan in forum Administrators
    Replies: 6
    Last Post: 12-17-2007, 06:53 PM
  5. Replies: 18
    Last Post: 03-20-2006, 02:22 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •