Change open file limit for non-root users

musioc

Well-Known Member
Aug 4, 2011
127
1
68
Hello

Our client gets this error vie terminal while he tries to run git pull : Too many open files
remote: Enumerating objects: 146, done.
remote: Counting objects: 100% (146/146), done.
remote: Compressing objects: 100% (47/47), done.
remote: Total 115 (delta 96), reused 86 (delta 67), pack-reused 0
Receiving objects: 100% (115/115), 21.58 KiB | 10.79 MiB/s, done.
fatal: unable to open .git/objects/pack/tmp_pack_xZhMoi: Too many open files
fatal: index-pack failed
open files limit is 100
We want to change it and we did many tricks but there were no way to increase open files limit.
Please tell me the exact way to do this

Thank you
 

musioc

Well-Known Member
Aug 4, 2011
127
1
68
We are using latest version of cPanel & cloudlinux

ulimit -n is always 100 for all users https://prnt.sc/1qwr0ws
We applied many edits in files such as /etc/systemd/user.conf , /etc/systemd/system.conf, and /etc/security/limits.conf
But no change was made.
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
16,505
2,605
363
cPanel Access Level
Root Administrator
Hey there! I'm not able to view that screenshot right now as it seems that prnt.sc is having issues. You can upload an image directly to the post as well.

Since you mentioned CloudLinux, do you have any user limits in place for that particular user account?
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
16,505
2,605
363
cPanel Access Level
Root Administrator
Thanks for that - have you tried using the details here to adjust that value?