As a further enhancement of this issue, we where having all sort of problems, specifically:
- the ajax version of the mailbox was not loading
- the users could not change their configurations (when they could login somehow?)
- calendar was failing from time to time
- and others
All of those errors due to a 502 during a POST to /service/soap/BatchRequest .
nginx.access.log
Code: Select all
IP_REDACTED:64768 - - [25/Aug/2016:11:38:37 -0500] "POST /service/soap/BatchRequest HTTP/1.1" 502 1332 "https://mail.DOMAIN.REDACTED/" "Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36" "[::1]:8443"
IP_REDACTED:64113 - - [25/Aug/2016:11:40:59 -0500] "POST /service/soap/BatchRequest HTTP/1.1" 502 1332 "https://mail.DOMAIN.REDACTED/" "Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36" "[::1]:8443"
IP_REDACTED:25562 - - [25/Aug/2016:11:43:19 -0500] "POST /service/soap/NoOpRequest HTTP/1.1" 502 1332 "https://mail.DOMAIN.REDACTED/" "Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36" "[::1]:8443"
Here is the (very) verbose version:
Code: Select all
2016/09/03 17:10:15 [debug] 41908#0: *24 http empty handler
2016/09/03 17:10:15 [debug] 41908#0: *24 http keepalive handler
2016/09/03 17:10:15 [debug] 41908#0: *24 http process request line
2016/09/03 17:10:15 [debug] 41908#0: *24 http request line: "POST /service/soap/BatchRequest HTTP/1.1"
2016/09/03 17:10:15 [debug] 41908#0: *24 http uri: "/service/soap/BatchRequest"
2016/09/03 17:10:15 [debug] 41908#0: *24 http args: ""
2016/09/03 17:10:15 [debug] 41908#0: *24 http exten: ""
2016/09/03 17:10:15 [debug] 41908#0: *24 http process request header line
2016/09/03 17:10:15 [debug] 41908#0: *24 http header: "Host: mail.DOMAIN_REDACTED"
2016/09/03 17:10:15 [debug] 41908#0: *24 http header: "User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:42.0) Gecko/20100101 Firefox/42.0"
2016/09/03 17:10:15 [debug] 41908#0: *24 http header: "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
2016/09/03 17:10:15 [debug] 41908#0: *24 http header: "Accept-Language: en-US,en;q=0.5"
2016/09/03 17:10:15 [debug] 41908#0: *24 http header: "Accept-Encoding: gzip, deflate, br"
2016/09/03 17:10:15 [debug] 41908#0: *24 http header: "DNT: 1"
2016/09/03 17:10:15 [debug] 41908#0: *24 http header: "Content-Type: application/soap+xml; charset=utf-8"
2016/09/03 17:10:15 [debug] 41908#0: *24 http header: "X-Zimbra-Csrf-Token: REDACTED"
2016/09/03 17:10:15 [debug] 41908#0: *24 http header: "Referer: https://mail.DOMAIN_REDACTED/"
2016/09/03 17:10:15 [debug] 41908#0: *24 http header: "Content-Length: 643"
2016/09/03 17:10:15 [debug] 41908#0: *24 http alloc large header buffer
2016/09/03 17:10:15 [debug] 41908#0: *24 http large header alloc: 00000000018EB670 8192
2016/09/03 17:10:15 [debug] 41908#0: *24 http large header copy: 548
2016/09/03 17:10:15 [debug] 41908#0: *24 http header: "Cookie: ZM_TEST=true; ZM_AUTH_TOKEN=REDACTED; JSESSIONID=REDACTED; ZM_ADMIN_AUTH_TOKEN=REDACTED"
2016/09/03 17:10:15 [debug] 41908#0: *24 http header: "Connection: keep-alive"
2016/09/03 17:10:15 [debug] 41908#0: *24 http header: "Cache-Control: max-age=0"
2016/09/03 17:10:15 [debug] 41908#0: *24 http header done
2016/09/03 17:10:15 [debug] 41908#0: *24 rewrite phase: 0
2016/09/03 17:10:15 [debug] 41908#0: *24 http script value: "http://zimbra_login"
2016/09/03 17:10:15 [debug] 41908#0: *24 http script set $login_upstream
2016/09/03 17:10:15 [debug] 41908#0: *24 http script var
2016/09/03 17:10:15 [debug] 41908#0: *24 http script var: "ZM_TEST=true; ZM_AUTH_TOKEN=REDACTED; JSESSIONID=REDACTED; ZM_ADMIN_AUTH_TOKEN=REDACTED"
2016/09/03 17:10:15 [debug] 41908#0: *24 http script regex: "ZM_AUTH_TOKEN="
2016/09/03 17:10:15 [notice] 41908#0: *24 "ZM_AUTH_TOKEN=" matches "ZM_TEST=true; ZM_AUTH_TOKEN=REDACTED; JSESSIONID=REDACTED; ZM_ADMIN_AUTH_TOKEN=REDACTED", client: IP_REDACTED, server: server1.DOMAIN_REDACTED.default, request: "POST /service/soap/BatchRequest HTTP/1.1", host: "mail.DOMAIN_REDACTED", referrer: "https://mail.DOMAIN_REDACTED/"
2016/09/03 17:10:15 [debug] 41908#0: *24 http script if
2016/09/03 17:10:15 [debug] 41908#0: *24 http script value: "http://zimbra_webclient"
2016/09/03 17:10:15 [debug] 41908#0: *24 http script set $login_upstream
2016/09/03 17:10:15 [debug] 41908#0: *24 test location: "/"
2016/09/03 17:10:15 [debug] 41908#0: *24 test location: "nginx_status"
2016/09/03 17:10:15 [debug] 41908#0: *24 test location: "service/soap/WaitSetRequest"
2016/09/03 17:10:15 [debug] 41908#0: *24 test location: "service/soap/NoOpRequest"
2016/09/03 17:10:15 [debug] 41908#0: *24 test location: ~ "/(service|principals|dav|\.well-known|home|octopus|shf|user|certauth|spnegoauth|(zimbra/home)|(zimbra/user))/"
2016/09/03 17:10:15 [debug] 41908#0: *24 using configuration "/(service|principals|dav|\.well-known|home|octopus|shf|user|certauth|spnegoauth|(zimbra/home)|(zimbra/user))/"
2016/09/03 17:10:15 [debug] 41908#0: *24 http cl:643 max:0
2016/09/03 17:10:15 [debug] 41908#0: *24 rewrite phase: 2
2016/09/03 17:10:15 [debug] 41908#0: *24 http script value: "8080"
2016/09/03 17:10:15 [debug] 41908#0: *24 http script set $mailhostport
2016/09/03 17:10:15 [debug] 41908#0: *24 http script complex value
2016/09/03 17:10:15 [debug] 41908#0: *24 http script var: "mail.DOMAIN_REDACTED"
2016/09/03 17:10:15 [debug] 41908#0: *24 http script set $relhost
2016/09/03 17:10:15 [debug] 41908#0: *24 http script var
2016/09/03 17:10:15 [debug] 41908#0: *24 http script var: "8080"
2016/09/03 17:10:15 [debug] 41908#0: *24 http script value: "80"
2016/09/03 17:10:15 [debug] 41908#0: *24 http script not equal
2016/09/03 17:10:15 [debug] 41908#0: *24 http script if
2016/09/03 17:10:15 [debug] 41908#0: *24 http script complex value
2016/09/03 17:10:15 [debug] 41908#0: *24 http script var: "mail.DOMAIN_REDACTED"
2016/09/03 17:10:15 [debug] 41908#0: *24 http script copy: ":"
2016/09/03 17:10:15 [debug] 41908#0: *24 http script var: "8080"
2016/09/03 17:10:15 [debug] 41908#0: *24 http script set $relhost
2016/09/03 17:10:15 [debug] 41908#0: *24 http script complex value
2016/09/03 17:10:15 [debug] 41908#0: *24 http script var: "mail.DOMAIN_REDACTED"
2016/09/03 17:10:15 [debug] 41908#0: *24 http script set $virtual_host
2016/09/03 17:10:15 [debug] 41908#0: *24 http script var
2016/09/03 17:10:15 [debug] 41908#0: *24 http script var: "mail.DOMAIN_REDACTED"
2016/09/03 17:10:15 [debug] 41908#0: *24 http script value: ""
2016/09/03 17:10:15 [debug] 41908#0: *24 http script equal
2016/09/03 17:10:15 [debug] 41908#0: *24 http script equal: no
2016/09/03 17:10:15 [debug] 41908#0: *24 http script if
2016/09/03 17:10:15 [debug] 41908#0: *24 http script if: false
2016/09/03 17:10:15 [debug] 41908#0: *24 post rewrite phase: 3
2016/09/03 17:10:15 [debug] 41908#0: *24 generic phase: 4
2016/09/03 17:10:15 [debug] 41908#0: *24 generic phase: 5
2016/09/03 17:10:15 [debug] 41908#0: *24 access phase: 6
2016/09/03 17:10:15 [debug] 41908#0: *24 access phase: 7
2016/09/03 17:10:15 [debug] 41908#0: *24 access phase: 8
2016/09/03 17:10:15 [debug] 41908#0: *24 post access phase: 9
2016/09/03 17:10:15 [debug] 41908#0: *24 http client request body preread 643
2016/09/03 17:10:15 [debug] 41908#0: *24 http request body content length filter
2016/09/03 17:10:15 [debug] 41908#0: *24 http init upstream, client timer: 0
2016/09/03 17:10:15 [debug] 41908#0: *24 http script copy: "X-Forwarded-For: "
2016/09/03 17:10:15 [debug] 41908#0: *24 http script var: "IP_REDACTED"
2016/09/03 17:10:15 [debug] 41908#0: *24 http script copy: "^M
"
2016/09/03 17:10:15 [debug] 41908#0: *24 http script copy: "Host: "
2016/09/03 17:10:15 [debug] 41908#0: *24 http script var: "mail.DOMAIN_REDACTED"
2016/09/03 17:10:15 [debug] 41908#0: *24 http script copy: "^M
"
2016/09/03 17:10:15 [debug] 41908#0: *24 http script copy: "Connection: close^M
"
2016/09/03 17:10:15 [debug] 41908#0: *24 http script copy: "Content-Length: "
2016/09/03 17:10:15 [debug] 41908#0: *24 http script var: "643"
2016/09/03 17:10:15 [debug] 41908#0: *24 http script copy: "^M
"
2016/09/03 17:10:15 [debug] 41908#0: *24 http proxy header: "User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:42.0) Gecko/20100101 Firefox/42.0"
2016/09/03 17:10:15 [debug] 41908#0: *24 http proxy header: "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
2016/09/03 17:10:15 [debug] 41908#0: *24 http proxy header: "Accept-Language: en-US,en;q=0.5"
2016/09/03 17:10:15 [debug] 41908#0: *24 http proxy header: "Accept-Encoding: gzip, deflate, br"
2016/09/03 17:10:15 [debug] 41908#0: *24 http proxy header: "DNT: 1"
2016/09/03 17:10:15 [debug] 41908#0: *24 http proxy header: "Content-Type: application/soap+xml; charset=utf-8"
2016/09/03 17:10:15 [debug] 41908#0: *24 http proxy header: "X-Zimbra-Csrf-Token: REDACTED"
2016/09/03 17:10:15 [debug] 41908#0: *24 http proxy header: "Referer: https://mail.DOMAIN_REDACTED/"
2016/09/03 17:10:15 [debug] 41908#0: *24 http proxy header: "Cookie: ZM_TEST=true; ZM_AUTH_TOKEN=REDACTED; JSESSIONID=REDACTED; ZM_ADMIN_AUTH_TOKEN=REDACTED"
2016/09/03 17:10:15 [debug] 41908#0: *24 http proxy header: "Cache-Control: max-age=0"
2016/09/03 17:10:15 [debug] 41908#0: *24 http proxy header:
"POST /service/soap/BatchRequest HTTP/1.0^M
X-Forwarded-For: IP_REDACTED^M
Host: mail.DOMAIN_REDACTED^M
Connection: close^M
Content-Length: 643^M
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:42.0) Gecko/20100101 Firefox/42.0^M
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8^M
Accept-Language: en-US,en;q=0.5^M
Accept-Encoding: gzip, deflate, br^M
DNT: 1^M
Content-Type: application/soap+xml; charset=utf-8^M
X-Zimbra-Csrf-Token: REDACTED^M
Referer: https://mail.DOMAIN_REDACTED/^M
Cookie: ZM_TEST=true; ZM_AUTH_TOKEN=REDACTED; JSESSIONID=REDACTED; ZM_ADMIN_AUTH_TOKEN=REDACTED^M
Cache-Control: max-age=0^M
^M
"
2016/09/03 17:10:15 [debug] 41908#0: *24 http cleanup add: 00000000018C9B00
2016/09/03 17:10:15 [debug] 41908#0: *24 zmauth: examining uri:/service/soap/BatchRequest for REST
2016/09/03 17:10:15 [debug] 41908#0: *24 zmauth: examining uri:/service/soap/BatchRequest for ActiveSync
2016/09/03 17:10:15 [debug] 41908#0: *24 zmauth: examining uri:/service/soap/BatchRequest for EWS
2016/09/03 17:10:15 [debug] 41908#0: *24 zmauth: examining uri:/service/soap/BatchRequest for caldav
2016/09/03 17:10:15 [debug] 41908#0: *24 zmauth: search for ZM_AUTH_TOKEN
2016/09/03 17:10:15 [debug] 41908#0: *24 zmauth: examining cookie value:ZM_TEST=true; ZM_AUTH_TOKEN=REDACTED; JSESSIONID=REDACTED; ZM_ADMIN_AUTH_TOKEN=REDACTED
2016/09/03 17:10:15 [debug] 41908#0: *24 zmauth: found ZM_AUTH_TOKEN:REDACTED
2016/09/03 17:10:15 [debug] 41908#0: *24 zmauth: got id:USERID_REDACTED from ZM_AUTH_TOKEN
2016/09/03 17:10:15 [debug] 41908#0: *24 zmauth: routing by ZM_AUTH_TOKEN
2016/09/03 17:10:15 [debug] 41908#0: *24 zmauth: search for ZM_AUTH_TOKEN
2016/09/03 17:10:15 [debug] 41908#0: *24 zmauth: examining cookie value:ZM_TEST=true; ZM_AUTH_TOKEN=REDACTED; JSESSIONID=REDACTED; ZM_ADMIN_AUTH_TOKEN=REDACTED
2016/09/03 17:10:15 [debug] 41908#0: *24 zmauth: found ZM_AUTH_TOKEN:REDACTED
2016/09/03 17:10:15 [debug] 41908#0: *24 zmauth: got version:8.7.0_GA_1659 from ZM_AUTH_TOKEN
2016/09/03 17:10:15 [debug] 41908#0: *24 zmauth: route lookup required to proxy request
2016/09/03 17:10:15 [debug] 41908#0: *24 http cleanup add: 00000000018C9B70
2016/09/03 17:10:15 [debug] 41908#0: *24 http finalize request: -4, "/service/soap/BatchRequest?" a:1, c:2
2016/09/03 17:10:15 [debug] 41908#0: *24 http request count:2 blk:0
2016/09/03 17:10:15 [debug] 41908#0: *24 zm lookup: fetch cached route:127.0.0.1:8080 for user:USERID_REDACTED
2016/09/03 17:10:15 [debug] 41908#0: *24 zmauth: prepare upstream connection, try: 2
2016/09/03 17:10:15 [debug] 41908#0: *24 zmauth: version in zm_auth_token: 8.7.0_GA_1659
2016/09/03 17:10:15 [debug] 41908#0: *24 zmauth: upstream server 127.0.0.1:8080 returned by zmlookup is not defined in upstream block, fallback to IPHASH/Fair to pick an upstream from the upstream block
2016/09/03 17:10:15 [debug] 41908#0: *24 zmauth: get ip hash peer, peers = 2 hash = 1165 selected peer index = 1 0002
2016/09/03 17:10:15 [debug] 41908#0: *24 exact_version_check is on
2016/09/03 17:10:15 [debug] 41908#0: *24 zmauth: [::1]:8080 elected by iphash
2016/09/03 17:10:15 [debug] 41908#0: *24 http upstream connect: -2
2016/09/03 17:10:15 [debug] 41908#0: *24 http upstream request: "/service/soap/BatchRequest?"
2016/09/03 17:10:15 [debug] 41908#0: *24 http upstream send request handler
2016/09/03 17:10:15 [debug] 41908#0: *24 http upstream send request
2016/09/03 17:10:15 [error] 41908#0: *24 connect() failed (111: Connection refused) while connecting to upstream, client: IP_REDACTED, server: server1.DOMAIN_REDACTED.default, request: "POST /service/soap/BatchRequest HTTP/1.1", upstream: "http://[::1]:8080/service/soap/BatchRequest", host: "mail.DOMAIN_REDACTED", referrer: "https://mail.DOMAIN_REDACTED/"
2016/09/03 17:10:15 [debug] 41908#0: *24 http next upstream, 2
2016/09/03 17:10:15 [debug] 41908#0: *24 [upstream_fair] fp->current = 1, state = 4, pc->tries = 2, pc->data = 00000000018C9BD0
2016/09/03 17:10:15 [debug] 41908#0: *24 [upstream_fair] nreq for peer 1 @ 000000000189AD78/00007F7EEF225178 now -5, total -5, delta -1
2016/09/03 17:10:15 [debug] 41908#0: *24 finalize http upstream request: 502
2016/09/03 17:10:15 [debug] 41908#0: *24 finalize http proxy request
2016/09/03 17:10:15 [debug] 41908#0: *24 close http upstream connection: 23
2016/09/03 17:10:15 [debug] 41908#0: *24 http finalize request: 502, "/service/soap/BatchRequest?" a:1, c:1
2016/09/03 17:10:15 [debug] 41908#0: *24 http special response: 502, "/service/soap/BatchRequest?"
2016/09/03 17:10:15 [debug] 41908#0: *24 internal redirect: "/zmerror_upstream_502.html?"
2016/09/03 17:10:15 [debug] 41908#0: *24 rewrite phase: 0
2016/09/03 17:10:15 [debug] 41908#0: *24 http script value: "http://zimbra_login"
2016/09/03 17:10:15 [debug] 41908#0: *24 http script set $login_upstream
2016/09/03 17:10:15 [debug] 41908#0: *24 http script var
2016/09/03 17:10:15 [debug] 41908#0: *24 http script var: "ZM_TEST=true; ZM_AUTH_TOKEN=REDACTED; JSESSIONID=REDACTED; ZM_ADMIN_AUTH_TOKEN=REDACTED"
2016/09/03 17:10:15 [debug] 41908#0: *24 http script regex: "ZM_AUTH_TOKEN="
2016/09/03 17:10:15 [notice] 41908#0: *24 "ZM_AUTH_TOKEN=" matches "ZM_TEST=true; ZM_AUTH_TOKEN=REDACTED; JSESSIONID=REDACTED; ZM_ADMIN_AUTH_TOKEN=REDACTED", client: IP_REDACTED, server: server1.DOMAIN_REDACTED.default, request: "POST /service/soap/BatchRequest HTTP/1.1", upstream: "http://[::1]:8080/service/soap/BatchRequest", host: "mail.DOMAIN_REDACTED", referrer: "https://mail.DOMAIN_REDACTED/"
2016/09/03 17:10:15 [debug] 41908#0: *24 http script if
2016/09/03 17:10:15 [debug] 41908#0: *24 http script value: "http://zimbra_webclient"
2016/09/03 17:10:15 [debug] 41908#0: *24 http script set $login_upstream
2016/09/03 17:10:15 [debug] 41908#0: *24 test location: "/"
2016/09/03 17:10:15 [debug] 41908#0: *24 test location: "nginx_status"
2016/09/03 17:10:15 [debug] 41908#0: *24 test location: "service/soap/WaitSetRequest"
2016/09/03 17:10:15 [debug] 41908#0: *24 test location: ~ "/(service|principals|dav|\.well-known|home|octopus|shf|user|certauth|spnegoauth|(zimbra/home)|(zimbra/user))/"
2016/09/03 17:10:15 [debug] 41908#0: *24 test location: ~ "^/zmerror_.*\.html$"
2016/09/03 17:10:15 [debug] 41908#0: *24 using configuration "^/zmerror_.*\.html$"
2016/09/03 17:10:15 [debug] 41908#0: *24 http cl:643 max:0
2016/09/03 17:10:15 [debug] 41908#0: *24 rewrite phase: 2
2016/09/03 17:10:15 [debug] 41908#0: *24 post rewrite phase: 3
2016/09/03 17:10:15 [debug] 41908#0: *24 generic phase: 4
2016/09/03 17:10:15 [debug] 41908#0: *24 generic phase: 5
2016/09/03 17:10:15 [debug] 41908#0: *24 access phase: 6
2016/09/03 17:10:15 [debug] 41908#0: *24 access phase: 7
2016/09/03 17:10:15 [debug] 41908#0: *24 access phase: 8
2016/09/03 17:10:15 [debug] 41908#0: *24 post access phase: 9
2016/09/03 17:10:15 [debug] 41908#0: *24 content phase: 10
2016/09/03 17:10:15 [debug] 41908#0: *24 content phase: 11
2016/09/03 17:10:15 [debug] 41908#0: *24 content phase: 12
2016/09/03 17:10:15 [debug] 41908#0: *24 http filename: "/opt/zimbra/data/nginx/html/zmerror_upstream_502.html"
2016/09/03 17:10:15 [debug] 41908#0: *24 http static fd: 23
2016/09/03 17:10:15 [debug] 41908#0: *24 HTTP/1.1 502 Bad Gateway^M
Server: nginx^M
Date: Sat, 03 Sep 2016 22:10:15 GMT^M
Content-Type: text/html^M
Content-Length: 1159^M
Connection: keep-alive^M
ETag: "57605997-487"^M
2016/09/03 17:10:15 [debug] 41908#0: *24 http write filter: l:0 f:0 s:173
2016/09/03 17:10:15 [debug] 41908#0: *24 http output filter "/zmerror_upstream_502.html?"
2016/09/03 17:10:15 [debug] 41908#0: *24 http copy filter: "/zmerror_upstream_502.html?"
2016/09/03 17:10:15 [debug] 41908#0: *24 http postpone filter "/zmerror_upstream_502.html?" 00000000018CA6C8
2016/09/03 17:10:15 [debug] 41908#0: *24 http write filter: l:1 f:0 s:1332
2016/09/03 17:10:15 [debug] 41908#0: *24 http write filter limit 0
2016/09/03 17:10:15 [debug] 41908#0: *24 http write filter 0000000000000000
2016/09/03 17:10:15 [debug] 41908#0: *24 http copy filter: 0 "/zmerror_upstream_502.html?"
2016/09/03 17:10:15 [debug] 41908#0: *24 http finalize request: 0, "/zmerror_upstream_502.html?" a:1, c:2
2016/09/03 17:10:15 [debug] 41908#0: *24 http request count:2 blk:0
2016/09/03 17:10:15 [debug] 41908#0: *24 http finalize request: -4, "/zmerror_upstream_502.html?" a:1, c:1
2016/09/03 17:10:15 [debug] 41908#0: *24 set http keepalive handler
2016/09/03 17:10:15 [debug] 41908#0: *24 http close request
2016/09/03 17:10:15 [debug] 41908#0: *24 http log handler
2016/09/03 17:10:15 [debug] 41908#0: *24 hc free: 0000000000000000 0
2016/09/03 17:10:15 [debug] 41908#0: *24 hc busy: 00000000018A97D0 1
Where this is the important part (see +++++):
Code: Select all
2016/09/03 17:10:15 [debug] 41908#0: *24 zmauth: examining cookie value:ZM_TEST=true; ZM_AUTH_TOKEN=REDACTED; JSESSIONID=REDACTED; ZM_ADMIN_AUTH_TOKEN=REDACTED
2016/09/03 17:10:15 [debug] 41908#0: *24 zmauth: found ZM_AUTH_TOKEN:REDACTED
2016/09/03 17:10:15 [debug] 41908#0: *24 zmauth: got version:8.7.0_GA_1659 from ZM_AUTH_TOKEN
2016/09/03 17:10:15 [debug] 41908#0: *24 zmauth: route lookup required to proxy request
2016/09/03 17:10:15 [debug] 41908#0: *24 http cleanup add: 00000000018C9B70
2016/09/03 17:10:15 [debug] 41908#0: *24 http finalize request: -4, "/service/soap/BatchRequest?" a:1, c:2
2016/09/03 17:10:15 [debug] 41908#0: *24 http request count:2 blk:0
2016/09/03 17:10:15 [debug] 41908#0: *24 zm lookup: fetch cached route:127.0.0.1:8080 for user:USERID_REDACTED
2016/09/03 17:10:15 [debug] 41908#0: *24 zmauth: prepare upstream connection, try: 2
2016/09/03 17:10:15 [debug] 41908#0: *24 zmauth: version in zm_auth_token: 8.7.0_GA_1659
+++++2016/09/03 17:10:15 [debug] 41908#0: *24 zmauth: upstream server 127.0.0.1:8080 returned by zmlookup is not defined in upstream block, fallback to IPHASH/Fair to pick an upstream from the upstream block+++++
2016/09/03 17:10:15 [debug] 41908#0: *24 zmauth: get ip hash peer, peers = 2 hash = 1165 selected peer index = 1 0002
2016/09/03 17:10:15 [debug] 41908#0: *24 exact_version_check is on
2016/09/03 17:10:15 [debug] 41908#0: *24 zmauth: [::1]:8080 elected by iphash
2016/09/03 17:10:15 [debug] 41908#0: *24 http upstream connect: -2
2016/09/03 17:10:15 [debug] 41908#0: *24 http upstream request: "/service/soap/BatchRequest?"
2016/09/03 17:10:15 [debug] 41908#0: *24 http upstream send request handler
2016/09/03 17:10:15 [debug] 41908#0: *24 http upstream send request
2016/09/03 17:10:15 [error] 41908#0: *24 connect() failed (111: Connection refused) while connecting to upstream, client: IP_REDACTED, server: server1.DOMAIN_REDACTED.default, request: "POST /service/soap/BatchRequest HTTP/1.1", upstream: "http://[::1]:8080/service/soap/BatchRequest", host: "mail.DOMAIN_REDACTED", referrer: "https://mail.DOMAIN_REDACTED/"
6125amartin wrote:I was able to resolve this by disabling zimbra-proxy by following the steps at the bottom of
this page.
So yeah, bypassing nginx for webmail seems to solve most issues, we'll see next week (Ugh, I hate having Java facing the internet)...
PS. The wiki has a small mistake:
"zmprov ms `zmhostname` zimbraMailSSLPort 993" should be "zmprov ms `zmhostname` zimbraMailSSLPort 443"