Chef/Berks creating tons of folders in /tmp directory. Regression? #324
Description
I'm creating a new issue for visibility:
This may be a regression of the issue fixed in #262
Basically the issue is that any time knife/berks commands are run, we're seeing a ton of new folders being created in the /tmp folder (in the same format as the issue referenced above)
drwx------ 2 berkshelf berkshelf 4096 Nov 9 09:11 d20151109-11078-1orsbyz
drwx------ 2 berkshelf berkshelf 4096 Nov 9 09:11 d20151109-11078-aficvo
drwx------ 2 berkshelf berkshelf 4096 Nov 9 09:11 d20151109-11065-65gf8t
drwx------ 2 berkshelf berkshelf 4096 Nov 9 09:11 d20151109-11065-tdio7h
drwx------ 2 berkshelf berkshelf 4096 Nov 9 09:10 d20151109-11055-18z2bm4
drwx------ 2 berkshelf berkshelf 4096 Nov 9 09:10 d20151109-11055-lppkms
drwx------ 2 berkshelf berkshelf 4096 Nov 9 09:10 d20151109-11045-1kmoxcf
drwx------ 2 berkshelf berkshelf 4096 Nov 9 09:10 d20151109-11045-y70ur1
Here's the debugging info that @jsirex provided in the berkshelf/berkshelf#1069 issue. Note, I wiped out the /tmp folder and then ran our script once and the following files were created. Our script uses the ridley gem, executes berks multiple times and also calls knife.
tmp]# ls | grep d2015 | wc
382 382 8987
Chef version information:
$chef --version
Chef Development Kit Version: 0.9.0
chef-client version: 12.5.1
berks version: 4.0.1
kitchen version: 1.4.2
Ruby & Gem version info
$ ruby --version
ruby 2.1.6p336 (2015-04-13 revision 50298) [x86_64-linux]
$ gem list | grep ridley
ridley (4.3.1, 4.1.1)
I didnt provide the Berksfile/Berksfile.lock/knife.rb nor full Gemlist but I can if needed.
This is a big deal because in CentOS there seems to be a limit of ~32000 subfolders in a single directory.
Our CI environment was completely clobbered as nothing could write to the /tmp folder anymore. We've noticed that we can hit that limit in as little as 2 days.
Activity
saavedrah commentedon Mar 18, 2016
Hello,
Has somebody looked into this?
I'm having a similar issue but I don't even have ridley in my environment
thommay commentedon Oct 19, 2016
@AnalogJ is this still occurring? (sorry it's been a year, we're trying to get back in the game with berkshelf)
AnalogJ commentedon Oct 19, 2016
not 100% sure, we threw in a cronjob to delete the folders created by berkshelf in our tmp folder.
Its also our build server so we haven't upgraded our berkshelf version in a while. I'll take a look and get back to you.
thommay commentedon Oct 19, 2016
thanks!
AnalogJ commentedon Oct 19, 2016
Hey @thommay
I just verified that it is still occurring.
AnalogJ commentedon Nov 1, 2017
Any update on this? We're still seeing this..