Download Station Command Line Interface

Questions regarding modifying the torrent engine or download station may go here.
Forum rules
Please note the disclaimer before modifying your Synology Product.

Re: Download Station Command Line Interface

Postby Wawe » Mon Aug 23, 2010 8:43 pm

What Disk Station model are you using?
Maybe you have a different architecture than I have (ARM) and the segfault is due some types having a different size on your platform.
Wawe
Rookie
Rookie
 
Posts: 31
Joined: Wed Dec 31, 2008 9:40 am

Re: Download Station Command Line Interface

Postby cometosin » Tue Aug 24, 2010 7:10 am

I'm running a DS710+.

Can I find out where I have to set this flag?

Are there any other possibilities?

thx for your great support.

cometosin
cometosin
I'm New!
I'm New!
 
Posts: 5
Joined: Thu Aug 19, 2010 3:20 pm

Re: Download Station Command Line Interface

Postby markhm » Sun Sep 05, 2010 9:44 pm

Hi all,

After installing Download Station CLI for my DS-209, I get the following error:

Code: Select all
SynologyDS209> ./downloadstation.sh
Traceback (most recent call last):
  File "./downloadstation.sh", line 17, in ?
    import pyPgSQL.PgSQL as db
  File "/opt/lib/python2.4/site-packages/pyPgSQL/PgSQL.py", line 449, in ?
    from libpq import *
  File "/opt/lib/python2.4/site-packages/pyPgSQL/libpq/__init__.py", line 23, in ?
    from libpq import *
ImportError: /opt/lib/libgcc_s.so.1: ELF file data encoding not little-endian


I understand that I've installed a wrong version of libgcc_s.so.1. Initially, I did make a mistake in choosing the processor architecture. :-S

How can I remove it without doing any (more) damage? Can I just delete this file, do I need to install any other files?

Any thoughts are greatly appreciated.

Thanks,
- Mark
-------------
DS209 with DSM 3.1-1725 - MacBook Pro 2.53 GHz
markhm
Trainee
Trainee
 
Posts: 14
Joined: Sun May 24, 2009 11:42 am

Re: Download Station Command Line Interface

Postby Wawe » Sun Sep 05, 2010 10:55 pm

How did you install libgcc in the first place? (ipkg?)
At what point did you chose the wrong architecture? When installing ipkg from one of the bootstraps? Or did you manually install the library in question?
Wawe
Rookie
Rookie
 
Posts: 31
Joined: Wed Dec 31, 2008 9:40 am

Re: Download Station Command Line Interface

Postby kjclm » Fri Sep 10, 2010 5:55 pm

I just installed the latest version of the downloadstation.py plus the shared memory hack t(dls) and it works perfect on a DS209 runing DSM 2.3 .

kjclm
kjclm
I'm New!
I'm New!
 
Posts: 8
Joined: Wed May 19, 2010 11:37 am
Location: Bucharest, Romania

Re: Download Station Command Line Interface

Postby markhm » Sun Sep 12, 2010 8:18 pm

Wawe wrote:How did you install libgcc in the first place? (ipkg?)
At what point did you chose the wrong architecture? When installing ipkg from one of the bootstraps? Or did you manually install the library in question?


Thanks for your time Wawe, much appreciated.

I followed the instructions here:
http://forum.synology.com/wiki/index.ph ... ,_ipkg_etc

and installed this (incorrect) ipkg bootstrap package first:
Freescale mpc8241 PPC Processor SATA, 32-bit Memory Bus, 64MB of RAM
http://ipkg.nslu2-linux.org/feeds/optwa ... owerpc.xsh

After this, I realised that I had made a mistake, I installed the following version (which should be correct):
Marvell Kirkwood mv6281 ARM Processor SATA, 16-bit Memory Bus, 256MB of RAM
http://ipkg.nslu2-linux.org/feeds/optwa ... -7_arm.xsh

This is when I got the 'ELF file data encoding not little-endian' error.

Using ipkg, I figured I should be able to de-install gcc and re-install the correct version. I probably need to configure the correct processor architecture first in a global config file?

When I try 'ipkg remove gcc' however, I get the message: 'No packages removed. Nothing to be done. Successfully terminated'.

If I have a list of files that have been installed with the incorrect proc arch and I could perhaps remove them by hand. Your thoughts are much appreciated.
-------------
DS209 with DSM 3.1-1725 - MacBook Pro 2.53 GHz
markhm
Trainee
Trainee
 
Posts: 14
Joined: Sun May 24, 2009 11:42 am

Re: Download Station Command Line Interface

Postby maxxfi » Sun Sep 12, 2010 9:19 pm

markhm wrote:If I have a list of files that have been installed with the incorrect proc arch and I could perhaps remove them by hand. Your thoughts are much appreciated.


Probably, you have in /etc/rc.local a line to run the /etc/rc.optware script.
All the files installed from optware resides in /opt (where else :) ), and often /opt is a link
to something like /volume1/@optware (check with a 'df' command and a 'ls -ald /opt')

I assume you have just installed the optware and tried the Download Station CLI, so you don't have other
packages installed so you can try to solve it by reinstalling from scratch the whole optware system.
In that case you can cleanup the whole thing simply by removing the line in /etc/rc.local
and all files in /opt. Reboot to clear the situation.
After that, re-run the (correct) bootstrap script and you should be ready to install packages.
DS-411 (DSM 4.2-3202) w/ 2x WD10EFRX + 1x HD154UI
DS-106j (DSM 3.0-1357), PATA-to-SATA adapter, 2.5" HM250HI
User avatar
maxxfi
Architect
Architect
 
Posts: 4421
Joined: Sun Dec 27, 2009 12:13 pm
Location: Espoo, Finland

Re: Download Station Command Line Interface

Postby markhm » Sun Sep 12, 2010 9:42 pm

Hi maxxfi,

Just to be sure I do the right thing, I confirm what I've observed before removing.

/etc/rc.local contains just the Optware setup script, see:

Code: Select all
   #!/bin/sh

   # Optware setup
   mkdir -p /opt
   [ -e /volume1/opt ] && mount -o bind /volume1/opt /opt
   [ -x /opt/etc/rc.optware ] && /opt/etc/rc.optware
   [ -e /bin/killall ] || ln -s /bin/busybox /bin/killall


In that case you can cleanup the whole thing simply by removing the line in /etc/rc.local

In that case I will remove all #Optware setup related lines, right?

and all files in /opt. Reboot to clear the situation.

/opt indeed is found in /volume1/opt; I will remove these, reboot and re-install.

Thanks,
- Mark
-------------
DS209 with DSM 3.1-1725 - MacBook Pro 2.53 GHz
markhm
Trainee
Trainee
 
Posts: 14
Joined: Sun May 24, 2009 11:42 am

Re: Download Station Command Line Interface

Postby markhm » Sun Sep 12, 2010 10:14 pm

Just a note that I fixed my DS209 as discussed.
Thanks to all who took the time to help...!

- M
-------------
DS209 with DSM 3.1-1725 - MacBook Pro 2.53 GHz
markhm
Trainee
Trainee
 
Posts: 14
Joined: Sun May 24, 2009 11:42 am

Re: Download Station Command Line Interface

Postby caseee » Tue Mar 08, 2011 5:43 pm

Will work with DSM 3.1?
caseee
I'm New!
I'm New!
 
Posts: 5
Joined: Sun Oct 17, 2010 2:05 pm

Re: Download Station Command Line Interface

Postby Wawe » Tue Mar 08, 2011 7:21 pm

caseee wrote:Will work with DSM 3.1?


Most likely it will. Try it. :)
Wawe
Rookie
Rookie
 
Posts: 31
Joined: Wed Dec 31, 2008 9:40 am

Re: Download Station Command Line Interface

Postby balenr » Thu Apr 07, 2011 9:48 pm

Hi,

I was wondering why it is not possible to add NZB files with downloadstation CLI?

René
balenr
I'm New!
I'm New!
 
Posts: 1
Joined: Thu Apr 07, 2011 9:45 pm

Re: Download Station Command Line Interface

Postby Wawe » Sun Oct 02, 2011 9:35 am

Version 1.7 is available. It introduces the --target option to specify subdirectories for downloads if your firmware supports it.

About NZB downloads:
I have never used them and don't know how they are processed by the DS. It is also difficult for me to find out as you need a Usenet provider to use NZB downloads. That's why you won't see NZB support from me.
But the script is open source software so maybe someone else will implement this.

In any case sorry for the late reply. I did not check this thread for quite some time.
Wawe
Rookie
Rookie
 
Posts: 31
Joined: Wed Dec 31, 2008 9:40 am

Re: Download Station Command Line Interface

Postby perseon » Wed Oct 12, 2011 8:40 am

Hi everyone,

First thanks for the hardwork you did implementing this tool.

I am writing in this post because I was looking for something which should be quite easy to resolve but I did not find yet. How to start and stop nicely the transmissiond process. I have DS211j with DSM 3.1. I found the binary file is in /usr/syno/sbin/transmissiond and being root it can be started but not stopped. Of course I can kill it but I was looking for some kind of daemon or sh stop command to do it nicely. Any ideas?

Thanks in advance,
perseon
I'm New!
I'm New!
 
Posts: 3
Joined: Wed Oct 12, 2011 8:28 am

Re: Download Station Command Line Interface

Postby h0me5k1n » Fri Jan 13, 2012 7:54 pm

Any chance of adding support for magnet links?... I've tried adding them like normal download urls but it fails and you can't add them like a torrent as it expects a .torrent file.

It looks like downloading by bittorrent will move towards a process where magnet links are the standard in future!

I've said it before Wawe... Super job with this script! I hope you can add this functionality.
h0me5k1n
Beginner
Beginner
 
Posts: 20
Joined: Sun Jan 25, 2009 1:48 pm

PreviousNext

Return to Torrent Engines/Download Station Mods

Who is online

Users browsing this forum: rossini and 1 guest