ypy705 / rt-n56u

Automatically exported from code.google.com/p/rt-n56u
0 stars 0 forks source link

Transmission: no space left on device #635

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello, it seems shortly after a download started the transmission return a an 
error that the device is full even tho there's a lot left.

Output of log:

...
Dec  7 20:31:28 transmission-daemon[964]: Mark_of_the_Ninja-FLT write failed 
for "Mark_of_the_Ninja-FLT/flt-motn.038": No space left on device (inout.c:132)
Dec  7 20:31:28 transmission-daemon[964]: Mark_of_the_Ninja-FLT No space left 
on device 
(/media/AiDisk_b2/share/Download/Complete/Mark_of_the_Ninja-FLT/flt-motn.038) 
(torrent.c:486)
Dec  7 20:31:28 transmission-daemon[964]: Mark_of_the_Ninja-FLT write failed 
for "Mark_of_the_Ninja-FLT/flt-motn.018": No space left on device (inout.c:132)
...

Here is the df -h return for the drive:
/dev/sdb2                 2.0T    669.6G      1.2T  35% /media/AiDisk_b2

Im running latest firmware 3.0.3.1-027 as well as latest transmission daemon. 
The issue has started after passage to Entware. I did a full factory reset and 
format previous to upgrade to Entware. Transmission was running fine on Optware 
in the past.

Seems similar to issue 294 but that was no help in fixing the problem... I also 
attached a copy of my settings.json

Original issue reported on code.google.com by julioqc47 on 8 Dec 2012 at 1:52

Attachments:

GoogleCodeExporter commented 9 years ago
Hello again!

Seems a complete power cycle of the router AND the hard drive for a few seconds 
will resolve the issue. However, the problem will randomly come back after a 
while and power cycle is quite problematic when not on site...

Original comment by julioqc47 on 9 Dec 2012 at 1:36

GoogleCodeExporter commented 9 years ago
I'm not sure, but it seems when you install transmission package from Entware 
repository, it creates /opt/etc/init.d/S88transmission. This file is being 
executed earlier than /opt/etc/init.d/S95transmission.
Be aware when you use Entware: there are no 'start' and 'stop' functions in 
/opt/etc/init.d/S88transmission! This means that you'll get errors when trying 
to unmount USB disk. There also will be errors on reboot as USB disk can't be 
unmounted properly (transmission daemon won't be stopped). This will cause 
problems with USB disk in future.
Again - I can be wrong, and there can be such functions in 
/opt/etc/init.d/rc.func. But most possibly, they won't be executed on calling 
device stop.
So, you can use Entware, but it is better to remove 
/opt/etc/init.d/S88transmission.
Use /opt/etc/init.d/S95transmission instead.

To all of you guys: when you install any packages from any repository to USB 
disk of the router, please make sure that software is being correcly stopped on 
USB unmount!!
Check script in /opt/etc/init.d/ that is installed with package.

Original comment by d...@soulblader.com on 9 Dec 2012 at 5:12

GoogleCodeExporter commented 9 years ago
Well, erasing all traces of previous installs of Optware, S95transmission 
doesnt exist anymore in init.d

Having a look at the script heres what there is:

#!/bin/sh

ENABLED=yes
PROCS=transmission-daemon
ARGS="-g /opt/etc/transmission"
PREARGS=""
DESC=$PROCS
PATH=/opt/sbin:/opt/bin:/opt/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/u
         sr/bin:/sbin:/bin

. /opt/etc/init.d/rc.func

So you are right, theres no stop/start function but the command will still work 
fine when I use it (did a few times to modify settings.json on the fly). 
Unmounting doesnt return any errors I could notice but then again it could 
simply not be logged. 

Any way to retrieve a copy of S95transmission so I can "merge" both and resolve 
the issue permanently?

Original comment by julioqc47 on 9 Dec 2012 at 5:36

GoogleCodeExporter commented 9 years ago
I think yes you can...
So you can try:
# rm /opt/etc/S88transmission
# cp /etc_ro/opt/K95transmission /opt/etc/S95transmission
and use /opt/etc/S95transmission as daemon start script

or even shorter:

# cat /etc_ro/opt/K95transmission > /opt/etc/S88transmission
and use /opt/etc/S88transmission as daemon start script

anyway script content will be the same

Original comment by d...@soulblader.com on 9 Dec 2012 at 6:21

GoogleCodeExporter commented 9 years ago
Sweet! That works just great =D

Ill see how long this will last but i'm confident!

Thank you sir!

Original comment by julioqc47 on 9 Dec 2012 at 6:33

GoogleCodeExporter commented 9 years ago

Original comment by andy.pad...@gmail.com on 9 Dec 2012 at 6:41

GoogleCodeExporter commented 9 years ago
how so amigo?

Original comment by julioqc47 on 9 Dec 2012 at 6:42

GoogleCodeExporter commented 9 years ago
You are welcome! And what would you like to be fixed here?.. =)
This is not a bug.

Original comment by d...@soulblader.com on 9 Dec 2012 at 9:29