Hi all,
My YunoHost server
Hardware: Raspberry Pi 2B 1024MB RAM
YunoHost version: 3.6.4.6 (stable)
I have access to my server : Through SSH, through the webadmin and direct access via serial ttyUSB
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no
Description of my issue
I am tryning to use the XMPP client in nextcloud with metronome. I struggle to get BOSH running.
bjarkan wrote an howto, I especially paid attention to the last post with the better but dirtier solution.
So, my actions were:
- Install custom webapp at sub.doma.in/chat
- wget converse.im index page to /var/www/my_webapp/www
- edit /etc/metronome/conf.d/sub.doma.in.cfg.lua (add location /chat/http_bind)
- edit /etc/metronome/metronome.cfg.lua (uncomment bosh)
- edit /etc/nginx/conf.d/sub.doma.in.d/my_webapp.conf (point to localhost:5290)
- edit /var/www/my_webapp/www/index.html to point bosh at sub.doma.in/chat/http_bind
After service restart metronome/nginx, I get a gateway error at sub.doma.in/chat/http_bind.
- When using telnet at localhost to port 5290, I get no reply.
- When using telnet at localhost to port 5280, I do get in, but I do not know who is answering there.
When I change the configuration (nginx for my_webapp and metronome’s sub.doma.in.cfg.lua) to use port 5280 instead of 5290, my browser shows ‘file not found’.
With that port (5280), nginx’s access.log says: “GET /chat/http-bind HTTP/2.0” 404 922 “-” , error.log says:
[error] 29046#29046: *1 connect() failed (111: Connection refused) while connecting to upstream, client: (my IPv6), server: sub.doma.in, request: “GET /chat/http-bind HTTP/2.0”, upstream: “http://[::1]:5280/http-bind”, host: “sub.doma.in”
When I change it back to port 5290, the nginx-logs reflect the change:
access.log: “GET /chat/http-bind HTTP/2.0” 502 907 “-”
error.log: [error] 29478#29478: *1 connect() failed (111: Connection refused) while connecting to upstream, client: (my IPv6), server: sub.doma.in, request: “GET /chat/http-bind HTTP/2.0”, upstream: “http://[::1]:5290/http-bind”, host: “sub.doma.in”
Metronome does not have any entry when hitting https://sub.doma.in/chat/http-bind
There is one point in bjarkan’s howto that does not match my experience. In my metronome.conf.lua, there are no http-related settings. No http plugin to enable, no http ports or interfaces to check/change. I did add them:
http_ports = { 5280 }
http_interfaces = { "127.0.0.1", "::1" }
but that did not change the symptoms. There is a disabled virtual host, and there is a virtual host in the conf.d-directory that I did modify.
I only downloaded the index.html from converse.js; I don’t need converse.js, because I got nextcloud jabber, I only need http-bind.
Any idea where I went wrong?