Error migrating deluged from Debian 10 to 11

General support for problems installing or using Deluge
Post Reply
Dr Trix
New User
New User
Posts: 1
Joined: Fri Aug 05, 2022 9:59 pm

Error migrating deluged from Debian 10 to 11

Post by Dr Trix »

Hello,

I am trying to migrate my deluged installation from Debian 10 Buster (deluged 1.3.15 + libtorrent 1.1.11.0) to something more recent like Debian 11.
My current setup is in a Debian 10 VM running in a Proxmox hypervisor, working for many years without much problems ;)
I am trying to migrate it to a VM with more recent versions of Debian and, of course, deluged.

But whether I try with Debian 11, Ubuntu Server 20.04 or Ubuntu Server 22.04, each time with the latest deluged release from PPA (2.1.1), I am encountering errors.
It looks like I can run a fresh installed deluged (at least I checked on my last try on Ubuntu Server 20, did not check on Debian 11/Ubuntu Server 22).
But as soon as I try to migrate all of my deluged conf folder, I have an error when starting deluged service. Migration is done by creating a tar archive of /var/lib/deluge/.config/deluge folder on my old setup and extracting it on the new setup, and I verified permissions (owned by deluge user in both cases)

The error :

Code: Select all

23:47:31 [WARNING ][deluge.core.core              :332 ] Unable to load /var/lib/deluge/.config/deluge/session.state.bak: [Errno 2] No such file or directory: '/var/lib/deluge/.config/deluge/session.state.bak'
23:47:31 [WARNING ][deluge.core.preferencesmanager:465 ] GeoIP Unavailable: [Errno 24] Too many open files: '/usr/share/GeoIP/GeoIP.dat'
23:47:31 [WARNING ][deluge.core.authmanager       :229 ] Unable to load /var/lib/deluge/.config/deluge/auth: [Errno 24] Too many open files: '/var/lib/deluge/.config/deluge/auth'
23:47:31 [WARNING ][deluge.core.authmanager       :229 ] Unable to load /var/lib/deluge/.config/deluge/auth.bak: [Errno 24] Too many open files: '/var/lib/deluge/.config/deluge/auth.bak'
23:47:31 [ERROR   ][deluge.component              :128 ] [Failure instance: Traceback: <class 'OSError'>: [Errno 24] Too many open files: '/var/lib/deluge/.config/deluge/auth'
/usr/lib/python3/dist-packages/twisted/internet/base.py:1276:mainLoop
/usr/lib/python3/dist-packages/twisted/internet/base.py:902:runUntilCurrent
/usr/lib/python3/dist-packages/twisted/internet/defer.py:460:callback
/usr/lib/python3/dist-packages/twisted/internet/defer.py:568:_startRunCallbacks
--- <exception caught here> ---
/usr/lib/python3/dist-packages/twisted/internet/defer.py:654:_runCallbacks
/usr/lib/python3/dist-packages/twisted/internet/task.py:865:<lambda>
/usr/lib/python3/dist-packages/deluge/core/authmanager.py:68:start
/usr/lib/python3/dist-packages/deluge/core/authmanager.py:279:__load_auth_file
/usr/lib/python3/dist-packages/deluge/common.py:1221:create_localclient_account
]
23:47:31 [ERROR   ][deluge.component              :128 ] [Failure instance: Traceback: <class 'OSError'>: [Errno 24] Too many open files: '/var/lib/deluge/.config/deluge/state/.safe_state_check'
/usr/lib/python3/dist-packages/twisted/internet/base.py:1276:mainLoop
/usr/lib/python3/dist-packages/twisted/internet/base.py:902:runUntilCurrent
/usr/lib/python3/dist-packages/twisted/internet/defer.py:460:callback
/usr/lib/python3/dist-packages/twisted/internet/defer.py:568:_startRunCallbacks
--- <exception caught here> ---
/usr/lib/python3/dist-packages/twisted/internet/defer.py:654:_runCallbacks
/usr/lib/python3/dist-packages/twisted/internet/task.py:865:<lambda>
/usr/lib/python3/dist-packages/deluge/core/torrentmanager.py:246:start
]
A little search on my favorite engine lead me to something related with limits (because of the 'Errno 24 Too many open files') but adding the code below to /etc/security/limits.conf did not help :

Code: Select all

*                soft    nofile          1000000
*                hard    nofile          1000000
Log says something about file /var/lib/deluge/.config/deluge/state/.safe_state_check which does not exist

Like I said, I also tried on Debian 11 and Ubuntu Server 22.04 without success. I am open to any help, maybe I am missing something or else? ;)
With the number of torrents, I would be a bit annoyed if I had to add all of them manually on the new setup :mrgreen:
IBTB
New User
New User
Posts: 4
Joined: Sun Jun 06, 2021 11:16 am

Re: Error migrating deluged from Debian 10 to 11

Post by IBTB »

Regarding the Errno 24, I read this a few months ago: viewtopic.php?f=7&t=56164
It has some suggestions. There is also a link to more information in a post there. You can try to read up on those a bit first! :)
Post Reply