Nofile limit Tranmission LXC

  • Thread starter Thread starter Deleted member 90346
  • Start date Start date
D

Deleted member 90346

Guest
Greetings,

I've been having an issue with one of my LXC recently. Started about a month ago. Tranmission web gui keeps throwing the Error: Unable to save resume files: too many open files. At first i tought that this was a Tranmisson error however the more i looked into it the more it became apparent that this was just a nofile limit being enforced by either the host or the lxc itself.

I've googled and tried most of the things allready regarding increasing the file limit ( and as far as i can tell i have it set up properly) but everytime i have some downloads running the error comes back. This command: lsof | awk '$4 ~ /[0-9]+[rwu -].*/{p[$1"t"$2"t"$3]=p[$1"t"$2"t"$3]+1}END{for (i in p) print p[i],i}' | sort -n | tailshows my debian-tranmission user howering around 1000 nofiles. It caps at 1024 which is the default value for nofile. I have however , like mentioned above, upped this limit.

Is there anyone around that can either give me a step by step rundown of what to do so i can retrace my steps and see if i'm doing everything correctly? If anyone else has any idea as to what might cause i would love to hear it.

With kind regards,
 
Last edited by a moderator:
I just realized then when i enter these values on the proxmox host, they do not stick after a reboot.

Code:
/etc/sysctl.conf ->
fs.file-max = 100000
/etc/security/limits.conf ->
* hard nofile 100000
* soft nofile 10000
 
Last edited by a moderator:
Checked everything and the nofile is now showing correctly. Figured out that a wildcard in /etc/security/limits.conf -> does not apply to root hence i was seeing no difference what so ever. Did some deeper digging (problem still persists even with increased nofile), and found it that it is indeed an issue with transmission itself. More specifically with libcurl (libcurl has open file limit of 1024). Still have to figure out a fix for this since this is still present in the latest transmission builds.
 
Last edited by a moderator: