https://pantsbuild.org/ logo
#general
Title
# general
c

cold-vr-15232

09/29/2022, 6:31 PM
I have left my computer running for a few hours and when I got back, I could no longer run pants, because it said "too many open files". I killed the pantsd process, and then it started working again. I guess that file descriptors are leaking somewhere. Is this a known issue?
h

happy-kitchen-89482

09/29/2022, 6:33 PM
It is not known to me at least. Which pants version?
c

cold-vr-15232

09/29/2022, 6:34 PM
2,14.0rc1
h

happy-kitchen-89482

09/29/2022, 7:02 PM
c

cold-vr-15232

09/29/2022, 7:24 PM
Yes, I have the limit set to a high value.
h

happy-kitchen-89482

09/29/2022, 7:43 PM
Is your repo particularly large, with many changed files or something?
c

cold-vr-15232

09/29/2022, 7:55 PM
No, it's not large. count-loc reports 123 files. I have been working on it all day, and there were no issues. Only when left unattended for some hours. I don't know if it's related, could be on top of the other hours I was working, of course. Maybe it's worth making a mental note and if more people mention it, try to investigate.
w

witty-crayon-22786

09/29/2022, 8:16 PM
thanks for the report! if you experience this again, running
lsof -p $pantsd_pid
would be helpful to determine what is open, and then filing an issue.
👍 1
h

hundreds-father-404

09/29/2022, 8:17 PM
you can find the pid by using
ps aux | grep pants
w

witty-crayon-22786

09/29/2022, 8:17 PM
pantsd
in particular, yea