Defect #322

/http-bind/ in Kune

Added by Rubiq Maso almost 12 years ago. Updated almost 12 years ago.

Status:RejectedStart date:07/12/2012
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Public space
Target version:0.2.0
Resolution:invalid Tags:

Description

hi,
I have fresh debian instalation, kune behind NGINX reverse proxy installed on the same host.

The configuration of nginx is:
server {

listen   192.168.2.13:80; ## listen for ipv4
server_name  kune.mynet
access_log /var/log/nginx/kune.mynet-access.log;
location / {
proxy_pass http://localhost;
proxy_next_upstream error timeout invalid_header http_500 http_502 http_503;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto http;
proxy_redirect     off;
}
}
upstream localhost {
server 127.0.0.1:8888;
}

I have still the "connecting" sign at the top of the page, I looked up to the jscript console, and there is:

Failed to load resource: the server responded with a status of 500
(Socket opening: localhost:5280 >> java.net.ConnectException: Connection
refused) http://kune.mynet/http-bind/

Failed to load resource: the server responded with a status of 500
(Socket opening: localhost:5280 >> java.net.ConnectException: Connection
refused) http://kune.mynet/http-bind/

Failed to load resource: the server responded with a status of 500
(Socket opening: localhost:5280 >> java.net.ConnectException: Connection
refused) http://kune.mynet/http-bind/

Failed to load resource: the server responded with a status of 500
(Socket opening: localhost:5280 >> java.net.ConnectException: Connection
refused) http://kune.mynet/http-bind/

...

when I'm trying to access /http-bind/ (as defined in kune.properties as kune.chat.httpbase = /http-bind/), I've got an error 500. The same error I've got, when I'm trying to access the page directly on the server - lynx http://localhost:8888/http-bind/ - the error is not from the nginx reverse proxy, but directly from kune.

Please tell me what's wrong, or what do you need to know to diagnose the problem.
Thanks in advance
O.Pachner, Prague, Czech Republic

History

#1 Updated by Vicente J. Ruiz Jurado almost 12 years ago

Hi there,

We use to configure that under a proxy. See for instance Appendix D in:
https://code.google.com/p/emite/wiki/QuickStart
it's quite old, but is what we usually do.

/http-bind/ is only used for the chat app, so go step by step. First make the normal kune app to run (forget the chat), later, make the /http-bind/ and the chat work with a correct proxy configuration (you need to have openfire correctly installed).

Anyway, the big thing to run kune under a proxy is not the http-bind stuff, but the websocket connection (the error you get "Connecting" means that cannot establish the websocket connection). More info of how to do it, here:
http://kune.cc/?locale=es#!kune.docs.6810.1671

I hope this helps. If you can share later with us your ngnix con...

#2 Updated by Vicente J. Ruiz Jurado almost 12 years ago

  • Status changed from New to Rejected
  • Resolution set to invalid

Also available in: Atom PDF