Torrents won't start automatically

General support for problems installing or using Deluge
Just Pete

Torrents won't start automatically

Post by Just Pete »

I'm using Deluge 0.5.7.95 on Ubuntu 7.10, and I use TED (Torrent Episode Downloader) to find many torrents.

TED normally passes the torrent files to Deluge for opening, but recently Deluge hasn't been opening the files. Specifically, I can open the torrents from Deluge using File -> Add Torrent and selecting the torrent file, but I cannot doubleclick the torrent file itself (which normally launches in my default Bittorrent program - currently Deluge), or right-click the file and Open using Deluge. Both of the failing options open a window in the task bar (That I can't expand to view) which sticks around for 30 seconds or so then closes, accomplishing nothing.

I've tried launching the torrent file in a terminal using '/usr/sbin/deluge <torrent>', which lauches Deluge but does not load the torrent file, and gives no errors in the terminal window.

I've deleted the persistant.state file, and also prefs.state - neither of which had any effect.

I've enabled the Event Logging plugins with all plugins - I get nothing.

Anything else I can do?
johnnyg
Top Bloke
Top Bloke
Posts: 1522
Joined: Sun Oct 28, 2007 4:00 am
Location: Sydney, Australia

Re: Torrents won't start automatically

Post by johnnyg »

I'm experiencing the same problem.

Deluge 0.5.7.1 works perfectly however in the 0.5.8 RC2 I'm unable to download torrents from opera or by double clicking a .torrent file or by running deluge with the .torrent from terminal; it'll open up deluge (if it's not already running) but it won't actually add the torrent.

I've tried it with a clean install (no plugins enabled).

for some strange reason I can still open torrents with firefox fine.

could this bug be related the anonymous browser?
markybob
Compulsive Poster
Compulsive Poster
Posts: 1230
Joined: Thu May 24, 2007 11:27 pm
Location: Chicago, IL, USA
Contact:

Re: Torrents won't start automatically

Post by markybob »

johnnyg wrote:I'm experiencing the same problem.

Deluge 0.5.7.1 works perfectly however in the 0.5.8 RC2 I'm unable to download torrents from opera or by double clicking a .torrent file or by running deluge with the .torrent from terminal; it'll open up deluge (if it's not already running) but it won't actually add the torrent.

I've tried it with a clean install (no plugins enabled).

for some strange reason I can still open torrents with firefox fine.

could this bug be related the anonymous browser?
it's an ubuntu problem related to us having to reset some environment variables. i'll fix it for 0.5.8 final.
Just Pete

Re: Torrents won't start automatically

Post by Just Pete »

Thanks!

I've downgraded to a previous version (0.5.4.1 - latest available in the standard Ubuntu repositories) for now. I found that just downgrading doesn't fix the problem - I had to remove/rename the deluge config directory (~/.config/deluge) to clear the auto-start problem. I'm sure that there's a specific config file that I could have adjusted for this, but ...what I did works.

Looking forward to the final!
markybob
Compulsive Poster
Compulsive Poster
Posts: 1230
Joined: Thu May 24, 2007 11:27 pm
Location: Chicago, IL, USA
Contact:

Re: Torrents won't start automatically

Post by markybob »

as an fyi to our adventures users, this has been fixed in svn. 0.5.8 final is imminent :)
johnnyg
Top Bloke
Top Bloke
Posts: 1522
Joined: Sun Oct 28, 2007 4:00 am
Location: Sydney, Australia

Re: Torrents won't start automatically

Post by johnnyg »

just checked out the svn (literally :P) and I can happily report that it now works :D

I had to specify /usr/bin/deluge, but that's normal with svn builds.
markybob
Compulsive Poster
Compulsive Poster
Posts: 1230
Joined: Thu May 24, 2007 11:27 pm
Location: Chicago, IL, USA
Contact:

Re: Torrents won't start automatically

Post by markybob »

johnnyg wrote:just checked out the svn (literally :P) and I can happily report that it now works :D

I had to specify /usr/bin/deluge, but that's normal with svn builds.
that's normal for *now*...i found a fix for this and will include it (when using make install):)
Bardok
New User
New User
Posts: 8
Joined: Wed Oct 03, 2007 6:24 pm

Re: Torrents won't start automatically

Post by Bardok »

Hello!

i've got same problem on my ubuntu 7.10.
I install last svn and nothing change the problem is still here.

I use Ubuntu 7.10 amd64 with swiftfox 2.0.0.11.

Thks for your help.
johnnyg
Top Bloke
Top Bloke
Posts: 1522
Joined: Sun Oct 28, 2007 4:00 am
Location: Sydney, Australia

Re: Torrents won't start automatically

Post by johnnyg »

Bardok wrote:Hello!

i've got same problem on my ubuntu 7.10.
I install last svn and nothing change the problem is still here.

I use Ubuntu 7.10 amd64 with swiftfox 2.0.0.11.

Thks for your help.
with SVNs you have to specify /usr/bin/deluge seeing it gets confused with your SVN folder called deluge (or so I think).

however if you download & install the latest .deb (0.5.8) you shouldn't have this problem.

make sure you remove the SVN though before with

Code: Select all

cd deluge/
sudo make uninstall
cd ..
rm -r deluge/
klrspz
New User
New User
Posts: 5
Joined: Fri Sep 14, 2007 6:04 pm

Re: Torrents won't start automatically

Post by klrspz »

This is not the case, and it is not a bug with ubuntu (if I read the above post correctly).

I have tested out many situations and have found that Deluge is broken when trying to open torrent files with spaces in the name..

For example:
Starting Deluge with a space in the name such as:
(note that it is "MyTorrent<space>one.torrent")
deluge MyTorrent\ one.torrent
results in:
invalid file
Missing file: /home/tvbox/.config/deluge/torrentfiles/one.torrent
Traceback (most recent call last):
File "/usr/bin/deluge", line 154, in <module>
start_deluge()
File "/usr/bin/deluge", line 133, in start_deluge
interface.start(get_cmd_line_torrents())
File "/var/lib/python-support/python2.5/deluge/interface.py", line 1054, in start
self.interactive_add_torrent(torrent_file)
File "/var/lib/python-support/python2.5/deluge/interface.py", line 1375, in interactive_add_torrent
return self.interactive_add_torrent_path(torrent, path)
File "/var/lib/python-support/python2.5/deluge/interface.py", line 1417, in interactive_add_torrent_path
self.config.get('start_paused'))
File "/var/lib/python-support/python2.5/deluge/core.py", line 376, in add_torrent
return self.sync() # Syncing will create a new torrent in the core, and return it's ID
File "/var/lib/python-support/python2.5/deluge/core.py", line 883, in sync
for torrent in self.state.torrents:
RuntimeError: dictionary changed size during iteration
My interim solution is to download the torrent to my filesystem, and then rename without spaces and then I can double click, or launch manually from CLI.


This is NOT fixed in SVN, also meaning it's not fixed in the GA release 0.5.8.

Please update accordingly, and release an update soon, as this has an influence on just about everyone downloading torrents with Deluge.

Tested on:
[*]Ubuntu 7.10
[*]Xubuntu 7.10
[*]Gentoo (compiled)
Post Reply