-
Notifications
You must be signed in to change notification settings - Fork 12
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
logstation seems to crash if BROWSE is not available #33
Comments
Hmm that's happening because it's trying to load the browser window. This was just a convenience feature that was added. Some quick googling seems to suggest that Does it flat out crash or do you just get that error? If so just go to |
Yup, I’m on Linux. Ideally I would like to be able to run logstation in the background and be able to access the server from other computers, and not be forced into using Desktop.browse. It seems to just flat out crash.
To reproduce, I made this python file “test.py":
```
$ cat test.py
import os
os.sytem(“java -jar logstation-0.3.10.jar &”)
$ sudo python3 test.py
… # <— crash I sent you before
```
Interestingly, it seems to be able to trigger the Browse when I don’t run with `sudo`. Ideally it would fail gracefully though if it could not Browse so this could be used in a headless context. I hope this helps!
… On Oct 12, 2018, at 9:59 PM, Jon Drews ***@***.***> wrote:
Hmm that's happening because it's trying to load the browser window. Some quick googling seems to suggest that java.awt.Desktop.browse has poor support for Linux desktops. Perhaps you're on Linux or something similar?
Does it flat out crash or do you just get that error? If so just go to http://127.0.0.1:8884 and it should be available.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#33 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ADDP_d0j7mpj7ZnmT5tFVDGJry_vwvCsks5ukUkWgaJpZM4XaY9i>.
|
I've isolated where this error is coming from, but I wasn't able to recreate it. I've put in some checks to make it continue on if it can't launch a browser. Please give it a go with the new 0.3.11 pre-release: |
Tested and working here: #34 (comment) Closing. |
I'm excited to use logstation and I'd like to configure to use it automatically in my environment. However, when I start a logstation instance programatically, it immediately dies:
Am I missing something with how I should run it?
The text was updated successfully, but these errors were encountered: