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

#1051 2010-04-05 13:01:54

calpeman
Member
Registered: 2010-04-05
Posts: 7

Re: [REL] Transmission 1.3

Dear all,
I’m trying to make my D-link DNS-323 to work after an upgrade from version 1.76 to Transmission 1.92: it opens fine but does not seed or leech ( I had 25 torrents ceding&leeching before I started my attempts).
After several attempts I have decided to start from the scratch and here is what I did:
1)    Uninstall everything with these commands:
# funpkg -r Transmission-1.92-1.tgz
# funpkg -r curl-7.18.1.tgz
# funpkg -r uclibc-0.9.29-7.tgz
2)    Reboot the NAS
Reinstall all the packages again with these:
# funpkg -i curl-7.18.1.tgz
root@dlink-0F4E71:/mnt/HD_a2# funpkg -i curl-7.18.1.tgz
Installing package curl-7.18.1 ...
# funpkg -i uclibc-0.9.29-7.tgz
root@dlink-0F4E71:/mnt/HD_a2# funpkg -i uclibc-0.9.29-7.tgz
Installing package uclibc-0.9.29-7 ...

3)    Reboot the NAS

4)    Reinstall the package again with this:
# funpkg -i Transmission-1.92-1.tgz

Here is the result for settings.json:

    "alt-speed-down": 50,
    "alt-speed-enabled": true,
    "alt-speed-time-begin": 540,
    "alt-speed-time-day": 127,
    "alt-speed-time-enabled": false,
    "alt-speed-time-end": 1020,
    "alt-speed-up": 50,
    "bind-address-ipv4": "0.0.0.0",
    "bind-address-ipv6": "",
    "blocklist-enabled": false,
    "dht-enabled": false,
    "download-dir": "\/mnt\/HD_a2\/transmission-downloads\/",
    "encryption": 1,
    "external-done-command": "",
    "external-done-command-enabled": false,
    "incomplete-dir": "\/mnt\/HD_a2\/.transmission-daemon\/Incomplete",
    "incomplete-dir-enabled": false,
    "lazy-bitfield-enabled": true,
    "message-level": 2,
    "open-file-limit": 32,
    "peer-limit-global": 240,
    "peer-limit-per-torrent": 60,
    "peer-port": 51413,
    "peer-port-random-high": 65535,
    "peer-port-random-low": 49152,
    "peer-port-random-on-start": false,
    "peer-socket-tos": 0,
    "pex-enabled": true,
    "port-forwarding-enabled": true,
    "preallocation": 1,
    "proxy": "",
    "proxy-auth-enabled": false,
    "proxy-auth-password": "",
    "proxy-auth-username": "",
    "proxy-enabled": false,
    "proxy-port": 80,
    "proxy-type": 0,
    "ratio-limit": 2.0000,
    "ratio-limit-enabled": false,
    "rename-partial-files": true,
    "rpc-authentication-required": false,
    "rpc-bind-address": "0.0.0.0",
    "rpc-enabled": true,
    "rpc-password": "xxxxxxxxxxx",
    "rpc-port": 9091,
    "rpc-username": "",
    "rpc-whitelist": "127.0.0.1,192.168.22.*",
    "rpc-whitelist-enabled": true,
    "speed-limit-down": 100,
    "speed-limit-down-enabled": false,
    "speed-limit-up": 100,
    "speed-limit-up-enabled": false,
    "umask": 18,
    "upload-slots-per-torrent": 14

   

5)    Have started Transmission from the command line
transmission-daemon -f -g /mnt/HD_a2/.transmission-daemon/  -w /mnt/HD_a2/transmission-downloads/   (“ transmission-downloads” is the name of my folder to download the files):

root@dlink-0F4E71:/mnt/HD_a2/.transmission-daemon# transmission-daemon -f -g /mnt/HD_a2/.transmission-daemon/ -w /mnt/HD_a2/transmission-downloads/
[13:43:29.729] Transmission 1.92 (10386) started (session.c:616)
[13:43:29.730] RPC Server Adding address to whitelist: 127.0.0.1 (rpc-server.c:772)
[13:43:29.730] RPC Server Adding address to whitelist: 192.168.22.* (rpc-server.c:772)
[13:43:29.730] RPC Server Serving RPC and Web requests on port 9091 (rpc-server.c:945)
[13:43:29.731] RPC Server Whitelist enabled (rpc-server.c:949)
[13:43:29.731] External Done Command set to: (null) (session.c:829)
[13:43:29.731] External Done Command enabled: no (session.c:849)
[13:43:29.732] Using settings from "/mnt/HD_a2/.transmission-daemon/" (daemon.c:423)
[13:43:29.732] Saved "/mnt/HD_a2/.transmission-daemon//settings.json" (bencode.c:1645)
[13:43:29.732] Port Forwarding (NAT-PMP) initnatpmp succeeded (0) (natpmp.c:67)
[13:43:29.733] Port Forwarding (NAT-PMP) sendpublicaddressrequest succeeded (2) (natpmp.c:67)
[13:43:29.733] Port Forwarding State changed from "Not forwarded" to "Starting" (port-forwarding.c:87)
[13:43:29.734] Port Forwarding State changed from "Starting" to "???" (port-forwarding.c:87)
[13:43:29.734] Loaded 25 torrents (session.c:1718)
[13:45:13.353] Saved "/mnt/HD_a2/.transmission-daemon//resume/ABBA.6051d97617a3aaf5.resume" (bencode.c:1645)
[13:45:14.359] Saved "/mnt/HD_a2/.transmission-daemon//resume/Deep Purple.e4d89cd3acf57f0e.resume" (bencode.c:1645)
[13:45:14.359] Saved "/mnt/HD_a2/.transmission-daemon//resume/Deep Purple (Vinyl).60041a7d659e93e4.resume" (bencode.c:1645)
[13:45:14.360] Saved "/mnt/HD_a2/.transmission-daemon//resume/Krestniy.Otech.II.BDRip.720p.x264.MIF.mkv.mkv.3503c38852cf6dc1.resume" (bencode.c:1645)
[13:45:14.360] Saved "/mnt/HD_a2/.transmission-daemon//resume/CELINE_DION.8350f4ab3dd0c372.resume" (bencode.c:1645)
[13:45:14.360] Saved "/mnt/HD_a2/.transmission-daemon//resume/REVOLVER.e52cbf516eda1f88.resume" (bencode.c:1645)
[13:45:14.361] Saved "/mnt/HD_a2/.transmission-daemon//resume/EAGLES GREATTEST HITS !-2.a82163cad1c1b8c6.resume" (bencode.c:1645)
[13:45:14.361] Saved "/mnt/HD_a2/.transmission-daemon//resume/Led Zeppelin - In The Light (Rock Retrospectives) 2009.f21cbb6846917b63.resume" (bencode.c:1645)
[13:45:14.361] Saved "/mnt/HD_a2/.transmission-daemon//resume/Carlos Santana Presents.b4308c4fcd5ab620.resume" (bencode.c:1645)
[13:45:14.362] Saved "/mnt/HD_a2/.transmission-daemon//resume/Creedence Clearwater Revival - The Broadcast Arcives (2005).76552edd313f6c23.resume" (bencode.c:1645)
[13:45:14.362] Saved "/mnt/HD_a2/.transmission-daemon//resume/CONCERT_FOR_DIANA.ed249129b8556669.resume" (bencode.c:1645)
[13:45:14.362] Saved "/mnt/HD_a2/.transmission-daemon//resume/Krestniy.Otech.BDRip.720p.x264.MIF.mkv.18778be5d00d7bf2.resume" (bencode.c:1645)
[13:45:15.365] Saved "/mnt/HD_a2/.transmission-daemon//resume/The.Godfather.Part.III.1990.720p.mkv.946fb3aca589e0a1.resume" (bencode.c:1645)
[13:45:15.365] Saved "/mnt/HD_a2/.transmission-daemon//resume/Celine.Dion.ThatБ─≥s.Just.the.Woman.in.Me.1080i.HDTV.36MBit.MPEG-2.DD2.0-CtrlHD.ts.1ff78647f161e1e3.resume" (bencode.c:1645)
[13:45:15.366] Saved "/mnt/HD_a2/.transmission-daemon//resume/Barbra Streisand - Live In Concert Timeless Tour 2006.mkv.b94675d13026fa95.resume" (bencode.c:1645)
[13:45:15.366] Saved "/mnt/HD_a2/.transmission-daemon//resume/Eric Clapton and Steve Winwood.Live from Madison Square Garden.720p.mkv.86cf888840d5b0d3.resume" (bencode.c:1645)
[13:45:15.366] Saved "/mnt/HD_a2/.transmission-daemon//resume/Queen.Rock.Montreal.1981.1080p.BluRay.DTS.x264-CtrlHD.mkv.48538ba22e7a4a6e.resume" (bencode.c:1645)
[13:45:15.367] Saved "/mnt/HD_a2/.transmission-daemon//resume/Deep.Purple.Live.at.Montreux.2006.720p.HDDVD.DTS.x264-XSHD.mkv.e20c7bb3e7706350.resume" (bencode.c:1645)
[13:45:15.367] Saved "/mnt/HD_a2/.transmission-daemon//resume/Led.Zeppelin.The.Song.Remains.The.Same.1976.720p.HDDVD.DTS.x264-ESiR.mkv.15d38f4b80a72940.resume" (bencode.c:1645)
[13:45:15.367] Saved "/mnt/HD_a2/.transmission-daemon//resume/Jimi_Hendrix-Live_At_Woodstock.f952bd57e0e35a28.resume" (bencode.c:1645)
[13:45:15.368] Saved "/mnt/HD_a2/.transmission-daemon//resume/LED_ZEPPELIN.d9308c915b8bd375.resume" (bencode.c:1645)
[13:45:15.368] Saved "/mnt/HD_a2/.transmission-daemon//resume/SANTANA_HYMNS_FOR_PEACE.a0b7f79e39c42acb.resume" (bencode.c:1645)
[13:45:16.371] Saved "/mnt/HD_a2/.transmission-daemon//resume/Lady Gaga ft. Beyonce - Telephone (Blu-ray version) HD-1080P DTS 5.1.ts.0de8a2f5c4d23d35.resume" (bencode.c:1645)
[13:45:16.371] Saved "/mnt/HD_a2/.transmission-daemon//resume/Legends Of Jazz With Ramsey Lewis 1080i.273ce26f9af581b5.resume" (bencode.c:1645)
Closing transmission session... done.

The result in /.transmission-daemon/settings.json is:

    "alt-speed-down": 50,
    "alt-speed-enabled": true,
    "alt-speed-time-begin": 540,
    "alt-speed-time-day": 127,
    "alt-speed-time-enabled": false,
    "alt-speed-time-end": 1020,
    "alt-speed-up": 50,
    "bind-address-ipv4": "0.0.0.0",
    "bind-address-ipv6": "",
    "blocklist-enabled": false,
    "dht-enabled": false,
    "download-dir": "\/mnt\/HD_a2\/transmission-downloads\/",
    "encryption": 1,
    "external-done-command": "",
    "external-done-command-enabled": false,
    "incomplete-dir": "\/mnt\/HD_a2\/.transmission-daemon\/Incomplete",
    "incomplete-dir-enabled": false,
    "lazy-bitfield-enabled": true,
    "message-level": 2,
    "open-file-limit": 32,
    "peer-limit-global": 240,
    "peer-limit-per-torrent": 60,
    "peer-port": 51413,
    "peer-port-random-high": 65535,
    "peer-port-random-low": 49152,
    "peer-port-random-on-start": false,
    "peer-socket-tos": 0,
    "pex-enabled": true,
    "port-forwarding-enabled": true,
    "preallocation": 1,
    "proxy": "",
    "proxy-auth-enabled": false,
    "proxy-auth-password": "",
So, according to settings.json the directory to download is properly defined but
according transmission-daemon –d
{
    "alt-speed-down": 50,
    "alt-speed-enabled": false,
    "alt-speed-time-begin": 540,
    "alt-speed-time-day": 127,
    "alt-speed-time-enabled": false,
    "alt-speed-time-end": 1020,
    "alt-speed-up": 50,
    "bind-address-ipv4": "0.0.0.0",
    "bind-address-ipv6": "::",
    "blocklist-enabled": false,
    "dht-enabled": true,
    "download-dir": "\/usr\/share\/ftp_server\/Downloads",
    "encryption": 1,
    "external-done-command": "",
    "external-done-command-enabled": false,
    "incomplete-dir": "\/usr\/share\/ftp_server\/.config\/transmission-daemon\/Incomplete",
    "incomplete-dir-enabled": false,
    "lazy-bitfield-enabled": true,
    "message-level": 2,
    "open-file-limit": 32,
    "peer-limit-global": 240,
    "peer-limit-per-torrent": 60,
    "peer-port": 51413,
    "peer-port-random-high": 65535,
    "peer-port-random-low": 49152,
    "peer-port-random-on-start": false,
    "peer-socket-tos": 0,
    "pex-enabled": true,
    "port-forwarding-enabled": true,
    "preallocation": 1,
    "proxy": "",
    "proxy-auth-enabled": false,
    "proxy-auth-password": "",
    "proxy-auth-username": "",
    "proxy-enabled": false,
    "proxy-port": 80,
    "proxy-type": 0,
    "ratio-limit": 2.0000,
    "ratio-limit-enabled": false,
    "rename-partial-files": true,
    "rpc-authentication-required": false,
    "rpc-bind-address": "0.0.0.0",
    "rpc-enabled": true,
    "rpc-password": "",
    "rpc-port": 9091,
    "rpc-username": "",
    "rpc-whitelist": "127.0.0.1",
    "rpc-whitelist-enabled": true,
    "speed-limit-down": 100,
    "speed-limit-down-enabled": false,
    "speed-limit-up": 100,
    "speed-limit-up-enabled": false,
    "umask": 18,
    "upload-slots-per-torrent": 14
}
Looks that download directory is completely different in comparable what I needed!

So, the questions are:
1)    The most important question: what am I doing wrong?
2)    Looks that my intention to start from a scratch was not done: somehow all my torrents were alive. How to start from complete scratch – to remove everything about Transmission   ( except formatting the disc!, please)?

Offline

 

#1052 2010-04-05 13:58:30

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

Re: [REL] Transmission 1.3

beefy314 wrote:

KyleK wrote:

A) Is HD_a2 the same drive it was before? If you switched the physical drives around HD_a2 becomes HD_b2 and vice versa. Check if the folder (and all the files) exist on HD_a2 and not HD_b2

B) change the permissions of the folder so that they belong to user 'nobody'.

Yes HD_a2 is the same drive as it was before and all the files are still present.

How do I change permission so that they belong to user nobody?

First check who the folder (and the files within it) belongs to, with the command "ls -alh" (in the parent directory of .transmission-daemon). If it doesn't belong to user nobody, use this command to change that:

Code:

$ chown -R nobody:nobody /mnt/HD_a2/.transmission-daemon

Offline

 

#1053 2010-04-05 14:06:50

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

Re: [REL] Transmission 1.3

@calpeman

The command "transmission-daemon -d" is misleading, because you didn't specify the correct location of your settings folder. It should be:

Code:

$ transmission-daemon - g /mnt/HD_a2/.transmission-daemon -d

To start completely fresh, quit Transmission, then delete (or better rename) the original settings folder /mnt/HD_a2/.transmission-daemon

Beware that you'll have to set it up from scratch.

Since the reason for your reinstall was that nothing was up- or downloading: Did you check if the Transmission port is actually accessible from the outside?

You can do so by issueing the command "transmission-remote --port-test"

I see from your logfile snippet that port-forwarding (that is UPNP or NAT-PMP) is enabled (this is a feature where Transmission automatically tells your router which port it wants to use, and the router opens up the port for the time Transmission is running).
Make sure that UPNP is activated in your router as well.

If it doesn't support UPNP, or you don't want to activate it, you have to manually create a port route in your router and also tell Transmission to use that port.

Offline

 

#1054 2010-04-05 15:33:10

calpeman
Member
Registered: 2010-04-05
Posts: 7

Re: [REL] Transmission 1.3

@KyleK
1) Thanks a lot for your clarification about "transmission-daemon - g /mnt/HD_a2/.transmission-daemon -d" - in fact my downloading directory is OK.
2) I have checked if port is opened many times ( by means of, for example http://www.yougetsignal.com/tools/open-ports/): the result is positive:
Open Port 51413 is open on calpeman.dyndns.biz.
3) the CODE transmission-remote --port-test gives something strange for me:
root@dlink-0F4E71:~# transmission-remote 51413 -pt
[16:29:09.533] transmission-remote: (localhost:51413) Couldn't connect to server

4) When I try to test the port by means of "Remote settings" of TransmissionRemote: push "Test Port"-button the result is -
the "Unsuccessful Request:: http Error: 0  No Response  and the button itself becomes "querying"-forever.
4) at the same time transmission itself works "fine"  - as WEB as Remote are managing it ( I can see, pause,...) any OF MY OLD or add ANY NEW torrent or change any settings - except the fact that nothing is downloading or uploading.

From "my-not-linux-at-all-guy" point of view it looks that the port 51413 is busy by/with something ( but not Transmission, or some OTHER Transmission which I'm not aware about) - but I can be wrong!
Do you have a suggestions - how can I overcome that?

Offline

 

#1055 2010-04-05 15:43:26

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

Re: [REL] Transmission 1.3

51413 is the port Transmission uses for the BitTorrent communication (this is the default).  The second parameter to transmission-remote must be the port Transmission uses for RPC communication (default: 9091).

So "transmission-remote 51413 -pt" is wrong. It must be "transmission-remote 9091 -pt" (if you didn't change the default RPC port, you can even omit it).

Since other port-tests were successful, I'd try and download some popular torrents that are known to be very fast, for example the OpenOffice suite, or the current Ubuntu ISO. If these won't download as well, then the problem is indeed on your side, otherwise it may just be the torrent's fault.

You can also crank up the verbose-ness of Transmission by editing the settings.json and set the parameter "message-level" to 4. (Quit Transmission beforehand and wait a while until it really has quit). Maybe the log can reveal why it's not downloading anything.

Offline

 

#1056 2010-04-05 16:43:11

beefy314
Member
Registered: 2010-01-20
Posts: 41

Re: [REL] Transmission 1.3

KyleK wrote:

beefy314 wrote:

KyleK wrote:

A) Is HD_a2 the same drive it was before? If you switched the physical drives around HD_a2 becomes HD_b2 and vice versa. Check if the folder (and all the files) exist on HD_a2 and not HD_b2

B) change the permissions of the folder so that they belong to user 'nobody'.

Yes HD_a2 is the same drive as it was before and all the files are still present.

How do I change permission so that they belong to user nobody?

First check who the folder (and the files within it) belongs to, with the command "ls -alh" (in the parent directory of .transmission-daemon). If it doesn't belong to user nobody, use this command to change that:

Code:

$ chown -R nobody:nobody /mnt/HD_a2/.transmission-daemon

I typed the command "ls -alh" on the root of HD_a2 and it doesn't say who's the owner.. I just see letters with drwxr-xr-x on the first row followed by 5 then 1001

I tried typing the chown command you gave and it just returned unknown user group nobody:nobody

Offline

 

#1057 2010-04-05 16:57:51

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

Re: [REL] Transmission 1.3

Hm.

If you type "cat /etc/passwd", does it list a user named "nobody"?

The "1001" is the user ID (UID) that the folder .transmission-daemon belongs to. But apparently, your current session doesn't know who that user is.

Did you once make changes to the user accounts (add users, change the shell of a user,  or the password) and forgot to save the passwd file with store-passwd.sh?
A shutdown of the device (or a reboot) would have reverted all those changes.

"cat /etc/passwd" shows you all the users the Linux system knows, with their name and their UID.

You can reassign UIDs to a user if you wish.

Offline

 

#1058 2010-04-05 19:12:42

beefy314
Member
Registered: 2010-01-20
Posts: 41

Re: [REL] Transmission 1.3

KyleK wrote:

Hm.

If you type "cat /etc/passwd", does it list a user named "nobody"?

The "1001" is the user ID (UID) that the folder .transmission-daemon belongs to. But apparently, your current session doesn't know who that user is.

Did you once make changes to the user accounts (add users, change the shell of a user,  or the password) and forgot to save the passwd file with store-passwd.sh?
A shutdown of the device (or a reboot) would have reverted all those changes.

"cat /etc/passwd" shows you all the users the Linux system knows, with their name and their UID.

You can reassign UIDs to a user if you wish.

Typing cat /etc/passwd shows  on the second line nobody but I don't know where it is assigned to. I think it's pointing to home/nobody :/bin/sh

I don't know how to use linux so I'm sure I haven't changed any password or added users.

Would it be possible to just uninstall and erase Transmission then reinstall it again from scratch? That would seem easier since I found a tutorial that shows how to install but I can't find anything with regards to completely removing it.

I tried funpkg -r transmission then I reinstalled it but when I tried to start Transmission, I still get access denied sad

Last edited by beefy314 (2010-04-05 19:14:12)

Offline

 

#1059 2010-04-05 21:10:46

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

Re: [REL] Transmission 1.3

funpkg -r only removes the files that were installed in the first place, so it won't remove your settings files.
Besides, reinstalling Transmission is not necessary. You can just remove (or better rename) the settings directory (/mnt/HD_a2/.transmission-daemon), and then start from the beginning (see the very first post on how to start Transmission for the first time).

Offline

 

#1060 2010-04-06 11:32:48

calpeman
Member
Registered: 2010-04-05
Posts: 7

Re: [REL] Transmission 1.3

@KyleK
1) I have started from the scratch - even re-install fun_plug, ffp was removed, all the packages were re-installed.
2) I have changed "message level 4"
3) I returned back to Transmission 1.76 ( everything from earlier version like .transmission-daemon was renamed)
4)I checked 51413 port several times - it is open from outside:  Port 51413 is open on calpeman.dyndns.biz.
5) I'm attaching two pictures for REMOTE_TRANSMISSION: one of them was done from LAN, the another was done through ssh-tunnel via WAN. Both pictures were done after I tried to check the port. The results are:
- for LAN "Daemon try to download something, but http result is: No Responce"
- for WAN "http error 0: No Response"
6) Another files attached are:
- "setting_json.doc" - copy of settings.json
- "processes.doc" - copy of result for ps -l
-"transmission-daemon_log.doc" - copy of log.file
7) I checked the same  torrent file from the same LAN but downloading by uTorrent at MAC - works perfect, the same torrents takes it place in Transmission ( I can manage as by Remote as by WEB) -but nothing downloads.

Any Idea about what is wrong or what shall I change.

As a result - all


Attachments:
Attachment Icon torrent_report.rar, Size: 245,844 bytes, Downloads: 444

Offline

 

#1061 2010-04-06 14:48:41

breasthead
Member
Registered: 2009-02-05
Posts: 38

Re: [REL] Transmission 1.3

Hi Guys,

Not really sure if this is the proper place for this, but I'm trying to upgrade to the latest version of transmission, v1.92 from my installed and working version 1.52 but I can't. I don't have the funpkg command anymore?

I have installed and upgraded in the past (all be it a long time ago) but I can't get the latest version on as I don't have the funpkg command anymore?

Any ideas where I can get it again?
Cheers,
B

Offline

 

#1062 2010-04-06 21:54:10

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

Re: [REL] Transmission 1.3

@breasthead funpkg is a script that usually sits at /ffp/sbin. If you don't log in as user root, bash auto-completion won't show the command to you.

You should be able to call it via "sudo /ffp/sbin/funpkg -u Transmission-1.92-1.tgz" though.

EDIT: That of course only works if you've installed the sudo package. If not you need to login as user root to install new packages (Or you can access the super-user shell via the command "su -").

If it's really not installed, the current version is available here: http://inreto.de/dns323/fun-plug/0.5/packages/  (Although, without funpkg, it could be difficult to install it. You then need to extract the tar.gz manually).

Last edited by KyleK (2010-04-06 22:03:29)

Offline

 

#1063 2010-04-06 22:00:31

SkyNet
Member
Registered: 2009-01-14
Posts: 25

Re: [REL] Transmission 1.3

Hello everyone,

It seems that I am also facing some issues with permissions and Transmission.
I have a "torrents" folder in /mnt/HD_a2/torrents where all torrents are stored.
This folder has been assigned to user nobody with the following command: chown -R nobody /mnt/HD_a2/torrents (this was done as root user)
However, when I connect to the dlink nas using my own username and password, I get a permission error when I try to make a new folder / modify existing ones, etc.
How can I resolve this?

Last edited by SkyNet (2010-04-06 22:01:07)

Offline

 

#1064 2010-04-06 22:01:28

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

Re: [REL] Transmission 1.3

calpeman wrote:

@KyleK
1) I have started from the scratch - even re-install fun_plug, ffp was removed, all the packages were re-installed.
2) I have changed "message level 4"
3) I returned back to Transmission 1.76 ( everything from earlier version like .transmission-daemon was renamed)
4)I checked 51413 port several times - it is open from outside:  Port 51413 is open on calpeman.dyndns.biz.
5) I'm attaching two pictures for REMOTE_TRANSMISSION: one of them was done from LAN, the another was done through ssh-tunnel via WAN. Both pictures were done after I tried to check the port. The results are:
- for LAN "Daemon try to download something, but http result is: No Responce"
- for WAN "http error 0: No Response"
6) Another files attached are:
- "setting_json.doc" - copy of settings.json
- "processes.doc" - copy of result for ps -l
-"transmission-daemon_log.doc" - copy of log.file
7) I checked the same  torrent file from the same LAN but downloading by uTorrent at MAC - works perfect, the same torrents takes it place in Transmission ( I can manage as by Remote as by WEB) -but nothing downloads.

Any Idea about what is wrong or what shall I change.

As a result - all

Well, this seems to be a mystery. I've never seen that error message before, then again I don't use Transmission Remote GUI.
Please do the following:

1. Start Transmission with /ffp/start/transmission.sh start (if it's not running already)
2. Add a torrent of your choice
3. Wait a couple of minutes
4. Attach a copy of the logfile, which you will find at /mnt/HD_a2/.transmission-daemon/transmission-daemon.log



Did you try one of the torrents I told you about? OpenOffice or Ubuntu?

EDIT: I just saw from the logs that you have a D-Link DNS-323, is that correct? I just remembered that another user named Egoist had similar connection problems as you after he upgraded to the latest firmware version (1.08 I believe). He mentioned this a couple posts before.

I do not know what came of it though, and since I don't have a DNS-323 (I own the Conceptronic CH3SNAS), I don't know if there's been another firmware update, or a fix, or if you can downgrade the firmware.

Last edited by KyleK (2010-04-06 22:10:20)

Offline

 

#1065 2010-04-06 22:06:33

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

Re: [REL] Transmission 1.3

SkyNet wrote:

Hello everyone,

It seems that I am also facing some issues with permissions and Transmission.
I have a "torrents" folder in /mnt/HD_a2/torrents where all torrents are stored.
This folder has been assigned to user nobody with the following command: chown -R nobody /mnt/HD_a2/torrents (this was done as root user)
However, when I connect to the dlink nas using my own username and password, I get a permission error when I try to make a new folder / modify existing ones, etc.
How can I resolve this?

Where do you want to create new folders? Don't add any directories to Transmissions settings folder. All the files there are only for Transmission to run correctly.

If you login as a non-root user, you usually get your own dedicated home dir where you can do whatever you want. Outside of that folder, however, your rights are restricted. You'll either have to login as user 'root' to perform these tasks, or you can install the sudo package.

These permission issues are not a Transmission problem, this is how Linux works in general. If you are new to this I strongly advise you to read some tutorials on Linux user permissions and file rights.

Offline

 

#1066 2010-04-06 23:16:29

SkyNet
Member
Registered: 2009-01-14
Posts: 25

Re: [REL] Transmission 1.3

KyleK hi,

Thanks for the fast reply :-)
I am not trying to add any directories in the transmission settings dir. The "torrents" dir is the one that all the downloads are going, this is the one that I want to be able to modify at will.
Maybe I was not that specific, but the problem is when connecting via the windows environment and trying to modify the folders that I have in there (e.g. in the /torrents/music dir etc.) Simply it seems that I am not allowed to do so, despite the fact that the torrents dir and all the subfolders are owned by the user nobody.
Unfortunately I am not a good linux user, however I suppose that I know some basics :-)

Offline

 

#1067 2010-04-06 23:25:25

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

Re: [REL] Transmission 1.3

If it's about the files Transmission downloads into these folders (i.e. you can't delete or move files that are there), try setting the "umask" option in Transmissions settings.json to 0  (quit Transmission beforehand).

Offline

 

#1068 2010-04-07 09:36:23

calpeman
Member
Registered: 2010-04-05
Posts: 7

Re: [REL] Transmission 1.3

KyleK wrote:

calpeman wrote:

@KyleK
1) I have started from the scratch - even re-install fun_plug, ffp was removed, all the packages were re-installed.
2) I have changed "message level 4"
3) I returned back to Transmission 1.76 ( everything from earlier version like .transmission-daemon was renamed)
4)I checked 51413 port several times - it is open from outside:  Port 51413 is open on calpeman.dyndns.biz.
5) I'm attaching two pictures for REMOTE_TRANSMISSION: one of them was done from LAN, the another was done through ssh-tunnel via WAN. Both pictures were done after I tried to check the port. The results are:
- for LAN "Daemon try to download something, but http result is: No Responce"
- for WAN "http error 0: No Response"
6) Another files attached are:
- "setting_json.doc" - copy of settings.json
- "processes.doc" - copy of result for ps -l
-"transmission-daemon_log.doc" - copy of log.file
7) I checked the same  torrent file from the same LAN but downloading by uTorrent at MAC - works perfect, the same torrents takes it place in Transmission ( I can manage as by Remote as by WEB) -but nothing downloads.

Any Idea about what is wrong or what shall I change.

As a result - all

Well, this seems to be a mystery. I've never seen that error message before, then again I don't use Transmission Remote GUI.
Please do the following:

1. Start Transmission with /ffp/start/transmission.sh start (if it's not running already)
2. Add a torrent of your choice
3. Wait a couple of minutes
4. Attach a copy of the logfile, which you will find at /mnt/HD_a2/.transmission-daemon/transmission-daemon.log



Did you try one of the torrents I told you about? OpenOffice or Ubuntu?

EDIT: I just saw from the logs that you have a D-Link DNS-323, is that correct? I just remembered that another user named Egoist had similar connection problems as you after he upgraded to the latest firmware version (1.08 I believe). He mentioned this a couple posts before.

I do not know what came of it though, and since I don't have a DNS-323 (I own the Conceptronic CH3SNAS), I don't know if there's been another firmware update, or a fix, or if you can downgrade the firmware.

@KyleK
1) I stopped Transmission /ffp/start/transmission.sh stop
2) I started Transmission /ffp/start/transmission.sh start
3) I removed all the torrents except two which are related to ubuntu ( different versions, I do not know what is more popular).
4) I made a copy of the transmission-daemon.log and netstat -a ( attached).

I can see through remote transmission that the torrents have status "downloading" but no one seed is connected.  I tried the same from my Mac's utorrent and it downloads fine -BUT WITH DIFFERENT SERVICE PROVIDER.

Do you have any idea what to check to find and identify the problem?


Attachments:
Attachment Icon trans-log_1 ( after added ubuntu toreents, transmis-stop then start).doc, Size: 33,280 bytes, Downloads: 695

Offline

 

#1069 2010-04-07 11:12:45

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

Re: [REL] Transmission 1.3

1. The logfile states that you're using Transmission 1.76. Are you saying that Transmission doesn't work at all, no matter which version?
2. Does the command wget work? Try this:

Code:

$ wget http://kylek.is-a-geek.org:31337/files/Transmission-1.92-1.tgz

If this doesn't work either, it's a network problem with your device, not an issue with Transmission. Read the EDIT remark I made to my last post. If you're using the latest D-Link firmware, there might be your problem.
3. Please save any logfiles as .log or .txt, but not as .doc, as it is much more difficult to read those. You can attach the transmission-daemon.log as it is.

Offline

 

#1070 2010-04-07 12:14:13

calpeman
Member
Registered: 2010-04-05
Posts: 7

Re: [REL] Transmission 1.3

KyleK wrote:

1. The logfile states that you're using Transmission 1.76. Are you saying that Transmission doesn't work at all, no matter which version?
2. Does the command wget work? Try this:

Code:

$ wget http://kylek.is-a-geek.org:31337/files/Transmission-1.92-1.tgz

If this doesn't work either, it's a network problem with your device, not an issue with Transmission. Read the EDIT remark I made to my last post. If you're using the latest D-Link firmware, there might be your problem.
3. Please save any logfiles as .log or .txt, but not as .doc, as it is much more difficult to read those. You can attach the transmission-daemon.log as it is.

Calpeman:

1) I returned back to 1.76 because it is the last version which worked well - all the troubles have started after I upgraded to 1.92.
2) I tried wget http://kylek.is-a-geek.org:31337/files/ … 1.92-1.tgz but it says me that
"-sh: wget: not found"

while I can see definitely from  /mnt/HD_a2/ffp/bin# that wget is there:

lrwxrwxrwx    1 root     root            7 Apr  6 21:55 wc -> busybox
lrwxrwxrwx    1 root     root            7 Apr  6 21:55 wget -> busybox
-rwxr-xr-x    1 root     root         1782 Apr 15  2008 whatis

What could  I damage in the system ( not Transmission itself) which prevents communication of Transmission with the rest of the world?
What would be your advise to set up as a level of scratch ( I do not want to format the disc - there are many movies...).

Offline

 

#1071 2010-04-07 12:18:39

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

Re: [REL] Transmission 1.3

Install this proper wget: http://ffp.wolf-u.li/additional/net-mis … 1.12-2.tgz

Then try again. Did you update to the latest D-Link firmware 1.08? If yes, is it possible to downgrade to 1.07?

Offline

 

#1072 2010-04-07 12:21:03

calpeman
Member
Registered: 2010-04-05
Posts: 7

Re: [REL] Transmission 1.3

KyleK wrote:

Install this proper wget: http://ffp.wolf-u.li/additional/net-mis … 1.12-2.tgz

Then try again. Did you update to the latest D-Link firmware 1.08? If yes, is it possible to downgrade to 1.07?

Thanks a lot!
I will definitely do that tonight - when will have better access to DNS - right not can reach it via ssh only. I will report about results.
Thank you again!

Offline

 

#1073 2010-04-07 13:57:02

breasthead
Member
Registered: 2009-02-05
Posts: 38

Re: [REL] Transmission 1.3

KyleK wrote:

@breasthead funpkg is a script that usually sits at /ffp/sbin. If you don't log in as user root, bash auto-completion won't show the command to you.

You should be able to call it via "sudo /ffp/sbin/funpkg -u Transmission-1.92-1.tgz" though.

EDIT: That of course only works if you've installed the sudo package. If not you need to login as user root to install new packages (Or you can access the super-user shell via the command "su -").

If it's really not installed, the current version is available here: http://inreto.de/dns323/fun-plug/0.5/packages/  (Although, without funpkg, it could be difficult to install it. You then need to extract the tar.gz manually).

@KyleK
Yeah I'm logged in as root user, but funpkg isn't in my list of commands, however, if I look in /ffp/sbin I do have funpkg installed there.

I tried a /ffp/sbin/funpkg -u Transmission-1.92-1.tgz but I was told "Skipping Transmission-1.92-1.tgz (not installed)" so I tried the way that used to be recommended to upgrade;

>/ffp/sbin/funpkg -r Transmission-1.52.tgz -- which removed my current version

then tried to install the new version with:

>/ffp/sbin/funpkg -i Transmission-1.92-1.tgz -- which gives me
tar: Unrecognised file type
FATAL: Transmission-1.92-1.tgz: Failed to unpack package

Which is frustrating, so I tried to put back my version 1.52 again, with

>/ffp/sbin/funpkg -i Transmission-1.52.tgz
tar: Unrecognised file type
FATAL: Transmission-1.52.tgz: Failed to unpack package

HELP!! Now I don't have a working copy of Transmission any more! I'm starting to think that this isn't a Transmission problem rather that its something wrong with my fun_plug itself...

Cheers,
B

Offline

 

#1074 2010-04-07 14:48:23

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

Re: [REL] Transmission 1.3

It seems your PATH variable isn't set correctly. What do you get when you type this on the commandline:

Code:

$ export | grep PATH

It should look something like this:

Code:

declare -x PATH="/ffp/sbin:/usr/sbin:/sbin:/ffp/bin:/usr/bin:/bin"

It is important that the /ffp/ paths are set before the default /usr and / paths, so that the shell looks for binaries in those folders first.

You can set this variable at runtime:

Code:

export PATH="/ffp/sbin:/usr/sbin:/sbin:/ffp/bin:/usr/bin:/bin"

The path is normally set in /ffp/etc/funplug.init or /ffp/etc/funplug.local, you should have a look there. It might be necessary to add a "export PATH" and the end of one of these files to make sure the variables are set system-wide.

Offline

 

#1075 2010-04-07 15:47:24

breasthead
Member
Registered: 2009-02-05
Posts: 38

Re: [REL] Transmission 1.3

KyleK wrote:

It seems your PATH variable isn't set correctly. What do you get when you type this on the commandline:

Code:

$ export | grep PATH

It should look something like this:

Code:

declare -x PATH="/ffp/sbin:/usr/sbin:/sbin:/ffp/bin:/usr/bin:/bin"

It is important that the /ffp/ paths are set before the default /usr and / paths, so that the shell looks for binaries in those folders first.

@KyleK

Hey thanks for the quick reply,
Yeah, as you said my PATH was a little backwards, dunno how that happened, so I've copied:

Code:

PATH=/ffp/sbin:/ffp/bin:/usr/sbin:/sbin:/usr/bin:/bin

(the 2nd line from the /ffp/etc/fun_plug.init script) into my .profile so it gets re-executed every time that I log onto the dlink and now I get funpkg ability back, after that, I was able to install the latest version no worries!

Thanks again!
B

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB