Page 1 of 1

Error - too many open files

Posted: Sat Jan 26, 2019 11:27 pm
by mpj88
Hi,

I've run into an error recently which is causing some of my torrents to stop:
unable to save resume file too many open files

I've tried to research this and come across some old threads but haven't been able to solve it.

Code: Select all

{
    "alt-speed-down": 50,
    "alt-speed-enabled": false,
    "alt-speed-time-begin": 540,
    "alt-speed-time-day": 127,
    "alt-speed-time-enabled": false,
    "alt-speed-time-end": 1020,
    "alt-speed-up": 50,
    "bind-address-ipv4": "0.0.0.0",
    "bind-address-ipv6": "::",
    "blocklist-enabled": false,
    "blocklist-url": "http://www.example.com/blocklist",
    "cache-size-mb": 4,
    "dht-enabled": true,
    "download-dir": "/volume1/HD_Films",
    "download-queue-enabled": true,
    "download-queue-size": 5,
    "encryption": 1,
    "idle-seeding-limit": 30,
    "idle-seeding-limit-enabled": false,
    "incomplete-dir": "/usr/local/transmission/var/Downloads",
    "incomplete-dir-enabled": false,
    "lpd-enabled": false,
    "message-level": 2,
    "peer-congestion-algorithm": "",
    "peer-id-ttl-hours": 6,
    "peer-limit-global": 800,
    "peer-limit-per-torrent": 200,
    "peer-port": 51412,
    "peer-port-random-high": 65535,
    "peer-port-random-low": 49152,
    "peer-port-random-on-start": false,
    "peer-socket-tos": "default",
    "pex-enabled": true,
    "pidfile": "/volume1/@appstore/transmission/var/transmission.pid",
    "port-forwarding-enabled": true,
    "preallocation": 1,
    "prefetch-enabled": true,
    "queue-stalled-enabled": true,
    "queue-stalled-minutes": 30,
    "ratio-limit": 2,
    "ratio-limit-enabled": false,
    "rename-partial-files": true,
    "rpc-authentication-required": true,
    "rpc-bind-address": "0.0.0.0",
    "rpc-enabled": true,
    "rpc-host-whitelist": "",
    "rpc-host-whitelist-enabled": true,
    "rpc-password": "",
    "rpc-port": 9091,
    "rpc-url": "/transmission/",
    "rpc-username": "admin",
    "rpc-whitelist": "127.0.0.1",
    "rpc-whitelist-enabled": false,
    "scrape-paused-torrents-enabled": true,
    "script-torrent-done-enabled": false,
    "script-torrent-done-filename": "",
    "seed-queue-enabled": false,
    "seed-queue-size": 10,
    "speed-limit-down": 7000,
    "speed-limit-down-enabled": true,
    "speed-limit-up": 200,
    "speed-limit-up-enabled": true,
    "start-added-torrents": true,
    "trash-original-torrent-files": false,
    "umask": 2,
    "upload-slots-per-torrent": 14,
    "utp-enabled": true,
    "watch-dir-enabled": false
} 
Any suggestions?

Thanks in advance

Re: Error - too many open files

Posted: Mon Jan 28, 2019 11:39 am
by killemov
This is not something you can change with the Transmission settings. This usually points to some environment setting in the operating system. In this case it smells like too many open socket connections.

Re: Error - too many open files

Posted: Mon Jan 28, 2019 5:02 pm
by mpj88
Thanks for your response.

I'm using a Synology DS414 NAS. You may be correct as sometimes I cant even login to the Transmission client with a similar error. Any idea of which settings i would need to change?

I'm not sure if im having the same problem as here:
https://trac.transmissionbt.com/ticket/5161

Re: Error - too many open files

Posted: Mon Mar 30, 2020 6:59 am
by psychedelia
mpj88, did you ever solve this? I have the same Synology as you, and experience this problem. I have tried both transmission installed with web and via command line, but the same problem occurs.

Anyone with an actual working solution?

Stian

Re: Error - too many open files

Posted: Sun Apr 04, 2021 1:17 am
by fademan
Hi everyone,

I have a Synology DS1819+ - running transmission 3.00-19 and I get this error ,with only circa ~70 torrents seeding, none active
(ie. seeding but no connections).

It is extremely frustrating - and I can't find a resolution anywhere...all threads (like this one) are old.

Any help would be appreciated!

Re: Error - too many open files

Posted: Mon Apr 05, 2021 8:55 am
by killemov

Re: Error - too many open files

Posted: Mon Apr 05, 2021 10:27 am
by fademan
Thanks for the link - however the instructions don't work for a synology NAS - even as root I cannot modify the hard / soft limits.

For example:

admin@OurNAS:/$ sysctl -w fs.file-max=100000
sysctl: permission denied on key 'fs.file-max'

Re: Error - too many open files

Posted: Mon Apr 05, 2021 10:21 pm
by killemov
Ok, so I pointed to a Linux-generic possible solution and you're still stuck with Synology limitations. Take it up with the Synology forum then?

Re: Error - too many open files

Posted: Thu Jul 22, 2021 3:29 pm
by fademan
OK so I turned off all optional packages running on the NAS, and adjusted my peer limit settings lower and it hasn't popped up for a little while.

Olsen - what do you have your Max peers / torrent and max peers overall set at?

Re: Error - too many open files

Posted: Tue Jul 27, 2021 9:31 am
by fademan
yep that's correct Duke - i've researched it - the challenge is that we have no idea why its' happening - I've tried to eliminate other factors (shutting down optional packages, removing all but 20 torrents)...but it still occurs.

I also can't figure out how to change the limit to more than 4000.... using various configuration settings. (including the suggestion further up from Killemov).

I just recently changed the peer limit settings to 50 / 200 total - this seems to have stopped it from happening (I had 200 per t, 400 total before)...but I assumed that it would only use those numbers if there were active connections (I never got to those numbers).