厨房误差步骤

时间:2016-03-06 06:26:17

标签: vagrant chef test-kitchen musicbrainz

我正在尝试设置listenbrainz服务器https://github.com/metabrainz/listenbrainz-server/,但我很少/没有关于厨师/ Vagrant设置的知识。 我注意到日志文件中有2个错误

https://gist.github.com/samithaj/dfb99dac67ca9b52ce9d

  1. 错误:无法在数据包中列出数据包项目:" ssh_known_hosts"
  2. 厨房:: ActionFailed 消息:SSH已退出(1)以获取命令:[sh -c'
  3. 我尝试使用Google搜索,但结果是针对问题的,因此我无法找到与我的设置相关的解决方案

1 个答案:

答案 0 :(得分:0)

日志输出中的错误为here

I, [2016-03-06T11:43:36.560559 #6908]  INFO -- development-ubuntu-1404: ---- Begin output of ["useradd", "-g", "sysadmin", "-d", "/home/opscenter", "opscenter"] ----
I, [2016-03-06T11:43:36.564470 #6908]  INFO -- development-ubuntu-1404: STDOUT: 
I, [2016-03-06T11:43:36.566426 #6908]  INFO -- development-ubuntu-1404: STDERR: useradd: existing lock file /etc/subuid.lock without a PID
I, [2016-03-06T11:43:36.602598 #6908]  INFO -- development-ubuntu-1404: useradd: cannot lock /etc/subuid; try again later.
I, [2016-03-06T11:43:36.607486 #6908]  INFO -- development-ubuntu-1404: ---- End output of ["useradd", "-g", "sysadmin", "-d", "/home/opscenter", "opscenter"] ----
I, [2016-03-06T11:43:36.612374 #6908]  INFO -- development-ubuntu-1404: Ran ["useradd", "-g", "sysadmin", "-d", "/home/opscenter", "opscenter"] returned 16
I, [2016-03-06T11:43:37.032755 #6908]  INFO -- development-ubuntu-1404: [2016-03-06T06:13:41+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
E, [2016-03-06T11:43:37.339132 #6908] ERROR -- development-ubuntu-1404: Converge failed on instance <development-ubuntu-1404>.

操作系统锁定文件存在问题。我怀疑这是一个短暂的错误,我建议删除你的虚拟机并构建一个新的虚拟机:

kitchen destroy
kitchen converge