Knowledgebase:
Synology installation and troubleshooting
Posted by pspzockerscene psp, Last modified by pspzockerscene psp on 29 July 2021 01:37 PM

Synology installation DSM6 and below (easy - Community package)

  1. Open Package Center --> Settings --> Package Sources and add the following package location:
    https://spk.netzbaer.de​
    In some cases this doesn't work. In this case, try only spk.netzbaer.de .
    Don't try to open that URL in your browser as there is no website behind it - you can only use it as a Synology package source!
    This package is not an official package by the JDownloader team so if you're having issues with the installation, either try the installation via terminal as described below or contact the creator of this package!
  2. Close- and re-open the Package Center and search for "JDownloader" and install it.
    If you cannot find it you most likely didn't close your Package Center before searching for the package!
  3. Make sure to setup a good default download path before starting your first downloads! See the troubleshooting guide below - do not let JD download in your system partition by mistake!
  4. Your installation is now complete. It is recommended to checkout the other articles in this Headless support category - especially these useful headless hints.
    Have fun with JDownloader on your headless device!

Many thanks to JD forum user neutr0n for providing this Synology community package!


Synology installation via Terminal (for all DSM versions but especially DSM7 and higher) [Deutsche Version]

  1. Install Java (scroll down, use Java installation Option 2).
  2. Connect to your Synology via SSH as root as described in this guide.
  3. Create a directory for JDownloader with the following command:
    mkdir /volume1/@appstore/JDownloader
  4. Navigate to that directory via cd /volume1/@appstore/JDownloader
    Stay in this directory during all steps of this guide!
  5. Enter the following command to download the JDownloader installation files and wait until the download is complete:
    wget http://installer.jdownloader.org/JDownloader.jar
  6. Enter:
    java -jar JDownloader.jar -norestart
    Repeat this command until JDownloader asks you to enter your MyJDownloader login/password on console.
    You can now remote-control your JDownloader instance via my.jdownloader.org.
  7. [Optional] If you want JD to autostart whenever your Synology starts up, do the following:
    a. Enter:
    echo -en '#!/bin/bash\ncd /volume1/@appstore/JDownloader\njava -jar JDownloader.jar &' > start.sh
    b. Enter:
    chmod a+x start.sh
    c. In your Synology webinterface, go to Control Panel -> Task Scheduler -> Create -> Triggered Task -> User-defined script:
    Tab General: Task: Run JD on startup
    Tab Task Settings -> User-defined script: sleep 45 && /volume1/@appstore/JDownloader/start.sh
    d. Add this task by clicking Ok and make sure that it is enabled.
    JD will now start whenever your Synology device is starting up.
  8. Make sure to setup a good default download path before starting your first downloads! See the troubleshooting guide below - do not let JD download in your system partition by mistake!
  9. You're done! It is recommended to checkout the other articles in this Headless support category - especially these useful headless hints.
    Have fun with JDownloader on your Synology!

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


How to fix: JDownloader is not starting after upgrade from DSM6 to DSM 7 [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 after upgrading to DSM7!

  1. If you've previously installed the official Synology "Java8" package and if you can still see it in your Package Center, uninstall it.
    Once done, install Java via Java-Installer Community Package (scroll down, Option 2).
  2. Connect to your Synology via SSH as root as described in this guide and enter the following command:
    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
  3. Restart your Synology. JDownloader should now start automatically again.

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.
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.

Java Installation Options

[Option 1] Manual Java installation:

  1. Uninstall the pre-installed Java(8) version in the Package Center if existant.
  2. Download a Java version below- or equal to 8.0.161-0017 from the official Synology archive.
  3. Go to the Package Center --> Manual installation --> Chose the downloaded .spk file and install it.
  4. You should be able to start JD now!

[Option 2] Automatic Java installation via open source Community Package:

  1. Go to Package Center --> Settings --> Package Sources --> Add -> Put the following value in the location field depending on your DSM version:
    DSM 7:
    https://raw.githubusercontent.com/rednoah/java-installer/latest/syno-dsm7.json
    DSM 6 or lower:
    https://get.filebot.net/syno/
    The "name" field is irrelevant.
  2. Close- and e-open the Package Center, search for "Java Installer" and install it.
    If you cannot find it you most likely didn't close- and re-open your Package Center before searching for that package!
  3. You should be able to start JD now.

[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.

  1. Install the official Java package via package centre.
  2. Go to Package centre -> Installed -> Java(8) -> Open -> Upgrade Java -> Follow the instructions given there

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.


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?

You've probably selected something like "/downloads" as default folder. This is wrong and will result in JD downloading your files to your Synology system partition which you can only access via SSH!
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!



Attachments 
 
 synology_package_center_install_jdownloader.png (42.04 KB)
 synology_package_center_install_java_installer.png (66.49 KB)
 synology_path_selection.png (112.56 KB)
 synology_path_selection_2.png (59.56 KB)
(60 vote(s))
Helpful
Not helpful