Results 1 to 9 of 9

Thread: Issues with nginx proxy

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

    Default Issues with nginx proxy

    One user is having issues connecting to Zimbra and receives a 503 error message from nginx. Checking the nginx log file I see
    Code:
    2010/02/17 08:32:15 [error] 12677#0: *3663 zmauth: route handler 172.30.10.73:7072 did not send server or port, client: 172.29.28.2, server: zimbra01.domain.com, request: "GET / HTTP/1.1", host: "mail01.domain.com"
    If a colleague or myself connect to mail01.domain.com we can login just fine and we are on the same network as the troubled user. All DNS lookups respond okay. Any pointers please as this has me baffled.

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

    Default

    I believe what we are experiencing is a caching issue. The proxy setup is configured as:

    smtp01 -> zimbra01

    if I connect to zimbra01 all works fine; and at that point the route handler stores my account name and where my mail store is. If I then connect to mail01 which is a CNAME to zimbra01 I can still connect as the route handler knows where to send me.

    If a new users comes along and connects, for the first time, to mail01 it will not know where the mailstore is.

    Is it possible to overcome this ? Can we pre-load the route handler with where mailboxes are stored ?

  3. #3
    veronica is offline Outstanding Member
    Join Date
    Jun 2008
    Posts
    594
    Rep Power
    7

    Default

    > Is it possible to overcome this ? Can we pre-load the route handler with where mailboxes are stored ?

    Well thats the job of proxy, to cache final route information in memcache so that following requests go to correct mailstore.

    Was user account moved using zmmailboxmove to some other server ? Did you try restarting proxy to purge all old cached info ?

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

    Default

    Hi Veronica,

    This was a vanilla install on ZCS 6.0.5. The issue appears to be using a CNAME to the ZCS mailstore for connectivity.

    As soon as my colleague connected to zimbra01 all worked fine. What I do not understand is how both my other colleague and myself could connect via the CNAME.

    I have read AJCodys notes on the nginx and memcache process flow.

  5. #5
    veronica is offline Outstanding Member
    Join Date
    Jun 2008
    Posts
    594
    Rep Power
    7

    Default

    Hi Ubox,

    No offense but I guess I misunderstood your question.

    If a new user comes for the 1st time it could be that his mailbox is not yet created ( assuming no mail arrived yet ). Accessing mailbox for the user directly using mailbox server name creates it and I presume that also holds when accessed via proxy, but I am not sure and never tested that.

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

    Default

    No problem I migrated the user from one Zimbra server to another using zmmailbox. Prior to enabling nginx all worked fine. It is something to do with how nginx and memcached handles the connections.

  7. #7
    veronica is offline Outstanding Member
    Join Date
    Jun 2008
    Posts
    594
    Rep Power
    7

    Default

    Seems Nginx still has a cache entry for the account. Restart of proxy didn't help ?

  8. #8
    bdial's Avatar
    bdial is offline Moderator
    Join Date
    Jul 2007
    Location
    Baltimore
    Posts
    1,649
    Rep Power
    10

  9. #9
    veronica is offline Outstanding Member
    Join Date
    Jun 2008
    Posts
    594
    Rep Power
    7

    Default

    thats correct. flush cache works.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 6
    Last Post: 01-23-2013, 03:10 PM
  2. Using nginx for non-Zimbra proxy tasks
    By bondadmin in forum Installation
    Replies: 0
    Last Post: 07-12-2009, 09:14 PM
  3. proxy and 502 responses
    By sdouglass in forum Administrators
    Replies: 0
    Last Post: 01-07-2009, 03:00 PM
  4. Zimbra nginx HTTP proxy initial page response time
    By Protack in forum Administrators
    Replies: 4
    Last Post: 10-29-2008, 11:59 AM
  5. Replies: 1
    Last Post: 01-02-2008, 09:31 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
  •