[SOLVED] Issue: "Error: 503. Service unavailable."

Working with Zimbra Talk? This is your Forum, drop here your questions with the Installation, Configuration, etc.
Post Reply
Gintoki
Posts: 11
Joined: Thu Jun 02, 2016 11:06 am

[SOLVED] Issue: "Error: 503. Service unavailable."

Post by Gintoki »

Hi, Zimbra Team!

I solved previous problem associated with self-signed certificate.
It was generated incorrectly due to the fact Zimbra thought that the hostname of server = domain name.
I mean zmhostname displayed mydomain.local instead xmpp.mydomain.local.
I reinstalled Zimbra and Zimbra Talk from scratch. Zmhostname now displays the correct host name.
Talk tab doesn't appeared. Again.
Using DevTools I saw 500 Server Error.
But whet I changed /etc/nginx/sites-enabled/zimbra-talk - Talk tab appeared.

Then

Code: Select all

location ~ /xmpp-websocket(.*)$ {
                proxy_pass https://localhost:5281;
                proxy_http_version 1.1;
                proxy_set_header Upgrade $http_upgrade;
                proxy_set_header Connection "upgrade";
                proxy_set_header Host rivasense.local;
                tcp_nodelay on;
        }
location ~ /http-bind(.*)$ {
                proxy_pass http://localhost:5280;
                proxy_set_header X-Real-IP $remote_addr;
                proxy_set_header X-Forwarded-For $remote_addr;
                proxy_set_header Host rivasense.local;
        }
Now

Code: Select all

location ~ /xmpp-websocket(.*)$ {
                proxy_pass https://localhost:5281;
                proxy_http_version 1.1;
                proxy_set_header Upgrade $http_upgrade;
                proxy_set_header Connection "upgrade";
                proxy_set_header Host xmpp.rivasense.local;
                tcp_nodelay on;
        }
location ~ /http-bind(.*)$ {
                proxy_pass http://localhost:5280;
                proxy_set_header X-Real-IP $remote_addr;
                proxy_set_header X-Forwarded-For $remote_addr;
                proxy_set_header Host xmpp.rivasense.local;
        }
And now we are close to the current problem.
Zimbra Talk tab appeared, but not work. I got "Error: 503. Service unavailable." :
503.jpg
503.jpg (125.54 KiB) Viewed 4771 times
What I can do else?
Gintoki
Posts: 11
Joined: Thu Jun 02, 2016 11:06 am

Re: Issue: "Error: 503. Service unavailable."

Post by Gintoki »

Ok!
I tried to change /etc/nginx/sites-enabled/zimbra-talk again.
This time I did so:
didn't change

Code: Select all

location ~ /xmpp-websocket(.*)$ {
                proxy_pass https://localhost:5281;
                proxy_http_version 1.1;
                proxy_set_header Upgrade $http_upgrade;
                proxy_set_header Connection "upgrade";
                proxy_set_header Host xmpp.rivasense.local;
                tcp_nodelay on;
        }
returned to previous value

Code: Select all

location ~ /http-bind(.*)$ {
                proxy_pass http://localhost:5280;
                proxy_set_header X-Real-IP $remote_addr;
                proxy_set_header X-Forwarded-For $remote_addr;
                proxy_set_header Host rivasense.local;
        }
On the Talk server → service nginx restart,
on the Zimbra server → zmcontrol restart.
Error 503 is gone.
Now I will test Zimbra Talk!
Post Reply