[Solved ]Deluge won't run after system-wide update

General support for problems installing or using Deluge
Post Reply
resume-man
New User
New User
Posts: 6
Joined: Mon Feb 06, 2017 6:07 am

[Solved ]Deluge won't run after system-wide update

Post by resume-man »

Hello,

I've run into a problem with my Deluge installation. It seems to be similar to (but it isn't quite the same) some other threads on the forum (e.g http://forum.deluge-torrent.org/viewtop ... =7&t=54361). I have a rough familiarity with working with both Linux (command line) and bittorrent, but I'm no expert.

Headless Server
Ubuntu Trusty
Access server via thin client and web-ui
uname -a -- Linux fileserver 3.13.0-108-generic #155-Ubuntu SMP
Current version (1.3.13 of Deluge)

My Deluge installation was working fine. Then for the first time in quite awhile, I got around to running apt-get upgrade and apt-get dist-upgrade on my machine. Since then, Ubuntu throws an error whenever I try to run deluged and/or deluge-web:

Code: Select all

$ [ERROR   ] 22:14:40 main:245 /usr/lib/python2.7/dist-packages/libtorrent.so: undefined symbol: _ZN5boost4asio2ip10address_v4C1ERKNS_5arrayIhLm4EEE
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/deluge/main.py", line 238, in start_daemon
    Daemon(options, args)
  File "/usr/lib/python2.7/dist-packages/deluge/core/daemon.py", line 141, in __init__
    from deluge.core.core import Core
  File "/usr/lib/python2.7/dist-packages/deluge/core/core.py", line 36, in <module>
    from deluge._libtorrent import lt
  File "/usr/lib/python2.7/dist-packages/deluge/_libtorrent.py", line 59, in <module>
    import libtorrent as lt
ImportError: /usr/lib/python2.7/dist-packages/libtorrent.so: undefined symbol: _ZN5boost4asio2ip10address_v4C1ERKNS_5arrayIhLm4EEE
if I try to run the deluge-console commands to set up remote access, I get "Failed to connect to 127.0.0.1:58846 with reason: Connection refused"

I tried apt-get purge deluge and deluge-web, deluge-console, and the various libtorrent and python packages that were addressed at the link i posted above. Then re-enabled the Deluge PPA and re-installed. No luck - same errors.

I've attached the four files referenced in the error message just in case there's anything telling in them. I had to change the extension to .txt because the forum didn't like me uploading .py files. Note that these files are all owned by root:root and are rw-r--r--. Dunno if it's supposed to be that way or not.

Any help on fixing this? Anything else I can provde (a log file of some sort? Configs?) to provide the needed info to get back up and running?

Thanks
Attachments
_libtorrent.py.txt
(1.97 KiB) Downloaded 152 times
daemon.py.txt
(7.76 KiB) Downloaded 150 times
main.py.txt
(10.24 KiB) Downloaded 157 times
Last edited by resume-man on Wed Feb 15, 2017 5:08 am, edited 1 time in total.
resume-man
New User
New User
Posts: 6
Joined: Mon Feb 06, 2017 6:07 am

Re: Deluge won't run after system-wide update

Post by resume-man »

Anyone got any help for this? I just tried again purging deluge (and its relatives), libtorrent, and libboost. I also removed the repository figuring I'd see what the main Ubuntu install would be like, but there were dependency issues. So I re-enabled the depository and re-installed once again, and got the same errors.
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Deluge won't run after system-wide update

Post by Cas »

It is a problem with libtorrent but a strange one especially would only expect this with building from source not from repo.

What version of libtorrent and boost are installed?

What is the issue using the main repo?
resume-man
New User
New User
Posts: 6
Joined: Mon Feb 06, 2017 6:07 am

Re: Deluge won't run after system-wide update

Post by resume-man »

Code: Select all

$ apt list --installed | grep deluge

WARNING: apt does not have a stable CLI interface yet. Use with caution in scripts.

deluge/trusty,now 1.3.13-0~trusty~ppa1 all [installed]
deluge-common/trusty,now 1.3.13-0~trusty~ppa1 all [installed,automatic]
deluge-gtk/trusty,now 1.3.13-0~trusty~ppa1 all [installed,automatic]

Code: Select all

$ apt list --installed | grep libtorrent

WARNING: apt does not have a stable CLI interface yet. Use with caution in scripts.

libtorrent-rasterbar8/trusty,now 1.0.10-1ppa1~trusty1 amd64 [installed,automatic]
python-libtorrent/trusty,now 1.0.10-1ppa1~trusty1 amd64 [installed,automatic]

Code: Select all

$apt list --installed | grep libboost

WARNING: apt does not have a stable CLI interface yet. Use with caution in scripts.

libboost-python1.54.0/trusty-updates,now 1.54.0-4ubuntu3.1 amd64 [installed,automatic]
libboost-system1.54.0/trusty-updates,now 1.54.0-4ubuntu3.1 amd64 [installed,automatic]
OK so I then did a purge of deluge, libboost-python, and libtorrent. Then I did an apt-purge of the Deluge PPA, to make sure I was starting with nothing and could go straight to the Trusty repository. I then installed Deluge.

Code: Select all

$ sudo apt-get install deluge
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  deluge-common deluge-gtk libappindicator1 libboost-python1.54.0
  libboost-system1.54.0 libfluidsynth1 libindicator7 libmad0 libmikmod2
  libportmidi0 libsdl-image1.2 libsdl-mixer1.2 libsdl-ttf2.0-0 libsmpeg0
  libtorrent-rasterbar8 musescore-soundfont-gm python-appindicator
  python-libtorrent python-numpy python-pygame
Suggested packages:
  pulseaudio-esound-compat oss-compat libtorrent-rasterbar-dbg fluidsynth
  timidity gfortran python-dev python-nose python-numpy-dbg python-numpy-doc
The following NEW packages will be installed:
  deluge deluge-common deluge-gtk libappindicator1 libboost-python1.54.0
  libboost-system1.54.0 libfluidsynth1 libindicator7 libmad0 libmikmod2
  libportmidi0 libsdl-image1.2 libsdl-mixer1.2 libsdl-ttf2.0-0 libsmpeg0
  libtorrent-rasterbar8 musescore-soundfont-gm python-appindicator
  python-libtorrent python-numpy python-pygame
0 upgraded, 21 newly installed, 0 to remove and 13 not upgraded.
Need to get 917 kB/11.4 MB of archives.
After this operation, 33.9 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://us.archive.ubuntu.com/ubuntu/ trusty/universe deluge-common all 1.3.6-0ubuntu3 [689 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ trusty/universe deluge-gtk all 1.3.6-0ubuntu3 [213 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu/ trusty/universe deluge all 1.3.6-0ubuntu3 [15.5 kB]
Fetched 917 kB in 0s (1,116 kB/s)
Selecting previously unselected package libindicator7.
(Reading database ... 184151 files and directories currently installed.)
Preparing to unpack .../libindicator7_12.10.2+14.04.20141007.1-0ubuntu1_amd64.deb ...
Unpacking libindicator7 (12.10.2+14.04.20141007.1-0ubuntu1) ...
Selecting previously unselected package libappindicator1.
Preparing to unpack .../libappindicator1_12.10.1+13.10.20130920-0ubuntu4.1_amd64.deb ...
Unpacking libappindicator1 (12.10.1+13.10.20130920-0ubuntu4.1) ...
Selecting previously unselected package libboost-python1.54.0:amd64.
Preparing to unpack .../libboost-python1.54.0_1.54.0-4ubuntu3.1_amd64.deb ...
Unpacking libboost-python1.54.0:amd64 (1.54.0-4ubuntu3.1) ...
Selecting previously unselected package libboost-system1.54.0:amd64.
Preparing to unpack .../libboost-system1.54.0_1.54.0-4ubuntu3.1_amd64.deb ...
Unpacking libboost-system1.54.0:amd64 (1.54.0-4ubuntu3.1) ...
Selecting previously unselected package libfluidsynth1:amd64.
Preparing to unpack .../libfluidsynth1_1.1.6-2_amd64.deb ...
Unpacking libfluidsynth1:amd64 (1.1.6-2) ...
Selecting previously unselected package libmad0:amd64.
Preparing to unpack .../libmad0_0.15.1b-8ubuntu1_amd64.deb ...
Unpacking libmad0:amd64 (0.15.1b-8ubuntu1) ...
Selecting previously unselected package libmikmod2:amd64.
Preparing to unpack .../libmikmod2_3.1.16-1_amd64.deb ...
Unpacking libmikmod2:amd64 (3.1.16-1) ...
Selecting previously unselected package libsdl-image1.2:amd64.
Preparing to unpack .../libsdl-image1.2_1.2.12-5build2_amd64.deb ...
Unpacking libsdl-image1.2:amd64 (1.2.12-5build2) ...
Selecting previously unselected package libsdl-mixer1.2:amd64.
Preparing to unpack .../libsdl-mixer1.2_1.2.12-10_amd64.deb ...
Unpacking libsdl-mixer1.2:amd64 (1.2.12-10) ...
Selecting previously unselected package libsdl-ttf2.0-0:amd64.
Preparing to unpack .../libsdl-ttf2.0-0_2.0.11-3_amd64.deb ...
Unpacking libsdl-ttf2.0-0:amd64 (2.0.11-3) ...
Selecting previously unselected package libsmpeg0:amd64.
Preparing to unpack .../libsmpeg0_0.4.5+cvs20030824-5ubuntu4_amd64.deb ...
Unpacking libsmpeg0:amd64 (0.4.5+cvs20030824-5ubuntu4) ...
Selecting previously unselected package libtorrent-rasterbar8.
Preparing to unpack .../libtorrent-rasterbar8_1.0.10-1ppa1~trusty1_amd64.deb ...
Unpacking libtorrent-rasterbar8 (1.0.10-1ppa1~trusty1) ...
Selecting previously unselected package python-libtorrent.
Preparing to unpack .../python-libtorrent_1.0.10-1ppa1~trusty1_amd64.deb ...
Unpacking python-libtorrent (1.0.10-1ppa1~trusty1) ...
Selecting previously unselected package deluge-common.
Preparing to unpack .../deluge-common_1.3.6-0ubuntu3_all.deb ...
Unpacking deluge-common (1.3.6-0ubuntu3) ...
Selecting previously unselected package deluge-gtk.
Preparing to unpack .../deluge-gtk_1.3.6-0ubuntu3_all.deb ...
Unpacking deluge-gtk (1.3.6-0ubuntu3) ...
Selecting previously unselected package deluge.
Preparing to unpack .../deluge_1.3.6-0ubuntu3_all.deb ...
Unpacking deluge (1.3.6-0ubuntu3) ...
Selecting previously unselected package libportmidi0.
Preparing to unpack .../libportmidi0_1%3a200-0ubuntu3_amd64.deb ...
Unpacking libportmidi0 (1:200-0ubuntu3) ...
Selecting previously unselected package musescore-soundfont-gm.
Preparing to unpack .../musescore-soundfont-gm_1.3+dfsg-1_all.deb ...
Unpacking musescore-soundfont-gm (1.3+dfsg-1) ...
Selecting previously unselected package python-appindicator.
Preparing to unpack .../python-appindicator_12.10.1+13.10.20130920-0ubuntu4.1_amd64.deb ...
Unpacking python-appindicator (12.10.1+13.10.20130920-0ubuntu4.1) ...
Selecting previously unselected package python-numpy.
Preparing to unpack .../python-numpy_1%3a1.8.2-0ubuntu0.1_amd64.deb ...
Unpacking python-numpy (1:1.8.2-0ubuntu0.1) ...
Selecting previously unselected package python-pygame.
Preparing to unpack .../python-pygame_1.9.1release+dfsg-9ubuntu1_amd64.deb ...
Unpacking python-pygame (1.9.1release+dfsg-9ubuntu1) ...
Processing triggers for mime-support (3.54ubuntu1.1) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for gnome-menus (3.10.1-0ubuntu2) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.13-1) ...
Processing triggers for doc-base (0.10.5) ...
Processing 1 added doc-base file...
Setting up libindicator7 (12.10.2+14.04.20141007.1-0ubuntu1) ...
Setting up libappindicator1 (12.10.1+13.10.20130920-0ubuntu4.1) ...
Setting up libboost-python1.54.0:amd64 (1.54.0-4ubuntu3.1) ...
Setting up libboost-system1.54.0:amd64 (1.54.0-4ubuntu3.1) ...
Setting up libfluidsynth1:amd64 (1.1.6-2) ...
Setting up libmad0:amd64 (0.15.1b-8ubuntu1) ...
Setting up libmikmod2:amd64 (3.1.16-1) ...
Setting up libsdl-image1.2:amd64 (1.2.12-5build2) ...
Setting up libsdl-mixer1.2:amd64 (1.2.12-10) ...
Setting up libsdl-ttf2.0-0:amd64 (2.0.11-3) ...
Setting up libsmpeg0:amd64 (0.4.5+cvs20030824-5ubuntu4) ...
Setting up libtorrent-rasterbar8 (1.0.10-1ppa1~trusty1) ...
Setting up python-libtorrent (1.0.10-1ppa1~trusty1) ...
Setting up deluge-common (1.3.6-0ubuntu3) ...
Setting up deluge-gtk (1.3.6-0ubuntu3) ...
Setting up deluge (1.3.6-0ubuntu3) ...
Setting up libportmidi0 (1:200-0ubuntu3) ...
Setting up musescore-soundfont-gm (1.3+dfsg-1) ...
Setting up python-appindicator (12.10.1+13.10.20130920-0ubuntu4.1) ...
Setting up python-numpy (1:1.8.2-0ubuntu0.1) ...
Setting up python-pygame (1.9.1release+dfsg-9ubuntu1) ...
Processing triggers for libc-bin (2.19-0ubuntu6.9) ...
Got the a similar-looking error, though it isn't quite the same:

Code: Select all

$ deluge
/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
  warnings.warn(str(e), _gtk.Warning)

(deluge:8766): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
Traceback (most recent call last):
  File "/usr/bin/deluge", line 9, in <module>
    load_entry_point('deluge==1.3.6', 'gui_scripts', 'deluge')()
  File "/usr/lib/python2.7/dist-packages/deluge/main.py", line 132, in start_ui
    UI(options, args, options.args)
  File "/usr/lib/python2.7/dist-packages/deluge/ui/ui.py", line 150, in __init__
    ui = GtkUI(args)
  File "/usr/lib/python2.7/dist-packages/deluge/ui/gtkui/gtkui.py", line 213, in __init__
    common.associate_magnet_links(False)
  File "/usr/lib/python2.7/dist-packages/deluge/ui/gtkui/common.py", line 255, in associate_magnet_links
    if (gconf_client.get(key) and overwrite) or not gconf_client.get(key):
glib.GError: No D-BUS daemon running
That's everything I know. Any thoughts?
resume-man
New User
New User
Posts: 6
Joined: Mon Feb 06, 2017 6:07 am

Re: Deluge won't run after system-wide update

Post by resume-man »

Any more feedback? I tried again to purge everything and re-enabled the Deluge-team repo.

Since the errors now were referring to D-Bus, I took a look at this thread: http://askubuntu.com/questions/135573/g ... all-or-fix but to no avail. I tried changing the owner of ~/.dbus, and also tried deleting the file /var/lib/dbus/machine-id. But I suspect the problem I'm having may be somewhat different.

I now get:

Code: Select all

$ deluge
/usr/lib/python2.7/dist-packages/deluge/ui/gtkui/mainwindow.py:69: GtkWarning: Failed to read filechooser settings from "/home/steve/.config/gtk-2.0/gtkfilechooser.ini": Permission denied
  "glade/main_window.glade"))
/usr/lib/python2.7/dist-packages/deluge/ui/gtkui/preferences.py:56: GtkWarning: Failed to read filechooser settings from "/home/steve/.config/gtk-2.0/gtkfilechooser.ini": Permission denied
  "glade/preferences_dialog.glade"))
/usr/lib/python2.7/dist-packages/deluge/ui/gtkui/addtorrentdialog.py:66: GtkWarning: Failed to read filechooser settings from "/home/steve/.config/gtk-2.0/gtkfilechooser.ini": Permission denied
  "deluge.ui.gtkui", "glade/add_torrent_dialog.glade"))
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Deluge won't run after system-wide update

Post by Cas »

On a headless server you don't run Deluge gtk ui. You use deluged and connect via thinclient
resume-man
New User
New User
Posts: 6
Joined: Mon Feb 06, 2017 6:07 am

Re: Deluge won't run after system-wide update

Post by resume-man »

Yeah. I do have an X server installed, so I would think it would function. But nonethelesss...I went ahead and installed deluged, and here's the output I get then (and it locks).

Code: Select all

$ deluged
steve@fileserver:~$ [ERROR   ] 09:06:21 main:245 /usr/lib/python2.7/dist-packages/libtorrent.so: undefined symbol: _ZN5boost4asio2ip10address_v4C1ERKNS_5arrayIhLm4EEE
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/deluge/main.py", line 238, in start_daemon
    Daemon(options, args)
  File "/usr/lib/python2.7/dist-packages/deluge/core/daemon.py", line 141, in __init__
    from deluge.core.core import Core
  File "/usr/lib/python2.7/dist-packages/deluge/core/core.py", line 36, in <module>
    from deluge._libtorrent import lt
  File "/usr/lib/python2.7/dist-packages/deluge/_libtorrent.py", line 59, in <module>
    import libtorrent as lt
ImportError: /usr/lib/python2.7/dist-packages/libtorrent.so: undefined symbol: _ZN5boost4asio2ip10address_v4C1ERKNS_5arrayIhLm4EEE
^C
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Deluge won't run after system-wide update

Post by Cas »

Ok so I see the issue now. You have the qbittorrent ppa installed and seems their build is broken for python libtorrent.

If you disable that ppa and use Deluge ppa and libtorrent 1.0.9 it will work.

https://github.com/qbittorrent/qBittorrent/issues/6383
resume-man
New User
New User
Posts: 6
Joined: Mon Feb 06, 2017 6:07 am

Re: Deluge won't run after system-wide update

Post by resume-man »

Well if that ain't the damndest error! Go figure, I would NEVER have figured that out by myself.

Deluge now works. It's not working quite right in the Thin Client mode, and my various purges seem to have deleted all my torrent files, but I can at least access everything via the web client. I just set up the thin client recently, like a couple weeks before the great libtorrent crash, and it was finicky then too, so I'll fiddle with it and I will probably get 'er going again.

Thanks so much for drilling down into that Cas, not sure if I woulda ever been able to use Deluge again!
Post Reply