No version specified, and no candidate version available for erlang-nox


#1

Hi all,

Here is my Berkshelf file

Source ‘https://supermarket.getchef.com

cookbook "apt"
cookbook "yum"
cookbook “rabbitmq”

cookbook “redis”,
:git => “https://github.com/miah/chef-redis.git

cookbook “sensu”,

:git => “https://github.com/sensu/sensu-chef.git

:path => “…/”

cookbook “monitor”,
:git => “https://github.com/portertech/chef-monitor.git

I got this error when I do vagrant up.

==> default:
==> default:

==> default: Error executing action install on resource
’package[erlang-nox]’
==> default:

==> default:
==> default:
==> default: Chef::Exceptions::Package
==> default: -------------------------
==> default: No version specified, and no candidate version available for
erlang-nox
==> default:
==> default:
==> default: Resource Declaration:
==> default: ---------------------
==> default: # In
/tmp/vagrant-chef-3/chef-solo-1/cookbooks/erlang/recipes/package.rb
==> default:
==> default:
==> default:
==> default: 27: package erlpkg
==> default:
==> default: 28: package ‘erlang-dev’
==> default:
==> default:
==> default:
==> default: Compiled Resource:
==> default: ------------------
==> default: # Declared in
/tmp/vagrant-chef-3/chef-solo-1/cookbooks/erlang/recipes/package.rb:27:in
`from_file’
==> default:
==> default:
==> default:
==> default: package(“erlang-nox”) do
==> default:
==> default: action :install
==> default:
==> default: retries 0
==> default:
==> default: retry_delay 2
==> default: guard_interpreter :default
==> default: package_name “erlang-nox”
$
==> default: timeout 900
==> default: cookbook_name :erlang
==> default: recipe_name “package”
==> default: end
==> default:
==> default: [2014-11-08T08:58:18+00:00] INFO: Running queued delayed
notifications before re-raising exception
==> default: [2014-11-08T08:58:18+00:00] ERROR: Running exception handlers
==> default: [2014-11-08T08:58:18+00:00] ERROR: Exception handlers complete
==> default: [2014-11-08T08:58:18+00:00] FATAL: Stacktrace dumped to
/var/chef/cache/chef-stacktrace.out
==> default: [2014-11-08T08:58:18+00:00] ERROR: package[erlang-nox]
(erlang::package line 27) had an error: Chef::Exceptions::package: No
version specified, and no candidate version available for erlang-nox
==> default: [2014-11-08T08:58:18+00:00] FATAL:
Chef::Exceptions::ChildConvergeError: Chef run process exited
unsuccessfully (exit code 1)
Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.

The guest OS is ubuntu 13.

What cause the above error? How can I fix it?

Thanks, Tony


#2

On Saturday, November 8, 2014 at 2:56 AM, Anthony Kong wrote:

Hi all,

Here is my Berkshelf file

Source ‘https://supermarket.getchef.com

cookbook "apt"
cookbook "yum"
cookbook “rabbitmq”

cookbook “redis”,
:git => “https://github.com/miah/chef-redis.git

cookbook “sensu”,

:git => “https://github.com/sensu/sensu-chef.git

:path => “…/”

cookbook “monitor”,
:git => “https://github.com/portertech/chef-monitor.git

I got this error when I do vagrant up.

==> default:
==> default: ================================================================================
==> default: Error executing action install on resource ‘package[erlang-nox]’
==> default: ================================================================================
==> default:
==> default:
==> default: Chef::Exceptions::Package
==> default: -------------------------
==> default: No version specified, and no candidate version available for erlang-nox

This means there’s no package ‘erlang-nox’ available on your system. The package could have been renamed or replaced with something else. You might want to check the erlang cookbook’s issues to see if this has come up before and if there’s a ready-made solution.


Daniel DeLeo