AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 653889
Accepted
Caterpillar
Caterpillar
Asked: 2014-12-21 00:51:59 +0800 CST2014-12-21 00:51:59 +0800 CST 2014-12-21 00:51:59 +0800 CST

厨师安装错误 - 在资源上执行操作“运行”时出错

  • 772

我正在尝试在 ubuntu 12.04.5 64 位上安装 chef (chef-server_11.0.4-1.ubuntu.12.04)。

安装后,当我运行“chef-server-ctl reconfigure”时出现以下错误。

让我知道如何安装它。

[2014-12-20T14:16:10+05:30] ERROR: Running exception handlers
[2014-12-20T14:16:10+05:30] ERROR: Exception handlers complete
Chef Client failed. 2 resources updated
[2014-12-20T14:16:10+05:30] FATAL: Stacktrace dumped to /opt/chef-server/embedded/cookbooks/cache/chef-stacktrace.out
[2014-12-20T14:16:10+05:30] FATAL: Mixlib::ShellOut::ShellCommandFailed: execute[/opt/chef-server/embedded/bin/chpst -u chef_server -U chef_server /opt/chef-server/embedded/bin/rabbitmqctl wait /var/opt/chef-server/rabbitmq/db/[email protected]] (chef-server::rabbitmq line 80) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '2'
---- Begin output of /opt/chef-server/embedded/bin/chpst -u chef_server -U chef_server /opt/chef-server/embedded/bin/rabbitmqctl wait /var/opt/chef-server/rabbitmq/db/[email protected] ----
STDOUT: Waiting for rabbit@localhost ...
pid is 6031 ...
STDERR: Error: process_not_running
---- End output of /opt/chef-server/embedded/bin/chpst -u chef_server -U chef_server /opt/chef-server/embedded/bin/rabbitmqctl wait /var/opt/chef-server/rabbitmq/db/[email protected] ----
Ran /opt/chef-server/embedded/bin/chpst -u chef_server -U chef_server /opt/chef-server/embedded/bin/rabbitmqctl wait /var/opt/chef-server/rabbitmq/db/[email protected] returned 2

重启 Rabbitmq 服务器后更新错误

> [2014-12-23T09:55:15+05:30] ERROR: Running exception handlers
> [2014-12-23T09:55:15+05:30] ERROR: Exception handlers complete Chef
> Client failed. 8 resources updated [2014-12-23T09:55:15+05:30] FATAL:
> Stacktrace dumped to
> /opt/chef-server/embedded/cookbooks/cache/chef-stacktrace.out
> [2014-12-23T09:55:15+05:30] FATAL:
> Mixlib::ShellOut::ShellCommandFailed: execute[verify-system-status]
> (chef-server::bootstrap line 21) had an error:
> Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with
> [0], but received '7'
> ---- Begin output of curl -sf http://localhost:8000/_status ---- STDOUT: STDERR:
> ---- End output of curl -sf http://localhost:8000/_status ---- Ran curl -sf http://localhost:8000/_status returned 7
ubuntu-12.04
  • 3 3 个回答
  • 5235 Views

3 个回答

  • Voted
  1. Best Answer
    Dave Holland
    2014-12-23T09:45:10+08:002014-12-23T09:45:10+08:00

    Ubuntu 上的 chef 安装存在一个已知问题。在重新配置期间,它尝试启动并连接到 rabbitmq,但是 rabbitmq 服务器已经在运行,所以启动失败。

    可能发生的另一件事是 /etc/hosts 文件中没有 localhost 条目。

    最有可能的是已经运行的rabbitmq,在这种情况下试试这个:

    /etc/init.d/rabbitmq-server stop && chef-server-ctl reconfigure
    

    如果这不起作用,请检查以确保 /etc/hosts 中存在以下内容:

    127.0.0.1 localhost
    
    • 3
  2. savamane
    2014-12-29T15:23:56+08:002014-12-29T15:23:56+08:00

    nginx 可能没有启动。这些的输出是什么:

    chef-server-ctl status lsof -i:8000 chef-server-ctl tail

    我不记得Ubuntu是否带有lsof,所以你可能需要安装它apt-get install lsof -y

    • 0
  3. Harsha Biyani
    2016-11-12T01:11:48+08:002016-11-12T01:11:48+08:00

    我为这个问题做了很多尝试。我做了很多谷歌搜索。最后我得到了1个解决方案。

    RabbitMQ 服务在5672端口上运行。但是这个端口被其他一些服务使用。5672因此,我使用以下命令运行检查是否有任何服务在端口上运行:

    netstat -nltp | grep 5672
    

    我使用以下命令终止了具有端口 5672 的服务:

    sudo kill `sudo lsof -t -i:5672`
    

    然后我sudo chef-server-ctl reconfigure再次运行它,它按预期工作。

    • -1

相关问题

  • 周一早上的错误:sudo rm -rf --no-preserve-root /

  • UCEProtect Level 3 - 电子邮件进入垃圾邮件

  • 启用 mod ssl 后,apache 停止侦听端口 80

  • 使用 virtmanager 和 GUI 安装和配置 xen

  • Openstack 多节点:单独的 Glance 和 Keystone 机器

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve