Unable to create threaded lstat
Every now and again when performing a git push from my local machine up to my staging repo on the server, I receive a "fatal: unable to create threaded lstat" error (thrown by this line in Git: SO implies it could be a resource limit somewhere, just not entirely sure where, and that it can be dodged by using
... but I'd rather just fix the resource limit than fudge around it. Any suggestions?
git config core.preloadIndex false... but I'd rather just fix the resource limit than fudge around it. Any suggestions?
-
So, I set: git config core.preloadIndex false
...and immediately began getting bash: fork: retry: Resource temporarily unavailable errors instead of the previous git error. Setting the above git config value back to true causes the original git error from OP to return.ulimit -u
...reveals this user's soft nproc limit is at 35, and hard is unlimited. /etc/security/limits.conf and /etc/security/limits.d/90-nproc.conf however are both set to override this and set it to a value MUCH higher (2048) - it would appear that this isn't applying, or is being overridden elsewhere (?)0 -
Just changed limits in limits.conf and 90-nproc.conf and rebooted server. ulimit -u still returns 35 for this user. 0 -
Hi @APatchworkBoy I'm glad to see you were able to identify the cause of your issue, thanks for posting the detailed information on how to resolve it! 0
Please sign in to leave a comment.
Comments
4 comments