JDownloader Community - Appwork GmbH
 

Notices

Reply
 
Thread Tools Display Modes
  #41  
Old 14.10.2014, 16:35
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,646
Default

think friend of mine runes it on qnap
and
Jiaz has multiple boxes on RiPi

simple as install java and run the following
http://board.jdownloader.org/showthr...156#post307156

we wont be releasing 'ports' as such, we have one version but options to disable/enable features based on start parameters or detected os (unix|linux|mac|winblows)
__________________
raztoki @ jDownloader reporter/developer
http://svn.jdownloader.org/users/170

Don't fight the system, use it to your advantage. :]
Reply With Quote
  #42  
Old 14.10.2014, 18:34
Haralt
Guest
 
Posts: n/a
Default

Thanks for the manual! Jdownloader is running flawless in headless mode
To make it autostart with my snyology NAS I created the file /usr/local/etc/rc.d/S99jdownloader.sh with this content:
Quote:
#!/bin/sh
#
# Startup script for jdownloader2
#
# Stop myself if running
PIDFILE=/var/run/S99jdownloader.pid
#
start() {
sleep 1
nohup /volume1/@appstore/JavaManager/Java/bin/java -Djava.awt.headless=true -jar /volume1/@appstore/jdownloader/JDownloader.jar &
# write pidfile
echo $! > $PIDFILE
}
#
stop() {
[ -f ${PIDFILE} ] && kill `cat ${PIDFILE}`
# remove pidfile
rm -f $PIDFILE
}
#
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
stop
sleep 1
start
;;
*)
echo "Usage: $0 (start|stop|restart)"
exit 1
;;
esac
# End
(just used a generic script from the german synology wiki tho, I'm no programmer and I'm sure it could be made much shorter)

Last edited by Haralt; 14.10.2014 at 19:00.
Reply With Quote
  #43  
Old 15.10.2014, 04:35
J-J
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by Haralt View Post
Thanks for the manual! Jdownloader is running flawless in headless mode
To make it autostart with my snyology NAS I created the file /usr/local/etc/rc.d/S99jdownloader.sh with this content:

(just used a generic script from the german synology wiki tho, I'm no programmer and I'm sure it could be made much shorter)
This works!!! Thank you so much!
:thumbup:
Reply With Quote
  #44  
Old 17.10.2014, 14:26
Chryses
Guest
 
Posts: n/a
Default

For those who want to run jd2 on a qnap system (ARM and Intel), can use this "how to"
h t t p w w w hwupgrade.it/forum/showpost.php?p=41458883&postcount=1337
It's a qpkg, it's simple, not for totally noob but for you don't need to know too much.

Last edited by Chryses; 17.10.2014 at 14:28.
Reply With Quote
  #45  
Old 17.10.2014, 20:56
morgun
Guest
 
Posts: n/a
Default Summarize synology install

Hi guys I see some files a good script and great idea behind it.

Could someone please summarize how to install jdownload on synology?
I brought my storage home yesterday and I dont even know whether java is installed by default or I need to use some package installer. I will appreciate very much the whole process from zero to hero (new storage to running jdownloader)

thank you very much ;-)
Reply With Quote
  #46  
Old 17.10.2014, 21:44
J-J
Guest
 
Posts: n/a
Default How to install JDownloader2 on Synology NAS

HOW TO INSTALL JDOWNLOADER2 ON SYNOLOGY NAS:

  1. Install JD on Windows/Linux/OS X with the JAR-installer
  2. Start JD and let it update to the latest version
  3. Setup all settings in JD (don't forget to login to your my.jdownloader.org account)
    • User Interface
      • Enable Silent Mode
    • Bubble Notify
      • Show Bubbles if Never
    • Tray Icon
      • Uncheck Enabled
    More info on 1st post if needed (long version until step 1.3):
    Spoiler:
    Quote:
    Originally Posted by Enqueue90 View Post
    GhostAWT is no longer needed in order to run headless, Please read this post **External links are only visible to Support Staff**... for more information. -raztoki

    Introduction
    The last few weeks I did some development to make JDownloader run on server and NAS systems which do not have any XServer installed. This HowTo will explain how you can get JDownloader running without Graphical User Interface.

    Short Version (for pro users)
    1. Copy an existing JDownloader2 installation from a desktop system to your server system or NAS. Be sure to setup My.JDownloader before copying the files.
    2. Add GhostAWT to your JDownloader installation using the following commands (check "**External links are only visible to Support Staff** for the latest release)
      Code:
      cd /tmp
      wget **External links are only visible to Support Staff**tar xzfv 0.0.1.tar.gz
      mkdir /path/to/jdownloader2/libs/ghostawt
      cp -r GhostAWT-0.0.1/dist/* /path/to/jdownloader2/libs/ghostawt
    3. Start JDownloader using this command (adjust linux32 to match your platform).
      Code:
      java -Dghostawt.library.path=libs/ghostawt/linux32 -cp "./*:libs/*:libs/ghostawt/*" ghostawt.GhostRunner org.jdownloader.startup.Main
    4. Log into My.JDownloader and adjust the download folder there.
    5. Start Downloading.

    Long Version (for average users)

    1. Create JDownloader Package

    1.1 Get Package
    As a first step we need to build a JDownloader2 package for our system. Currently JDownloader2 is only available as special offline installer packages. The problem: This installer might not run on server systems without a UI and it’s only available for x86/x64 systems.
    **External links are only visible to Support Staff**...
    For me the offline installer worked on an Ubuntu 32bit Server installation, but it didn’t work on my Synology NAS. To keep this HowTo simple, I will describe another solution:

    Simply install JDownloader on your normal desktop PC by grabbing the JDownloader2 installer from the link above.

    1.2 Configure Package
    Start JDownloader on your desktop and let it update to the latest version. Since we won’t have a UI on our server system we should configure our JDownloader on our desktop. Open the settings and configure it the way you like. Here are some recommended settings for server systems:
    • User Interface
      • Enable Silent Mode
    • Bubble Notify
      • Show Bubbles if Never
    • Tray Icon
      • Uncheck Enabled

    The most important thing is to setup your My.JDownloader settings. It will be the only way to control JDownloader.

    1.3 Copy Package
    Once your JDownloader is ready go into your JDownloader installation directory and copy all files to your server system. Do not copy the JRE directory, we won’t use the Java Runtime installed with JDownloader.

    2. Run JDownloader using GhostAWT

    Now we need to get JDownloader running on our environment. The problem is: If we start JDownloader normally, it will just crash because there’s no GUI. This is where GhostAWT comes in place. It’s a platform implementation of AWT and Java2D which makes Java believe there’s a UI available. If Java tries to create a window or do any graphical operations, GhostAWT will simply do nothing instead of crying no XServer is installed.

    Let’s download GhostAWT and copy it into JDownloader. Head to "**External links are only visible to Support Staff** and copy the link of the latest Source code tar.gz. On our server system we download the file, extract it, and copy the files of the dist directory to our JDownloader installation:

    Code:
    cd /tmp
    wget **External links are only visible to Support Staff**tar xzfv 0.0.1.tar.gz
    mkdir /path/to/jdownloader2/libs/ghostawt
    cp -r GhostAWT-0.0.1/dist/* /path/to/jdownloader2/libs/ghostawt
    The command to start JDownloader using GhostAWT is:

    Code:
    java -Dghostawt.library.path=libs/ghostawt/synology-marvell-armada-370 -cp "./*:libs/*:libs/ghostawt/*" ghostawt.GhostRunner org.jdownloader.startup.Main
    Replace synology-marvell-armada-370 with the correct platform of your system. I recommend to create a new shell script with this startup command.
    In the first release of GhostAWT x86 linux systems (linux32) and Synology Marvell Armada 370 ARM (synology-marvell-armada-370) are available. If GhostAWT does not support your platform you should try compiling it for your platform on your own or create a new issue on "**External links are only visible to Support Staff**

    3. My.JDownloader Settings
    After starting JDownloader you should able to log in into My.JDownloader and see the connected device there. Before downloading any files you should go to the settings tab and open the „Advanced Config“.

    There enter „Default Download Folder“ into the search box and set adjust the path to match your desired download location. I copied my Windows installation to my Synology Diskstation, that’s why a Windows File System Path was set. Make it fit your needs.

    Enter „Browser Command Line“ into into the search box and click reset there. I also had some Windows specific stuff there.

    4. Fin
    Everything is done and ready for downloading. Enjoy your server/NAS JDownloader. If you encounter any problems feel free to ask here.
  4. Close JD completely
  5. Copy the content of the JD installation folder to your preferred JD installation folder on your NAS with an SSH client.
    e.g.: /volume1/@appstore/jdownloader/
  6. See that all files in this folder have the right permissions
    I first created the shared folder "jdownloader" in DSM and before restarting my NAS (step 10), I copied the content of the folder to a new jdownloader folder at "/volume1/@appstore/jdownloader/". Just to be sure I had all right to the folder

    If you're having trouble with permissions, this is how permissions are set in my jdownloader folder:
    Spoiler:


  7. Install Java Manager through Package Center
  8. Make a file called S99jdownloader.sh and save it to /usr/local/etc/rc.d/S99jdownloader.sh (with SSH client)
  9. Open S99jdownloader.sh with your text editor and copy following script into it.
    Knowing your JD install folder is at /volume1/@appstore/jdownloader/ Otherwise adjust your location in the script (line 10)
    I used the text editor of DSM to create the file and copied it afterwards with my SSH client (to have the right permissions)
    Spoiler:
    PHP Code:
    #!/bin/sh):
    #
    # Startup script for jdownloader2
    #
    # Stop myself if running
    PIDFILE=/var/run/S99jdownloader.pid
    #
    start() {
    sleep 1
    nohup 
    /volume1/@appstore/JavaManager/Java/bin/java -Djava.awt.headless=true -jar [b][color=red]/volume1/@appstore/jdownloader/JDownloader.jar[/color][/b] &
    # write pidfile
    echo $! > $PIDFILE
    }
    #
    stop() {
    [ -
    ${PIDFILE} ] && kill `cat ${PIDFILE}`
    # remove pidfile
    rm -f $PIDFILE 
    }
    #
    case "$1" in
    start
    )
    start
    ;;
    stop)
    stop
    ;;
    restart)
    stop
    sleep 1
    start
    ;;
    *)
    echo 
    "Usage: $0 (start|stop|restart)"
    exit 1
    ;;
    esac
    # End 
  10. Restart your NAS. JDownloader will now automatically be loaded at startup.
  11. Adjust settings at my.jdownloader.org under "Settings", "Advanced Settings", "General - Default Download Folder": DOWNLOAD FOLDER OF YOUR CHOISE (make sure you created this share on your NAS).
    e.g.: /volume1/Downloads

Images of JDownloader2 working on DS412+:
Spoiler:

Some Remarks
  1. Whenever there's an update of JDownloader2 you get a pop-up at my.jdownloader.org. You can trigger the update in the settings tab on the site.
  2. If JD failes to restart after an update, do the following:
    • Open DSM web interface
    • Go to "Control Panel" and then "Task Scheduler"
      Spoiler:
    • Click "Create" and choose "User-defined scripts"
      Spoiler:
    • Give the task a name (e.g. Jdownloader), set the user to "root" and as User-defined script you set /usr/local/etc/rc.d/S99jdownloader.sh
      Spoiler:
    • Close with OK
    • Unthick the script (we just want to activate it manually and not on schedule) and select the created task and click on "Run"
      Spoiler:
    • JDownloader2 should be running again (check on my.jdownloader.org)
    • Now, each time JD failes to (re)start you can launch it manually with task scheduler.


ENJOY!

Last edited by J-J; 03.06.2015 at 01:39.
Reply With Quote
  #47  
Old 18.10.2014, 03:16
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,646
Default

@j-j
would it not be better to grab the jar and run like http://board.jdownloader.org/showpos...6&postcount=22 on nas system vs coping a install from another system. Then just copy the cfg/ files that you need from working copy? alternatively I believe that via console it should prompt you for some configration via cli if running in headless mode.
__________________
raztoki @ jDownloader reporter/developer
http://svn.jdownloader.org/users/170

Don't fight the system, use it to your advantage. :]
Reply With Quote
  #48  
Old 18.10.2014, 03:28
J-J
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by raztoki View Post
@j-j
would it not be better to grab the jar and run like **External links are only visible to Support Staff**... on nas system vs coping a install from another system. Then just copy the cfg/ files that you need from working copy?
I was thinking that too while writing the tutorial. Since I'm a noob I wrote it the way I got it to work. I'm going to try your suggestion after the weekend.

Quote:
Originally Posted by raztoki View Post
@j-j
alternatively I believe that via console it should prompt you for some configration via cli if running in headless mode.
Through the command line I experienced that whenever you close terminal/Putty, JD just stops.

Last edited by J-J; 18.10.2014 at 03:35.
Reply With Quote
  #49  
Old 18.10.2014, 13:16
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,646
Default

that's because it's not a background process. If you know your unix/linux you need to start with ./ or start via services.
__________________
raztoki @ jDownloader reporter/developer
http://svn.jdownloader.org/users/170

Don't fight the system, use it to your advantage. :]
Reply With Quote
  #50  
Old 22.10.2014, 14:37
mxdalchau
Guest
 
Posts: n/a
Default

thanks it does work^^

but my problem is now.... i have it install on synology ds213j and the extraction doesn´t work
Reply With Quote
  #51  
Old 28.10.2014, 13:24
mehmeh
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by raztoki View Post
You no longer need GhostAWT to run a headless instance.

grab JDownloader.jar,
and run in unix/linux/mac
Code:
java -Djava.awt.headless=true -jar JDownloader.jar
or windows use
Code:
javaw -Djava.awt.headless=true -jar JDownloader.jar
:w00t: thanks

now, I'm using JD2 headless into my raspberryPi and it works fine.
I have started JD2 using this command:
Code:
java -Djava.awt.headless=true -jar JDownloader.jar &
and after some minutes I have closed the ssh connection, and JD2 has continued to run.
I use JD2 using the myJdownloader website.

But I have a problem, how can I stop JD2 without corrupt the JD2 files and download?
thanks
Reply With Quote
  #52  
Old 28.10.2014, 14:40
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,646
Default

you can stop it with
Code:
kill pid
jdownloader has signal handler, it will cause normal shutdown
__________________
raztoki @ jDownloader reporter/developer
http://svn.jdownloader.org/users/170

Don't fight the system, use it to your advantage. :]
Reply With Quote
  #53  
Old 31.10.2014, 10:55
ortigosano
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by mehmeh View Post
:w00t: thanks

now, I'm using JD2 headless into my raspberryPi and it works fine.
I have started JD2 using this command:
Code:
java -Djava.awt.headless=true -jar JDownloader.jar &
and after some minutes I have closed the ssh connection, and JD2 has continued to run.
I use JD2 using the myJdownloader website.

But I have a problem, how can I stop JD2 without corrupt the JD2 files and download?
thanks
Thanks a lot for the howto.
I have the following issue:

If I run from the installation directory the command "java -Djava.awt.headless=true -jar JDownloader.jar" everything works.

If I do that from another path, It does not work.
Example:

Code:
NAS_LC> ls -l /volume1/jDwonloaderNas/JdownloaderNas/
-rwxrwxrwx    1 descarga users      4840334 Oct 30 14:10 Core.jar
-rwxr-xr-x    1 descarga users      2585823 Oct 30 14:10 JDownloader.jar
-rwxrwxrwx    1 root     root           318 Oct 30 15:59 build.json
drwxrwxrwx    6 descarga users        24576 Oct 30 16:23 cfg
drwxrwxrwx    2 descarga users         4096 Oct 30 14:11 extensions
drwxrwxrwx    2 descarga users         4096 Oct 30 14:11 java
drwxrwxrwx    4 descarga users         4096 Oct 30 14:25 jd
drwxrwxrwx    5 descarga users         4096 Oct 30 14:14 libs
-rwxrwxrwx    1 descarga users        32034 Oct 30 14:10 license.txt
-rwxrwxrwx    1 descarga users        39624 Oct 30 14:10 license_german.txt
drwxrwxrwx    2 descarga users         4096 Oct 30 14:14 licenses
drwxrwxrwx   14 descarga users         4096 Oct 30 16:23 logs
drwxrwxrwx    4 descarga users         4096 Oct 30 14:27 themes
drwxrwxrwx    5 descarga users         4096 Oct 30 16:23 tmp
drwxrwxrwx    3 descarga users         4096 Oct 30 14:16 tools
drwxrwxrwx    5 descarga users         4096 Oct 30 14:33 translations
drwxrwxrwx    3 descarga users         4096 Oct 30 14:25 update
NAS_LC> /volume1/jDwonloaderNas/JdownloaderNas/java -Djava.awt.headless=true -jar JDownloader.jar
-ash: /volume1/jDwonloaderNas/JdownloaderNas/java: Permission denied
NAS_LC>
As you can see I got permission denied, therefore the script is not working.
Any ideas? thanks in advance

Hi again,
I just tried to set up the permissions correctly, same problem:

Code:
/volume1/jDwonloaderNas
NAS_LC> ls
JdownloaderNas     S99jdownloader.sh
NAS_LC> dir
d---------    3 root     root          4096 Oct 30 14:52 .
drwxr-xr-x   38 root     root          4096 Oct 30 15:11 ..
drwxrwxrwx   14 descarga users         4096 Oct 30 16:49 JdownloaderNas
-rwx------    1 admin    users          617 Oct 30 14:58 S99jdownloader.sh
NAS_LC>
Permissions:

Code:
NAS_LC> pwd
/volume1/jDwonloaderNas/JdownloaderNas
NAS_LC> dir
drwxrwxrwx   14 descarga users         4096 Oct 30 16:49 .
d---------    3 root     root          4096 Oct 30 14:52 ..
-rw-r--r--    1 descarga users      4840334 Oct 30 14:10 Core.jar
-rw-r--r--    1 descarga users      2585823 Oct 30 14:10 JDownloader.jar
-rw-r--r--    1 root     root           318 Oct 30 16:48 build.json
drwxr-xr-x    6 descarga users        24576 Oct 30 16:49 cfg
drwxr-xr-x    2 descarga users         4096 Oct 30 14:11 extensions
drwxr-xr-x    2 descarga users         4096 Oct 30 14:11 java
drwxr-xr-x    4 descarga users         4096 Oct 30 14:25 jd
drwxr-xr-x    5 descarga users         4096 Oct 30 14:14 libs
----------    1 descarga users        32034 Oct 30 14:10 license.txt
----------    1 descarga users        39624 Oct 30 14:10 license_german.txt
drwxr-xr-x    2 descarga users         4096 Oct 30 14:14 licenses
drwxr-xr-x   15 descarga users         4096 Oct 30 16:48 logs
drwxr-xr-x    4 descarga users         4096 Oct 30 14:27 themes
drwxr-xr-x    5 descarga users         4096 Oct 30 16:49 tmp
drwxr-xr-x    3 descarga users         4096 Oct 30 14:16 tools
drwxr-xr-x    5 descarga users         4096 Oct 30 14:33 translations
drwxr-xr-x    3 descarga users         4096 Oct 30 14:25 update
NAS_LC>
Quote:
Originally Posted by raztoki View Post
that's because it's not a background process. If you know your unix/linux you need to start with ./ or start via services.


I was following your thread and I don't know which permission are not properly configured .

Code:
NAS_LC> ./java -Djava.awt.headless=true -jar JDownloader.jar
-ash: ./java: Permission denied
NAS_LC> dir
drwxrwxrwx   14 descarga users         4096 Oct 30 16:49 .
d---------    3 root     root          4096 Oct 30 14:52 ..
-rw-r--r--    1 descarga users      4840334 Oct 30 14:10 Core.jar
-rw-r--r--    1 descarga users      2585823 Oct 30 14:10 JDownloader.jar
-rw-r--r--    1 root     root           318 Oct 30 16:48 build.json
drwxr-xr-x    6 descarga users        24576 Oct 30 16:49 cfg
drwxr-xr-x    2 descarga users         4096 Oct 30 14:11 extensions
drwxr-xr-x    2 descarga users         4096 Oct 30 14:11 java
drwxr-xr-x    4 descarga users         4096 Oct 30 14:25 jd
drwxr-xr-x    5 descarga users         4096 Oct 30 14:14 libs
----------    1 descarga users        32034 Oct 30 14:10 license.txt
----------    1 descarga users        39624 Oct 30 14:10 license_german.txt
drwxr-xr-x    2 descarga users         4096 Oct 30 14:14 licenses
drwxr-xr-x   15 descarga users         4096 Oct 30 16:48 logs
drwxr-xr-x    4 descarga users         4096 Oct 30 14:27 themes
drwxr-xr-x    5 descarga users         4096 Oct 30 16:49 tmp
drwxr-xr-x    3 descarga users         4096 Oct 30 14:16 tools
drwxr-xr-x    5 descarga users         4096 Oct 30 14:33 translations
drwxr-xr-x    3 descarga users         4096 Oct 30 14:25 update
any ideas?
Thanks in advance.

Last edited by raztoki; 31.10.2014 at 11:15. Reason: merged 3 posts
Reply With Quote
  #54  
Old 31.10.2014, 11:18
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,646
Default

why it failed

/volume1/jDwonloaderNas/JdownloaderNas/java = directory not a binary
__________________
raztoki @ jDownloader reporter/developer
http://svn.jdownloader.org/users/170

Don't fight the system, use it to your advantage. :]
Reply With Quote
  #55  
Old 05.11.2014, 14:18
Trafikcanavari
Guest
 
Posts: n/a
Default

@J-J

A video tutorial would be really helpful.
Reply With Quote
  #56  
Old 06.11.2014, 12:37
akhlan akhlan is offline
Ultra Loader
 
Join Date: Nov 2014
Location: France
Posts: 46
Default

Hi all,

I would like use JDownloader to replace Pyload but I don't know why I can't...

Code:
RedAkStation> pwd
/usr/local/etc/rc.d

RedAkStation> ls -ltr
-rwxr-xr-x    1 root     root           523 Nov  6 11:12 S99jdownloader.sh

RedAkStation> vi S99jdownloader.sh
#!/bin/sh
#
# Startup script for jdownloader2
#
# Stop myself if running
PIDFILE=/var/run/S99jdownloader.pid
#
start() {
sleep 1
nohup /volume1/@appstore/JavaManager/Java/bin/java -Djava.awt.headless=true -jar /volume1/@appstore/jdownloader/JDownloader.jar &
# write pidfile
echo $! > $PIDFILE
}
#
stop() {
[ -f ${PIDFILE} ] && kill `cat ${PIDFILE}`
# remove pidfile
rm -f $PIDFILE
}
#
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
stop
sleep 1
start
;;
*)
echo "Usage: $0 (start|stop|restart)"
exit 1
;;
esac
# End

RedAkStation> cd /volume1/@appstore/jdownloader
RedAkStation> ls -ltr
-rwxrwxrwx    1 akhlan   users        39624 Nov  4 18:27 license_german.txt
-rwxrwxrwx    1 akhlan   users        32034 Nov  4 18:27 license.txt
-rwxrwxrwx    1 akhlan   users          318 Nov  4 18:27 build.json
-rwxrwxrwx    1 akhlan   users      2596241 Nov  4 18:27 JDownloader.jar
-rwxrwxrwx    1 akhlan   users      4872100 Nov  4 18:27 Core.jar
drwxrwxrwx    2 akhlan   users         4096 Nov  4 18:27 java
drwxrwxrwx    2 akhlan   users         4096 Nov  4 18:27 extensions
drwxrwxrwx    2 akhlan   users         4096 Nov  4 18:27 licenses
drwxrwxrwx    5 akhlan   users        20480 Nov  4 18:27 cfg
drwxrwxrwx    5 akhlan   users         4096 Nov  4 18:27 libs
drwxrwxrwx    3 akhlan   users         4096 Nov  4 18:27 tools
drwxrwxrwx    5 akhlan   users         4096 Nov  4 18:27 tmp
drwxrwxrwx   13 akhlan   users         4096 Nov  4 18:28 logs
drwxrwxrwx    3 akhlan   users         4096 Nov  4 18:28 update
drwxrwxrwx    4 akhlan   users         4096 Nov  4 18:28 jd
drwxrwxrwx    4 akhlan   users         4096 Nov  4 18:28 themes
drwxrwxrwx    5 akhlan   users         4096 Nov  4 18:29 translations

RedAkStation> ps | grep -i JDownloader
23241 root      3816 S    grep -i JDownloader
I have tree remarks...
- I have make a chmod +x on my S99jdownloader.sh, may be it's an error...
- I don't know how check the permission of my folder "/volume1/@appstore/jdownloader" because in FilleZilla or in WinSCP, folders start with @ don't appear...
- In "Java Manager", it's normal you don't said to install Java ?

Please, who can help me ?

Last edited by akhlan; 06.11.2014 at 12:42.
Reply With Quote
  #57  
Old 06.11.2014, 14:20
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,646
Default

I dont know nohup but the trailing & doesn't look good to me.
__________________
raztoki @ jDownloader reporter/developer
http://svn.jdownloader.org/users/170

Don't fight the system, use it to your advantage. :]
Reply With Quote
  #58  
Old 06.11.2014, 16:25
akhlan akhlan is offline
Ultra Loader
 
Join Date: Nov 2014
Location: France
Posts: 46
Default

I'm stupid sometime...

Code:
nohup /volume1/@appstore/JavaManager/Java/bin/java -Djava.awt.headless=true -jar /volume1/@appstore/jdownloader/JDownloader.jar &
so like indicated, I have install Java (jdk-7u71-linux-i586.tar.gz) and now, it's better

Code:
RedAkStation> ps | grep -i JDownloader
23067 root     1232m S    /volume1/@appstore/JavaManager/Java/jre/bin/java -Djava.awt.headless=true -jar JDownloader.jar -afterupdate
23240 root      3816 S    grep -i JDownloader
but how to use JDownloader ?
Reply With Quote
  #59  
Old 07.11.2014, 06:37
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,646
Default

you need to use it via cli or via jdownloader2 api. So that includes my.jdownloader.org webui or mobile apps that authenticate your my.jdownloader.org user:pass

raztoki
__________________
raztoki @ jDownloader reporter/developer
http://svn.jdownloader.org/users/170

Don't fight the system, use it to your advantage. :]
Reply With Quote
  #60  
Old 07.11.2014, 12:22
akhlan akhlan is offline
Ultra Loader
 
Join Date: Nov 2014
Location: France
Posts: 46
Default

below, my "my.jdownloader.org"

h__p://awesomescreenshot.com/0083t0cb3c

I wanted see my JDownloader installed on my NAS but nothing, just my computer but if I turn off my computer, my downloading turn off too....
Reply With Quote
  #61  
Old 08.11.2014, 02:56
zevs
Guest
 
Posts: n/a
Default

I use Yosemite MAC and I have some questions:

- How to create /usr/local/etc/rc.d/S99jdownloader.sh (with SSH client) with a macbook pro? With the -> go to-command? I never saw my NAS as root directories, I only know my own folders like movies etc...

- It looks like my Java is installed @ /var/packages/JavaManager/Java/jre/lib, but I never saw such a folder under my mac connections...

After that I shuld copy paste the .sh file and it shuld work on DSM 5.1. I have some $PATH issues with my terminal, thats why I cant use it.

Thank you, its a nice thread
Reply With Quote
  #62  
Old 26.11.2014, 00:47
sjaddy
Guest
 
Posts: n/a
Default

Hi all,

newbie here with a DS2413+ - have installed Jdownloader to the letter (or at least I think I have! - as mentioned a newbie).

If I reboot the synology it doesn't seem to be accessible from my.jdownloader.org,

If i run a SSH terminal and from the jdownloader directory run

java -Djava.awt.headless=true -jar JDownloader.jar &

it works and I can connect from my.jdownloader.org

when I close the ssh session though it closes the connection to my.jdownloader.org

Is anyone able to give me any pointers as to where I should look for the issue or logs I can check or what I have done wrong?

TIA
Reply With Quote
  #63  
Old 26.11.2014, 13:57
jpnn80
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by sjaddy View Post
Hi all,

newbie here with a DS2413+ - have installed Jdownloader to the letter (or at least I think I have! - as mentioned a newbie).

If I reboot the synology it doesn't seem to be accessible from my.jdownloader.org,

If i run a SSH terminal and from the jdownloader directory run

java -Djava.awt.headless=true -jar JDownloader.jar &

it works and I can connect from my.jdownloader.org

when I close the ssh session though it closes the connection to my.jdownloader.org

Is anyone able to give me any pointers as to where I should look for the issue or logs I can check or what I have done wrong?

TIA
I read from another forum that after a reboot, DSM automatically runs the scripts having a filename starting by SXX with XX being a unique digit number standing for their starting order, if they are put in the folder /opt/etc/init.d/

And indeed my JD started with my DSM 5.0 after I put the script S99jdownloader.sh in this folder instead of /usr/local/etc/rc.d/

Now my problem is that my JD is not updated even if I run the scheduled task of the script with the path /usr/local/etc/rc.d/S99jdownloader.sh

Last edited by jpnn80; 26.11.2014 at 15:57.
Reply With Quote
  #64  
Old 26.11.2014, 20:47
sjaddy
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by jpnn80 View Post
I read from another forum that after a reboot, DSM automatically runs the scripts having a filename starting by SXX with XX being a unique digit number standing for their starting order, if they are put in the folder /opt/etc/init.d/

And indeed my JD started with my DSM 5.0 after I put the script S99jdownloader.sh in this folder instead of /usr/local/etc/rc.d/

Now my problem is that my JD is not updated even if I run the scheduled task of the script with the path /usr/local/etc/rc.d/S99jdownloader.sh
thanks but I dont have a /opt folder on my Nas. I havent bootstrapped this one
Reply With Quote
  #65  
Old 28.11.2014, 17:02
sjaddy
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by sjaddy View Post
thanks but I dont have a /opt folder on my Nas. I havent bootstrapped this one
I have slightly cheated but got it working. I reboot the NAS every night so not too worried if the thread is already running.

This is what I have done

in the Task Scheduler I have created a new user-defined script to run as admin and in the user-defined script box I have typed

/volume1/@appstore/JavaManager/Java/bin/java -Djava.awt.headless=true -jar /volume1/@appstore/jdownloader/JDownloader.jar &

This seems to be the main command from the S99jdownloader.sh file and successfully kicks it off for me.

thanks for the guide everyone
Reply With Quote
  #66  
Old 17.12.2014, 03:38
narco
Guest
 
Posts: n/a
Default

Moved to a new post

Last edited by narco; 18.12.2014 at 20:05. Reason: can not delete
Reply With Quote
  #67  
Old 21.12.2014, 01:12
palswim's Avatar
palswim palswim is offline
Vacuum Cleaner
 
Join Date: Dec 2014
Posts: 16
Thumbs up

Quote:
Originally Posted by mehmeh View Post
:w00t: thanks

now, I'm using JD2 headless into my raspberryPi and it works fine.
I have started JD2 using this command:
Code:
java -Djava.awt.headless=true -jar JDownloader.jar &
and after some minutes I have closed the ssh connection, and JD2 has continued to run.
I use JD2 using the myJdownloader website.
JDownloader is running successfully on my Pi as well, and consuming less than 1% of CPU when not downloading. Nice job JD devs, especially in making the headless mode!
Reply With Quote
  #68  
Old 11.01.2015, 23:11
john_doe84
Guest
 
Posts: n/a
Default

hey guys,

my jdownloader 2 works perfect in headless mode on my synology nas. Now I'd like to stop the program with a simple script in the task scheduler...How can I do that? Something like:

kill /volume1/@appstore/jdownloader/JDownloader.jar & ???

As you can see, I'm a newbie as well =))
Reply With Quote
  #69  
Old 14.01.2015, 19:00
felsi felsi is offline
Ultra Loader
 
Join Date: Sep 2010
Posts: 46
Default

---

Last edited by felsi; 16.01.2015 at 13:44.
Reply With Quote
  #70  
Old 17.01.2015, 07:23
T_Send
Guest
 
Posts: n/a
Lightbulb

Quote:
Originally Posted by juno99 View Post
Can you tell me what command will stop it?
Can't find it...
Quote:
Originally Posted by mehmeh View Post
now, I'm using JD2 headless into my raspberryPi and it works fine.
I have started JD2 using this command:
Code:
java -Djava.awt.headless=true -jar JDownloader.jar &
and after some minutes I have closed the ssh connection, and JD2 has continued to run.
I use JD2 using the myJdownloader website.

But I have a problem, how can I stop JD2 without corrupt the JD2 files and download?
thanks
Quote:
Originally Posted by sjaddy View Post
[...]
If i run a SSH terminal and from the jdownloader directory run
java -Djava.awt.headless=true -jar JDownloader.jar &
it works and I can connect from my.jdownloader.org
when I close the ssh session though it closes the connection to my.jdownloader.org
Is anyone able to give me any pointers as to where I should look for the issue or logs I can check or what I have done wrong?
TIA


I use JD unix server headless instance, accessing via WEB INTERFACE @ my.jdownloader.org
To make it easy to manage I wrote "Start Stop Restart Status" SCRIPT


Here is HOW-TO for newbies:

1. Create file jdownloader with text editor of your choice at /etc/init.d/ i.e.:
Code:
sudo vim /etc/init.d/jdownloader

2. Paste this content and replace red-bold text with your variables:
Code:
#! /bin/sh
# /etc/init.d/jdownloader
### BEGIN INIT INFO
# Provides: jDownloader2
# Required-Start: networking
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: jDownloader2 Server Daemon
# Description: T_Send's Starts/Stops/Restarts/Status the jDownloader2 Server Daemon
### END INIT INFO
# Author: T_Send  Contact: t_send@itnu.pl  Web: www.itnu.pl

set -e
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DESC="jDownloader2 Server"
NAME="jdownloader"
## USER for new files ownership & make sure USER has read/write permission to DOWNLOAD-DIR
USER=<User_Name_or_UID_to_run_as>
GROUP=<Group_Name_or_GID_to_run_as>
UMASK=<Change_umask_to_UMASK_before_starting>
DIR="<path_to_JD_folder>"
SCRIPT="/etc/init.d/$NAME"
PIDFILE="$DIR/JDownloader.pid"
JAVA="<complete_path_to_java_exec>"
PARM="-Djava.awt.headless=true -jar $DIR/JDownloader.jar"
STATUS="$JAVA $PARM"

. /lib/lsb/init-functions

start_daemon () {
        start-stop-daemon --start \
			--chuid $USER \
                        --group $GROUP \
                        --umask $UMASK \
			--oknodo \
			--background \
			--make-pidfile --pidfile $PIDFILE \
			--exec $JAVA -- $PARM
		log_end_msg $?
}

case "$1" in
    start)
        log_daemon_msg "Starting daemon" "$DESC "
        start_daemon
        ;;
    stop)
        log_daemon_msg "Stopping daemon" "$DESC "
        start-stop-daemon --stop \
            --pidfile $PIDFILE
        log_end_msg $?
        ;;
    restart)
        log_daemon_msg "Restarting daemon" "$DESC "
        start-stop-daemon --stop
            log_end_msg $?
        start_daemon
        ;;
    status)
        status_of_proc "$STATUS" "$DESC " && exit 0 || exit $?
        ;;
    *)
        log_action_msg "Usage: $SCRIPT {start|stop|restart|status}" || true
        exit 2
        ;;
esac

exit 0

Ad.2. To find <complete_path_to_java_exec> follow by sym-links i.e.
Code:
ls -l /usr/bin/java
lrwxrwxrwx 1 root root 22 paź 25 08:18 /usr/bin/java -> /etc/alternatives/java

ls -l /etc/alternatives/java
lrwxrwxrwx 1 root root 46 paź 25 08:18 /etc/alternatives/java -> /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java

3. Save file, exit and run:
sudo chmod 755 /etc/init.d/jdownloader


4. You're DONE. Now you can use:
/etc/init.d/jdownloader start | stop | restart | status
or
service jdownloader start | stop | restart | status

For init systemd system (i.e. new Debian Jessie) read 5.b.


5.a. (optional for sysvinit based systems i.e. Debian 7 Wheezy / Ubuntu):
If you want to automatically start JD at system bootup, run:
sudo update-rc.d jdownloader defaults (for sysvinit systems)

5.b. (optional for systemd based system i.e. new Debian 8 Jessie):
run:
systemctl daemon-reload - to reload scripts from /etc/init.d dir (otherwise next command won't work)
systemctl enable jdownloader - to enable service autostart at boot
systemctl disable jdownloader - to remove service autostart at boot
systemctl status jdownloader - to show service status info
systemctl start | stop jdownloader - to start or stop service
Jessie is sysvinit backwards.


For additional SCRIPT parameters read
Code:
start-stop-daemon --help
or
man start-stop-daemon
and edit start_daemon () entry

Hope it helps someone.
Regards,
T_Send

Changelog:
- Added info for systemd systems (i.e. new Debian 8 Jessie)
- Added change umask before start option
- Added Run As Group option
- Changed PID location to JD HOME_DIR as it creates one on start, so it supports CLI commands after "Update & Restart" in WebInterface or other remote API.

Last edited by T_Send; 04.06.2015 at 07:29. Reason: Upgrade
Reply With Quote
  #71  
Old 17.01.2015, 08:46
speedery
Guest
 
Posts: n/a
Default

Thanks mate . very useful
Reply With Quote
  #72  
Old 22.01.2015, 23:16
trionix
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by J-J View Post
HOW TO INSTALL JDOWNLOADER2 ON SYNOLOGY NAS:

[LIST=1][*]Install JD on Windows/Linux/OS X with the **External links are only visible to Support Staff**...[*]Start JD and let it update to the latest version[*]Setup all settings in JD
  • User Interface
    • Enable Silent Mode
  • Bubble Notify
    • Show Bubbles if Never
  • Tray Icon
    • Uncheck Enabled
More info on 1st post if needed (long version until step 1.3):
Spoiler:


Some Remarks
  1. Whenever there's an update of JDownloader2 you get a pop-up at **External links are only visible to Support Staff**.... You can trigger the update in the settings tab on the site.
  2. If JD failes to restart after an update, do the following:
    • Open DSM web interface
    • Go to "Control Panel" and then "Task Scheduler"
      Spoiler:
    • Click "Create" and choose "User-defined scripts"
      Spoiler:
    • Give the task a name (e.g. Jdownloader), set the user to "root" and as User-defined script you set /usr/local/etc/rc.d/S99jdownloader.sh
      Spoiler:
    • Close with OK
    • Unthick the script (we just want to activate it manually and not on schedule) and select the created task and click on "Run"
      Spoiler:
    • JDownloader2 should be running again (check on **External links are only visible to Support Staff**...)
    • Now, each time JD failes to (re)start you can launch it manually with task scheduler.


ENJOY!
THANK YOU VERY MUCH J-J!

This was a really great tutorial and it really helped get this working!

Everything is working fine now, except one thing:
updating jdownloader via the settings tab seems to be broken/malfunction.

It always starts updating but when its done my.jdownloader.org always tells me there is an update again.

When I look into the log, it seem like he is caught in an update loop....could it be that he has writing problems when updating? But even when I temporary set all rights in the jdownloader folder on the synology on 777 it can't update.

log comparison:
first update try
Code:
Thu Jan 22 21:39:51 GMT+01:00 2015
Package: package_1421958637716.awf
Install
Write Revision: 4841
----------------Plugins----------------
----------------Extensions----------------
   extensions/JDChat.jar
   extensions/Scheduler.jar
   extensions/translator.jar
----------------Direct Files----------------
----------------Core Files----------------
   libs/irclib.jar
   libs/sequence-library.jar
   libs/sqljet.jar
   libs/svnkit.jar
second try
Code:
Thu Jan 22 21:46:54 GMT+01:00 2015
Package: package_1421959209027.awf
Install
Write Revision: 4841
----------------Plugins----------------
----------------Extensions----------------
   extensions/JDChat.jar
   extensions/Scheduler.jar
   extensions/translator.jar
----------------Direct Files----------------
----------------Core Files----------------
   libs/irclib.jar
   libs/sequence-library.jar
   libs/sqljet.jar
   libs/svnkit.jar
SO the logs are showing always the same files he tries to update....I can reproduce this multiple times.

Any ideas what could be wrong or how to fix this issue?

I don't want to update it the hard way by copy&paste always new external installs

Thanks again for helping out. Best!
Reply With Quote
  #73  
Old 24.01.2015, 20:59
castortray
Guest
 
Posts: n/a
Default

my jdownloader won't start automatically after synology restart.
When I connected via putty and run:

Code:
nohup /volume1/@appstore/JavaManager/Java/bin/java -Djava.awt.headless=true -jar /volume1/@appstore/jdownloader/JDownloader.jar &
then it's working fine.

What I noticed also I cannot see the file:
/var/run/S99jdownloader.pid
I;m not sure if this is important

I tired also run schedule task with script S99jdownloader.sh but after that still not working. Only one way to run it is via putty.

Thanks in advance for any help.
Reply With Quote
  #74  
Old 24.01.2015, 22:15
Nop0x
Guest
 
Posts: n/a
Default

Hey guys,

managed to get jD working on my Synology DS212j with only 1 exception:

automatic unrar is not working :(

Here's the Log:

Spoiler:
Code:
------------------------Thread: 38:ExtractionExtension.log-----------------------
--ID:38TS:1422129177373-1/24/15 8:52:57 PM -  [org.appwork.txtresource.TranslationHandler(createTranslationResource)] -> Utils>ExtractionExtension.log>Load Translation file:/volume1/JDownloader/translations/org/jdownloader/extensions/extraction/translate/ExtractionTranslation.en.lng
--ID:38TS:1422129178602-1/24/15 8:52:58 PM -  [org.jdownloader.extensions.extraction.multi.Multi(checkCommand)] -> Lib ID: Linux-arm
--ID:38TS:1422129178603-1/24/15 8:52:58 PM -  [org.jdownloader.extensions.extraction.multi.Multi(checkCommand)] -> Lib Path: /volume1/JDownloader/tmp/7zip
--ID:38TS:1422129179388-1/24/15 8:52:59 PM -  [] -> net.sf.sevenzipjbinding.SevenZipNativeInitializationException: 7-Zip-JBinding initialization failed: Error loading native library: '/volume1/JDownloader/tmp/7zip/SevenZipJBinding-XZJYm/lib7-Zip-JBinding.so'
	at net.sf.sevenzipjbinding.SevenZip.loadNativeLibraries(SevenZip.java:511)
	at net.sf.sevenzipjbinding.SevenZip.initSevenZipFromPlatformJARIntern(SevenZip.java:383)
	at net.sf.sevenzipjbinding.SevenZip.initSevenZipFromPlatformJAR(SevenZip.java:325)
	at org.jdownloader.extensions.extraction.multi.Multi.checkCommand(Multi.java:413)
	at org.jdownloader.extensions.extraction.ExtractionExtension.lazyInitOnceOnStart(ExtractionExtension.java:602)
	at org.jdownloader.extensions.extraction.ExtractionExtension.start(ExtractionExtension.java:482)
	at org.jdownloader.extensions.AbstractExtension.setEnabled(AbstractExtension.java:80)
	at org.jdownloader.extensions.AbstractExtension.init(AbstractExtension.java:322)
	at org.jdownloader.extensions.LazyExtension.create(LazyExtension.java:65)
	at org.jdownloader.extensions.ExtensionController.initModule(ExtensionController.java:480)
	at org.jdownloader.extensions.ExtensionController.loadJared(ExtensionController.java:316)
	at org.jdownloader.extensions.ExtensionController.load(ExtensionController.java:254)
	at org.jdownloader.extensions.ExtensionController.init(ExtensionController.java:122)
	at jd.SecondLevelLaunch$10$1$2.run(SecondLevelLaunch.java:836)
Caused by: java.lang.UnsatisfiedLinkError: /volume1/JDownloader/tmp/7zip/SevenZipJBinding-XZJYm/lib7-Zip-JBinding.so: ld-linux-armhf.so.3: cannot open shared object file: No such file or directory
	at java.lang.ClassLoader$NativeLibrary.load(Native Method)
	at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1937)
	at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1822)
	at java.lang.Runtime.load0(Runtime.java:809)
	at java.lang.System.load(System.java:1083)
	at net.sf.sevenzipjbinding.SevenZip.loadNativeLibraries(SevenZip.java:509)
	... 13 more

--ID:38TS:1422129179388-1/24/15 8:52:59 PM -  [org.jdownloader.extensions.extraction.multi.Multi(checkCommand)] -> Could not initialize Multiunpacker #1
--ID:38TS:1422129179389-1/24/15 8:52:59 PM -  [org.jdownloader.extensions.extraction.multi.Multi(checkCommand)] -> Lib Path: /tmp
--ID:38TS:1422129179550-1/24/15 8:52:59 PM -  [] -> net.sf.sevenzipjbinding.SevenZipNativeInitializationException: 7-Zip-JBinding initialization failed: Error loading native library: '/tmp/SevenZipJBinding-XZJYm/lib7-Zip-JBinding.so'
	at net.sf.sevenzipjbinding.SevenZip.loadNativeLibraries(SevenZip.java:511)
	at net.sf.sevenzipjbinding.SevenZip.initSevenZipFromPlatformJARIntern(SevenZip.java:383)
	at net.sf.sevenzipjbinding.SevenZip.initSevenZipFromPlatformJAR(SevenZip.java:293)
	at org.jdownloader.extensions.extraction.multi.Multi.checkCommand(Multi.java:441)
	at org.jdownloader.extensions.extraction.ExtractionExtension.lazyInitOnceOnStart(ExtractionExtension.java:602)
	at org.jdownloader.extensions.extraction.ExtractionExtension.start(ExtractionExtension.java:482)
	at org.jdownloader.extensions.AbstractExtension.setEnabled(AbstractExtension.java:80)
	at org.jdownloader.extensions.AbstractExtension.init(AbstractExtension.java:322)
	at org.jdownloader.extensions.LazyExtension.create(LazyExtension.java:65)
	at org.jdownloader.extensions.ExtensionController.initModule(ExtensionController.java:480)
	at org.jdownloader.extensions.ExtensionController.loadJared(ExtensionController.java:316)
	at org.jdownloader.extensions.ExtensionController.load(ExtensionController.java:254)
	at org.jdownloader.extensions.ExtensionController.init(ExtensionController.java:122)
	at jd.SecondLevelLaunch$10$1$2.run(SecondLevelLaunch.java:836)
Caused by: java.lang.UnsatisfiedLinkError: /tmp/SevenZipJBinding-XZJYm/lib7-Zip-JBinding.so: ld-linux-armhf.so.3: cannot open shared object file: No such file or directory
	at java.lang.ClassLoader$NativeLibrary.load(Native Method)
	at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1937)
	at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1822)
	at java.lang.Runtime.load0(Runtime.java:809)
	at java.lang.System.load(System.java:1083)
	at net.sf.sevenzipjbinding.SevenZip.loadNativeLibraries(SevenZip.java:509)
	... 13 more

--ID:38TS:1422129179550-1/24/15 8:52:59 PM -  [org.jdownloader.extensions.extraction.multi.Multi(checkCommand)] -> Could not initialize Multiunpacker #2
--ID:38TS:1422129179551-1/24/15 8:52:59 PM -  [org.jdownloader.extensions.extraction.ExtractionExtension(lazyInitOnceOnStart)] -> Extractor org.jdownloader.extensions.extraction.multi.Multi plugin could not be initialized
--ID:38TS:1422129179566-1/24/15 8:52:59 PM -  [org.appwork.shutdown.ShutdownController(addShutdownVetoListener)] -> Utils>ExtractionExtension.log>ADD org.jdownloader.extensions.extraction.ExtractionExtension$3@1f45711
--ID:38TS:1422129179585-1/24/15 8:52:59 PM -  [org.jdownloader.extensions.AbstractExtension(init)] -> Init Duration: 1696


not sure what to do to fix it tbh,
maybe someone here can help?:)
Reply With Quote
  #75  
Old 25.01.2015, 14:51
castortray
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by Nop0x View Post
Hey guys,

managed to get jD working on my Synology DS212j with only 1 exception:

automatic unrar is not working :(

Here's the Log:

Spoiler:
Code:
------------------------Thread: 38:ExtractionExtension.log-----------------------
--ID:38TS:1422129177373-1/24/15 8:52:57 PM -  [org.appwork.txtresource.TranslationHandler(createTranslationResource)] -> Utils>ExtractionExtension.log>Load Translation file:/volume1/JDownloader/translations/org/jdownloader/extensions/extraction/translate/ExtractionTranslation.en.lng
--ID:38TS:1422129178602-1/24/15 8:52:58 PM -  [org.jdownloader.extensions.extraction.multi.Multi(checkCommand)] -> Lib ID: Linux-arm
--ID:38TS:1422129178603-1/24/15 8:52:58 PM -  [org.jdownloader.extensions.extraction.multi.Multi(checkCommand)] -> Lib Path: /volume1/JDownloader/tmp/7zip
--ID:38TS:1422129179388-1/24/15 8:52:59 PM -  [] -> net.sf.sevenzipjbinding.SevenZipNativeInitializationException: 7-Zip-JBinding initialization failed: Error loading native library: '/volume1/JDownloader/tmp/7zip/SevenZipJBinding-XZJYm/lib7-Zip-JBinding.so'
	at net.sf.sevenzipjbinding.SevenZip.loadNativeLibraries(SevenZip.java:511)
	at net.sf.sevenzipjbinding.SevenZip.initSevenZipFromPlatformJARIntern(SevenZip.java:383)
	at net.sf.sevenzipjbinding.SevenZip.initSevenZipFromPlatformJAR(SevenZip.java:325)
	at org.jdownloader.extensions.extraction.multi.Multi.checkCommand(Multi.java:413)
	at org.jdownloader.extensions.extraction.ExtractionExtension.lazyInitOnceOnStart(ExtractionExtension.java:602)
	at org.jdownloader.extensions.extraction.ExtractionExtension.start(ExtractionExtension.java:482)
	at org.jdownloader.extensions.AbstractExtension.setEnabled(AbstractExtension.java:80)
	at org.jdownloader.extensions.AbstractExtension.init(AbstractExtension.java:322)
	at org.jdownloader.extensions.LazyExtension.create(LazyExtension.java:65)
	at org.jdownloader.extensions.ExtensionController.initModule(ExtensionController.java:480)
	at org.jdownloader.extensions.ExtensionController.loadJared(ExtensionController.java:316)
	at org.jdownloader.extensions.ExtensionController.load(ExtensionController.java:254)
	at org.jdownloader.extensions.ExtensionController.init(ExtensionController.java:122)
	at jd.SecondLevelLaunch$10$1$2.run(SecondLevelLaunch.java:836)
Caused by: java.lang.UnsatisfiedLinkError: /volume1/JDownloader/tmp/7zip/SevenZipJBinding-XZJYm/lib7-Zip-JBinding.so: ld-linux-armhf.so.3: cannot open shared object file: No such file or directory
	at java.lang.ClassLoader$NativeLibrary.load(Native Method)
	at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1937)
	at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1822)
	at java.lang.Runtime.load0(Runtime.java:809)
	at java.lang.System.load(System.java:1083)
	at net.sf.sevenzipjbinding.SevenZip.loadNativeLibraries(SevenZip.java:509)
	... 13 more

--ID:38TS:1422129179388-1/24/15 8:52:59 PM -  [org.jdownloader.extensions.extraction.multi.Multi(checkCommand)] -> Could not initialize Multiunpacker #1
--ID:38TS:1422129179389-1/24/15 8:52:59 PM -  [org.jdownloader.extensions.extraction.multi.Multi(checkCommand)] -> Lib Path: /tmp
--ID:38TS:1422129179550-1/24/15 8:52:59 PM -  [] -> net.sf.sevenzipjbinding.SevenZipNativeInitializationException: 7-Zip-JBinding initialization failed: Error loading native library: '/tmp/SevenZipJBinding-XZJYm/lib7-Zip-JBinding.so'
	at net.sf.sevenzipjbinding.SevenZip.loadNativeLibraries(SevenZip.java:511)
	at net.sf.sevenzipjbinding.SevenZip.initSevenZipFromPlatformJARIntern(SevenZip.java:383)
	at net.sf.sevenzipjbinding.SevenZip.initSevenZipFromPlatformJAR(SevenZip.java:293)
	at org.jdownloader.extensions.extraction.multi.Multi.checkCommand(Multi.java:441)
	at org.jdownloader.extensions.extraction.ExtractionExtension.lazyInitOnceOnStart(ExtractionExtension.java:602)
	at org.jdownloader.extensions.extraction.ExtractionExtension.start(ExtractionExtension.java:482)
	at org.jdownloader.extensions.AbstractExtension.setEnabled(AbstractExtension.java:80)
	at org.jdownloader.extensions.AbstractExtension.init(AbstractExtension.java:322)
	at org.jdownloader.extensions.LazyExtension.create(LazyExtension.java:65)
	at org.jdownloader.extensions.ExtensionController.initModule(ExtensionController.java:480)
	at org.jdownloader.extensions.ExtensionController.loadJared(ExtensionController.java:316)
	at org.jdownloader.extensions.ExtensionController.load(ExtensionController.java:254)
	at org.jdownloader.extensions.ExtensionController.init(ExtensionController.java:122)
	at jd.SecondLevelLaunch$10$1$2.run(SecondLevelLaunch.java:836)
Caused by: java.lang.UnsatisfiedLinkError: /tmp/SevenZipJBinding-XZJYm/lib7-Zip-JBinding.so: ld-linux-armhf.so.3: cannot open shared object file: No such file or directory
	at java.lang.ClassLoader$NativeLibrary.load(Native Method)
	at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1937)
	at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1822)
	at java.lang.Runtime.load0(Runtime.java:809)
	at java.lang.System.load(System.java:1083)
	at net.sf.sevenzipjbinding.SevenZip.loadNativeLibraries(SevenZip.java:509)
	... 13 more

--ID:38TS:1422129179550-1/24/15 8:52:59 PM -  [org.jdownloader.extensions.extraction.multi.Multi(checkCommand)] -> Could not initialize Multiunpacker #2
--ID:38TS:1422129179551-1/24/15 8:52:59 PM -  [org.jdownloader.extensions.extraction.ExtractionExtension(lazyInitOnceOnStart)] -> Extractor org.jdownloader.extensions.extraction.multi.Multi plugin could not be initialized
--ID:38TS:1422129179566-1/24/15 8:52:59 PM -  [org.appwork.shutdown.ShutdownController(addShutdownVetoListener)] -> Utils>ExtractionExtension.log>ADD org.jdownloader.extensions.extraction.ExtractionExtension$3@1f45711
--ID:38TS:1422129179585-1/24/15 8:52:59 PM -  [org.jdownloader.extensions.AbstractExtension(init)] -> Init Duration: 1696


not sure what to do to fix it tbh,
maybe someone here can help?:)

can you share prtsc with permissions for file S99jdownloader.sh and /volume1/@appstore/jdownloader/ files *.*

you can use WinSCP the easiest way.

I want to comapre with my settings on DS1813+,

For me also automatic unrar doessn't work :(

but main issue is that jdownloader doesn't start automatically after synology restart
Reply With Quote
  #76  
Old 25.01.2015, 15:56
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,317
Default

We use sevenzipjbind for extraction. At the moment we only provide library for windows(32/64)/mac(32/64)/linux(32/64/raspberrypi/odroid/cubox).
I need output from cat /proc/cpuinfo to check if extraction support is possible.
Also help is welcome for crosscompiled libraries for headless devices
__________________
JD-Dev & Server-Admin
Reply With Quote
  #77  
Old 26.01.2015, 16:29
castortray
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by Jiaz View Post
We use sevenzipjbind for extraction. At the moment we only provide library for windows(32/64)/mac(32/64)/linux(32/64/raspberrypi/odroid/cubox).
I need output from cat /proc/cpuinfo to check if extraction support is possible.
Also help is welcome for crosscompiled libraries for headless devices
Synology DS1813+ results of cat /proc/cpuinfo

Code:
DiskStation> cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 54
model name      : Intel(R) Atom(TM) CPU D2701   @ 2.13GHz
stepping        : 1
microcode       : 0x10d
cpu MHz         : 2128.245
cache size      : 512 KB
physical id     : 0
siblings        : 4
core id         : 0
cpu cores       : 2
apicid          : 0
initial apicid  : 0
fpu             : yes
fpu_exception   : yes
cpuid level     : 10
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts nopl nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl tm2 ssse3 cx16 xtpr pdcm movbe lahf_lm arat dtherm
bogomips        : 4256.49
clflush size    : 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:

processor       : 1
vendor_id       : GenuineIntel
cpu family      : 6
model           : 54
model name      : Intel(R) Atom(TM) CPU D2701   @ 2.13GHz
stepping        : 1
microcode       : 0x10d
cpu MHz         : 2128.245
cache size      : 512 KB
physical id     : 0
siblings        : 4
core id         : 0
cpu cores       : 2
apicid          : 1
initial apicid  : 1
fpu             : yes
fpu_exception   : yes
cpuid level     : 10
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts nopl nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl tm2 ssse3 cx16 xtpr pdcm movbe lahf_lm arat dtherm
bogomips        : 4255.76
clflush size    : 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:

processor       : 2
vendor_id       : GenuineIntel
cpu family      : 6
model           : 54
model name      : Intel(R) Atom(TM) CPU D2701   @ 2.13GHz
stepping        : 1
microcode       : 0x10d
cpu MHz         : 2128.245
cache size      : 512 KB
physical id     : 0
siblings        : 4
core id         : 1
cpu cores       : 2
apicid          : 2
initial apicid  : 2
fpu             : yes
fpu_exception   : yes
cpuid level     : 10
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts nopl nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl tm2 ssse3 cx16 xtpr pdcm movbe lahf_lm arat dtherm
bogomips        : 4255.79
clflush size    : 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:

processor       : 3
vendor_id       : GenuineIntel
cpu family      : 6
model           : 54
model name      : Intel(R) Atom(TM) CPU D2701   @ 2.13GHz
stepping        : 1
microcode       : 0x10d
cpu MHz         : 2128.245
cache size      : 512 KB
physical id     : 0
siblings        : 4
core id         : 1
cpu cores       : 2
apicid          : 3
initial apicid  : 3
fpu             : yes
fpu_exception   : yes
cpuid level     : 10
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts nopl nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl tm2 ssse3 cx16 xtpr pdcm movbe lahf_lm arat dtherm
bogomips        : 4255.79
clflush size    : 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:
Reply With Quote
  #78  
Old 26.01.2015, 16:36
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,317
Default

how did you install jdownloader on the nas? It looks like you just copied your local(pc) configuration on it in that case the libraries will have the wrong version (bitness,os).
Remove Core.jar and start jd again, it will then update libraries to correct version.


USE java -jar JDownloader.jar to install on devices, NEVER copy from other OS!
__________________
JD-Dev & Server-Admin
Reply With Quote
  #79  
Old 26.01.2015, 18:11
castortray
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by Jiaz View Post
how did you install jdownloader on the nas? It looks like you just copied your local(pc) configuration on it in that case the libraries will have the wrong version (bitness,os).
Remove Core.jar and start jd again, it will then update libraries to correct version.


USE java -jar JDownloader.jar to install on devices, NEVER copy from other OS!
I did everything according to post:

https://board.jdownloader.org/showpo...2&postcount=46

If I will use "USE java -jar JDownloader.jar" to install on devices, how I will be able to connect to jdownloader ? without configured myjdownloaded credential ?

Last edited by castortray; 26.01.2015 at 18:15.
Reply With Quote
  #80  
Old 26.01.2015, 18:18
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,317
Default

it will ask you for logins during installation (asks them on console)
__________________
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 14:22.
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.