Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-29-2009, 06:01 AM
Partner (VAR/HSP)
 
Posts: 65
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
Reply With Quote
  #2 (permalink)  
Old 01-29-2009, 06:07 AM
Moderator
 
Posts: 2,207
Default

Not at all.

What is your setup ?
How many zimbra-proxy, how many mailbox servers ?
Reply With Quote
  #3 (permalink)  
Old 01-29-2009, 06:17 AM
Partner (VAR/HSP)
 
Posts: 65
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.
Reply With Quote
  #4 (permalink)  
Old 01-29-2009, 06:31 AM
Moderator
 
Posts: 7,928
Default

Anything reported in your Wiki :: Log Files when this occurs ?
__________________
Reply With Quote
  #5 (permalink)  
Old 01-29-2009, 07:27 AM
Moderator
 
Posts: 2,207
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
Reply With Quote
  #6 (permalink)  
Old 01-29-2009, 02:32 PM
Partner (VAR/HSP)
 
Posts: 65
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 02:35 PM..
Reply With Quote
  #7 (permalink)  
Old 01-29-2009, 09:41 PM
Active Member
 
Posts: 32
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,
Reply With Quote
  #8 (permalink)  
Old 02-24-2009, 10:43 PM
Intermediate Member
 
Posts: 21
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 09:39 AM..
Reply With Quote
  #9 (permalink)  
Old 02-24-2009, 10:48 PM
Active Member
 
Posts: 32
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,
Reply With Quote
  #10 (permalink)  
Old 02-24-2009, 10:58 PM
Intermediate Member
 
Posts: 21
Default

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.