Page 1 of 4 123 ... LastLast
Results 1 to 10 of 31

Thread: 502 Bad Gateway - nginx

  1. #1
    Protack is offline Partner (VAR/HSP)
    Join Date
    Jun 2008
    Location
    Lexington, KY
    Posts
    65
    Rep Power
    7

    Default 502 Bad Gateway - nginx

    This issues has been plaguing us for sometime now. Has anyone started noticing this happen more often since 5.0.11?

    God Bless,
    Marty

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

    Default

    Not at all.

    What is your setup ?
    How many zimbra-proxy, how many mailbox servers ?

  3. #3
    Protack is offline Partner (VAR/HSP)
    Join Date
    Jun 2008
    Location
    Lexington, KY
    Posts
    65
    Rep Power
    7

    Default

    Nothing complex at the moment. We have a load balancer going into two proxys. Each of these proxys perform reverse for HTTP(s) and IMAP/POP. Then behind those we have only one mailstore at the moment. We have already eliminated the load balancer as the issue since we get this error while going directly to the proxys.

  4. #4
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    Default

    Anything reported in your Wiki :: Log Files when this occurs ?

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

    Default

    Are DNS OK (split DNS if you're behind a firewall or even use the hosts file) ?

    Did you check the mailstore configuration after upgrade ?
    BonoboSLR had an issue while upgrading from <5.0.11 to 5.0.11, it seems the configuration broke on the mailstore and proxies (mailstores lost the fact they are reverse-proxied).
    [SOLVED] Ngnix Help

  6. #6
    Protack is offline Partner (VAR/HSP)
    Join Date
    Jun 2008
    Location
    Lexington, KY
    Posts
    65
    Rep Power
    7

    Default

    We had this issue even with 5.0.11. I noticed that the version that Zimbra uses for NGINX is 0.5.30 and the latest stable version is 0.7.32. I wonder why Zimbra is so far behind. We are going to test in PD (pre-deployment) environment upgrading to 0.7.32 and see if this fixes the issue. Also DNS is properly setup. We do not NAT for our production environment either.

    As far as errors in the log files there are the 502 errors in the nginx.access.log and then these in the nginx.log file:


    2009/01/29 17:31:17 [warn] 20209#0: *114133 an upstream response is buffered to a temporary file /opt/zimbra/nginx-0.5.30-zimbra/proxy_temp/0/08/0000000080 while reading upstream, client: 192.168.36.200, server: zlm01.server.net, URL: "/service/zimlet/res/Zimlets-nodev_all.js.zgz?language=en", upstream: "http://x.x.x.x:8080/service/zimlet/res/Zimlets-nodev_all.js.zgz?language=en", host: "mail.securemailhost.net", referrer: "http://mail.securemailhost.net/zimbra/"
    2009/01/29 17:31:18 [info] 20208#0: *114601 client x.x.x.x connected to 0.0.0.0:993
    2009/01/29 17:31:18 [info] 20208#0: *114601 peer closed connection in SSL handshake while sending client greeting line, client: x.x.x.x, server: 0.0.0.0:993
    2009/01/29 17:31:18 [info] 20208#0: *114602 client x.x.x.x connected to 0.0.0.0:110
    2009/01/29 17:31:18 [info] 20209#0: *114416 client 10.88.0.17 closed keepalive connection (104: Connection reset by peer)
    2009/01/29 17:31:18 [error] 20208#0: *114603 connect() failed (111: Connection refused) while reading response header from upstream, client: 24.101.117.84, server: zlm01.server.net, URL: "/service/soap", upstream: "http://x.x.x.x:8080/service/soap", host: "mail.server.net"
    2009/01/29 17:31:20 [info] 20208#0: *114609 client x.x.x.x connected to 0.0.0.0:995
    2009/01/29 17:31:20 [info] 20208#0: *114609 peer closed connection in SSL handshake while sending client greeting line, client: x.x.x.x, server: 0.0.0.0:995
    2009/01/29 17:31:20 [error] 20209#0: *114461 connect() failed (111: Connection refused) while reading response header from upstream, client: 192.168.36.200, server: zlm01.securemailhost.net, URL: "/zimbra?loginOp=logout", upstream: "http://x.x.x.x:8080/zimbra?loginOp=logout", host: "mail.server.net", referrer: "http://mail.server.net/zimbra/"


    God Bless,
    Marty
    Last edited by Protack; 01-29-2009 at 03:35 PM.

  7. #7
    sn00p's Avatar
    sn00p is offline Active Member
    Join Date
    Sep 2008
    Location
    Russia Federation, Novosibirsk
    Posts
    32
    Rep Power
    6

    Default

    We encountered such error month ago in Firefox+Zimbra Web (5.0.10). Error has gone away after installing latest version of Firefox. It seems that it is browser+nginx communication error. Now it is difficult to say what Firefox version causes error. If you are interested I could try to search log files for warnings for that time.

    Sysoev do a lot of work making nginx powerful and we are happy to help him.
    With best regards,

  8. #8
    VS_onD is offline Intermediate Member
    Join Date
    Aug 2008
    Location
    Europe
    Posts
    21
    Rep Power
    7

    Default

    ok, I'm removing my post since my problems were probably due to an entry in hosts file...

    so in order not to misguide anyone, I'm removing my questions.
    Last edited by VS_onD; 02-25-2009 at 10:39 AM.

  9. #9
    sn00p's Avatar
    sn00p is offline Active Member
    Join Date
    Sep 2008
    Location
    Russia Federation, Novosibirsk
    Posts
    32
    Rep Power
    6

    Default

    Nothing happens after deleting cookies. I've tried to repeat this bug recently but with no success
    Nevertheless FF 3.0.6 on linux works fine now.
    With best regards,

  10. #10
    VS_onD is offline Intermediate Member
    Join Date
    Aug 2008
    Location
    Europe
    Posts
    21
    Rep Power
    7

    Default

    Do you use self-installed certificates? ie ones that Firefox has to permanently or temporary accept?

Page 1 of 4 123 ... LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Proxy and error 502 question
    By markusvl in forum Installation
    Replies: 2
    Last Post: 09-23-2009, 08:11 AM
  2. proxy and 502 responses
    By sdouglass in forum Administrators
    Replies: 0
    Last Post: 01-07-2009, 03:00 PM
  3. mobile calender Internal Server Error
    By padraig in forum Administrators
    Replies: 19
    Last Post: 04-24-2008, 08:04 AM
  4. need advice on configuring zimbra to work with fax server
    By pheonix1t in forum Administrators
    Replies: 0
    Last Post: 07-11-2007, 07:46 PM
  5. mta and mailbox die
    By Morg0 in forum Administrators
    Replies: 5
    Last Post: 03-20-2006, 04:39 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
  •