Error - too many open files

Discussion of Transmission that doesn't fit in the other categories
Post Reply
mpj88
Posts: 2
Joined: Sat Jan 26, 2019 11:20 pm

Error - too many open files

Post 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
killemov
Posts: 448
Joined: Sat Jul 31, 2010 5:04 pm

Re: Error - too many open files

Post 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.
mpj88
Posts: 2
Joined: Sat Jan 26, 2019 11:20 pm

Re: Error - too many open files

Post 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
psychedelia
Posts: 5
Joined: Mon Mar 30, 2020 6:51 am

Re: Error - too many open files

Post 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
fademan
Posts: 4
Joined: Tue Mar 09, 2021 11:24 am

Re: Error - too many open files

Post 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!
fademan
Posts: 4
Joined: Tue Mar 09, 2021 11:24 am

Re: Error - too many open files

Post 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'
killemov
Posts: 448
Joined: Sat Jul 31, 2010 5:04 pm

Re: Error - too many open files

Post 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?
fademan
Posts: 4
Joined: Tue Mar 09, 2021 11:24 am

Re: Error - too many open files

Post 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?
fademan
Posts: 4
Joined: Tue Mar 09, 2021 11:24 am

Re: Error - too many open files

Post 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).
Post Reply