theotherp / nzbhydra2

Usenet meta search
Other
1.27k stars 76 forks source link

Unable to shutdown or restart via UI on linux #31

Closed digglor closed 6 years ago

digglor commented 6 years ago

When trying to shutdown or restart i receive the following exception on linux. The process stays active.

2018-01-07 15:54:01.570 WARN --- [ Thread-6] .s.c.a.CommonAnnotationBeanPostProcessor : Invocation of destroy method failed on bean with name 'nzbHydra': java.lang.NoClassDefFoundError: Could not initialize class java.awt.Toolkit Exception in thread "Thread-6" java.lang.NoClassDefFoundError: Could not initialize class org.nzbhydra.WindowsTrayIcon at org.nzbhydra.update.UpdateManager.lambda$exitWithReturnCode$3(UpdateManager.java:291) at java.lang.Thread.run(Thread.java:748)

rantanlan commented 6 years ago

Can't confirm, working fine on ubuntu 17.10, Hydra running as a systemd service...

theotherp commented 6 years ago

It's quite possible that this depends on the system it runs on . I know how to fix it even if I can't reproduce it.

Am 07.01.2018 5:31 nachm. schrieb "mason-xx" notifications@github.com:

Can't confirm, working fine on ubuntu 17.10, Hydra running as a systemd service...

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/theotherp/nzbhydra2/issues/31#issuecomment-355834541, or mute the thread https://github.com/notifications/unsubscribe-auth/ANtAeWMRjdo20N2aTWLunv-2d79fvretks5tIPFdgaJpZM4RVsTP .

digglor commented 6 years ago

I'm on a QNAP NAS Linux qnap 4.2.8 #1 SMP Sat Dec 30 06:01:19 CST 2017 x86_64 GNU/Linux using a custom start/stop script that launches ./nzbhydra2 2>&1 &

The process can be shutdown using the stop script and killing it gracefully by PID. The WEB-UI restart or shutdown option is not working because of the different OS and therefore the missing org.nzbhydra.WindowsTrayIcon.