厨师重新configuration错误,防止成功运行

我对厨师很新,现在想弄清楚为什么以下两个错误阻止了我成功安装。

Recipe: private-chef::redis_lb * template[/var/opt/opscode/redis_lb/etc/redis.conf] action create (up to date) * template[/etc/opscode/logrotate.d/redis_lb] action create (up to date) * ruby_block[set_lb_redis_values] action create ================================================================================ Error executing action `create` on resource 'ruby_block[set_lb_redis_values]' ================================================================================ Redis::CannotConnectError ------------------------- Error connecting to Redis on 127.0.0.1:16379 (ECONNREFUSED) 

还有第二个错误:

 Recipe: private-chef::partybus * ruby_block[migration-level file sanity check] action run ================================================================================ Error executing action `run` on resource 'ruby_block[migration-level file sanity check]' ================================================================================ RuntimeError ------------ ERROR: The /var/opt/opscode/upgrades/migration-level file is missing or corrupt! Please read http://docs.opscode.com/upgrade_server_ha_notes.html#pre-flight-check and correct this file before proceeding * If this is a new installation: run: "cd /opt/opscode/embedded/service/partybus ; /opt/opscode/embedded/bin/bundle exec bin/partybus init" * If you have upgraded a previous installation: copy the /var/opt/opscode/upgrades/migration-level file from a not-yet-upgraded FrontEnd node Error message No such file or directory - /var/opt/opscode/upgrades/migration-level 

请分享你对这些问题的想法和想法。

谢谢

我看到你正在尝试安装企业厨师包。 你所看到的是我们在设置时遇到的两个错误(完全披露,我是厨师的工程师)。

在我们设置redis的方式中,第一个出现在redis启动和configuration可用时之间的竞争状态。 第二个重新configuration修复了这个问题,我相信,因为当redis尝试启动时configuration文件可用。

第二个问题是企业厨师升级过程中的一个错误。 错误实际上给你的工作。 假设这是一个新的安装,你需要运行:

cd /opt/opscode/embedded/service/partybus ; /opt/opscode/embedded/bin/bundle exec bin/partybus init cd /opt/opscode/embedded/service/partybus ; /opt/opscode/embedded/bin/bundle exec bin/partybus init ,然后再次运行reconfigure。

鉴于您尝试了企业厨师,您也可以联系支持寻求帮助。 这两个问题都应该在Chef服务器的下一个版本中解决。 我的道歉,他们已经造成你的问题。

我有一个类似的问题在全新安装。 我跑了netstat -tulpn | grep 16379,它回来了一个PID。 这原来是从以前的安装剩余的一些。 杀死该进程,并运行chef-server-ctl restart / status,这很好。