1

所以我试图从一个 Puppetfile 安装很多模块(总共 66 个),并且在每安装 7-9 个模块后,进程就会挂起,或者它似乎停止工作。

我找到了一个临时解决方案来解决这个问题,但这有点痛苦。

我必须终止 r10k 进程并从 ~/.r10k/git 文件夹中删除它试图安装的模块

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://git@bitbucket.com:/bla/crashed-repository.git /home/user/Documents/Projects/repository --reference /home/ser/.r10k/git/ssh---git@bitbucket.com-7999-crashed-repository.git

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 ssh---git@bitbucket.com-7999-respository_one.git
drwxr-xr-x  7 user user 4096 ago 23 12:46 ssh---git@bitbucket.com-7999-respository_two.git
drwxr-xr-x  7 user user 4096 ago 23 12:46 ssh---git@bitbucket.com-7999-respository_three.git
drwxr-xr-x  7 user user 4096 ago 23 12:46 ssh---git@bitbucket.com-7999-respository_four.git
. 
.
.
drwxr-xr-x  7 user user 4096 ago 23 12:46 ssh---git@bitbucket.com-7999-crashed-repository.git

user@ubuntu:~/.../git$ rm -r ssh---git@bitbucket.com-7999-crashed-repository.git

然后再次运行它,直到它再次挂起,依此类推,直到安装了所有模块。

我在puppetlabs/r10k github上找到了一个线程,解释了为什么会发生这种情况,但没有解决问题。

如果有人知道如何在安装多个 puppet 模块时执行“try/catch”以便不再出现此问题,我将不胜感激。

4

0 回答 0