JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 28.07.2017, 00:05
Wedjick
Guest
 
Posts: n/a
Default JDownloader not starting correctly at startup (Raspberry Pi)

Hello there !

I have an issue with JDownloader on Raspbian Jessie (Raspberry Pi 2B+), I hope you could help me on this.

I want JDownloader to start on my Raspberry Pi startup. Raspbian Jessie uses systemd for that, so here is my script :

Code:
### startjdownloader.service ###

[Unit]
Description=Start JDownloader
After=network.target

[Service]
Type=simple
ExecStart=/usr/bin/java -jar /home/pi/jdownloader/JDownloader.jar
User=pi

[Install]
WantedBy=multi-user.target
But it only seems to be stuck in an update loop :

Code:
$ sudo systemctl status -l startjdownloader.service 
● startjdownloader.service - Start JDownloader
   Loaded: loaded (/etc/systemd/system/startjdownloader.service; enabled)
   Active: active (running) since jeu 2017-07-27 15:28:45 CEST; 8h ago
 Main PID: 2396 (java)
   CGroup: /system.slice/startjdownloader.service
           └─2396 /usr/bin/java -jar /home/pi/jdownloader/JDownloader.jar

jui 27 22:29:15 raspberrypi java[2396]: 458|Log.L.log 27/07/17 22:29:15 - FINER [ org.appwork.utils.Files(deleteRecursive) ] ->  Delete file /home/pi/jdownloader/tmp/update/JD/updatePackage.rev
jui 27 22:29:15 raspberrypi java[2396]: 458|Log.L.log 27/07/17 22:29:15 - FINER [ org.appwork.utils.Files(deleteRecursive) ] ->  Delete file /home/pi/jdownloader/tmp/update/JD
jui 27 22:29:15 raspberrypi java[2396]: Update Progress: 58,936%
jui 27 23:29:14 raspberrypi java[2396]: Start Update
jui 27 23:29:14 raspberrypi java[2396]: Update Message: Checking for updates
jui 27 23:29:14 raspberrypi java[2396]: Update Progress: 3%
jui 27 23:29:14 raspberrypi java[2396]: Update Progress: -1%
jui 27 23:29:14 raspberrypi java[2396]: Update Message: Connecting to server...
jui 27 23:29:14 raspberrypi java[2396]: Update Message: Checking for updates
jui 27 23:29:14 raspberrypi java[2396]: Update Progress: 70,065%
I have translated some of the logs above so it is all english, they might slightly differs from the original english ones.

Any idea where it could come from ?

Thanks in advance !
Reply With Quote
  #2  
Old 28.07.2017, 09:14
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,554
Default

Your systemd script is wrong and will break installation/update because JDownloader restarts itself
See
github.com/OpenMediaVault-Plugin-Developers/openmediavault-jdownloader/blob/master/debian/jdownloader.service

Type=oneshot
UMask=000
RemainAfterExit=yes
__________________
JD-Dev & Server-Admin
Reply With Quote
  #3  
Old 28.07.2017, 13:52
Wedjick
Guest
 
Posts: n/a
Default

Working indeed, thanks a lot !
Reply With Quote
  #4  
Old 28.07.2017, 13:58
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,554
Default

You're welcome!
__________________
JD-Dev & Server-Admin
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 02:18.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.