#1
|
|||
|
|||
JDownloader don't start anymore
I have installed JDownloader on my Raspberry Pi. After a reboot, JDownloader give an error on startup:
Code:
|---------------------------Headless Information------------------------------- | Exception occured | Exception occured | An unexpected error occured. | JDownloader will try to fix this. If this happens again, please contact our support. | java.lang.NoClassDefFoundError: org/appwork/utils/net/httpserver/handler/ExtendedHttpRequestHandler | at java.lang.ClassLoader.defineClass1(Native Method) | at java.lang.ClassLoader.defineClass(ClassLoader.java:760) | at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) | at java.net.URLClassLoader.defineClass(URLClassLoader.java:467) | at java.net.URLClassLoader.access$100(URLClassLoader.java:73) | at java.net.URLClassLoader$1.run(URLClassLoader.java:368) | at java.net.URLClassLoader$1.run(URLClassLoader.java:362) | at java.security.AccessController.doPrivileged(Native Method) | at java.net.URLClassLoader.findClass(URLClassLoader.java:361) | at java.lang.ClassLoader.loadClass(ClassLoader.java:424) | at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) | at java.lang.ClassLoader.loadClass(ClassLoader.java:357) | at org.jdownloader.api.RemoteAPIController.<init>(RemoteAPIController.java:315) | at org.jdownloader.api.RemoteAPIController.<clinit>(RemoteAPIController.java:116) | at jd.SecondLevelLaunch$12$1.run(SecondLevelLaunch.java:881) | Caused by: java.lang.ClassNotFoundException: org.appwork.utils.net.httpserver.handler.ExtendedHttpRequestHandler | at java.net.URLClassLoader.findClass(URLClassLoader.java:381) | at java.lang.ClassLoader.loadClass(ClassLoader.java:424) | at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) | at java.lang.ClassLoader.loadClass(ClassLoader.java:357) | ... 15 more | Press Enter to continue |
#2
|
||||
|
||||
Close JDownloader and delete JDownloader.jar and Core.jar, also the folders 'tmp' and 'update'
Download installer.jdownloader.org/JDownloader.jar and place it in your folder and start JDownloader again. Do you use systemd to start JDownloader? If so, please show the script
__________________
JD-Dev & Server-Admin |
#3
|
|||
|
|||
The procedure solved the problem, thank you!
To be honest, it's not the first time my JDownloader encounter an exception at startup, when it tries to install an update. I usually resolve the problem by deleting Core.jar and restarting JDownloader, but this time something else broke. Do you think disabling automatic updates could be a solution? Yes I start JDownloader with this systemd script: Code:
[Unit] Description=JDownloader Daemon After=network-online.target [Service] Type=simple User=pi ExecStartPre=-/bin/mv /home/pi/.jdownloader/JDownloader.jar.backup.1 /home/pi/.jdownloader/JDownloader.jar ExecStart=/usr/bin/java -Djava.awt.headless=true -jar /home/pi/.jdownloader/JDownloader.jar -norestart Restart=on-failure TimeoutStopSec=90 [Install] WantedBy=multi-user.target |
#4
|
||||
|
||||
Please modify according to this
github.com/OpenMediaVault-Plugin-Developers/openmediavault-jdownloader/blob/master/debian/jdownloader.service Type and RemainAfterExit are important, else script will break update DO NOT disable updates fix your script
__________________
JD-Dev & Server-Admin |
#5
|
|||
|
|||
I will, thank you!
|
#6
|
||||
|
||||
You're welcome
__________________
JD-Dev & Server-Admin |
#7
|
|||
|
|||
I just have one minor problem with the new script you gave me: if I manually stop and start JDownloader (with sudo systemctl stop jdownloader && sudo systemctl start jdownloader), the daemon starts but the process never returns (I have to send a ctrl+c in order to regain control of the command line). Is there a way to fix this behavior?
|
#8
|
||||
|
||||
modify script to launch JDownloader in background with
...JDownloader.jar & Also do NOT add '-norestart' . This parameter is only intended for setup
__________________
JD-Dev & Server-Admin |
#9
|
|||
|
|||
Unfortunately it's not enough :( This is the modified script:
Code:
[Unit] Description=JDownloader After=network-online.target [Service] User=pi Group=users Type=oneshot ExecStart=/usr/bin/java -Djava.awt.headless=true -jar /home/pi/.jdownloader/JDownloader.jar & RemainAfterExit=yes StandardOutput=null [Install] WantedBy=multi-user.target Last edited by avalloneandrea; 12.06.2017 at 22:40. |
#10
|
||||
|
||||
ExecStart=/usr/bin/java -Djava.awt.headless=true -jar /home/pi/.jdownloader/JDownloader.jar &
__________________
JD-Dev & Server-Admin |
#11
|
|||
|
|||
I'm sorry I didn't notice the previous script was cut because of the size of the window I've copied it from. I have updated the previous post: as you can I see, I'm already using the right command, without success.
Last edited by avalloneandrea; 13.06.2017 at 09:09. |
#12
|
||||
|
||||
StandardOutput=null
where does this come from? remove this ExecStart=/usr/bin/java -Djava.awt.headless=true -jar /home/pi/.jdownloader/JDownloader.jar >/dev/null 2>/dev/null &
__________________
JD-Dev & Server-Admin |
#13
|
|||
|
|||
It still doesn't work as expected. It's strange, because if I run
Code:
/usr/bin/java -Djava.awt.headless=true -jar /home/pi/.jdownloader/JDownloader.jar >/dev/null 2>/dev/null & Code:
sudo systemctl start jdownloader |
#14
|
||||
|
||||
Can you show the complete systemd script again?
__________________
JD-Dev & Server-Admin |
#15
|
|||
|
|||
Sure!
Code:
[Unit] Description=JDownloader Daemon After=network-online.target [Service] User=pi Group=users Type=oneshot ExecStart=/usr/bin/java -Djava.awt.headless=true -jar /home/pi/.jdownloader/JDownloader.jar > /dev/null 2> /dev/null & RemainAfterExit=yes [Install] WantedBy=multi-user.target |
#16
|
||||
|
||||
Did you do?
sudo systemctl daemon-reload to reload the config files? Maybe After=network-online.target is blocking because the network online is not finished? does this task even start/finish? I would remove it
__________________
JD-Dev & Server-Admin |
#17
|
|||
|
|||
Yes I run a
Code:
sudo systemctl daemon-reload I don't think Code:
After=network-online.target |
#18
|
||||
|
||||
I'm sorry but I don't know why it blocks for you.
The systemd github.com/OpenMediaVault-Plugin-Developers/openmediavault-jdownloader/blob/master/debian/jdownloader.service is working fine also yours is working fine Did you try to remove the after line?
__________________
JD-Dev & Server-Admin |
#19
|
|||
|
|||
Yeah I forgot to say that I have tried anyway removing the line, but the outcome is the same :(
|
#20
|
||||
|
||||
Can we do a teamviewer Session? contact me at support@jdownloader.org
__________________
JD-Dev & Server-Admin |
#21
|
||||
|
||||
Fixed via teamviewer
Changed 'Type=oneshot' to 'Type=simple'
__________________
JD-Dev & Server-Admin |
|
|