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

New builds throws exception in ubuntu #19

Closed
arbuilder opened this issue Feb 13, 2021 · 16 comments
Closed

New builds throws exception in ubuntu #19

arbuilder opened this issue Feb 13, 2021 · 16 comments
Labels
wontfix This will not be worked on

Comments

@arbuilder
Copy link
Contributor

using below command on ubuntu 20.04 (WSL2) gives Exception in thread "main" java.io.IOException: Current OS and desktop configuration does not support browsing for a URL

java -jar Tachidesk-v0.2.0-r184.jar

Screenshot 2021-02-13 233717

Earlier non windows specific build were working on ubuntu

@arbuilder
Copy link
Contributor Author

arbuilder commented Feb 13, 2021

new windows jar build don't work in docker so we should remove the docker info for now

@AriaMoradi AriaMoradi added the wontfix This will not be worked on label Feb 14, 2021
@AriaMoradi
Copy link
Member

This bug most likely comes from drokbox.util and should be fixed upstream.

@AriaMoradi
Copy link
Member

does the program crash after running under wsl or does it continue working?

@arbuilder
Copy link
Contributor Author

it hangs in extensions i.e. wait , so web ui works but we cant do anything. i have rebuild jar (Tachidesk-v0.2.2-r222.jar) it still show the above error Exception in thread "main" java.io.IOException: Current OS and desktop configuration does not support browsing for a URL but it works on docker (Tachidesk-v0.2.2-r222.jar still hangs on wsl2).

Summary

S.No.jarWin 10Docker Win 10WSL2 Ubuntu 20.04
1Tachidesk-v0.2.2-r214.jar (latest release github) works hangs hangs
2Tachidesk-v0.2.2-r222.jar (rebuild on my pc) works workshangs

@univeous
Copy link

This also happens on my CentOS Linux server. Can SystemTray be disabled in a system that has no GUI?

@AriaMoradi
Copy link
Member

Release v0.2.3 should prevent from crashing on headless systems

@univeous
Copy link

univeous commented Feb 24, 2021

Release v0.2.3 should prevent from crashing on headless systems

I'm using V0.2.3, it seems it will still crash:

image

Also, it hangs in extensions i.e. wait.

@arbuilder
Copy link
Contributor Author

Release v0.2.3 should prevent from crashing on headless systems

I'm using V0.2.3, it seems it will still crash:

image

check if http://localhost:4567/extensions works and shows extensions if it does then u can ignore this error

@univeous
Copy link

Release v0.2.3 should prevent from crashing on headless systems

I'm using V0.2.3, it seems it will still crash:
image

check if http://localhost:4567/extensions works and shows extensions if it does then u can ignore this error

Library hangs on 'loading...', extensions and sources hang on 'wait'

@arbuilder
Copy link
Contributor Author

Library hangs on 'loading...', extensions and sources hang on 'wait'

i see i have the same error in wsl2 , can u run java -version and paste the output meanwhile if u have docker u can run docker run -p 127.0.0.1:4567:4567 docker.io/arbuild/tachidesk-docker as docker build works with v0.2.3

@univeous
Copy link

Library hangs on 'loading...', extensions and sources hang on 'wait'

i see i have the same error in wsl2 , can u run java -version and paste the output meanwhile if u have docker u can run docker run -p 127.0.0.1:4567:4567 docker.io/arbuild/tachidesk-docker as docker build works with v0.2.3

Here is my java version:
image

I tried to run it in docker but still no luck. I will check if it's my network problem.

@AriaMoradi
Copy link
Member

I tried the app with my archlinux in headless mode and it worked, I can load the webUI from my phone but none of the api works because it's trying to connect to the server at http://127.0.0.1:4567 but my phone sees the server from http://192.168.1.115
Maybe @univeous is facing the same issue?

image
image

Mind you that the app crashing means it getting terminated not printing java exceptions...

@univeous
Copy link

@AriaMoradi
Yes, I have the same problem, I just found it.

@AriaMoradi
Copy link
Member

AriaMoradi commented Feb 24, 2021

I can load the webUI from my phone but none of the api works because it's trying to connect to the server at http://127.0.0.1:4567 but my phone sees the server from http://192.168.1.115

If you are accessing the server from a remote client, To fix this issue you have to map the server's port to your local port with a tunneling program.(One easy to use solution is ssh port forwarding.)

This issue is not a bug, but is so by design, and is to prevent you from running on a remote client.
Reason being It's a bad idea to run Tachidesk remotely, because it has zero security and the app might break if api calls take a long time to resolve, but if you want to circumvent this limitation you are free to do so.

If you think this limitation should be removed, react to this comment with the rocket emoji, if it gets enough reactions I'll consider doing something about it.

@arbuilder
Copy link
Contributor Author

tried the app with my archlinux in headless mode and it worked, I can load the webUI from my phone but none of the api works because it's trying to connect to the server at http://127.0.0.1:4567 but my phone sees the server from http://192.168.1.115
Maybe @univeous is facing the same issue?

yes and that's why it failed on wsl2 also and works on docker because i am exposing docker container port on localhost.

If you are accessing the server from a remote client, To fix this issue you have to map the server's port to your local port with a tunneling program.
This issue is not a bug, but is so by design, and is to prevent you from running on a remote client.
Reason being It's a bad idea to run Tachidesk remotely, because it has zero security and the app might break if api calls take a long time to resolve, but if you want to circumvent this limitation you are free to do so.(One easy to use solution is ssh port forwarding.)

i see it also means that using docker will also cause the same issue when using lan ips http://192.168.1.115:4567 and the docker will also not work without port forwarding on headless servers. I will check if i can add forwarding in docker container without breaking the app.

@arbuilder
Copy link
Contributor Author

closing the issues as it is not a bug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants