anthonyraymond/joal

Error 403 on web UI

metalslugger opened this issue · 9 comments

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

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.

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.

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

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

Are you behind a reverse proxy?

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

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"

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

@fredlngtt I found a tuto here on synology
#138