Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error 403 on web UI #205

Open
metalslugger opened this issue May 20, 2023 · 9 comments
Open

Error 403 on web UI #205

metalslugger opened this issue May 20, 2023 · 9 comments

Comments

@metalslugger
Copy link

metalslugger commented May 20, 2023

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
Copy link
Owner

anthonyraymond commented May 26, 2023

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
Copy link
Author

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
Copy link
Owner

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

@metalslugger
Copy link
Author

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

@anthonyraymond
Copy link
Owner

Are you behind a reverse proxy?

@metalslugger
Copy link
Author

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

@silvus
Copy link

silvus commented Dec 5, 2023

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
Copy link

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
Copy link

@fredlngtt I found a tuto here on synology
#138

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants