Opened 7 years ago

Last modified 7 years ago

#3074 new bug

Deluged stopped working on debian, "FFI object has no attribute 'new_allocator'"

Reported by: he-man Owned by:
Priority: major Milestone: needs verified
Component: Core Version: 1.3.10
Keywords: debian jessie openssl deluged Cc:

Description

Running deluged on debian server. I have automatic updates and needed to reboot my server, after rebooting deluge is dead. Tried reinstalling and rebooting the machine, same error persists. I assume there might be a dependency issue with openssl?

uname -a
Linux saturn 3.16.0-4-amd64 #1 SMP Debian 3.16.43-2+deb8u1 (2017-06-18) x86_64 GNU/Linux

cat /etc/debian_version
8.8
(jessie)

Automatic updates that happened since I can remember deluge working
Packages that were upgraded:
 libgnutls-deb0-28 libgnutls-openssl27 
Packages with upgradable origin but kept back:
 libc-bin libc-dev-bin libc6 libc6-dev libffi-dev libffi6 
 linux-image-3.16.0-4-amd64 linux-libc-dev locales multiarch-support 
Packages that were upgraded:
 libc-bin libc-dev-bin libc6 libc6-dev libffi-dev libffi6 
 linux-image-3.16.0-4-amd64 linux-libc-dev locales multiarch-support 
Packages that were upgraded:
 apache2 apache2-bin apache2-data apache2-doc apache2-utils 
 libgraphite2-3 
he-man@saturn:~$ sudo aptitude purge deluged deluge-web deluge-console deluge-common
The following packages will be REMOVED:
  deluge-common{p} deluge-console{p} deluge-web{p} deluged{p} libboost-python1.55.0{u} libboost-system1.55.0{u} libtorrent-rasterbar7{u}
  python-characteristic{u} python-libtorrent{u} python-mako{u} python-markupsafe{u} python-pam{u} python-pyasn1-modules{u} python-serial{u}
  python-service-identity{u} python-twisted-bin{u} python-twisted-core{u} python-twisted-web{u} python-xdg{u} python-zope.interface{u}
0 packages upgraded, 0 newly installed, 20 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 23.7 MB will be freed.
Do you want to continue? [Y/n/?]
(Reading database ... 78168 files and directories currently installed.)
Removing deluged (1.3.10-3+deb8u1) ...
Purging configuration files for deluged (1.3.10-3+deb8u1) ...
Removing deluge-web (1.3.10-3+deb8u1) ...
Removing deluge-console (1.3.10-3+deb8u1) ...
Removing deluge-common (1.3.10-3+deb8u1) ...
Processing triggers for man-db (2.7.0.2-5) ...
(Reading database ... 76758 files and directories currently installed.)
Removing python-libtorrent (0.16.18-1) ...
Removing libboost-python1.55.0 (1.55.0+dfsg-3) ...
Removing libtorrent-rasterbar7 (0.16.18-1) ...
Removing libboost-system1.55.0:amd64 (1.55.0+dfsg-3) ...
Removing python-twisted-web (14.0.2-3) ...
Removing python-twisted-core (14.0.2-3) ...
Removing python-service-identity (1.0.0-3) ...
Removing python-characteristic (0.1.0-1) ...
Removing python-mako (1.0.0+dfsg-0.1) ...
Removing python-markupsafe (0.23-1+b1) ...
Removing python-pam (0.4.2-13.1) ...
Removing python-pyasn1-modules (0.0.5-0.1) ...
Removing python-serial (2.6-1.1) ...
Removing python-twisted-bin (14.0.2-3) ...
Removing python-xdg (0.25-4) ...
Removing python-zope.interface (4.1.1-3.1) ...
Processing triggers for libc-bin (2.19-18+deb8u10) ...
Processing triggers for man-db (2.7.0.2-5) ...

he-man@saturn:~$ sudo aptitude install deluged deluge-web deluge-console deluge-common
The following NEW packages will be installed:
  deluge-common deluge-console deluge-web deluged libboost-python1.55.0{a} libboost-system1.55.0{a} libtorrent-rasterbar7{a} python-characteristic{a}
  python-libtorrent{a} python-mako{a} python-markupsafe{a} python-pam{a} python-pyasn1-modules{a} python-serial{a} python-service-identity{a}
  python-twisted-bin{a} python-twisted-core{a} python-twisted-web{a} python-xdg{a} python-zope.interface{a}
0 packages upgraded, 20 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/4,532 kB of archives. After unpacking 23.7 MB will be used.
Do you want to continue? [Y/n/?]
Selecting previously unselected package libboost-python1.55.0.
(Reading database ... 75774 files and directories currently installed.)
Preparing to unpack .../libboost-python1.55.0_1.55.0+dfsg-3_amd64.deb ...
Unpacking libboost-python1.55.0 (1.55.0+dfsg-3) ...
Selecting previously unselected package libboost-system1.55.0:amd64.
Preparing to unpack .../libboost-system1.55.0_1.55.0+dfsg-3_amd64.deb ...
Unpacking libboost-system1.55.0:amd64 (1.55.0+dfsg-3) ...
Selecting previously unselected package libtorrent-rasterbar7.
Preparing to unpack .../libtorrent-rasterbar7_0.16.18-1_amd64.deb ...
Unpacking libtorrent-rasterbar7 (0.16.18-1) ...
Selecting previously unselected package python-libtorrent.
Preparing to unpack .../python-libtorrent_0.16.18-1_amd64.deb ...
Unpacking python-libtorrent (0.16.18-1) ...
Selecting previously unselected package python-twisted-bin.
Preparing to unpack .../python-twisted-bin_14.0.2-3_amd64.deb ...
Unpacking python-twisted-bin (14.0.2-3) ...
Selecting previously unselected package python-zope.interface.
Preparing to unpack .../python-zope.interface_4.1.1-3.1_amd64.deb ...
Unpacking python-zope.interface (4.1.1-3.1) ...
Selecting previously unselected package python-pyasn1-modules.
Preparing to unpack .../python-pyasn1-modules_0.0.5-0.1_all.deb ...
Unpacking python-pyasn1-modules (0.0.5-0.1) ...
Selecting previously unselected package python-characteristic.
Preparing to unpack .../python-characteristic_0.1.0-1_all.deb ...
Unpacking python-characteristic (0.1.0-1) ...
Selecting previously unselected package python-service-identity.
Preparing to unpack .../python-service-identity_1.0.0-3_all.deb ...
Unpacking python-service-identity (1.0.0-3) ...
Selecting previously unselected package python-twisted-core.
Preparing to unpack .../python-twisted-core_14.0.2-3_all.deb ...
Unpacking python-twisted-core (14.0.2-3) ...
Selecting previously unselected package python-twisted-web.
Preparing to unpack .../python-twisted-web_14.0.2-3_all.deb ...
Unpacking python-twisted-web (14.0.2-3) ...
Selecting previously unselected package python-xdg.
Preparing to unpack .../python-xdg_0.25-4_all.deb ...
Unpacking python-xdg (0.25-4) ...
Selecting previously unselected package deluge-common.
Preparing to unpack .../deluge-common_1.3.10-3+deb8u1_all.deb ...
Unpacking deluge-common (1.3.10-3+deb8u1) ...
Selecting previously unselected package deluge-console.
Preparing to unpack .../deluge-console_1.3.10-3+deb8u1_all.deb ...
Unpacking deluge-console (1.3.10-3+deb8u1) ...
Selecting previously unselected package python-markupsafe.
Preparing to unpack .../python-markupsafe_0.23-1+b1_amd64.deb ...
Unpacking python-markupsafe (0.23-1+b1) ...
Selecting previously unselected package python-mako.
Preparing to unpack .../python-mako_1.0.0+dfsg-0.1_all.deb ...
Unpacking python-mako (1.0.0+dfsg-0.1) ...
Selecting previously unselected package deluge-web.
Preparing to unpack .../deluge-web_1.3.10-3+deb8u1_all.deb ...
Unpacking deluge-web (1.3.10-3+deb8u1) ...
Selecting previously unselected package deluged.
Preparing to unpack .../deluged_1.3.10-3+deb8u1_all.deb ...
Unpacking deluged (1.3.10-3+deb8u1) ...
Selecting previously unselected package python-pam.
Preparing to unpack .../python-pam_0.4.2-13.1_amd64.deb ...
Unpacking python-pam (0.4.2-13.1) ...
Selecting previously unselected package python-serial.
Preparing to unpack .../python-serial_2.6-1.1_all.deb ...
Unpacking python-serial (2.6-1.1) ...
Processing triggers for man-db (2.7.0.2-5) ...
Processing triggers for systemd (215-17+deb8u7) ...
Setting up libboost-python1.55.0 (1.55.0+dfsg-3) ...
Setting up libboost-system1.55.0:amd64 (1.55.0+dfsg-3) ...
Setting up libtorrent-rasterbar7 (0.16.18-1) ...
Setting up python-libtorrent (0.16.18-1) ...
Setting up python-twisted-bin (14.0.2-3) ...
Setting up python-zope.interface (4.1.1-3.1) ...
Setting up python-pyasn1-modules (0.0.5-0.1) ...
Setting up python-characteristic (0.1.0-1) ...
Setting up python-service-identity (1.0.0-3) ...
Setting up python-twisted-core (14.0.2-3) ...
Setting up python-twisted-web (14.0.2-3) ...
Setting up python-xdg (0.25-4) ...
Setting up deluge-common (1.3.10-3+deb8u1) ...
Setting up deluge-console (1.3.10-3+deb8u1) ...
Setting up python-markupsafe (0.23-1+b1) ...
Setting up python-mako (1.0.0+dfsg-0.1) ...
Setting up deluge-web (1.3.10-3+deb8u1) ...
Setting up deluged (1.3.10-3+deb8u1) ...
Setting up python-pam (0.4.2-13.1) ...
Setting up python-serial (2.6-1.1) ...
Processing triggers for libc-bin (2.19-18+deb8u10) ...
Processing triggers for systemd (215-17+deb8u7) ...

he-man@saturn:~$ deluged
he-man@saturn:~$ [ERROR   ] 11:57:54 main:237 'FFI' object has no attribute 'new_allocator'
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/deluge/main.py", line 229, in start_daemon
    from deluge.core.daemon import Daemon
  File "/usr/lib/python2.7/dist-packages/deluge/core/daemon.py", line 39, in <module>
    from twisted.internet import reactor
  File "/usr/lib/python2.7/dist-packages/twisted/internet/reactor.py", line 38, in <module>
    from twisted.internet import default
  File "/usr/lib/python2.7/dist-packages/twisted/internet/default.py", line 56, in <module>
    install = _getInstallFunction(platform)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/default.py", line 44, in _getInstallFunction
    from twisted.internet.epollreactor import install
  File "/usr/lib/python2.7/dist-packages/twisted/internet/epollreactor.py", line 24, in <module>
    from twisted.internet import posixbase
  File "/usr/lib/python2.7/dist-packages/twisted/internet/posixbase.py", line 24, in <module>
    from twisted.internet import error, udp, tcp
  File "/usr/lib/python2.7/dist-packages/twisted/internet/tcp.py", line 29, in <module>
    from twisted.internet._newtls import (
  File "/usr/lib/python2.7/dist-packages/twisted/internet/_newtls.py", line 21, in <module>
    from twisted.protocols.tls import TLSMemoryBIOFactory, TLSMemoryBIOProtocol
  File "/usr/lib/python2.7/dist-packages/twisted/protocols/tls.py", line 41, in <module>
    from OpenSSL.SSL import Error, ZeroReturnError, WantReadError
  File "/usr/local/lib/python2.7/dist-packages/OpenSSL/__init__.py", line 8, in <module>
    from OpenSSL import rand, crypto, SSL
  File "/usr/local/lib/python2.7/dist-packages/OpenSSL/rand.py", line 12, in <module>
    from OpenSSL._util import (
  File "/usr/local/lib/python2.7/dist-packages/OpenSSL/_util.py", line 18, in <module>
    no_zero_allocator = ffi.new_allocator(should_clear_after_alloc=False)
AttributeError: 'FFI' object has no attribute 'new_allocator'

Change History (1)

comment:1 Changed 7 years ago by he-man

I was able to get deluge running with

pip install --upgrade cffi
Note: See TracTickets for help on using tickets.