sous-chefs / sc-mongodb

Development repository for the sc-mongodb cookbook
https://supermarket.chef.io/cookbooks/sc-mongodb
Apache License 2.0
75 stars 91 forks source link

No candidate version available for mongodb-org #209

Open akashdotsrivastava opened 6 years ago

akashdotsrivastava commented 6 years ago

Cookbook version

1.2.0

Chef-client version

14.4.56

Platform Details

Ubuntu 18.04, ec2, t2.micro

Scenario:

Trying to install mongodb using the cookbook

Steps to Reproduce:

Just include the mongodb install recipe

Expected Result:

mongodb should be smoothly installed

Actual Result:

This is the error stacktrace

[myserver.com] * apt_package[mongodb-org] action install
[myserver.com] [2018-10-03T06:57:51+00:00] INFO: Processing apt_package[mongodb-org] action install (sc-mongodb::install line 114)
[myserver.com]
[myserver.com]
[myserver.com]
[myserver.com] * No candidate version available for mongodb-org
[myserver.com]
[myserver.com]
[myserver.com]
[myserver.com] ================================================================================
[myserver.com]
[myserver.com]
[myserver.com] Error executing action `install` on resource 'apt_package[mongodb-org]'
[myserver.com]
[myserver.com]
[myserver.com] ================================================================================
[myserver.com]
[myserver.com]
[myserver.com]
[myserver.com]
[myserver.com]
[myserver.com] Chef::Exceptions::Package
[myserver.com]
[myserver.com]
[myserver.com] -------------------------
[myserver.com]
[myserver.com]
[myserver.com] No candidate version available for mongodb-org
[myserver.com]
[myserver.com]
[myserver.com]
[myserver.com]
[myserver.com]
[myserver.com] Resource Declaration:
[myserver.com]
[myserver.com]
[myserver.com] ---------------------
[myserver.com]
[myserver.com]
[myserver.com] # In /tmp/chefcache/cookbooks/sc-mongodb/recipes/install.rb
[myserver.com]
[myserver.com]
[myserver.com]
[myserver.com]
[myserver.com]
[myserver.com]
[myserver.com] 114: package node['mongodb']['package_name'] do
[myserver.com]
[myserver.com]
[myserver.com]
[myserver.com] 115:   options node['mongodb']['packager_options']
[myserver.com]
[myserver.com]
[myserver.com]
[myserver.com] 116:   action :install
[myserver.com]
[myserver.com]
[myserver.com]
[myserver.com] 117:   version package_version
[myserver.com]
[myserver.com]
[myserver.com]
[myserver.com] 118:   not_if { node['mongodb']['install_method'] == 'none' }
[myserver.com]
[myserver.com]
[myserver.com]
[myserver.com] 119: end
[myserver.com]
[myserver.com]
[myserver.com]
[myserver.com] 120:
[myserver.com]
[myserver.com]
[myserver.com]
[myserver.com]
[myserver.com]
[myserver.com]
[myserver.com] Compiled Resource:
[myserver.com]
[myserver.com]
[myserver.com] ------------------
[myserver.com]
[myserver.com]
[myserver.com] # Declared in /tmp/chefcache/cookbooks/sc-mongodb/recipes/install.rb:114:in `from_file'
[myserver.com]
[myserver.com]
[myserver.com]
[myserver.com]
[myserver.com]
[myserver.com]
[myserver.com] apt_package("mongodb-org") do
[myserver.com]
[myserver.com]
[myserver.com]
[myserver.com]   package_name "mongodb-org"
[myserver.com]
[myserver.com]
[myserver.com]
[myserver.com]   action [:install]
[myserver.com]
[myserver.com]
[myserver.com]
[myserver.com]   default_guard_interpreter :default
[myserver.com]
[myserver.com]
[myserver.com]
[myserver.com]   declared_type :package
[myserver.com]
[myserver.com]
[myserver.com]
[myserver.com]   cookbook_name "sc-mongodb"
[myserver.com]
[myserver.com]
[myserver.com]
[myserver.com]   recipe_name "install"
[myserver.com]
[myserver.com]
[myserver.com]
[myserver.com]   options ["-o", "Dpkg::Options::=--force-confold", "--force-yes"]
[myserver.com]
[myserver.com]
[myserver.com]
[myserver.com]   version "3.6.1"
[myserver.com]
[myserver.com]
[myserver.com]
[myserver.com]   not_if { #code block }
[myserver.com]
[myserver.com]
[myserver.com]
[myserver.com] end
[myserver.com]
[myserver.com]
[myserver.com]
[myserver.com]
[myserver.com]
[myserver.com]
[myserver.com] System Info:
[myserver.com]
[myserver.com]
[myserver.com] ------------
[myserver.com]
[myserver.com]
[myserver.com] chef_version=14.4.56
[myserver.com]
[myserver.com]
[myserver.com]
[myserver.com] platform=ubuntu
[myserver.com]
[myserver.com]
[myserver.com]
[myserver.com] platform_version=18.04
[myserver.com]
[myserver.com]
[myserver.com]
[myserver.com] ruby=ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux-gnu]
[myserver.com]
[myserver.com]
[myserver.com]
[myserver.com] program_name=/usr/local/bin/chef-client
[myserver.com]
[myserver.com]
[myserver.com]
[myserver.com] executable=/usr/local/bin/chef-client
[myserver.com]
[myserver.com]
[myserver.com]
[myserver.com]
andromedakah commented 5 years ago

got the same issue on Centos 7 platform_version=7.5.1804 ! seek for help

xorima commented 5 years ago

What do you get on a yum info mongodb-org

vibhaG commented 5 years ago

I am seeing the same issue in Oracle linux. To add some information- I had done a manual 4.0.9 enterprise install previously using a yum repo. I then tried to use this cookbook to automate. when i manualy do a yum install for the repo geneated by this cookbook (mongodb-org)- it conflicts with my existing enterprise install . I wonder if there is a similar conflict here. Related question - how do i instruct the cookbook to install 4.0.9-enterprise. I tried [mongodb][package-version]=4.0.9-ent but did that still seems to pull latest release- community

github-actions[bot] commented 4 years ago

Marking stale due to inactivity. Remove stale label or comment or this will be closed in 7 days. Alternatively drop by the #sous-chefs channel on the Chef Community Slack and we'll be happy to help! Thanks, Sous-Chefs.