= R13B-03 is needed by rabbitmq-server-3.4.3.1.noarch"-6ren"> = R13B-03 is needed by rabbitmq-server-3.4.3.1.noarch"-我正在尝试将 RabbitMQ(最新版)配置到 Fedora 20 base box(VirtualBox 提供商)上。 我的 Recipe 是这样的: config.vm.provision "ch-6ren">
gpt4 book ai didi

erlang - 无法使用 Vagrant 和 Chef Solo 在 Fedora/VirtualBox 上配置 RabbitMQ。错误 : "erlang >= R13B-03 is needed by rabbitmq-server-3.4.3.1.noarch"

转载 作者:行者123 更新时间:2023-12-02 01:41:45 29 4
gpt4 key购买 nike

我正在尝试将 RabbitMQ(最新版)配置到 Fedora 20 base box(VirtualBox 提供商)上。

我的 Recipe 是这样的:

config.vm.provision "chef_solo" do |chef|
...
chef.add_recipe "rabbitmq"
chef.add_recipe "rabbitmq::mgmt_console"
...
end

我的 metadata.rb 有:

depends 'rabbitmq', '~> 3.8.0'

我的 Berksfile 有:

source "https://supermarket.chef.io"

metadata

cookbook 'rabbitmq', '~> 3.8.0'

运行“vagrant provision”后的错误是:

==> default: Running handlers:
==> default: [2015-01-26T16:21:20+00:00] ERROR: Running exception handlers
==> default: Running handlers complete
==> default: [2015-01-26T16:21:20+00:00] ERROR: Exception handlers complete
==> default: [2015-01-26T16:21:20+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
==> default: Chef Client failed. 31 resources updated in 178.337417046 seconds
==> default: [2015-01-26T16:21:20+00:00] ERROR: rpm_package[/var/chef/cache/rabbitmq-server-3.4.3-1.noarch.rpm] (rabbitmq::default line 112) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
==> default: ---- Begin output of rpm -i /var/chef/cache/rabbitmq-server-3.4.3-1.noarch.rpm ----
==> default: STDOUT:
==> default: STDERR: warning: /var/chef/cache/rabbitmq-server-3.4.3-1.noarch.rpm: Header V4 DSA/SHA1 Signature, key ID 056e8e56: NOKEY
==> default: error: Failed dependencies:
==> default: erlang >= R13B-03 is needed by rabbitmq-server-3.4.3-1.noarch
==> default: logrotate is needed by rabbitmq-server-3.4.3-1.noarch
==> default: ---- End output of rpm -i /var/chef/cache/rabbitmq-server-3.4.3-1.noarch.rpm ----
==> default: Ran rpm -i /var/chef/cache/rabbitmq-server-3.4.3-1.noarch.rpm returned 1
==> default: [2015-01-26T16:21:21+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)

我一直假设我不需要将 erlang 声明为 metadata.rb 中的直接依赖项 - 因为它被引用为 rabbitmq cookbook 中的依赖项。我确实尝试过这样做,但结果相同。感谢您的帮助。

最佳答案

您正在尝试使用 rabbitmq.com 包进行安装,这需要一个名为“erlang”的包作为依赖项。将属性 node['erlang']['install_method'] 设置为 'esl' 以使用 Erlang 解决方案包或设置 node['rabbitmq'] ['use_distro_version'] 设置为 true 以使用 RabbitMQ 的 Fedora 包。

关于erlang - 无法使用 Vagrant 和 Chef Solo 在 Fedora/VirtualBox 上配置 RabbitMQ。错误 : "erlang >= R13B-03 is needed by rabbitmq-server-3.4.3.1.noarch",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28155767/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com