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


Chronological Thread 
  • From: Anthony Kong < >
  • To:
  • Subject: [chef] No version specified, and no candidate version available for erlang-nox
  • Date: Sat, 8 Nov 2014 21:56:02 +1100

Hi all,

Here is my Berkshelf file


cookbook "apt"
cookbook "yum"
cookbook "rabbitmq"

cookbook "redis",

cookbook "sensu",
  :path => "../"

cookbook "monitor",

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



Archive powered by MHonArc 2.6.16.

§