I'm having issues installing mongodb version 2.4.6 on an Amazon EC2 Linux with chef.
I'm using the popular mongodb chef cookbook
I've taken measures to ensure that my runlist specifies recipe[mongodb::10gen_repo] before recipe[mongodb::default].
I am getting the following error though:
Recipe: mongodb::10gen_repo
* yum_repository[10gen] action addRecipe: <Dynamically Defined Resource>
* template[/etc/yum.repos.d/10gen.repo] action create (up to date)
* execute[yum-makecache-10gen] action nothing (skipped due to action :nothing)
* ruby_block[yum-cache-reload-10gen] action nothing (skipped due to action :nothing)
(up to date)
Recipe: mongodb::default
* package[mongo-10gen-server] action install
================================================================================
Error executing action `install` on resource 'package[mongo-10gen-server]'
================================================================================
Chef::Exceptions::Exec
----------------------
returned 1, expected 0
Resource Declaration:
---------------------
# In /var/chef/cache/cookbooks/mongodb/recipes/default.rb
22: package node[:mongodb][:package_name] do
23: action :install
24: version node[:mongodb][:package_version]
25: end
26:
Compiled Resource:
------------------
# Declared in /var/chef/cache/cookbooks/mongodb/recipes/default.rb:22:in `from_file'
package("mongo-10gen-server") do
action [:install]
retries 0
retry_delay 2
package_name "mongo-10gen-server"
version "2.4.6-mongodb_1"
cookbook_name "mongodb"
recipe_name "default"
end
[2013-12-26T09:22:05+00:00] ERROR: Running exception handlers
[2013-12-26T09:22:05+00:00] ERROR: Exception handlers complete
[2013-12-26T09:22:05+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
Chef Client failed. 5 resources updated
[2013-12-26T09:22:05+00:00] ERROR: package[mongo-10gen-server] (mongodb::default line 22) had an error: Chef::Exceptions::Exec: returned 1, expected 0
[2013-12-26T09:22:05+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
Where have you defined node[:mongodb][:package_name]?
In order to use that cookbook, I believe you need to set that attribute.
Related
I cloned the kubernetes repo and installed all the required packages to my mac but whenever I run build/run.sh make all or build/run.sh test I'm getting the following error:
Call stack:
1: /go/src/k8s.io/kubernetes/hack/lib/golang.sh:857 kube::golang::build_binaries(...)
2: hack/make-rules/build.sh:27 main(...)
Exiting with status 1
make: *** [Makefile:93: all] Error 1
!!! [0120 11:32:00] Call tree:
!!! [0120 11:32:00] 1: build/../build/common.sh:523 kube::build::run_build_command_ex(...)
!!! [0120 11:32:00] 2: build/run.sh:39 kube::build::run_build_command(...)
!!! Error in build/../build/common.sh:598
Error in build/../build/common.sh:598. '"${docker_cmd[#]}" "${cmd[#]}"' exited with status 2
Call stack:
1: build/../build/common.sh:598 kube::build::run_build_command_ex(...)
2: build/../build/common.sh:523 kube::build::run_build_command(...)
3: build/run.sh:39 main(...)
Exiting with status 1
Any idea what I'm doing wrong?
Thank you.
Support for building kubernetes using go version 1.13 is under work
Try with go version above 1.12.9 but less than 1.13.
i took a cookbook from github and am running chef-client. it gives me the error recipe not found but if i run other recipes from that cookbook its runs fine
root#vagrant-ubuntu-trusty-64:~# chef-client
Starting Chef Client, version 12.16.42
resolving cookbooks for run list: ["task_postgis::postgre_extension"]
Synchronizing Cookbooks:
- task_postgis (0.1.0)
- database (6.1.1)
- postgresql (5.1.0)
- apt (5.0.0)
- compat_resource (12.16.2)
- build-essential (7.0.2)
- seven_zip (2.0.2)
- windows (2.1.1)
- ohai (4.2.2)
- mingw (1.2.4)
- openssl (6.0.0)
Installing Cookbook Gems:
Compiling Cookbooks...
[2016-12-05T10:04:51+00:00] WARN: Chef::Provider::AptRepository already exists! Cannot create deprecation class for LWRP provider apt_repository from cookbook apt
[2016-12-05T10:04:52+00:00] WARN: AptRepository already exists! Deprecation class overwrites Custom resource apt_repository from cookbook apt
================================================================================
Recipe Compile Error
Chef::Exceptions::RecipeNotFound
could not find recipe setup_extensions for cookbook postgresql
Cookbook Trace:
/var/chef/cache/cookbooks/task_postgis/recipes/postgre_extension.rb:1:in `from_file'
Relevant File Content:
/var/chef/cache/cookbooks/task_postgis/recipes/postgre_extension.rb:
1>> include_recipe 'postgresql::setup_extensions'
2: # install extensions to database
3: postgresql_extension "postgis" do
4: database "mydb"
5: end
6:
7: #postgresql_language "plpgsql" do
8: # database "mydb"
9: #end
10:
Platform:
x86_64-linux
Running handlers:
[2016-12-05T10:04:52+00:00] ERROR: Running exception handlers
Running handlers complete
[2016-12-05T10:04:52+00:00] ERROR: Exception handlers complete
Chef Client failed. 0 resources updated in 14 seconds
[2016-12-05T10:04:53+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2016-12-05T10:04:53+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2016-12-05T10:04:53+00:00] ERROR: could not find recipe setup_extensions for cookbook postgresql
[2016-12-05T10:04:53+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
There is no setup_extensions recipe in community postgresql cookbook. I'm not sure if there ever was such recipe. Where did you get this snippet?
Testing Orion Context Broker GE in FIWARE Labs, using a new blueprint template with just orion 0.9.1 software in the tier (tested in centos and ubuntu), it does not work.
After launching a new template instance and entering into the virtual machine:
[root#orion63-orion1-1-005760 ~]# cat /etc/redhat-release
CentOS release 6.3 (Final)
[root#orion63-orion1-1-005760 ~]# chef-client
Starting Chef Client, version 11.14.6
resolving cookbooks for run list: ["orion-dbcluster::0.8.1_install"]
Synchronizing Cookbooks:
- apt
- yum
- orion-dbcluster
Compiling Cookbooks...
================================================================================
Recipe Compile Error in /var/cache/chef/cookbooks/orion-dbcluster/recipes/0.8.1_install.rb
================================================================================
NoMethodError
-------------
undefined method `[]' for nil:NilClass
Cookbook Trace:
---------------
/var/cache/chef/cookbooks/orion-dbcluster/recipes/0.8.1_install.rb:10:in `from_file'
Relevant File Content:
----------------------
/var/cache/chef/cookbooks/orion-dbcluster/recipes/0.8.1_install.rb:
3: package node[:oriondbcluster][:package_name] do
4: version "0.8.1-dev"
5: action :install
6: end
7:
8: shardnode = search(
9: :node,
10>> "mongodb_cluster_name:#{node['mongodb']['cluster_name']} AND \
11: recipes:mongodbshard\\:\\:2.2.3_install AND \
12: chef_environment:#{node.chef_environment}"
13: )
14:
15:
16: # context init
17: template "/opt/contextini.sh" do
18: action :create
19: source "contextbroker.init.erb"
Running handlers:
Running handlers complete
Chef Client failed. 0 resources updated in 4.055387918 seconds
Yes. It was an old version. If you want to use the newer version, you should create again the blueprint template with the new orion version. In addition, you can try to execute chef-client in your VM. The older versions should be linked now to the newer ones, to avoid this kind of errors. Sorry for any incovenience
I cannot deploy a nodejs app with application & application_nodejs cookbook.
My environment :
Chef 11.12.2
Application cookbook : 4.1.4
Application_nodejs cookbook : 2.0.1
Ubuntu : 12.04 LTS
Full error :
"[2014-06-02T10:51:51+00:00] INFO: Running queued delayed notifications before re-raising exception
[2014-06-02T10:51:51+00:00] ERROR: Running exception handlers
[2014-06-02T10:51:51+00:00] ERROR: Exception handlers complete
[2014-06-02T10:51:51+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2014-06-02T10:51:51+00:00] ERROR: deploy_revision(xxxx) had an error: NoMethodError: undefined method `owner' for Chef::Resource::DeployRevision
[2014-06-02T10:51:51+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)"
Any idea?
It seems like you maybe making a mistake in passing in an empty value. Check that "owner" is actually set with the right value and not a nil.
i'm trying to install the gitlab-vagrant-vm from these repository: https://github.com/gitlabhq/gitlab-vagrant-vm
if i'm running
bundle exec rake gitlab:test it runs the test with all it's cases and checks.
but the summary gives me following lines of error.
Error summary:
Errors (1)
Project Issue Tracker :: I set the issue tracker to "Redmine" :: And change the issue tracker to "Redmine"
Steps Summary: (1379) Successful, (0) Undefined, (0) Pending, (0) Failed, (1) Error
Coverage report generated for RSpec to /vagrant/gitlabhq/coverage. 4937 / 7059 LOC (69.94%) covered.
rake aborted!
Command failed with status (1): [/opt/rbenv/versions/2.0.0-p247/bin/ruby -S...]
Tasks: TOP => spinach
(See full trace by running task with --trace)
rake aborted!
rake spinach failed!
/vagrant/gitlabhq/lib/tasks/gitlab/test.rake:15:in `block (3 levels) in '
/vagrant/gitlabhq/lib/tasks/gitlab/test.rake:12:in `each'
/vagrant/gitlabhq/lib/tasks/gitlab/test.rake:12:in `block (2 levels) in '
Tasks: TOP => gitlab:test
(See full trace by running task with --trace)
vagrant#precise32:/vagrant/gitlabhq$
what's this error about, and how to fix it? i really want to work with gitlab, and trying for several days now...
i am using:
osx 10.9 with server 3
vagrant 1.3.5
virtualbox 4.3
in the vagrant vm i ran "apt-get update / upgrade" to get the latest ubuntu
greetz!