So i'm trying to install a lot of module (66 in total) from a single Puppetfile and after every 7-9 modules installed the process hang up or it seem that it's stops working.
I found a temporal solution tot this problem, but it's a bit of a pain.
I have to kill the r10k process and remove the module that it was trying to install from the ~/.r10k/git folder
user@ubuntu:~$ ps -aux | grep r10k
user 20294 0.1 0.1 234032 30728 pts/1 Sl+ 13:03 0:00 /usr/bin/ruby2.5 /home/user/.ruby/bin/r10k puppetfile install -v
user 27143 0.0 0.0 26028 4004 ? Ss 13:15 0:00 git clone ssh://[email protected]:/bla/crashed-repository.git /home/user/Documents/Projects/repository --reference /home/ser/.r10k/git/[email protected]
user@ubuntu:~$ kill 20294
user@ubuntu:~$ kill 27143
user@ubuntu:~$ cd ~/.r10k/git/
user@ubuntu:~/.../git$ ls -la
total 8
drwxr-xr-x 37 user user 4096 ago 23 13:18 .
drwxr-xr-x 3 user user 4096 ago 23 12:46 ..
drwxr-xr-x 7 user user 4096 ago 23 12:46 [email protected]_one.git
drwxr-xr-x 7 user user 4096 ago 23 12:46 [email protected]_two.git
drwxr-xr-x 7 user user 4096 ago 23 12:46 [email protected]_three.git
drwxr-xr-x 7 user user 4096 ago 23 12:46 [email protected]_four.git
.
.
.
drwxr-xr-x 7 user user 4096 ago 23 12:46 [email protected]
user@ubuntu:~/.../git$ rm -r [email protected]
And after that run it again until it hang up again, and so on until all the modules are installed.
I've found a thread on the puppetlabs/r10k github that explains why this happens, but no solution to the problem.
If anyone know how to do a "try/catch" while installing multiple puppet modules so that this issue doesn't show up anymore i'll be very grateful.