JDownloader installation on Synology DSM
Read this article carefully!
There are multiple DSM versions available and for each DSM versions there can be multiple ways on how to install JDownloader!
Synology DSM7 and higher easy installation via community package
Link: https://source.synology.me/mybb2/showthread.php?tid=147
Download: https://source.synology.me/mybb2/mydownloads.php?action=browse_cat&cid=22
Video instructions: https://www.youtube.com/watch?v=FXPuhD3sp7A
You may need to get your account manually unlocked first in the linked 3rd party forums before you can access the download section.
Reference to our official support forums and this package: https://board.jdownloader.org/showthread.php?p=526515#post526515
Synology DSM7 and higher installation via Terminal [Deutsche Version]
mkdir /volume1/@appstore/JDownloader
cd /volume1/@appstore/JDownloader
wget http://installer.jdownloader.org/JDownloader.jar
java -Djava.awt.headless=true -jar JDownloader.jar -norestart
b. Repeat this command until JDownloader asks you to enter your MyJDownloader login/password on console.echo -en '#!/bin/bash\ncd /volume1/@appstore/JDownloader\nexport LC_CTYPE="en_US.UTF-8"\nexport LANG="en_US.UTF-8"\nexport LC_COLLATE="C"\numask 000\njava -Djava.awt.headless=true -jar JDownloader.jar &' > /volume1/@appstore/JDownloader/start.sh
chmod a+x start.sh
Run JD on startup
root
sleep 60 && /volume1/@appstore/JDownloader/start.sh
Synology DSM6 and below easy installation via community package
https://spk.netzbaer.de
spk.netzbaer.de
.Many thanks to JD forum user neutr0n for providing this Synology community package!
You do not want to execute JDownloader as root? Read this:
The instructions above will run JDownloader as root but JDownloader does not necessarily need to run as root.
The following instructions show how to change an existing installations to not run as root.
cd /volume1/@appstore
chown -R JDownloader:users JDownloader/
chmod -R 755 JDownloader/
root
to JDownloader
.If you mess this up, JDownloader will be unable to save its config or write into your desired download folder!
I've changed JDownloader not to run as root but it still shows up as JDOWNLOADER@ROOT
?!
No worries this is just the name of your instance which was auto assigned on the first start of JDownloader.
You can change that in the advanced settings under: MyJDownloaderSettings.devicename
You should disable terminal access in your DSM settings again if you don't need it anymore!
Leaving it enabled can be a security risk!
Troubleshooting and Java installation
Important: Some FAQ points are only for manual/terminal installation!
If you installed JDownloader via Synology package you can ignore all FAQ points which include terminal commands!
How to fix: JDownloader is not starting after upgrade from DSM6 to DSM7 [Deutsche Version]
The following guide will only help if you had installed JD on DSM6 via Synology Community Package (provided by netzbaer) and are now having trouble starting JD.
sed -i s/JAVA_BIN=\"\$\{JAVA_HOME\}\\/bin\\/java\"/JAVA_BIN=\"java\"/ /var/packages/JDownloader/scripts/start-stop-status && sudo sed -i -r s/LOGFILE=\"[^\"]+\"/LOGFILE=\"\\/dev\\/null\"/ /var/packages/JDownloader/scripts/start-stop-status
You should disable terminal access in your DSM settings again if you don't need it anymore!
Leaving it enabled can be a security risk!
JDownloader is not starting at all
By default, Synology (up to DSM6) is providing a Java version which can lead to issues on devices with ARM processors!
If your device has an ARM processor, a manual Java downgrade should help.
If this is the case and you're running DSM6 or lower: Uninstall previously installed "Java8" package.
Then install Java via one of the other options down below (option 2 = recommended).
Another point of failure is if you do not have Java installed on your Synology at all.
In this case, install Java via one of the options below.
Synology Java installation options (only needed for DSM6 and manual installation via terminal!)
[Option 1] Manual Java installation (up to DSM6):
[Option 2] Recommended: Automatic Java installation via open source Community Package:
https://get.filebot.net/syno/
https://get.filebot.net/syno/dsm6.json
[Option 3] Manual Java Version installation via existing Synology Java(8) package (up to DSM6)
Obviously this option only works if Synology provides an official Java package for your DSM version.
Slow downloads / high CPU usage during downloads from websites using https (nearly all are using https by now)
See slow speed troubleshooting.
There isn't really much you can do about this other than using the mentioned https-workarounds if existant in our plugin settings for the provider you want to download from.
Cannot access my downloads on external USB drives
It seems that external usb drives are mounted with mount option umask=0 and thus blocks access from others. You might have to update your start script for JDownloader and add umask=000
before the execution of JDownloader
JDownloader does not autostart and/or remains closed after every triggered update installation
Make sure that you did not accidentally start JD with the "norestart" command.
Check your start script (start.sh) and make sure that it does not start JD using the "norestart" command as this is only needed once during initial installation!
You can also manually start JD like this:
cd /volume1/@appstore/JDownloader
java -Djava.awt.headless=true -jar JDownloader.jar
JDownloader is losing all of the settings/downloadlist/linkgrabberlist after each restart - how to fix this?
This is most likely a permission issue.
root
.DSM7: I've installed JD but I'm unable to find it inside my package center - why?
At this moment there is no package source available for DSM7 so if you installed JD via the above guide, you've installed it manually so it is perfectly normal that you will not see it in your package center.
I can't find my downloaded files - where are they?
and/or:
I'am getting the error: 'Invalid download destination'
You've probably selected something like "/downloads" as default folder.
This is wrong and will either result in JD downloading your files to your Synology system partition or error "Invalid download destination"-
Make sure that you're selecting one of the folders that you can see in in Synology Interface in your File Station like shown in the following screenshot:
You can also view the full path by doing a rightclick on one of your shared folders -> Properties - see the following screenshot:
You can easily test if it worked by downloading a test file into that path.
If you've previously mistakenly downloaded files into your system partition, you can only delete them via SSH!
Be careful when doing that as you could easily break your Synology OS!
More headless FAQ & Troubleshooting can be found in the generic headless guide.