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

#1 2009-03-04 13:47:19

PaulHarry
Member
Registered: 2009-03-04
Posts: 6

Transmission "no such file directory" error

Hi,

I installed Transmission 1.51 inclundign all suff required to run it on my DNS-323 (according the manual from this site) but I keep getting the message "no such file or directory" afer a few seconds the download starts. The download then stops.

In the settings.json file I have set the diretory: /mnt/HD_a2/Downloads (file attached)

I use an Intel Macbook with OSX 10.5.x and Windows XP, I can telnet the DNS both from OSX and Windows XP

Any solution for this?

Regards,
Paul.

Last edited by PaulHarry (2009-03-04 13:49:19)


Attachments:
Attachment Icon settings.json, Size: 1,047 bytes, Downloads: 256

Offline

 

#2 2009-03-04 13:56:33

rap
Member
From: Reading - UK
Registered: 2008-02-28
Posts: 119

Re: Transmission "no such file directory" error

What are the permissions on /mnt/HD_a2/Downloads?

It usually comes down to that - if you run transmission as "nobody" you need to make sure that "nobody" can write to /mnt/HD_a2/Downloads

RAP

Offline

 

#3 2009-03-04 14:13:16

PaulHarry
Member
Registered: 2009-03-04
Posts: 6

Re: Transmission "no such file directory" error

Hi,

Thx. but can you explain what u mean with this? And how can I change or set it correctly. (as you notice I do not have to much knowledge about this topic)

I also get the message (if I run transmission -f) "parent folder //Downloads does not exist.

Regards,
Paul.

Last edited by PaulHarry (2009-03-04 14:17:13)

Offline

 

#4 2009-03-04 14:29:05

PaulHarry
Member
Registered: 2009-03-04
Posts: 6

Re: Transmission "no such file directory" error

Seems I have solved it by setting the right to various directories to 777? I'm now able to download

Offline

 

#5 2009-03-04 14:46:07

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

Re: Transmission "no such file directory" error

Don't start Transmission directly, use the start script /ffp/start/transmission.sh

Transmission has to know where to store its settings. If you start it directly, settings will go to the flash and will be gone once you restart the device.
In trasmission.sh, the default config path is set to /mnt/HD_a2/.transmission-daemon. If you want a different directory, you can simply edit that script.


And if you absolutely have to start Transmission directly (for whatever reason), you have to use the -g option. Type 'transmission-daemon --help" for details.

Last edited by KyleK (2009-03-04 14:46:51)

Offline

 

#6 2009-03-04 14:59:08

PaulHarry
Member
Registered: 2009-03-04
Posts: 6

Re: Transmission "no such file directory" error

Kylek,

Thanks, I only used the direct start to see whats happening. In normal mode I use the start script as u mention. By changing the rights to the directories the downloads started? Changed them to 777, I have no clue why that helped solving the problem. But it works so then it is fine.

Thanks for the support.
Regards,
Paul.

Offline

 

#7 2009-03-23 23:03:13

bojan
New member
Registered: 2009-03-23
Posts: 2

Re: Transmission "no such file directory" error

Kylek,

I had the same problem as PaulHarry had and set everything correctly and it started to work however after some time it provides again the same message that the parent Download directory does not exist.

Actually I do not no why it is doing that, but if I restart the Transmission sometimes it is ok, but e.g. I wanna verify some torrent it provides again the same message.

Any hint?

Thanks and rgds,

Bojan

Offline

 

#8 2009-03-24 15:22:54

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

Re: Transmission "no such file directory" error

Code:

/ffp/start/transmission.sh stop
chown -R nobody /mnt/HD_a2/.transmission-daemon
chown -R nobody /mnt/HD_a2/Downloads
/ffp/start/transmission.sh start

Change the paths accordingly (if you specified others as the defaults).

Last edited by KyleK (2009-03-24 15:23:07)

Offline

 

#9 2009-03-24 21:28:21

dodo
New member
Registered: 2009-03-19
Posts: 4

Re: Transmission "no such file directory" error

Hi Kylek,

Thanks for the feedback, however I have read through the topics and I beleive that have the right setting:

drwxrwxrwx    8 nobody   501          4096 Mar 21 18:17 Downloads
drwxr-xr-x    6 nobody   501          4096 Mar 15 17:28 .transmission-daemon

And for a while it was working well.

This is what I have in the log:



[20:19:35.590] Port Forwarding (NAT-PMP): initnatpmp succeeded (0)
[20:19:35.591] Port Forwarding (NAT-PMP): sendpublicaddressrequest succeeded (2)
[20:19:37.979] Port Forwarding (UPnP): Found Internet Gateway Device "http://192
.168.1.1:80/upnp/service/WANPPPConnection"
[20:19:37.980] Port Forwarding (UPnP): Local Address is "192.168.1.106"
[20:19:38.160] Port Forwarding (UPnP): Port forwarding through "http://192.168.1
.1:80/upnp/service/WANPPPConnection", service "urn:schemas-upnp-org:service:WANP
PPConnection:1".  (local address: 192.168.1.106:51413)
[20:19:38.160] Port Forwarding (UPnP): Port forwarding successful!
[20:19:38.161] Port Forwarding: State changed from "Not forwarded" to "Forwarded
"
[20:19:38.161] Port Forwarding: Opened port 51413 on 0.0.0.0 to listen for incom
ing peer connections
[20:20:22.768] Searching for web interface file "/home/nobody/.local/share/trans
mission/web/javascript/transmission.js"
[20:20:22.769] Searching for web interface file "/ffp/share/transmission/web/jav
ascript/transmission.js"
[20:20:38.473] xyz.torrent: Got 9 peers from tracker
[20:20:41.905] xyz.torrent: Queued for verification
[20:20:41.907] xyz.torrent: Verifying torrent
[20:20:43.247] Couldn't create "xyz": parent folder "//
Downloads" does not exist
[20:20:48.921] xyz.torrent: Queued for verification
[20:20:48.923] xyz.torrent: Verifying torrent


Actually I originally had the 1.22 and I have upgraded and trying to get back my seeds by verifying the torrent.

Any futher hint you may have?

Thanks

Offline

 

#10 2009-03-24 23:22:38

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

Re: Transmission "no such file directory" error

Code:

[20:20:43.247] Couldn't create "xyz": parent folder "//Downloads" does not exist

You're not using the transmission.sh startup script to launch Transmission. If you decide to start it manually, always use the -g option and provide the path to your configuration (default: /mnt/HD_a2/.transmission-daemon)

Offline

 

#11 2009-03-25 09:30:08

dodo
New member
Registered: 2009-03-19
Posts: 4

Re: Transmission "no such file directory" error

Actually I'm using the script:

#!/ffp/bin/sh

# PROVIDE: Transmission

. /ffp/etc/ffp.subr

TRANSMISSION_HOME=/mnt/HD_a2/.transmission-daemon

name="transmission-daemon"
command="/ffp/bin/$name"
start_cmd="transmission_start"
stop_cmd="transmission_stop"
status_cmd="transmission_status"
user=nobody

transmission_start()
{

        if [ ! -d ${TRANSMISSION_HOME} ]; then
                su $user -c "mkdir ${TRANSMISSION_HOME}"
        fi
        echo "Starting $name"
                su $user -c "$command -f -g  ${TRANSMISSION_HOME} 1>${TRANSMISSI
ON_HOME}/$name.log 2>&1 &"

and it is runnig with the option -g:

1869 nobody   /ffp/bin/transmission-daemon -f -g /mnt/HD_a2/.transmission-daem

As I have edited the script, but later reverted back there mazbe something which is not correct, but I do not see

Offline

 

#12 2009-03-25 15:59:11

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

Re: Transmission "no such file directory" error

Hm. The script looks fine, actually.
Also, my previous comment does not apply at all. Wasn't thinking straight then, it seems. Sorry hmm

The problem is with the specified download path.
Check /mnt/HD_a2/.transmission-daemon/settings.json and see if the download path looks correct.
It should look something like this:

Code:

"download-dir": "\/mnt\/HD_a2\/Downloads\/"

It is important that slashes are escaped correctly.

Offline

 

#13 2009-03-26 21:09:35

dodo
New member
Registered: 2009-03-19
Posts: 4

Re: Transmission "no such file directory" error

Thanks Kylek, however this is exactly the same. I am going to remove and reinstall the whole stuff

Offline

 

#14 2009-03-26 22:18:39

dodo
New member
Registered: 2009-03-19
Posts: 4

Re: Transmission "no such file directory" error

So I have tried to reinstall the TRansmission and I have the same situation, however I have realized the next:

- the original setting for the download directory is /home/nobody/Downloads in the setting.json, but such a directory has not created
- I have used the  transmission-daemon -f -g /mnt/HD_a2/.transmission-daemon -w /mnt/HD_a2/Downloads command and then stop it. In this case the setting.json has the next line: 
"download-dir": "\/mnt\/HD_a2\/Downloads",         so the last  \/ is missing
- Neither the install, nor the script and nor the daemon have not  created the /Downloads directory
- I have created the Downloads directory under /mnt/HD_a2:
drwxr-xr-x    2 nobody   root         4096 Mar 26 21:00 Downloads

and got the same:  parent folder "//Downloads" does not exist  and the torrent is in the resume directory

I have changed the mod and got
drwxrwxrwx    8 nobody   501          4096 Mar 26 20:34 Rownloads1

but go the same message when start a download

The stats shows:
{
    "downloaded-bytes": 0,
    "files-added": 0,
    "seconds-active": 130,
    "session-count": 5,
    "uploaded-bytes": 0

The start of the daemon log looks like this


[20:57:43.764] Couldn't create socket: Address family not supported by protocol
[20:57:43.766] RPC Server: Adding address to whitelist: 127.0.0.1
[20:57:43.766] RPC Server: Adding address to whitelist: 192.168.*.*
[20:57:43.768] RPC Server: Serving RPC and Web requests on port 9091
[20:57:43.769] RPC Server: Whitelist enabled
[20:57:43.769] Transmission 1.51 (7968) started
[20:57:44.766] Port Forwarding (NAT-PMP): initnatpmp succeeded (0)
[20:57:44.767] Port Forwarding (NAT-PMP): sendpublicaddressrequest succeeded (2)
[20:57:47.178] Port Forwarding (UPnP): Found Internet Gateway Device "http://192
.168.1.1:80/upnp/service/WANPPPConnection"
[20:57:47.179] Port Forwarding (UPnP): Local Address is "192.168.1.106"
[20:57:47.361] Port Forwarding (UPnP): Port forwarding through "http://192.168.1
.1:80/upnp/service/WANPPPConnection", service "urn:schemas-upnp-org:service:WANP
PPConnection:1".  (local address: 192.168.1.106:51413)
[20:57:47.361] Port Forwarding: State changed from "Not forwarded" to "Starting"
[20:57:47.362] Port Forwarding: Opened port 51413 on 0.0.0.0 to listen for incom
ing peer connections


No more idea wht to do!

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB