Hi all,
My YunoHost server
Hardware: laptop or computer
YunoHost version:
- yunohost version: 11.2.5 (stable)
- yunohost-admin version: 11.2.3 (stable)
- moulinette version: 11.2 (stable)
- ssowat version: 11.2 (stable)
I have access to my server : Through SSH | through the webadmin | direct access via keyboard / screen
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no
Description of my issue
I just installed uptime-kuma (via the public catalag, I still like to browse the apps there and then just press the install button and enter my server, and there it goes )
Installation did not give any error, but the kuma stays down. It says:
Cannot connect to the socket server. [Error: websocket error] Reconnecting…
Using a Reverse Proxy? Check how to config it for WebSocket
The app page in the web admin says:
Uptime Kuma uptime-kuma
Installed version: 1.23.9~ynh1
…
Admin doc
- node_modules folder is backed up and shouldn’t be (600Mo…)
- This app needs a manual post-install
- We could pre-configure mail notifications with YunoHost mail server as an improvement. See comments in file to try to do it with Curl and WebSockets or Sqlite.
I don’t know which post-install is needed.
Checking uptime kuma’s Git pages, there is mention of an Nginx configuration.
Browsing /etc/nginx/conf.d/
for the domain / app, there are some configurations, one mentions the proxy that’s on the Git page.
uptime-kuma.conf
#sub_path_only rewrite ^/$ / permanent;
location / {
proxy_pass http://127.0.0.1:12716;
# https://github.com/louislam/uptime-kuma/wiki/Reverse-Proxy#nginx
# proxy_set_header X-Real-IP $remote_addr;
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
# Common parameter to increase upload size limit
#client_max_body_size 50M;
# Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc;
}
but I have no idea whether I should change something here, and if so, what.
Did anyone succeed?
PS: I installed uptime-kuma in its own (sub)domain, as mentioned on Github, not in a directory. The app admin page does allow to move the installation to a directory though.
PPS: I usually run diagnosis to get the current version of YNH etc when starting a thread, but because it takes some time to complete the whole diagnosis, I tend to forget to go back to it. Do the values get cached somewhere (other than on the forum )?
// edit: create and add tag ‘uptime-kuma’ (pressing the ‘forum’-button on the management page gave a 404 in the forum, see if it works now…)
/// edit: in addition to uncommenting the two lines mentioned by @gildas, I also had to add the line
proxy_set_header Host $host;
in the same file