You are not logged in.

#1 2018-03-03 12:07:41

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

[Solved] deluged reports "Too many open files:"

Recently, deluge has been refusing to add new torrents, and journalctl shows:

deluged[613]: [ERROR   ] 00:01:03 torrentmanager:854 Unable to save /srv/deluge/.config/deluge/state/torrents.fastresume: [Errno 24] Too many open files: '/srv/deluge/.config/deluge/state/torrents.fastresume.tmp'

I've modified /etc/sysctl.d/99-sysctl.conf with this entry:

fs.file-max = 2097152

And rebooted, but the problem persists.

I've also ran

lsof | awk '{ print $2 " " $1; }' | sort -rn | uniq -c | sort -rn | head -20

As root, and I get:

161304 628 java
   6303 627 Plex\x20M
   2340 631 mono
   1782 1837 mongod
   1624 625 python2
   1081 2352 Plex\x20T
    910 785 Plex\x20S
    832 972 Plex\x20T
    805 623 deluged
    650 2706 Plex\x20S
    650 2616 Plex\x20S
    600 2731 Plex\x20S
    600 2679 Plex\x20S
    600 1862 Plex\x20S
    399 632 python2
    378 805 lightdm-g
    324 649 Xorg
    270 535 polkitd
    264 383 NetworkMa
    199 695 smbd

So basically the top three offenders are Java (Unifi) Plex, mono & mongod (also Unifi).

Am I on the right track? Thanks!
I've started to prune my Unifi database, hopefully that will help...

Last edited by yochaigal (2018-03-07 00:35:05)

Offline

#2 2018-03-03 14:34:27

seth
Member
Registered: 2012-09-03
Posts: 51,029

Re: [Solved] deluged reports "Too many open files:"

ulimit -n 2048, start deluged from the same shell, see whether that works.

Offline

#3 2018-03-07 00:34:50

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

Re: [Solved] deluged reports "Too many open files:"

Stopping Unifi seems to have resolved this issue.

Offline

Board footer

Powered by FluxBB