anthonyraymond / joal

An open source command line RatioMaster with an optional WebUI.
Apache License 2.0
572 stars 63 forks source link

Error 403 on web UI #205

Open metalslugger opened 1 year ago

metalslugger commented 1 year ago

Hi,

Thank you for this project I'm already using on windows. I would like to run Joal on my synology with docker.

I have other containers working well, and I think Joal installation is OK, except the fact that I have an error 403 on web UI. (using Chrome)

Execution command is from #77 Installation with Docker GUI (Synology): --joal-conf\="/data" --spring.main.web-environment\=true --server.port\="9000" --joal.ui.path.prefix\="joal" --joal.ui.secret-token\="04500796"

I configured ports: ports

After that it seems that joal container is working well but I can't access the UI at this adress: "http://XXX.XXX.X.XXX:9005/joal/04500796" Connection end with error 403.

I have no error in joal log (only info)

Any idea? I hope my error is simple to find...

Another point. I never understood what to do with "jack-of-all-trades-2.1.33.jar" file.

Thanks

anthonyraymond commented 1 year ago

Hi :) The correct URL is http://xxx.xxx.x.xxx:9005/joal not http://xxx.xxx.x.xxx:9005/joal/04500796. The secret-token is later asked when you fill in the connection settings form.

metalslugger commented 1 year ago

Hi @anthonyraymond and thank you for your work!

It looks better, but I now have this message on the web page (using chrome): Can "Upgrade" only to "WebSocket".

I have a 400 error in chrome network console I'm on my local network, so without reverse proxy for joal access.

anthonyraymond commented 1 year ago

You should not include "https://" in the host field of the connection form. It may be your issue

metalslugger commented 1 year ago

Unfortunately it makes no change. I'll also try to find information on Synology forum.

anthonyraymond commented 1 year ago

Are you behind a reverse proxy?

metalslugger commented 1 year ago

No I am in local network, directly on the router.

silvus commented 7 months ago

Similar problem for me.

I ssh to a local server on 192.168.1.20, launch the process with the command:

java -jar jack-of-all-trades-2.1.36.jar --joal-conf="/home/silvus/path/" --spring.main.web-environment=true --server.port=9093 --joal.ui.path.prefix="SECRET_OBFUSCATION_PATH" --joal.ui.secret-token="SECRET_TOKEN"

When I access http://192.168.1.20:9093/SECRET_OBFUSCATION_PATH , I got an HTTP 400 Response Can "Upgrade" only to "WebSocket".

Here are the logs:

[INFO ] 2023-12-05 14:58:57.326 [           main] o.a.j.c.c.JoalConfigProvider: App configuration has been successfully loaded

[INFO ] 2023-12-05 14:59:14.259 [http-nio-9093-exec-1] o.a.c.c.C.[.[.[/]: Initializing Spring DispatcherServlet 'joal'
[INFO ] 2023-12-05 14:59:14.259 [http-nio-9093-exec-1] o.s.w.s.DispatcherServlet: Initializing Servlet 'joal'
[INFO ] 2023-12-05 14:59:14.272 [http-nio-9093-exec-1] o.s.w.s.DispatcherServlet: Completed initialization in 13 ms
[ERROR] 2023-12-05 14:59:14.329 [http-nio-9093-exec-1] o.s.w.s.s.s.DefaultHandshakeHandler: "Handshake failed due to invalid Upgrade header: null"
fredlngtt commented 4 months ago

Hi all,

I have a similar issue

Synology Docker Install with --joal-conf\="/data" --spring.main.web-environment\=true --server.port\="9000" --joal.ui.path.prefix\="joalobscure" --joal.ui.secret-token\="210101"

Clean boot log image

But when I try to access the UI via Chrome : http://192.168.1.3:9000/joalobscure/ui or http://192.168.1.3:9000/joalobscure, with or https or http, I get a ERR_CONNECTION_RESET

If someone manage to do a clean step by step install of Joal on Synology, this would be great to have it detailed somewhere :). If I am successful, I will do it !

Thank you Fred

lusumohe commented 3 months ago

@fredlngtt I found a tuto here on synology https://github.com/anthonyraymond/joal/issues/138