AJAX stuck on loading, HTML works

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
bhaj
Posts: 18
Joined: Tue Sep 13, 2016 12:56 am

AJAX stuck on loading, HTML works

Postby bhaj » Tue Sep 20, 2016 11:15 am

AJAX does not work when using my FQDN from within my network, it gets stuck on loading after clicking login, only HTML works. Using the mail servers IP works for both AJAX and HTML, both the proxy port 800 and non proxy port 8080 work, SSL only works on 4430?. Accessing the FQDN from outside the network doesnt.

Coincedently, it was after changing my public hostname and port: viewtopic.php?p=271035#p271035

I tried changing it back but that hasnt fixed the problem. Originally public service protocol drop down was empty, it now will not allow me to select empty.

zmprov gs `zmhostname` zimbraReverseProxySSLToUpstreamEnabled zimbraReverseProxyLookupTarget zimbraReverseProxyHttpEnabled zimbraMailReferMode zimbraMailPort zimbraMailProxyPort zimbraMailSSLPort zimbraMailSSLProxyPort zimbraMailMode zimbraReverseProxyMailEnabled zimbraReverseProxyMailMode zimbraImapBindPort zimbraImapProxyBindPort zimbraImapSSLBindPort zimbraImapSSLProxyBindPort zimbraImapCleartextLoginEnabled zimbraPop3BindPort zimbraPop3ProxyBindPort zimbraPop3SSLBindPort zimbraPop3SSLProxyBindPort zimbraPop3CleartextLoginEnabled zimbraAdminPort zimbraAdminProxyPort zimbraReverseProxyAdminEnabled ; zmprov gs `zmhostname` zimbraServiceEnabled | egrep 'memcache|proxy|mailbox'
# name mail.mydomain.com
zimbraAdminPort: 7071
zimbraAdminProxyPort: 9071
zimbraImapBindPort: 7143
zimbraImapCleartextLoginEnabled: TRUE
zimbraImapProxyBindPort: 143
zimbraImapSSLBindPort: 7993
zimbraImapSSLProxyBindPort: 993
zimbraMailMode: both
zimbraMailPort: 8080
zimbraMailProxyPort: 800
zimbraMailReferMode: reverse-proxied
zimbraMailSSLPort: 8443
zimbraMailSSLProxyPort: 4430
zimbraPop3BindPort: 7110
zimbraPop3CleartextLoginEnabled: TRUE
zimbraPop3ProxyBindPort: 110
zimbraPop3SSLBindPort: 7995
zimbraPop3SSLProxyBindPort: 995
zimbraReverseProxyAdminEnabled: FALSE
zimbraReverseProxyHttpEnabled: TRUE
zimbraReverseProxyLookupTarget: TRUE
zimbraReverseProxyMailEnabled: TRUE
zimbraReverseProxyMailMode: both
zimbraReverseProxySSLToUpstreamEnabled: TRUE

zimbraServiceEnabled: memcached
zimbraServiceEnabled: mailbox
zimbraServiceEnabled: proxy


zmprov -getAllReverseProxyBackends
server mail.mydomain.com:8080;


/etc/nginx/sites-enabled/default
server {
listen 443 ssl;
server_name mail.mydomain.com;

include /etc/nginx/common.conf;

access_log /var/log/nginx/mail.mydomain.com.access.log;
error_log /var/log/nginx/mail.mydomain.com.error.log;


location / {
proxy_pass http://10.0.0.64:800/;
proxy_redirect off;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

client_max_body_size 25m;
#client_body_buffer_size 128k;

#proxy_connect_timeout 90;
#proxy_send_timeout 90;
#proxy_read_timeout 90;
#proxy_buffer_size 4k;
#proxy_buffers 4 32k;
#proxy_busy_buffers_size 64k;
}
}

Also tried proxy_set_header Host $host;

nothing is logged in /opt/zimbra/log/nginx.log at the time of refresh (20:37) according to below.

/opt/zimbra/mailbox.log
2016-09-20 20:37:00,504 INFO [qtp1684106402-7527:http://localhost:8080/service/soap/AuthRequest] [name=bhaj@mydomain.com;oip=10.0.0.64;ua=zclient/8.7.0_GA_1659;] soap - AuthRequest elapsed=3
2016-09-20 20:37:00,521 INFO [qtp1684106402-7529:http://localhost:8080/service/soap/GetInfoRequest] [name=bhaj@mydomain.com;mid=2;oip=10.0.0.64;ua=zclient/8.7.0_GA_1659;] soap - GetInfoRequest elapsed=5
2016-09-20 20:37:00,553 INFO [qtp1684106402-7525:http://localhost:8080/service/soap/GetAvailableLocalesRequest] [name=bhaj@mydomain.com;mid=2;ua=ZCS/8.7.0_GA_1659;] soap - GetAvailableLocalesRequest elapsed=1
2016-09-20 20:37:00,564 INFO [qtp1684106402-7524:https:https://localhost:7071/service/admin/soap/GetDomainInfoRequest] [ua=ZCS/8.7.0_GA_1659;] soap - GetDomainInfoRequest elapsed=0
2016-09-20 20:37:00,581 INFO [qtp1684106402-7527:http://localhost:8080/service/soap/AuthRequest] [name=bhaj@mydomain.com;oip=10.0.0.64;ua=zclient/8.7.0_GA_1659;] soap - AuthRequest elapsed=1
2016-09-20 20:37:00,586 INFO [qtp1684106402-7525:http://localhost:8080/service/soap/GetFolderRequest] [name=bhaj@mydomain.com;mid=2;oip=10.0.0.64;ua=zclient/8.7.0_GA_1659;] soap - GetFolderRequest elapsed=1
2016-09-20 20:37:00,589 INFO [qtp1684106402-7524:http://localhost:8080/service/soap/BatchRequest] [oip=10.0.0.64;] SoapEngine - Only BatchRequest does not have a handler mapped to it. Request: /service/soap/BatchRequest, does not have a handler, log for future handling.
2016-09-20 20:37:00,589 INFO [qtp1684106402-7524:http://localhost:8080/service/soap/BatchRequest] [name=bhaj@mydomain.com;mid=2;oip=10.0.0.64;ua=ZCS/8.7.0_GA_1659;] soap - BatchRequest
2016-09-20 20:37:00,597 INFO [qtp1684106402-7524:http://localhost:8080/service/soap/BatchRequest] [name=bhaj@mydomain.com;mid=2;oip=10.0.0.64;ua=ZCS/8.7.0_GA_1659;] soap - (batch) GetInfoRequest elapsed=8
2016-09-20 20:37:00,604 INFO [qtp1684106402-7524:http://localhost:8080/service/soap/BatchRequest] [name=bhaj@mydomain.com;mid=2;oip=10.0.0.64;ua=ZCS/8.7.0_GA_1659;] soap - (batch) SearchRequest elapsed=7


/var/log/nginx/mail.mydomain.com.access.log
10.0.0.1 - - [20/Sep/2016:20:37:00 +1000] "GET / HTTP/1.1" 200 43901 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/52.0.2743.116 Chrome/52.0.2743.116 Safari/537.36"
10.0.0.1 - - [20/Sep/2016:20:37:00 +1000] "GET /css/A.images,,common,,dwt,,msgview,,login,,zm,,spellcheck,,skin.css,qv=160628204238,adebug=false,askin=harmony,alocale=en_US.pagespeed.cf.E0kRYWxNTw.css HTTP/1.1" 304 0 "https://mail.mydomain.com/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/52.0.2743.116 Chrome/52.0.2743.116 Safari/537.36"
10.0.0.1 - - [20/Sep/2016:20:37:00 +1000] "GET /res/I18nMsg,,AjxMsg,,ZMsg,,ZmMsg,,AjxKeys,,ZmKeys,,ZdMsg,,AjxTemplateMsg.js.zgz,qv=160628204238,adebug=false,alanguage=en,acountry=US,askin=harmony.pagespeed.jm.JQeS67I0Pb.js HTTP/1.1" 304 0 "https://mail.mydomain.com/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/52.0.2743.116 Chrome/52.0.2743.116 Safari/537.36"
10.0.0.1 - - [20/Sep/2016:20:37:00 +1000] "GET /js/Startup1_1_all.js.zgz?v=160628204238 HTTP/1.1" 200 232924 "https://mail.mydomain.com/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/52.0.2743.116 Chrome/52.0.2743.116 Safari/537.36"
10.0.0.1 - - [20/Sep/2016:20:37:00 +1000] "GET /js/Startup1_2_all.js.zgz?v=160628204238 HTTP/1.1" 200 223240 "https://mail.mydomain.com/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/52.0.2743.116 Chrome/52.0.2743.116 Safari/537.36"
10.0.0.1 - - [20/Sep/2016:20:37:00 +1000] "GET /skins/_base/logos/xLoginBanner_white.png,qv=160628204238.pagespeed.ic.t7A0pZI2X_.webp HTTP/1.1" 304 0 "https://mail.mydomain.com/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/52.0.2743.116 Chrome/52.0.2743.116 Safari/537.36"
10.0.0.1 - - [20/Sep/2016:20:37:00 +1000] "GET /img/zimbra.gif?v=160628204238 HTTP/1.1" 304 0 "https://mail.mydomain.com/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/52.0.2743.116 Chrome/52.0.2743.116 Safari/537.36"
10.0.0.1 - - [20/Sep/2016:20:37:00 +1000] "GET /img/zimbra.png?v=160628204238 HTTP/1.1" 304 0 "https://mail.mydomain.com/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/52.0.2743.116 Chrome/52.0.2743.116 Safari/537.36"
10.0.0.1 - - [20/Sep/2016:20:37:00 +1000] "GET /img/logo/favicon.ico HTTP/1.1" 200 1150 "https://mail.mydomain.com/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/52.0.2743.116 Chrome/52.0.2743.116 Safari/537.36"


log from chromes console

Navigated to https://mail.mydomain.com/
Uncaught SyntaxError: Invalid or unexpected token
Uncaught SyntaxError: Invalid or unexpected token
Uncaught ReferenceError: AjxCore is not defined
Uncaught ReferenceError: AjxDebug is not defined


Server ip is 10.0.0.64
router is 10.0.0.1
my machine is 10.0.0.219

Here's the log when i click HTML.

/var/log/nginx/mail.mydomain.com.access.log
10.0.0.1 - - [20/Sep/2016:20:44:07 +1000] "GET /?client=standard HTTP/1.1" 302 5 "https://mail.mydomain.com/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/52.0.2743.116 Chrome/52.0.2743.116 Safari/537.36"
10.0.0.1 - - [20/Sep/2016:20:44:07 +1000] "GET /h/search?mesg=welcome&init=true HTTP/1.1" 200 22078 "https://mail.mydomain.com/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/52.0.2743.116 Chrome/52.0.2743.116 Safari/537.36"
10.0.0.64 - - [20/Sep/2016:20:44:07 +1000] "GET /img/logo/IconjsVersion@ HTTP/1.1" 404 1605 "https://mail.mydomain.com/h/search?mesg=welcome&init=true" "Serf/1.3.8 (mod_pagespeed/1.11.33.1-0)"
10.0.0.64 - - [20/Sep/2016:20:44:08 +1000] "GET /img/logo/Icon~ipadjsVersion@ HTTP/1.1" 404 1605 "https://mail.mydomain.com/h/search?mesg=welcome&init=true" "Serf/1.3.8 (mod_pagespeed/1.11.33.1-0)"
10.0.0.64 - - [20/Sep/2016:20:44:08 +1000] "GET /img/logo/apple-touch-icon.png?v=160628204238 HTTP/1.1" 404 1605 "https://mail.mydomain.com/h/search?mesg=welcome&init=true" "Serf/1.3.8 (mod_pagespeed/1.11.33.1-0)"


/opt/zimbra/log/mailbox.log
2016-09-20 20:44:07,108 INFO [qtp1684106402-7539:http://localhost:8080/service/soap/AuthRequest] [name=bhaj@mydomain.com;oip=10.0.0.64;ua=zclient/8.7.0_GA_1659;] soap - AuthRequest elapsed=3
2016-09-20 20:44:07,127 INFO [qtp1684106402-7569:http://localhost:8080/service/soap/GetInfoRequest] [name=bhaj@mydomain.com;mid=2;oip=10.0.0.64;ua=zclient/8.7.0_GA_1659;] soap - GetInfoRequest elapsed=5
2016-09-20 20:44:07,226 INFO [qtp1684106402-7570:http://localhost:8080/service/soap/AuthRequest] [name=bhaj@mydomain.com;oip=10.0.0.64;ua=zclient/8.7.0_GA_1659;] soap - AuthRequest elapsed=2
2016-09-20 20:44:07,240 INFO [qtp1684106402-7568:http://localhost:8080/service/soap/GetInfoRequest] [name=bhaj@mydomain.com;mid=2;oip=10.0.0.64;ua=zclient/8.7.0_GA_1659;] soap - GetInfoRequest elapsed=4
2016-09-20 20:44:07,251 INFO [qtp1684106402-7569:http://localhost:8080/service/soap/SearchRequest] [name=bhaj@mydomain.com;mid=2;oip=10.0.0.64;ua=zclient/8.7.0_GA_1659;] soap - SearchRequest elapsed=4
2016-09-20 20:44:07,267 INFO [qtp1684106402-7570:http://localhost:8080/service/soap/GetInfoRequest] [name=bhaj@mydomain.com;mid=2;oip=10.0.0.64;ua=zclient/8.7.0_GA_1659;] soap - GetInfoRequest elapsed=2
2016-09-20 20:44:07,272 INFO [qtp1684106402-7568:http://localhost:8080/service/soap/GetAvailableSkinsRequest] [name=bhaj@mydomain.com;mid=2;oip=10.0.0.64;ua=zclient/8.7.0_GA_1659;] soap - GetAvailableSkinsRequest elapsed=0
2016-09-20 20:44:07,278 INFO [qtp1684106402-7545:https:https://localhost:7071/service/admin/soap/GetDomainInfoRequest] [ua=ZCS/8.7.0_GA_1659;] soap - GetDomainInfoRequest elapsed=0
2016-09-20 20:44:07,945 INFO [qtp1684106402-7545:https:https://localhost:7071/service/admin/soap/GetDomainInfoRequest] [ua=ZCS/8.7.0_GA_1659;] soap - GetDomainInfoRequest elapsed=0
2016-09-20 20:44:08,005 INFO [qtp1684106402-7545:https:https://localhost:7071/service/admin/soap/GetDomainInfoRequest] [ua=ZCS/8.7.0_GA_1659;] soap - GetDomainInfoRequest elapsed=0
2016-09-20 20:44:08,080 INFO [qtp1684106402-7545:https:https://localhost:7071/service/admin/soap/GetDomainInfoRequest] [ua=ZCS/8.7.0_GA_1659;] soap - GetDomainInfoRequest elapsed=0
2016-09-20 20:44:09,916 INFO [MailboxPurge] [name=accounts@mydomain.com;mid=4;] purge - Purging messages.
2016-09-20 20:45:09,954 INFO [MailboxPurge] [name=admin@mydomain.com;mid=7;] purge - Purging messages.


I've tried the in:sent fix, no luck.


bhaj
Posts: 18
Joined: Tue Sep 13, 2016 12:56 am

Re: AJAX stuck on loading, HTML works

Postby bhaj » Tue Sep 27, 2016 8:34 am

any have any ideas?
bhaj
Posts: 18
Joined: Tue Sep 13, 2016 12:56 am

Re: AJAX stuck on loading, HTML works

Postby bhaj » Fri Sep 30, 2016 3:14 am

bumping, still not solved
trevorp
Posts: 9
Joined: Tue Dec 27, 2016 6:07 pm

Re: AJAX stuck on loading, HTML works

Postby trevorp » Tue Dec 27, 2016 8:25 pm

I have the same issue here:
viewtopic.php?f=15&t=61136

Can someone from ZImbra help with this?
bhaj
Posts: 18
Joined: Tue Sep 13, 2016 12:56 am

Re: AJAX stuck on loading, HTML works

Postby bhaj » Wed Dec 28, 2016 12:16 am

trevorp wrote:I have the same issue here:
viewtopic.php?f=15&t=61136

Can someone from ZImbra help with this?


I think i have found the root cause of my problem, i checked your domain and it is outputting startup.zgz properly: viewtopic.php?f=15&t=61118&p=273525#p273525

Yours is a different problem, check output of

Code: Select all

zmprov gs `zmhostname` zimbraReverseProxySSLToUpstreamEnabled zimbraReverseProxyLookupTarget zimbraReverseProxyHttpEnabled zimbraMailReferMode zimbraMailPort zimbraMailProxyPort zimbraMailSSLPort zimbraMailSSLProxyPort zimbraMailMode zimbraReverseProxyMailEnabled zimbraReverseProxyMailMode zimbraImapBindPort zimbraImapProxyBindPort zimbraImapSSLBindPort zimbraImapSSLProxyBindPort zimbraImapCleartextLoginEnabled zimbraPop3BindPort zimbraPop3ProxyBindPort zimbraPop3SSLBindPort zimbraPop3SSLProxyBindPort zimbraPop3CleartextLoginEnabled zimbraAdminPort zimbraAdminProxyPort zimbraReverseProxyAdminEnabled ; zmprov gs `zmhostname` zimbraServiceEnabled | egrep 'memcache|proxy|mailbox'


and make sure all port numbers are right
eMC
Posts: 5
Joined: Sun Dec 11, 2016 10:30 am

Re: AJAX stuck on loading, HTML works

Postby eMC » Thu Dec 29, 2016 5:20 pm

I had a similar problem but with an apache configuration.
You have to check your DNS setting, zonefile, host, hostname, resolv.conf, certificates and virtual hosts.
User avatar
JDunphy
Outstanding Member
Outstanding Member
Posts: 494
Joined: Fri Sep 12, 2014 11:18 pm
Location: Victoria, BC
ZCS/ZD Version: 8.7.11_P14 RHEL6 Network Edition
Contact:

Re: AJAX stuck on loading, HTML works

Postby JDunphy » Thu Dec 29, 2016 10:49 pm

This may be not related but the symptoms are identical. Check your browser extensions if you have any enabled. Because this happened recently to me.... I thought I would mention it. I doubt it has anything to do with the original post but the behavior is exactly the same. Will work in any modes other than ajax.

Do you happen to have privacy badger? I brought up my browser in safe-mode first and ajax worked ... from there, I slowly added my extensions until it stopped. Even if privacy badger is disabled, it was still preventing zimbra in AJAX mode from loading.
User avatar
oleksandrkravchuk
Posts: 8
Joined: Fri Jan 20, 2017 6:32 pm

Re: AJAX stuck on loading, HTML works

Postby oleksandrkravchuk » Fri Jan 20, 2017 6:41 pm

We need attention of zimbra team.
I have the same issue : I put zimbra through nginx and looks like regular standart web site is working but advance got stuck in loading process.
Please give us a clue what is need to be change to get ajax working .
Thanks
Oleksandr.
User avatar
oleksandrkravchuk
Posts: 8
Joined: Fri Jan 20, 2017 6:32 pm

Re: AJAX stuck on loading, HTML works

Postby oleksandrkravchuk » Fri Jan 20, 2017 11:42 pm

bhaj
Posts: 18
Joined: Tue Sep 13, 2016 12:56 am

Re: AJAX stuck on loading, HTML works

Postby bhaj » Wed Apr 12, 2017 12:43 pm

I've found my fix, see here: viewtopic.php?f=15&t=61118&p=275650#p275650

Return to “Administrators”

Who is online

Users browsing this forum: No registered users and 10 guests