johnballjr / rutorrent

Automatically exported from code.google.com/p/rutorrent
0 stars 0 forks source link

Single File Torrents Disappear Instead Of Moving #676

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Run rutorrent with AutoMove for several days
2. Add single file torrent (i.e. torrent with no folder, only file.avi)
3.

What is the expected output? What do you see instead?
Expect torrent to complete, then move to 'Completed' folder.

Instead, after download reaches 100%, torrent enters 'paused' state. The actual 
file no longer exists on the system (it doesn't exist in the 'In Progress' 
folder or the 'Completed' folder).

What environment are you using?
1. My ruTorrent version is... svn r1950M
2. My rTorrent version is... 0.8.9
3. I use web-server... it version is... on OS... Apache 2 on Debian
4. I use browser... it version is... on OS... Chrome on Windows 7

Plugins used:
autodl-irssi
autotools
cookies
cpuload
data
datadir
diskspace
edit
erasedata
extsearch
geoip
_getdir
httprpc
ipad
loginmtr
ratio
rpc
seedingtime
source
_task
theme
tracklabels

Are some errors present in the web-server log?
one error repeats a couple of times per day:
PHP Warning: 
rename(/var/www/rutorrent/share/users/user1/settings/uisettings.json.tmp,/var/ww
w/rutorrent/share/users/user1/settings/uisettings.json) function.rename: No 
such file or directory in /var/www/rutorrent/php/setsettings.php on line 16

Are some errors present in the browser error console?
no

Please provide any additional information below.
I reported this issue a few days ago on the forum. Since then, I upgraded 
rtorrent/libtorrent from 0.8.6/0.12.6 to 0.8.9/0.12.9, and deleted the 
/var/www/rutorrent directory and checked out a fresh copy from svn. After 
configuring the fresh copy, I tried downloading a problem torrent (a torrent 
with no folder, only a single file), and it completed and moved to the 
'completed' folder. 3 days later, I downloaded another single file torrent, and 
after completing, it entered the 'paused' state, and the file no longer exists 
on the system. All torrents with folders work fine and never enter the paused 
state.

Original issue reported on code.google.com by beck.b...@gmail.com on 17 Jan 2012 at 7:46

Attachments:

GoogleCodeExporter commented 8 years ago
I enabled debug mode for the AutoTools plugin, here is a paste from the log:
http://pastebin.com/k26YijNk

First listed is a log of a working automove (torrent with a directory), 
followed by a log of automove not working (single file torrent)

Original comment by beck.b...@gmail.com on 17 Jan 2012 at 8:18

GoogleCodeExporter commented 8 years ago
Looks like a permission problem (php functions rename() and copy() fail).
Is this log real? filenames looks artificial.
May be something with filename charset or file size.
Send your .torrent file, please

Original comment by dmrom00 on 18 Jan 2012 at 2:38

GoogleCodeExporter commented 8 years ago
The log is real, I just modified the filenames.

I don't think it's a permission problem because:
1. the same torrent works one day, and then doesn't work the next
2. the copy fails because immediately after the download completes, the file no 
longer exists in the InProgress directory. I think the root of the problem is 
in the file being saved in the InProgress directory after download completes.
3. Permissions in the InProgress directory and the Completed directory are 777

If I do a svn update it usually fixes the problem for a day (the same torrent 
file that was not working downloads and moves successfully and starts 
seeding)... but then the next time I download a single file torrent (2 or 3 
days later) the same problem is back..

Any torrent file from any site that is just a single file causes the same 
problem.. I never had this problem with rutorrent v3.2.

Original comment by beck.b...@gmail.com on 18 Jan 2012 at 3:15

GoogleCodeExporter commented 8 years ago

Original comment by novik65 on 2 Aug 2012 at 10:28