edelight/chef-mongodb

install fails within amazon web services

dyf182 opened this issue · 0 comments

For the past couple of days ( starting the 16th Aug) we've been having an issue where using the cookbook alongside opsworks where all instances within our aws stack are failing to setup correctly. Upon checking the setup logs we're seeing this:

STDOUT: Resolving cookbook dependencies...
Fetching 'mongodb' from source at .
Fetching cookbook index from http://api.berkshelf.com...
Error retrieving universe from source: http://api.berkshelf.com
[Berkshelf::APIClient::BadResponse] bad response, 301 Moved Permanently
STDERR: Unable to satisfy constraints on package apt, which does not exist, due to solution constraint (mongodb = 0.16.3). Solution constraints that may result in a constraint on apt: [(mongodb = 0.16.3) -> (apt >= 1.8.2)]
Missing artifacts: apt,yum,python
Demand that cannot be met: (mongodb = 0.16.3)
Unable to find a solution for demands: mongodb (0.16.3)

It seems that it's unable to find and resolve the dependency of mongodb 0.16.3, but looking at the source in chef supermarket im seeing the latest version present is 0.16.2 which is inconsistent to the logs that aws expects.

I've tried forking the repo and changing the version to the original 0.16.2 but it makes no difference, my knowledge of chef is limited so i may be looking in the incorrect place for a fix.