Public bug reported:

Binary package hint: transmission-cli

usern...@host:~$ lsb_release -rd
Description:    Ubuntu 9.04
Release:        9.04

usern...@hostname:~$ apt-cache policy transmission-cli
transmission-cli:
  Installed: 1.51-0ubuntu3.1

this problem happened while I had about 20+ torrents has had their files
downloaded to 100% or very close to that, and it had been done with help
of transmission-daemon

I had disk full case (with 2 torrents had been stopped due to that),
hence I had decided to clean some space for further download by removal
all files related to 16th torrent in list and typed command of this form
with slight typo, i.e. instead planned -t16 I typed -tt6 and missed to
verify it

transmission-remote -nusername:password -tt6 --remove-and-delete

normally it responds quick, but this time it didn't return for longer
(several seconds), and instead of "success" it said back it has quit on
timeout. when I checked immediately after that, queue (list of torrents
and their files by -l command) had been empty. I mean -l command gave me
empty list and totals had been in zero. All files which had been in
/var/lib/transmission-daemon/downloads directory - after check directory
had been empty. Torrents directory /var/lib/transmission-
daemon/info/torrents had been empty too. So had been empty also "resume"
directory. The effect was scary. I went checking my home dir and few
others but no further damage had been found.

After few seconds to calm my mind, I realized - yes, cli interface is
like sharp knife, and I have to bear th consequences of risk, in this
very case I have strange anomaly. In worst case I should have had
removed 6th torrent and related files instead of 16th but NOT whole list
and related ALL files. I tried to have think of possible scenarios in
command line parsing fault, which could give a chance to say that I
ordered daemon to delete them all myself, but all my ways to interpret
flags pointed only to ONE torrent and files bound to it. I have double
checked command line from history in bash - no word "all" appeared in
command line, neither I could point to any way to mark it as "delete
all"

in other words, mistyped -tt<digit> combination caused unexplainable
damage to already downloaded data by wiping it all

now, mystery hasn't finished... this happened on weekend. for some odd
reason I found today that there is tangible network traffic, and... ONE
(and only one) torrent somehow appeared in torrents dir again, and
caused same torrent-pointed-file to be re-downloaded from zero. I don't
know how this has happened - after previous failure I checked torrents
dir, it had been empty...

this is very odd behavior and I decided to write detailed report with
help of apport reporter.

ProblemType: Bug
Architecture: i386
DistroRelease: Ubuntu 9.04
Package: transmission-cli 1.51-0ubuntu3.1
ProcEnviron:
 SHELL=/bin/bash
 LANG=en_US.UTF-8
SourcePackage: transmission
Uname: Linux 2.6.28-18-generic i686

** Affects: transmission (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: apport-bug i386

-- 
transmission-remote parameters typo can wipe all downloaded previously files
https://bugs.launchpad.net/bugs/552828
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to