Open stepheneb opened 11 years ago
The second error is different from the first error because thor
, the CLI framework that we use, requires positional arguments (rvm_passenger
) to come before named arguments (--verbose
). In other words, add --verbose
to the end of the command rather than in the middle.
I get the same error if I remove --verbose
$ librarian-chef update rvm_passenger
/Users/stephen/.rvm/gems/ruby-1.9.3-p392@lab/gems/librarian-0.0.26/lib/librarian/manifest_set.rb:141:in `dependencies_of': undefined method `dependencies' for nil:NilClass (NoMethodError)
from /Users/stephen/.rvm/gems/ruby-1.9.3-p392@lab/gems/librarian-0.0.26/lib/librarian/manifest_set.rb:79:in `deep_strip!'
from /Users/stephen/.rvm/gems/ruby-1.9.3-p392@lab/gems/librarian-0.0.26/lib/librarian/manifest_set.rb:20:in `deep_strip'
from /Users/stephen/.rvm/gems/ruby-1.9.3-p392@lab/gems/librarian-0.0.26/lib/librarian/action/update.rb:20:in `run'
from /Users/stephen/.rvm/gems/ruby-1.9.3-p392@lab/gems/librarian-0.0.26/lib/librarian/cli.rb:172:in `update!'
from /Users/stephen/.rvm/gems/ruby-1.9.3-p392@lab/gems/librarian-0.0.26/lib/librarian/cli.rb:114:in `update'
from /Users/stephen/.rvm/gems/ruby-1.9.3-p392@lab/gems/thor-0.17.0/lib/thor/task.rb:27:in `run'
from /Users/stephen/.rvm/gems/ruby-1.9.3-p392@lab/gems/thor-0.17.0/lib/thor/invocation.rb:120:in `invoke_task'
from /Users/stephen/.rvm/gems/ruby-1.9.3-p392@lab/gems/thor-0.17.0/lib/thor.rb:344:in `dispatch'
from /Users/stephen/.rvm/gems/ruby-1.9.3-p392@lab/gems/thor-0.17.0/lib/thor/base.rb:434:in `start'
from /Users/stephen/.rvm/gems/ruby-1.9.3-p392@lab/gems/librarian-0.0.26/lib/librarian/cli.rb:26:in `block (2 levels) in bin!'
from /Users/stephen/.rvm/gems/ruby-1.9.3-p392@lab/gems/librarian-0.0.26/lib/librarian/cli.rb:31:in `returning_status'
from /Users/stephen/.rvm/gems/ruby-1.9.3-p392@lab/gems/librarian-0.0.26/lib/librarian/cli.rb:26:in `block in bin!'
from /Users/stephen/.rvm/gems/ruby-1.9.3-p392@lab/gems/librarian-0.0.26/lib/librarian/cli.rb:47:in `with_environment'
from /Users/stephen/.rvm/gems/ruby-1.9.3-p392@lab/gems/librarian-0.0.26/lib/librarian/cli.rb:26:in `bin!'
from /Users/stephen/.rvm/gems/ruby-1.9.3-p392@lab/gems/librarian-0.0.26/bin/librarian-chef:7:in `<top (required)>'
from /Users/stephen/.rvm/gems/ruby-1.9.3-p392@lab/bin/librarian-chef:19:in `load'
from /Users/stephen/.rvm/gems/ruby-1.9.3-p392@lab/bin/librarian-chef:19:in `<main>'
from /Users/stephen/.rvm/gems/ruby-1.9.3-p392@lab/bin/ruby_noexec_wrapper:14:in `eval'
from /Users/stephen/.rvm/gems/ruby-1.9.3-p392@lab/bin/ruby_noexec_wrapper:14:in `<main>'
The line you gave above - is that the full Cheffile
or just the relevant part of it?
Here's the full Cheffile:
https://github.com/concord-consortium/littlechef-servers/blob/ruby-lab-server-update/Cheffile
Thanks!
Gisted for future reference.
The rvm_passenger
cookbook adds some constraints between v0.8.0
and v0.8.2
. Librarian's resolver seems not to be handling this case well.
For now, you can force the upgrade by
apache2
cookbook of "~> 1.1.8"
rvm_passenger
cookbooklibrarian-chef install
FWIW I ran into a similar issue, which was due to the old cookbook I was using not having a name
attribute in metadata.rb
(https://github.com/opscode/chef/issues/1712). librarian-chef install
fixed the issue.
This error is still there, there's nothing about the particular cookbook, just tried librarian update postgresql and got the same error.
Was able to fix by replacing this line https://github.com/applicationsonline/librarian/blob/master/lib/librarian/manifest_set.rb#L140 with the following:
names.concat index[name] ? index[name].dependencies.map(&:name) : []
Am using librarian 0.0.26.
This Chefile spec for rvm_passenger works fine:
However trying to update to v0.8.2 causes the undefined method `correct?' error:
I tried to simplify the problem and got a different error.
I deleted librarian's cache in the tmp dir and then tried to update just rvm_passenger