MangoDb installation on AWS ec2 instances


#1

Hi guys

i’m just out of college doin internship and new bee to AWS and mongoDB sorry if
i’m asking silly question.

i tried to Host mongoDB on AWS ec2 instances [used AMI:ami-1bf9de5e] through
chef-solo.
my runlist:

recipe[mongodb::10gen_repo]
recipe[mongodb]

please help me out in Hosting Mongo DB successfully on AWS and OpenStack

Package mongo-10gen-server-2.4.9-mongodb_1.x86_64.rpm is not signed
[2014-01-16T14:35:49+00:00] DEBUG: ---- End output of yum -d0 -e0 -y install
mongo-10gen-server-2.4.9-mongodb_1 ----
[2014-01-16T14:35:49+00:00] DEBUG: Ran yum -d0 -e0 -y install
mongo-10gen-server-2.4.9-mongodb_1 returned 1

================================================================================
Error executing action install on resource ‘package[mongo-10gen-server]’

Chef::Exceptions::Exec

returned 1, expected 0
---- Begin output of ----
STDOUT: STDERR:

Package mongo-10gen-server-2.4.9-mongodb_1.x86_64.rpm is not signed
---- End output of ----

Resource Declaration:

In /var/chef/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/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.9-mongodb_1"
cookbook_name :mongodb
recipe_name "default"
end

[2014-01-16T14:35:49+00:00] INFO: Running queued delayed notifications before
re-raising exception
[2014-01-16T14:35:49+00:00] DEBUG: Re-raising exception: Chef::Exceptions::Exec

  • package[mongo-10gen-server] (mongodb::default line 22) had an error:
    Chef::Exceptions::Exec: returned 1, expected 0
    ---- Begin output of ----
    STDOUT: STDERR:

Package mongo-10gen-server-2.4.9-mongodb_1.x86_64.rpm is not signed
---- End output of ----


#2

On Monday, January 20, 2014 at 2:00 AM, venkiain@gmail.com wrote:

================================================================================
Error executing action install on resource ‘package[mongo-10gen-server]’

Chef::Exceptions::Exec

returned 1, expected 0
---- Begin output of ----
STDOUT: STDERR:

Package mongo-10gen-server-2.4.9-mongodb_1.x86_64.rpm is not signed
---- End output of ----

That’s your problem right there, the RPM isn’t signed. You’ll need to either get a signed package or configure yum/rpm to tolerate unsigned packages.


Daniel DeLeo


#3

Hey Daniel,

Please have a look at this related issue on Github:
https://github.com/edelight/chef-mongodb/issues/46
The solution is to pass a “–nogpgcheck” option

Best,
Ritesh

On Thu, Jan 23, 2014 at 2:49 AM, Daniel DeLeo dan@kallistec.com wrote:

On Monday, January 20, 2014 at 2:00 AM, venkiain@gmail.com wrote:

================================================================================
Error executing action install on resource ‘package[mongo-10gen-server]’

================================================================================

Chef::Exceptions::Exec

returned 1, expected 0
---- Begin output of ----
STDOUT: STDERR:

Package mongo-10gen-server-2.4.9-mongodb_1.x86_64.rpm is not signed
---- End output of ----

That’s your problem right there, the RPM isn’t signed. You’ll need to
either get a signed package or configure yum/rpm to tolerate unsigned
packages.


Daniel DeLeo