Skip to content

Instantly share code, notes, and snippets.

@rchampourlier
Created August 9, 2012 07:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rchampourlier/3302126 to your computer and use it in GitHub Desktop.
Save rchampourlier/3302126 to your computer and use it in GitHub Desktop.
librarian-chef failing with "Cheffile and Cheffile.lock are out of sync!"
site "http://community.opscode.com/api/v1"
##
# Base
#
cookbook "apt"
cookbook 'build-essential'
cookbook 'git'
##
# Ruby
#
cookbook 'ruby_build',
:git => 'https://github.com/fnichol/chef-ruby_build.git',
:ref => 'v0.6.2'
cookbook 'rbenv',
:git => 'https://github.com/fnichol/chef-rbenv',
:ref => 'v0.6.8'
cookbook 'ruby_stack',
:git => 'https://github.com/rchampourlier/chef_ruby_stack',
:ref => 'master'
##
# Databases
#
cookbook 'database'
cookbook 'postgresql',
:git => 'https://github.com/opscode-cookbooks/postgresql.git',
:ref => :master
cookbook 'mongodb'
Conscious-MacBook:machines romain$ librarian-chef install --verbose
[Librarian] Ruby Version: 1.9.3
[Librarian] Ruby Platform: x86_64-darwin11.4.0
[Librarian] Rubygems Version: 1.8.23
[Librarian] Librarian Version: 0.0.24
[Librarian] Librarian Adapter: chef
[Librarian] Project: /Users/romain/Documents/Dev/_cultimots/cultimots-backend-web/machines
[Librarian] Specfile: Cheffile
[Librarian] Lockfile: Cheffile.lock
[Librarian] Git: /usr/bin/git
[Librarian] Git Version: git version 1.7.7.5 (Apple Git-26)
[Librarian] Git Environment Variables:
[Librarian] (empty)
[Librarian] Pre-Cached Sources:
[Librarian] [:site, "http://community.opscode.com/api/v1", {}]
[Librarian] [:git, "https://github.com/opscode-cookbooks/postgresql.git", {}]
[Librarian] [:git, "https://github.com/fnichol/chef-rbenv", {:ref=>"v0.6.8"}]
[Librarian] [:git, "https://github.com/fnichol/chef-ruby_build.git", {:ref=>"v0.6.2"}]
[Librarian] [:git, "https://github.com/rchampourlier/chef_ruby_stack", {}]
[Librarian] Post-Cached Sources:
[Librarian] [:site, "http://community.opscode.com/api/v1", {}]
[Librarian] [:git, "https://github.com/opscode-cookbooks/postgresql.git", {}]
[Librarian] [:git, "https://github.com/fnichol/chef-rbenv", {:ref=>"v0.6.8"}]
[Librarian] [:git, "https://github.com/fnichol/chef-ruby_build.git", {:ref=>"v0.6.2"}]
[Librarian] [:git, "https://github.com/rchampourlier/chef_ruby_stack", {}]
[Librarian] [:git, "https://github.com/rchampourlier/chef_ruby_stack", {:ref=>"master"}]
[Librarian] [:git, "https://github.com/opscode-cookbooks/postgresql.git", {:ref=>:master}]
[Librarian] Analyzing spec and lock:
[Librarian] Removed:
[Librarian] ExplicitRemoved:
[Librarian] Added:
[Librarian] NonMatchingAdded:
[Librarian] Changed:
[Librarian] postgresql
[Librarian] DeepKeep:
[Librarian] apt
[Librarian] build-essential
[Librarian] database
[Librarian] git
[Librarian] mongodb
[Librarian] rbenv
[Librarian] ruby_build
[Librarian] ruby_stack
[Librarian] ShallowStrip:
[Librarian] postgresql
[Librarian] Scheduling apt (>= 0) <http://community.opscode.com/api/v1>
[Librarian] Scheduling build-essential (>= 0) <http://community.opscode.com/api/v1>
[Librarian] Scheduling git (>= 0) <http://community.opscode.com/api/v1>
[Librarian] Scheduling ruby_build (>= 0) <https://github.com/fnichol/chef-ruby_build.git#v0.6.2>
[Librarian] Scheduling rbenv (>= 0) <https://github.com/fnichol/chef-rbenv#v0.6.8>
[Librarian] Scheduling ruby_stack (>= 0) <https://github.com/rchampourlier/chef_ruby_stack#master>
[Librarian] Scheduling database (>= 0) <http://community.opscode.com/api/v1>
[Librarian] Scheduling postgresql (>= 0) <https://github.com/opscode-cookbooks/postgresql.git#master>
[Librarian] Scheduling mongodb (>= 0) <http://community.opscode.com/api/v1>
[Librarian] Scheduling chef_handler (>= 0.0.0) <http://community.opscode.com/api/v1>
[Librarian] Scheduling openssl (>= 0.0.0) <http://community.opscode.com/api/v1>
[Librarian] Scheduling windows (>= 0.0.0) <http://community.opscode.com/api/v1>
[Librarian] Scheduling aws (>= 0.0.0) <http://community.opscode.com/api/v1>
[Librarian] Scheduling mysql (>= 1.2.0) <http://community.opscode.com/api/v1>
[Librarian] Scheduling postgresql (>= 0.0.0) <https://github.com/opscode-cookbooks/postgresql.git#master>
[Librarian] Scheduling xfs (>= 0.0.0) <http://community.opscode.com/api/v1>
[Librarian] Scheduling dmg (>= 0.0.0) <http://community.opscode.com/api/v1>
[Librarian] Scheduling runit (>= 0.0.0) <http://community.opscode.com/api/v1>
[Librarian] Scheduling yum (>= 0.0.0) <http://community.opscode.com/api/v1>
[Librarian] Scheduling apt (>= 0.0.0) <http://community.opscode.com/api/v1>
[Librarian] Resolving apt (>= 0) <http://community.opscode.com/api/v1>
[Librarian] Accords with all prior constraints
[Librarian] Resolving build-essential (>= 0) <http://community.opscode.com/api/v1>
[Librarian] Accords with all prior constraints
[Librarian] Resolving git (>= 0) <http://community.opscode.com/api/v1>
[Librarian] Accords with all prior constraints
[Librarian] Resolving ruby_build (>= 0) <https://github.com/fnichol/chef-ruby_build.git#v0.6.2>
[Librarian] Accords with all prior constraints
[Librarian] Resolving rbenv (>= 0) <https://github.com/fnichol/chef-rbenv#v0.6.8>
[Librarian] Accords with all prior constraints
[Librarian] Resolving ruby_stack (>= 0) <https://github.com/rchampourlier/chef_ruby_stack#master>
[Librarian] Accords with all prior constraints
[Librarian] Resolving database (>= 0) <http://community.opscode.com/api/v1>
[Librarian] Accords with all prior constraints
[Librarian] Resolving postgresql (>= 0) <https://github.com/opscode-cookbooks/postgresql.git#master>
[Librarian] No known prior constraints
[Librarian] Checking manifests
[Librarian] Running `/usr/bin/git reset --hard --quiet` in tmp/librarian/cache/source/git/4a2fea44390205a7714ace50b2e69d11
[Librarian] --- No output
[Librarian] Running `/usr/bin/git clean -x -d --force --force` in tmp/librarian/cache/source/git/4a2fea44390205a7714ace50b2e69d11
[Librarian] --- No output
[Librarian] Running `/usr/bin/git rev-parse HEAD --quiet` in tmp/librarian/cache/source/git/4a2fea44390205a7714ace50b2e69d11
[Librarian] --> adfc5bcecbfec453c67ddc7d55106bb5342406d4
[Librarian] Running `/usr/bin/git fetch origin --quiet` in tmp/librarian/cache/source/git/4a2fea44390205a7714ace50b2e69d11
[Librarian] --- No output
[Librarian] Running `/usr/bin/git fetch origin --quiet --tags` in tmp/librarian/cache/source/git/4a2fea44390205a7714ace50b2e69d11
[Librarian] --- No output
[Librarian] Running `/usr/bin/git remote` in tmp/librarian/cache/source/git/4a2fea44390205a7714ace50b2e69d11
[Librarian] --> origin
[Librarian] Running `/usr/bin/git branch -r` in tmp/librarian/cache/source/git/4a2fea44390205a7714ace50b2e69d11
[Librarian] --> origin/HEAD -> origin/master
[Librarian] --> origin/foodcritic
[Librarian] --> origin/master
[Librarian] Running `/usr/bin/git rev-list master -1` in tmp/librarian/cache/source/git/4a2fea44390205a7714ace50b2e69d11
[Librarian] --> adfc5bcecbfec453c67ddc7d55106bb5342406d4
[Librarian] Running `/usr/bin/git rev-parse HEAD --quiet` in tmp/librarian/cache/source/git/4a2fea44390205a7714ace50b2e69d11
[Librarian] --> adfc5bcecbfec453c67ddc7d55106bb5342406d4
[Librarian] Running `/usr/bin/git rev-parse HEAD --quiet` in tmp/librarian/cache/source/git/4a2fea44390205a7714ace50b2e69d11
[Librarian] --> adfc5bcecbfec453c67ddc7d55106bb5342406d4
[Librarian] Checking postgresql/0.99.5 <https://github.com/opscode-cookbooks/postgresql.git#master>
[Librarian] Scheduling openssl (>= 0.0.0) <http://community.opscode.com/api/v1>
[Librarian] Resolving mongodb (>= 0) <http://community.opscode.com/api/v1>
[Librarian] Accords with all prior constraints
[Librarian] Resolving chef_handler (>= 0.0.0) <http://community.opscode.com/api/v1>
[Librarian] Accords with all prior constraints
[Librarian] Resolving openssl (>= 0.0.0) <http://community.opscode.com/api/v1>
[Librarian] Accords with all prior constraints
[Librarian] Resolving windows (>= 0.0.0) <http://community.opscode.com/api/v1>
[Librarian] Accords with all prior constraints
[Librarian] Resolving aws (>= 0.0.0) <http://community.opscode.com/api/v1>
[Librarian] Accords with all prior constraints
[Librarian] Resolving mysql (>= 1.2.0) <http://community.opscode.com/api/v1>
[Librarian] Accords with all prior constraints
[Librarian] Resolving postgresql (>= 0.0.0) <https://github.com/opscode-cookbooks/postgresql.git#master>
[Librarian] Accords with all prior constraints
[Librarian] Resolving xfs (>= 0.0.0) <http://community.opscode.com/api/v1>
[Librarian] Accords with all prior constraints
[Librarian] Resolving dmg (>= 0.0.0) <http://community.opscode.com/api/v1>
[Librarian] Accords with all prior constraints
[Librarian] Resolving runit (>= 0.0.0) <http://community.opscode.com/api/v1>
[Librarian] Accords with all prior constraints
[Librarian] Resolving yum (>= 0.0.0) <http://community.opscode.com/api/v1>
[Librarian] Accords with all prior constraints
[Librarian] Resolving apt (>= 0.0.0) <http://community.opscode.com/api/v1>
[Librarian] Accords with all prior constraints
[Librarian] Resolving openssl (>= 0.0.0) <http://community.opscode.com/api/v1>
[Librarian] Accords with all prior constraints
[Librarian] Resolved postgresql (>= 0) <https://github.com/opscode-cookbooks/postgresql.git#master> at postgresql/0.99.5 <https://github.com/opscode-cookbooks/postgresql.git#master>
[Librarian] Resolved postgresql (>= 0) <https://github.com/opscode-cookbooks/postgresql.git#master>
[Librarian] Bouncing Cheffile.lock
[Librarian] Pre-Cached Sources:
[Librarian] Post-Cached Sources:
[Librarian] [:site, "http://community.opscode.com/api/v1", {}]
[Librarian] [:git, "https://github.com/fnichol/chef-ruby_build.git", {:ref=>"v0.6.2"}]
[Librarian] [:git, "https://github.com/fnichol/chef-rbenv", {:ref=>"v0.6.8"}]
[Librarian] [:git, "https://github.com/rchampourlier/chef_ruby_stack", {:ref=>"master"}]
[Librarian] [:git, "https://github.com/opscode-cookbooks/postgresql.git", {:ref=>:master}]
Cheffile and Cheffile.lock are out of sync!
/Users/romain/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/librarian-0.0.24/lib/librarian/action/install.rb:32:in `check_consistent'
/Users/romain/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/librarian-0.0.24/lib/librarian/action/install.rb:20:in `check_preconditions'
/Users/romain/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/librarian-0.0.24/lib/librarian/action/install.rb:10:in `run'
/Users/romain/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/librarian-0.0.24/lib/librarian/cli.rb:160:in `install!'
/Users/romain/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/librarian-0.0.24/lib/librarian/chef/cli.rb:42:in `install'
/Users/romain/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/thor-0.15.4/lib/thor/task.rb:27:in `run'
/Users/romain/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/thor-0.15.4/lib/thor/invocation.rb:120:in `invoke_task'
/Users/romain/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/thor-0.15.4/lib/thor.rb:275:in `dispatch'
/Users/romain/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/thor-0.15.4/lib/thor/base.rb:425:in `start'
/Users/romain/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/librarian-0.0.24/lib/librarian/cli.rb:33:in `bin!'
/Users/romain/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/librarian-0.0.24/bin/librarian-chef:7:in `<top (required)>'
/Users/romain/.rbenv/versions/1.9.3-p194/bin/librarian-chef:23:in `load'
/Users/romain/.rbenv/versions/1.9.3-p194/bin/librarian-chef:23:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment