DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#651 2012-06-04 21:09:54

KyleK
Member
From: Dresden, Germany
Registered: 2007-12-05
Posts: 1178

Re: [REL] Automatic for funplug-0.5

Ok, so you don't use funplug at all.
That doesn't help smile

I don't actually use authentication with transmission, so maybe it is broken somehow and I didn't notice. I'll check later and let you know.

Offline

 

#652 2012-06-04 22:15:54

KyleK
Member
From: Dresden, Germany
Registered: 2007-12-05
Posts: 1178

Re: [REL] Automatic for funplug-0.5

Ok, I just tried it here, and enabling user authentication works perfectly fine.

There's either an issue with your Automatic configuration (try setting a new password for Transmission), or an issue with libcurl (which is rather unlikely).

Offline

 

#653 2012-06-05 01:02:00

whiteout
Member
Registered: 2011-09-06
Posts: 31

Re: [REL] Automatic for funplug-0.5

Ok No i dont use funplug.

Ive tried without passwords but same thing again in the log. it finds torrents but cant add them to transmission. so im guessing there's something wrong with libcurl. im installing dependencies through ipkg. I have no idea how to get it to work.

Thanks for all the help tho. It was fun while it worked wink

Offline

 

#654 2012-06-05 09:01:10

KyleK
Member
From: Dresden, Germany
Registered: 2007-12-05
Posts: 1178

Re: [REL] Automatic for funplug-0.5

What OS do you use on your desktop?
There are several Windows and Linux clients that connect remotely to a Transmission daemon. It would be interesting to see if uploading a torrent works with any of those tools.

http://code.google.com/p/transmission-remote-dotnet/
http://code.google.com/p/transmisson-remote-gui/
http://code.google.com/p/transmission-remote-gtk/

Offline

 

#655 2012-06-05 09:56:47

KyleK
Member
From: Dresden, Germany
Registered: 2007-12-05
Posts: 1178

Re: [REL] Automatic for funplug-0.5

Ok, I think I know what the problem is.

HTTP error 403 is NOT "Authentication required", as I originally thought (that's 401).
Transmission responds with 403 when the accessing IP address is not allowed.

So this probably means you have the rpc-whitelist enabled, but localhost (127.0.0.1) is not set.
Just shutdown Transmission, then edit settings.json:

Code:

"rpc-whitelist": "127.0.0.1,192.168.*.*",
"rpc-whitelist-enabled": true,

Offline

 

#656 2012-06-05 11:17:57

whiteout
Member
Registered: 2011-09-06
Posts: 31

Re: [REL] Automatic for funplug-0.5

Doesnt seem to do any good but maybe were on to something here. do i have to have whitelist enabled at all? Any other setting that might let automatic in to transmission?  When i add torrent files from my desktop it works fine. i use firefox on a macbook pro. transmssion is 2.52 and i add torrent files through the web client..

Last edited by whiteout (2012-06-05 12:58:42)

Offline

 

#657 2012-06-05 13:15:57

KyleK
Member
From: Dresden, Germany
Registered: 2007-12-05
Posts: 1178

Re: [REL] Automatic for funplug-0.5

Automatic is running on the same device as Transmission?
You can disable the whitelist, but then make sure access to the device is restricted through your router's firewall, otherwise anyone could fiddle with it.

Usually, IP 127.0.0.1 on the whitelist should be just fine. I don't know what happens if your NAS has an IPv6 address though.

Offline

 

#658 2012-06-05 13:40:51

whiteout
Member
Registered: 2011-09-06
Posts: 31

Re: [REL] Automatic for funplug-0.5

Yes they both run on my NAS so i guess i can skip the whitelist thing. I sholud be able to just try to let Automatic download the torrent files to the watch dir of transmission? If that doesnt work either i guess the problem is at Automatic or maybe libcurl?

Offline

 

#659 2012-06-05 13:45:31

KyleK
Member
From: Dresden, Germany
Registered: 2007-12-05
Posts: 1178

Re: [REL] Automatic for funplug-0.5

The same issue should happen when you log onto the NAS via telnet/ssh and use transmission-remote:

Code:

$ transmission-remote -n user:passwd -l

If that gives you a 403 as well, then Transmission has a problem with your local IP.
What does ifconfig say?

Letting Automatic download the torrents and add them to Transmissions watchfolder would be a solution, but I'd rather we figure out what's the concrete issue here.

Offline

 

#660 2012-06-05 16:12:41

whiteout
Member
Registered: 2011-09-06
Posts: 31

Re: [REL] Automatic for funplug-0.5

ifconfig:

DiskStation> ifconfig
eth0      Link encap:Ethernet  HWaddr 00:11:32:08:F6:90 
          inet addr:192.168.1.5  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::211:32ff:fe08:f690/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1677260 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2464452 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:532
          RX bytes:350310089 (334.0 MiB)  TX bytes:2980775688 (2.7 GiB)
          Interrupt:11

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:41153 errors:0 dropped:0 overruns:0 frame:0
          TX packets:41153 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:3129633 (2.9 MiB)  TX bytes:3129633 (2.9 MiB)

Im thinking someshing is wrong with the dependencies and maybe a link  or path between automatic and libcurl is wrong. If i wanna uninstall Automatic and the dependencies, where is automatic and the packages located? Feels like i wanna do a fresh install and stark all over again..

and also now i got this
DiskStation> automatic
automatic: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory

so i think its really messed up in there sad

Offline

 

#661 2012-06-05 18:39:47

KyleK
Member
From: Dresden, Germany
Registered: 2007-12-05
Posts: 1178

Re: [REL] Automatic for funplug-0.5

automatic is just the binary (automatic), which probably gets installed to /usr/bin ( use `which automatic`).

Then there's only the sample config file, which gets installed to /etc.

Offline

 

#662 2012-06-06 14:35:58

whiteout
Member
Registered: 2011-09-06
Posts: 31

Re: [REL] Automatic for funplug-0.5

Ive now tested a lot of things. removed automatic and the configfile. I've reinstalled all all the dependencies and put everything back in again. I still get the 403 error when automatic finds a new download. it wont even download just the torrentfile to the watch dir sad

I guess im giving up for now. Maybe you find something that can be changed for next version of automatic and hopefully that could help.

Thanks for all the help even if i didnt get it to work this time..

Offline

 

#663 2012-06-06 14:41:15

KyleK
Member
From: Dresden, Germany
Registered: 2007-12-05
Posts: 1178

Re: [REL] Automatic for funplug-0.5

So you're saying when you configure Automatic to not use Transmission, but download the torrent file to a folder, you still get erro 403? This would point to a problem with the website.

Try this:

Code:

$ export AM_CURL_VERBOSE=1
$ automatic -v 3 -f -o -c automatic.conf

This should print verbose output produced by libcurl. Maybe it will help us find the problem.

Offline

 

#664 2012-06-06 15:01:23

whiteout
Member
Registered: 2011-09-06
Posts: 31

Re: [REL] Automatic for funplug-0.5

Ok no same problem when just letting it download the file.

Heres the log when verbose 1 on libcurl (its just from when trying to download, if you need more let me know):

[12/06/06 13:58:46] ../src/automatic.c, 397: [(null)] Found new download: Die Tuschs 2011 Geman AC3 DVDRiP XViD-SONS (http://www.torrentleech.org/rss/downloa … NS.torrent)
../src/automatic.c, 316: [downloadTorrent] url=http://www.torrentleech.org/rss/download/370296/a6fa15266c59ef941bc6/Die.Tuschs.2011.Geman.AC3.DVDRiP.XViD-SONS.torrent, curl_session=0x23418
../src/web.c, 390: [getHTTPData] url=http://www.torrentleech.org/rss/download/370296/a6fa15266c59ef941bc6/Die.Tuschs.2011.Geman.AC3.DVDRiP.XViD-SONS.torrent, curl_session=0x23418
* About to connect() to www.torrentleech.org port 80 (#1)
*   Trying 199.83.49.5... * connected
* Connected to www.torrentleech.org (199.83.49.5) port 80 (#1)
> GET /rss/download/370296/a6fa15266c59ef941bc6/Die.Tuschs.2011.Geman.AC3.DVDRiP.XViD-SONS.torrent HTTP/1.1
Host: www.torrentleech.org
Accept: */*

< HTTP/1.1 403 Forbidden
< Server: nginx/1.2.0
< Date: Wed, 06 Jun 2012 11:58:44 GMT
< Content-Type: text/html
< Content-Length: 168
../src/regex.c, 95: [getRegExMatch] Text to match against: Content-Length: 168
(21 byte)
../src/web.c, 103: Content-Length: 168
< Connection: keep-alive
<
* Connection #1 to host www.torrentleech.org left intact
../src/web.c, 420: [getHTTPData] response code: 403
../src/automatic.c, 424: Error: Download failed (Error Code 403)

Offline

 

#665 2012-06-06 15:22:35

KyleK
Member
From: Dresden, Germany
Registered: 2007-12-05
Posts: 1178

Re: [REL] Automatic for funplug-0.5

Ok, this time I've solved the problem for certain.
Your torrent site apparently does not allow any access to its pages unless a HTTP user agent is sent in the request.
Automatic does not set a useragent, and boom: no downloads.

This is the first time I've seend this problem.

I've commited a fix to github, so you can go here (https://github.com/1100101/automatic) and click the big "ZIP" button to get the latest version of the repository.

Offline

 

#666 2012-06-06 17:39:33

whiteout
Member
Registered: 2011-09-06
Posts: 31

Re: [REL] Automatic for funplug-0.5

Nice that you found the problem! My torrent site must have implemented this just a while ago since its always been working before.

I downloaded the package from github and had to steal some missing files from the 0.7.2 pack to get ./configure to work.
But then when hitting make in the end i get this:

b.c' || echo './'`../src/web.c
In file included from ../src/web.c:42:
../include/regex.h:5:87: warning: no newline at end of file
../src/web.c: In function 'am_curl_init':
../src/web.c:343: error: expected ')' before 'SHORT_VERSION_STRING'
make[3]: *** [web.o] Error 1
make[3]: Leaving directory `/volume1/Media/1100101-Automatic-383cd2a/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/volume1/Media/1100101-Automatic-383cd2a/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/volume1/Media/1100101-Automatic-383cd2a/src'
make: *** [all-recursive] Error 1

is this something easy to fix. Ive only done java programming so i cant really read the problem..

Maybe i could just fix the problem on line 343 in web.c? Just dont know what to write to fix it..
I used aquamacs to fix the newline in regex.h and got rid of that problem.

Last edited by whiteout (2012-06-06 17:56:23)

Offline

 

#667 2012-06-06 17:54:43

Mijzelf
Member / Developer
Registered: 2008-07-05
Posts: 709

Re: [REL] Automatic for funplug-0.5

../src/web.c:343: error: expected ')' before 'SHORT_VERSION_STRING'

Have a look in src/web.c at line 343. Apparently some close parenthesis is missing.

Offline

 

#668 2012-06-06 17:56:40

KyleK
Member
From: Dresden, Germany
Registered: 2007-12-05
Posts: 1178

Re: [REL] Automatic for funplug-0.5

Nah, that's not the issue.
You actually don't need to copy any files over from another version. In fact I think that is what caused the problem.

Just run ./autogen.sh that comes with the package, it'll generate all necessary files.

Offline

 

#669 2012-06-06 18:06:32

whiteout
Member
Registered: 2011-09-06
Posts: 31

Re: [REL] Automatic for funplug-0.5

Ok but running ./autogen.sh gives me

DiskStation> ./autogen.sh
./autogen.sh: line 3: aclocal: not found
/opt/bin/autoconf: exec: line 502: /opt/bin/autom4te: not found
./autogen.sh: line 5: automake: not found

sad

Offline

 

#670 2012-06-06 18:09:32

KyleK
Member
From: Dresden, Germany
Registered: 2007-12-05
Posts: 1178

Re: [REL] Automatic for funplug-0.5

Most Linux software requires the autotools suite in order to properly
compile. The most important tools here are autoconf and automake. I'm sure they're available for your system as well.

Offline

 

#671 2012-06-07 13:37:37

whiteout
Member
Registered: 2011-09-06
Posts: 31

Re: [REL] Automatic for funplug-0.5

KyleK wrote:

Most Linux software requires the autotools suite in order to properly
compile. The most important tools here are autoconf and automake. I'm sure they're available for your system as well.

Yeah and i have them all installed in /opt/bin
but i get

DiskStation> ./autogen.sh
./autogen.sh: line 3: aclocal: not found
/opt/bin/autoconf: exec: line 502: /opt/bin/autom4te: not found
./autogen.sh: line 5: automake: not found

How do i point to where the tools are located?

Offline

 

#672 2012-06-07 13:52:02

KyleK
Member
From: Dresden, Germany
Registered: 2007-12-05
Posts: 1178

Re: [REL] Automatic for funplug-0.5

You can either add /opt/bin to your PATH environment variable, or you can simply edit the autogen.sh script to point to the correct location.

Offline

 

#673 2012-06-07 15:44:37

whiteout
Member
Registered: 2011-09-06
Posts: 31

Re: [REL] Automatic for funplug-0.5

KyleK wrote:

You can either add /opt/bin to your PATH environment variable, or you can simply edit the autogen.sh script to point to the correct location.

still having problems. Really cant get this to work.

I tried

DiskStation> ./autogen.sh PATH=$PATH:/opt/bin               
./autogen.sh: line 3: aclocal: not found
/opt/bin/autoconf: exec: line 502: /opt/bin/autom4te: not found
./autogen.sh: line 5: automake: not found
DiskStation>

I'm sure the tools are in /opt/bin

DiskStation> dir /opt/bin
drwxr-xr-x    2 root     root          4096 Jun  7 12:29 .
drwxr-xr-x   16 root     root          4096 Jun  7 14:35 ..
lrwxrwxrwx    1 root     root            12 Jun  6 17:03 aclocal -> aclocal-1.12
-rwxr-xr-x    1 root     root         31042 May  9 23:27 aclocal-1.12
-rwxr-xr-x    1 root     root        471428 Feb 14 23:07 addr2line
-rwxr-xr-x    2 root     root        491800 Feb 14 23:07 ar
-rwxr-xr-x    4 root     root        187616 Feb 15 23:17 arm-none-linux-gnueabi-c++
-rwxr-xr-x    4 root     root        187616 Feb 15 23:17 arm-none-linux-gnueabi-g++
-rwxr-xr-x    3 root     root        187616 Feb 15 23:17 arm-none-linux-gnueabi-gcc
-rwxr-xr-x    3 root     root        187616 Feb 15 23:17 arm-none-linux-gnueabi-gcc-4.2.3
-rwxr-xr-x    2 root     root        845568 Feb 14 23:07 as
-rwxr-xr-x    1 root     root         14768 May  9 23:25 autoconf
-rwxr-xr-x    1 root     root          8534 May  9 23:25 autoheader
-rwxr-xr-x    1 root     root         32176 May  9 23:25 autom4te
lrwxrwxrwx    1 root     root            13 Jun  6 17:03 automake -> automake-1.12
-rwxr-xr-x    1 root     root        255803 May  9 23:27 automake-1.12
-rwxr-xr-x    1 root     root         21066 May  9 23:25 autoreconf

Why cant it just work tongue

Ive also tried to edit the autogen.sh file but how exactly should i edit it?

also i realise that maybe i need to have perl installed to get it to work but when i have that i get:

DiskStation> ./autogen.sh
This Perl not built to support threads
Compilation failed in require at /opt/share/automake-1.12/Automake/ChannelDefs.pm line 23.
BEGIN failed--compilation aborted at /opt/share/automake-1.12/Automake/ChannelDefs.pm line 26.
Compilation failed in require at /opt/share/automake-1.12/Automake/Configure_ac.pm line 27.
BEGIN failed--compilation aborted at /opt/share/automake-1.12/Automake/Configure_ac.pm line 27.
Compilation failed in require at /opt/bin/aclocal-1.12 line 38.
BEGIN failed--compilation aborted at /opt/bin/aclocal-1.12 line 38.
This Perl not built to support threads
Compilation failed in require at /opt/bin/automake-1.12 line 137.
BEGIN failed--compilation aborted at /opt/bin/automake-1.12 line 142.

Last edited by whiteout (2012-06-07 16:18:59)

Offline

 

#674 2012-06-07 16:34:43

KyleK
Member
From: Dresden, Germany
Registered: 2007-12-05
Posts: 1178

Re: [REL] Automatic for funplug-0.5

Something is seriously wrong with your setup.

You should check your NAS' forums to find out how to set up a proper development environment.

Anyway, here's a source package for you which should contain all the files necessary to build Automatic: http://kylek.is-a-geek.org:31337/files/ … out.tar.gz

PS: I found this blog post which details how to put software on the Synology DS411j: http://www.chainsawonatireswing.com/201 … on-ds411j/
I suppose you've already seen this?

Offline

 

#675 2012-06-07 19:32:44

whiteout
Member
Registered: 2011-09-06
Posts: 31

Re: [REL] Automatic for funplug-0.5

KyleK wrote:

PS: I found this blog post which details how to put software on the Synology DS411j: http://www.chainsawonatireswing.com/201 … on-ds411j/
I suppose you've already seen this?

Yeah ive seen it and that's how i install packages the easy way.. Maybe its outside your area of interest but you could add Automatic to ikpg if you wanna reach more users..

Anyway everything seems to be working now. Thanks for all the help and patience. Great work!

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB