You are not logged in.

#1 2015-12-24 15:06:51

yochaigal
Member
From: Boston
Registered: 2011-02-06
Posts: 202

Deluge: torrents appear paused but downloading/uploading OK [SOLVED]

Hello all. Question for you: my deluge (deluged+deluge-web) shows all torrents as paused; seeding seems to continue, as does downloading. However, if I download a fresh torrent it downloads to 100% but never gets transferred to the completed folder (indicating that something is wonky with libtorrent?).

journalctl shows:
Dec 24 10:08:28 yochai-server systemd[1]: Started Deluge Daemon.
Dec 24 10:08:28 yochai-server systemd[1]: Started Deluge WebUI.
Dec 24 10:08:28 yochai-server deluged[8890]: Unhandled error in Deferred:
Dec 24 10:08:28 yochai-server deluged[8890]: Traceback (most recent call last):
Dec 24 10:08:28 yochai-server deluged[8890]: File "/usr/lib/python2.7/site-packages/deluge/component.py", line 112, in on_start
Dec 24 10:08:28 yochai-server deluged[8890]: self._component_start_timer()
Dec 24 10:08:28 yochai-server deluged[8890]: File "/usr/lib/python2.7/site-packages/deluge/component.py", line 106, in _component_start_timer
Dec 24 10:08:28 yochai-server deluged[8890]: self._component_timer.start(self._component_interval)
Dec 24 10:08:28 yochai-server deluged[8890]: File "/usr/lib/python2.7/site-packages/twisted/internet/task.py", line 168, in start
Dec 24 10:08:28 yochai-server deluged[8890]: self()
Dec 24 10:08:28 yochai-server deluged[8890]: File "/usr/lib/python2.7/site-packages/twisted/internet/task.py", line 213, in __call__
Dec 24 10:08:28 yochai-server deluged[8890]: d = defer.maybeDeferred(self.f, *self.a, **self.kw)
Dec 24 10:08:28 yochai-server deluged[8890]: --- <exception caught here> ---
Dec 24 10:08:28 yochai-server deluged[8890]: File "/usr/lib/python2.7/site-packages/twisted/internet/defer.py", line 150, in maybeDeferred
Dec 24 10:08:28 yochai-server deluged[8890]: result = f(*args, **kw)
Dec 24 10:08:28 yochai-server deluged[8890]: File "/usr/lib/python2.7/site-packages/deluge/core/alertmanager.py", line 73, in update
Dec 24 10:08:28 yochai-server deluged[8890]: self.handle_alerts()
Dec 24 10:08:28 yochai-server deluged[8890]: File "/usr/lib/python2.7/site-packages/deluge/core/alertmanager.py", line 118, in handle_alerts
Dec 24 10:08:28 yochai-server deluged[8890]: alert = self.session.pop_alert()
Dec 24 10:08:28 yochai-server deluged[8890]: exceptions.TypeError: No to_python (by-value) converter found for C++ type: boost::shared_ptr<libtorrent::alert>
Dec 24 10:08:34 yochai-server sudo[8947]:   yochai : TTY=pts/0 ; PWD=/home/yochai ; USER=root ; COMMAND=/usr/bin/journalctl -b
Dec 24 10:08:34 yochai-server sudo[8947]: pam_unix(sudo:session): session opened for user root by yochai(uid=0)


Most recent upgraded packages relating to deluge:
[2015-12-20 09:20] [ALPM] upgraded python2-setuptools (1:18.8.1-1 -> 1:19.1.1-1)
[2015-12-23 20:34] [ALPM] upgraded libtorrent-rasterbar (1:1.0.7-2 -> 1:1.0.7-3)
Falling back to old versions doesn't help.


Any ideas?

Edit: SOLVED by downgraded a few packages, see thread.

Last edited by yochaigal (2015-12-24 17:07:05)

Offline

#2 2015-12-24 17:01:22

Lysander
Member
From: Argentina
Registered: 2015-12-24
Posts: 2

Re: Deluge: torrents appear paused but downloading/uploading OK [SOLVED]

Happened to me as well after an upgrade - looks like something is not playing nice between libtorrent, deluge and the latest version of Boost :S

A quick workaround is to downgrade libtorrent and boost to the following versions:

  • libtorrent-rasterbar-1:1.0.7-2

  • boost-libs-1.59.0-5

If you've updated recently...

pacman -U /var/cache/pacman/pkg/boost-libs-1.59.0-5-x86_64.pkg.tar.xz /var/cache/pacman/pkg/libtorrent-rasterbar-1:1.0.7-2-x86_64.pkg.tar.xz

...should do the trick.

Last edited by Lysander (2015-12-24 17:01:41)

Offline

#3 2015-12-24 17:06:14

yochaigal
Member
From: Boston
Registered: 2011-02-06
Posts: 202

Re: Deluge: torrents appear paused but downloading/uploading OK [SOLVED]

Yes - that did the trick. I had to downgrade libtorrent-rasterbar, boost and boostlibs. I used downgrade from AUR, and added the packages to IgnorePKG for now.

Thanks a bunch!

EDIT: openmw wouldn't launch without the latest boostlibs, and I didn't want to downgrade. So I installed latest boost and boost-libs, and then made symlinks for the deluge requirements (e.g 1.6.0 > 1.59.0) and everything works as it should now.

Last edited by yochaigal (2015-12-27 12:23:24)

Offline

#4 2015-12-26 17:09:29

beroal
Member
From: Ukraine
Registered: 2009-06-07
Posts: 266
Website

Re: Deluge: torrents appear paused but downloading/uploading OK [SOLVED]

You can obtain the error message

TypeError: No to_python (by-value) converter found for C++ type: boost::shared_ptr<libtorrent::alert>

without Deluge, so Deluge is not to blame.


we are not condemned to write ugly code

Offline

#5 2015-12-27 00:07:50

sepbot
Member
Registered: 2015-12-27
Posts: 1

Re: Deluge: torrents appear paused but downloading/uploading OK [SOLVED]

Any downgrade options available for armv7h users without a local cache (fresh install)?

Last edited by sepbot (2015-12-27 00:16:27)

Offline

#6 2015-12-29 18:54:38

geo909
Member
Registered: 2008-09-07
Posts: 307

Re: Deluge: torrents appear paused but downloading/uploading OK [SOLVED]

Same problem here. I downgraded libtorrent-rasterbar, boost, and boost-libs and deluge works again.

But does anybody knows whether any bug report has been submitted for the packages in question?

Last edited by geo909 (2015-12-29 19:00:18)

Offline

#7 2015-12-30 08:54:28

beroal
Member
From: Ukraine
Registered: 2009-06-07
Posts: 266
Website

Re: Deluge: torrents appear paused but downloading/uploading OK [SOLVED]

whether any bug report has been submitted

Yes, the bug reports were submitted to the ArchLinux bugtracker and to the "libtorrent-rasterbar" mailing list.


we are not condemned to write ugly code

Offline

#8 2015-12-30 14:39:43

geo909
Member
Registered: 2008-09-07
Posts: 307

Re: Deluge: torrents appear paused but downloading/uploading OK [SOLVED]

beroal wrote:

whether any bug report has been submitted

Yes, the bug reports were submitted to the ArchLinux bugtracker and to the "libtorrent-rasterbar" mailing list.

Great, thanks.

Offline

#9 2016-01-02 02:12:18

geo909
Member
Registered: 2008-09-07
Posts: 307

Re: Deluge: torrents appear paused but downloading/uploading OK [SOLVED]

beroal wrote:

whether any bug report has been submitted

Yes, the bug reports were submitted to the ArchLinux bugtracker and to the "libtorrent-rasterbar" mailing list.

Could you please give a link for the bugtracker page? Other things don't run well after the downgrade, so I wanted to keep an eye on how this goes and upgrade as soon as they fix it.

Offline

#10 2016-01-02 04:01:05

Myranti
Member
Registered: 2010-03-04
Posts: 20

Re: Deluge: torrents appear paused but downloading/uploading OK [SOLVED]

The bugtracker page is here. You can also access the libtorrent mailing list archive for some useful response, though from what I see the developer has been unable to reproduce the bug on OSX.

Offline

#11 2016-01-02 04:38:22

geo909
Member
Registered: 2008-09-07
Posts: 307

Re: Deluge: torrents appear paused but downloading/uploading OK [SOLVED]

Myranti wrote:

The bugtracker page is here. You can also access the libtorrent mailing list archive for some useful response, though from what I see the developer has been unable to reproduce the bug on OSX.

Many thanks!

Offline

#12 2016-01-03 19:11:03

mmozeiko
Member
Registered: 2013-03-13
Posts: 2

Re: Deluge: torrents appear paused but downloading/uploading OK [SOLVED]

There's a github pull for libtorrent linked in bugtracker that fixes problem. If you want to get fix now, just rebuilt libtorrent-rasterbar with this patch applied: https://github.com/aresch/libtorrent/co … a214.patch

Offline

#13 2016-01-03 19:53:17

geo909
Member
Registered: 2008-09-07
Posts: 307

Re: Deluge: torrents appear paused but downloading/uploading OK [SOLVED]

mmozeiko wrote:

There's a github pull for libtorrent linked in bugtracker that fixes problem. If you want to get fix now, just rebuilt libtorrent-rasterbar with this patch applied: https://github.com/aresch/libtorrent/co … a214.patch

Thanks! I think I can wait a little bit but if it takes long I'll have it in mind.

Offline

#14 2016-01-05 14:54:23

xpander
Member
Registered: 2013-01-23
Posts: 56

Re: Deluge: torrents appear paused but downloading/uploading OK [SOLVED]

mmozeiko wrote:

There's a github pull for libtorrent linked in bugtracker that fixes problem. If you want to get fix now, just rebuilt libtorrent-rasterbar with this patch applied: https://github.com/aresch/libtorrent/co … a214.patch

thanks.. works like a charm after bulding it with this patch

Offline

#15 2016-01-05 21:07:30

joukim
Member
Registered: 2016-01-05
Posts: 1

Re: Deluge: torrents appear paused but downloading/uploading OK [SOLVED]

My PKGBUILD with the patch (download the patch in the same directory).

# $Id$
# Maintainer : Ionut Biru <ibiru@archlinux.org>
# Contributor: Hugo Doria <hugo@archlinux.org>

pkgname=libtorrent-rasterbar
pkgver=1.0.7
pkgrel=3
epoch=1
pkgdesc="A C++ BitTorrent library that aims to be a good alternative to all the other implementations around"
url="http://www.rasterbar.com/products/libtorrent/"
arch=('i686' 'x86_64')
license=('BSD')
depends=('boost-libs' 'geoip' 'python2')
makedepends=('boost')
options=('!emptydirs')
source=(https://github.com/arvidn/libtorrent/releases/download/libtorrent-${pkgver//./_}/$pkgname-$pkgver.tar.gz
        5330ba5af717b983e456be9f576d66b78d9ca214.patch)
sha1sums=('db272a0c09a1fad721fe88e6e3942b9160bd0c61'
        'aeef8300f91b2842776feac8ca3717f62539ac74')

build() {
  cd $pkgname-$pkgver
  # fix build with new boost
  patch -Np1 -i ../5330ba5af717b983e456be9f576d66b78d9ca214.patch

  PYTHON=/usr/bin/python2 \
  ./configure \
    --prefix=/usr \
    --enable-python-binding \
    --with-libgeoip=system \
    --with-libiconv
  make
}

package() {
  cd $pkgname-$pkgver
  make DESTDIR="$pkgdir" install
  install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

Thanks all for the solution, deluge is fine now.

Offline

#16 2016-01-05 21:58:41

HansAnderson
Member
Registered: 2013-12-17
Posts: 13

Re: Deluge: torrents appear paused but downloading/uploading OK [SOLVED]

and my pacth for adding patch to PKGBUILD

--- a/PKGBUILD	2016-01-06 00:46:24.741536732 +0300
+++ b/PKGBUILD	2016-01-05 23:59:40.504095000 +0300
@@ -13,8 +13,15 @@
 depends=('boost-libs' 'geoip' 'python2')
 makedepends=('boost')
 options=('!emptydirs')
-source=(https://github.com/arvidn/libtorrent/releases/download/libtorrent-${pkgver//./_}/$pkgname-$pkgver.tar.gz)
-sha1sums=('db272a0c09a1fad721fe88e6e3942b9160bd0c61')
+source=("https://github.com/arvidn/libtorrent/releases/download/libtorrent-${pkgver//./_}/$pkgname-$pkgver.tar.gz"
+"https://github.com/aresch/libtorrent/commit/5330ba5af717b983e456be9f576d66b78d9ca214.patch")
+sha1sums=('db272a0c09a1fad721fe88e6e3942b9160bd0c61'
+'aeef8300f91b2842776feac8ca3717f62539ac74')
+
+prepare() {
+	cd "$pkgname-$pkgver"
+	patch -p1 -i "$srcdir/5330ba5af717b983e456be9f576d66b78d9ca214.patch"
+}
 
 build() {
   cd $pkgname-$pkgver
@@ -32,3 +39,4 @@
   make DESTDIR="$pkgdir" install
   install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }
+

Last edited by HansAnderson (2016-01-05 23:23:04)

Offline

#17 2016-01-08 18:15:10

Xi0N
Member
From: Bilbao - Spain
Registered: 2007-11-29
Posts: 821
Website

Re: Deluge: torrents appear paused but downloading/uploading OK [SOLVED]

OMG! I have been hours trying to fix this error until I came across this thread!!!!


Thank you guys: Still not fixed: This method works today, january 8 th 2016

Offline

#18 2016-01-13 00:50:20

anhtuann
Member
Registered: 2016-01-13
Posts: 6

Re: Deluge: torrents appear paused but downloading/uploading OK [SOLVED]

Yeah ! We got an update to libtorrent-rasterbar (version 1:1.0.7-4) that seems to fix the problem. Anyway, thanks for the PKGBUILD, got me a working setup a few days ahead of the update.

Offline

Board footer

Powered by FluxBB