r10k : "Bad file descriptor"

asked 2017-08-07 04:32:08 -0600

craymore gravatar image

updated 2017-08-07 04:36:29 -0600

Hi dear puppeteers !

I have been facing a random issue for quite a while now during the automated deployments performed on my puppet master(s) via r10k :

The deployment of some modules ( referenced in the Puppetfile used by r10k ), would fail randomly with a vague error label "Bad file descriptor"

Here's an r10k log sample of one of the failed deployment :

listing content of file [ /var/log/puppetlabs/puppet/r10k_log_07082017112221_32678 ]         
[ BEGINNING ]...............................................         
[ START ] 07-08-2017 @ 11:22:21                                      
[2017-08-07 11:22:32 - DEBUG] Fetching 'http://dev.*********/gitblit/r/puppet/controlrepos/vbackbone_intfgw.git' to determine current branches.         
[2017-08-07 11:22:32 - INFO] Deploying environment /etc/puppetlabs/code/environments/MYREPO         
[2017-08-07 11:22:32 - WARN] Overwriting local modifications to /etc/puppetlabs/code/environments/MYREPO         
[2017-08-07 11:22:32 - DEBUG] Updating /etc/puppetlabs/code/environments/MYREPO to cm         
[2017-08-07 11:22:32 - INFO] Environment MYREPO is now at de498eb213bd0c4521b533a823141adb686689da         
[2017-08-07 11:22:32 - INFO] Deploying Puppetfile content /etc/puppetlabs/code/environments/MYREPO/modules/hiera 
====
    [2017-08-07 11:22:32 - ERROR] Bad file descriptor - Bad file descriptor  
====
[2017-08-07 11:22:32 - INFO] Deploying Puppetfile content /etc/puppetlabs/code/environments/MYREPO/modules/common         
[2017-08-07 11:22:32 - WARN] Overwriting local modifications to /etc/puppetlabs/code/environments/MYREPO/modules/common         
[2017-08-07 11:22:32 - DEBUG] Updating /etc/puppetlabs/code/environments/MYREPO/modules/common to 58033c641b32006e900abbcc77763c1bb920bdc3   
[...]

Seaching a bit for this issue often leads to git ( which, in this case, is spawned by r10k ), but I haven't been able to troubleshoot this properly ( all the articles I've seen so far mention an issue when using the git push command, but afaik, r10k does not run any push commands ... )

Has anyone ever encounterd such issue ?

Thanks beforehand !

edit retag flag offensive close merge delete