This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Arrgh! KTorrent deleted my torrents.

Tags: None
(comma "," separated)
Knut
Registered Member
Posts
79
Karma
0

Arrgh! KTorrent deleted my torrents.

Thu Dec 29, 2005 11:19 pm
My last upgrade of KTorrent SVN was not a happy incidence, since it deleted some of my torrents. I had a few partially downloaded ones which KTorrent deleted during startup. Actually not first startup after upgrade, but the second I think. Not the files thankfully(some error complaining not being able to), but everything in the tor directories.

The upgraded was approximately the 26-27, my previous version was from somewhere like the 20-22.

Looking at a backup I think it's related to the older files having blank output dir statement (OUTPUTDIR= ) in the stats file. The torrents was quite old, and have been going for some time and several upgrades.(Lov pri ones, I use to stop them when downloading more interresting stuff:-) I had a few from 1.1 days and saw the new migration stuff when starting. But one of the torrents was not of the migration kind, since it already had stuff in the download dir and only symlinked to the tor.

I did a test with blank OUTPUTDIR= and the same thing happend, so that's the reason the torrent was removed. Why it was blank I really don't know, but I guess the migration tool at least should verify that:-)
George
Moderator
Posts
5421
Karma
1

Fri Dec 30, 2005 12:47 pm
Seeing that the data isn't gone, you can just import it.

OUTPUTDIR should normally get saved, when KT gets shutdown, it even gets saved every couple of minutes. So it can't be blank.

But you should update again, I have made some further improvements, and safety checks and bug fixes.

Did this happen with a completed torrent from the 1.1 era ? i.e. was torX/cache a symlink ?
Knut
Registered Member
Posts
79
Karma
0

Mon Jan 02, 2006 7:45 pm
>Seeing that the data isn't gone, you can just import it.
Exactly, and what I did for one of them, the 2 others I just deleted:-) Nothing important, was just a case of uhh!! what happend now?

>OUTPUTDIR should normally get saved, when KT gets shutdown, it even
>gets saved every couple of minutes. So it can't be blank.
I had a backup of one of the torrents, and it was defiantly blank. No idea why. The important part of it, I think is to have some safety check and not delete the torrent if it is blank at application startup.

>But you should update again, I have made some further improvements,
>and safety checks and bug fixes.
Will do:-)

>Did this happen with a completed torrent from the 1.1 era ? i.e. was
>torX/cache a symlink ?
Here is the part where stuff gets a little uncertain, as I have to work from memory.

1. torrent. Migration tool kicked in and asked for where to save. Torrent was stopped and completed with 2 out of 20-something files downloaded. The remaining files was excluded, but some parts of those files was downloaded.

2. torrent. Migration tool kicked in, but I don't remember if it asked where to save. Torrent was stopped with 2 of 3 files downloaded while the remaining 20-somethings was excluded.

3. torrent. The files under torX/chache was symlinks. Active download. Mention earlier it had empty OUTPUTDIR.
imported4-lukas
Registered Member
Posts
29
Karma
0

removed torrents

Thu Jan 05, 2006 2:01 am
I don´t where post it... ktorrent 1.2rc1 (suse) removed all torrents from my torrent list with error at startup, about six or seven of them and after restart of ktorrent the rest of them (torrent files are pressent)
ktorrent is showing upload speed (extremly high and nonsense), but it is nothink to upload
how can I solve this? there are torrents I want to seed
imported4-lukas
Registered Member
Posts
29
Karma
0

Thu Jan 05, 2006 5:19 am
that torrents were in symbolic linked directories, is that the problem? I had no problems with names in previous version 1.1rc and 1.1 stable
George
Moderator
Posts
5421
Karma
1

Thu Jan 05, 2006 11:41 am
Normally symlinks shouldn't be a problem.


Lukas, you should try the SVN, you can just import the data of the downloads, with the partfileimport plugin.
imported4-lukas
Registered Member
Posts
29
Karma
0

Thu Jan 05, 2006 3:55 pm
importion causes Error window with:
Cannot create /*name of file*: access denied (it is translation)
George
Moderator
Posts
5421
Karma
1

Thu Jan 05, 2006 5:00 pm
/*name of file*

Is that a full path ?
imported4-lukas
Registered Member
Posts
29
Karma
0

Fri Jan 06, 2006 1:07 am
it is only short filename with slash before like "/music.mp3" which was choosen in import plugin dialog

configured paths:
torrent path is /data1/torrent
torrent tmp path is /data1/torrent/tmp

import plugin paths:
torrent file path is /data1/torrent/something/music.torrent
file choosen from path /data1/torrent/something/music.mp3 (no symlink now, true file)

is anything wrong with paths?
George
Moderator
Posts
5421
Karma
1

Fri Jan 06, 2006 9:32 am
You can only import the whole directory structure of a torrent, you cannot do only one file. If it is a single file torrent, you only need to specify one file, if it is a multifile torrent you need to specify the root directory of the torrent.

Maybe you should try

/data1/torrent/something/

For the data
George
Moderator
Posts
5421
Karma
1

Fri Jan 06, 2006 6:08 pm
I made some improvements, if OUTPUTDIR is not present or empty, KT will try to figure out the OUTPUTDIR by looking at the symlinks in the cache directory.
imported4-lukas
Registered Member
Posts
29
Karma
0

Mon Jan 09, 2006 3:55 pm
I think there must be some bug, torrent file created by 1.2rc1 (SUSE - I can´t compile - I am using binary packages) causes path error, opened in 1.1 causes error too, every error has "/" in the first char of path string - so these errors: acces denied, cant open file are caused by invalid path starting in root dir?
but can anyone explain why 1.2rc removed all tmp directories and torrents from list? has anyone the same problem?

so I have instaled 1.1 back, recreated torrents, now everything is okay ;)
George
Moderator
Posts
5421
Karma
1

Mon Jan 09, 2006 6:28 pm
You will have to wait for 1.2 then, if you can't compile.

If an import fails, KT will rename the torX dir to migrate-failed-torX (X being a number), maybe you can zip those directories and send them to me, so I can do some tests on them (if they aren't to large)
imported4-lukas
Registered Member
Posts
29
Karma
0

Sun Jan 15, 2006 3:59 pm
but there is no migrate-failed-torX and no torX, ktorrent 1.2rc1 just removed previous torX dirs, I had to remake them with 1.1 (and using 1.1 now)
then it is some incompatibility in torrent tmp files in 1.2rc1?

so let create/download a torrent by 1.1 and upgrade to 1.2rc1 and the fun starts :(

yes they are large 100mb+, both single file torrents and multifile torrents (music, videos, etc.), both seeded and downloaded

I thought about it a lot, but I don´t want to make you head big with it... I posted this problem cause I want to discuss it if someone has the same problem

Had SUSE guys compiled a buggy SVN? I don´t know, but I will backup tmp directory and all of cfg files, if they exist somewhere, next time, when upgrading to new version
George
Moderator
Posts
5421
Karma
1

Sun Jan 15, 2006 6:56 pm
Any migration problems need to be sorted out before 1.2.


Bookmarks



Who is online

Registered users: Bing [Bot], daret, Google [Bot], sandyvee, Sogou [Bot]