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 09-15-2010, 09:16 AM
Starter Member
 
Posts: 1
Default Proxy for SOAP requests (linking Funambol with two mail store servers)

Hi all. :-)

We are experiencing some issues with the NGINX proxy for SOAP Requests over HTTP.

Our setup is the following:
- a couple of mail store server each holding some users
- a couple of load balanced mail proxy forwarding IMAP/POP and HTTP
- a Funambol server for Calendar/Contacts/AddressBook sync with Outlook and Mobile Platforms.

Tracing Funambol requests to the mail proxys we found that on the first request NGINX fails to recognize the user string in SOAP request and falls back to round robin distribution, leading to odd/even failure while accessing to user's data.

This is the relevant debug log:

Code:
2010/09/09 18:36:19 [debug] 14662#0: *45 zmauth: prepare route for proxy
2010/09/09 18:36:19 [debug] 14662#0: *45 zmauth: examining uri:/service/soap/ for REST
2010/09/09 18:36:19 [debug] 14662#0: *45 zmauth: examining uri:/service/soap/ for ActiveSync
2010/09/09 18:36:19 [debug] 14662#0: *45 zmauth: examining uri:/service/soap/ for caldav
2010/09/09 18:36:19 [debug] 14662#0: *45 zmauth: search for ZM_AUTH_TOKEN
2010/09/09 18:36:19 [debug] 14662#0: *45 zmauth: examing query-string  for field:zauthtoken
2010/09/09 18:36:19 [debug] 14662#0: *45 zmauth: no ZM_AUTH_TOKEN
2010/09/09 18:36:19 [debug] 14662#0: *45 zmauth: routing by iphash
2010/09/09 18:36:19 [debug] 14662#0: *45 zmauth: prepare upstream connection, try: 2
2010/09/09 18:36:19 [debug] 14662#0: *45 zmauth: mailstore1_ipaddress:8080 elected by iphash
First SOAP request is actually for authentication. When it is successful, ZM_AUTH_TOKEN is set and following requests are routed correctly. Otherwise, when the first request is routed to the wrong backend server (the one that does not handle the user data), authentication fails and no ZM_AUTH_TOKEN is set, leading to synchronization failure.

Does anybody have the same experience and can share thoughts about a possible solution?

Thanks.
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.