Open tioteath opened 9 years ago
Could you post
I am experiencing the same issues
Puppetfile
forge 'forge.puppetlabs.com'
# Forge Modules
mod 'acme/ohmyzsh', '0.1.2'
mod 'jfryman/nginx', '0.2.7'
mod 'puppetlabs/ntp', '3.0.3'
mod 'puppetlabs/stdlib'
Distro: Debian GNU/Linux 8
Ruby: ruby 2.1.5p273 (2014-11-13) [x86_64-linux-gnu]
Puppet: 3.7.2
Librarian-puppet: librarian-puppet v1.0.3
Verbose run:
[Librarian] Ruby Version: 2.1.5
[Librarian] Ruby Platform: x86_64-linux-gnu
[Librarian] Rubygems Version: 2.2.2
[Librarian] Librarian Version: 0.1.2
[Librarian] Librarian Adapter: puppet
[Librarian] Librarian Adapter Version: 1.0.3
[Librarian] Project: /vagrant/puppet
[Librarian] Specfile: Puppetfile
[Librarian] Lockfile: Puppetfile.lock
[Librarian] Git: /usr/bin/git
[Librarian] Git Version: 2.1.4
[Librarian] Git Environment Variables:
[Librarian] (empty)
[Librarian] Pre-Cached Sources:
[Librarian] Post-Cached Sources:
[Librarian] [:forge, "forge.puppetlabs.com", {}]
[Librarian] Resolving acme/ohmyzsh (= 0.1.2) <forge.puppetlabs.com>
[Librarian] Checking manifests
[Librarian] Querying Forge API for module acme/ohmyzsh: forge.puppetlabs.com/api/v1/releases.json?module=acme/ohmyzsh
/usr/lib/ruby/2.1.0/open-uri.rb:36:in `open': no implicit conversion of URI::Generic into String (TypeError)
from /usr/lib/ruby/2.1.0/open-uri.rb:36:in `open'
from /usr/lib/ruby/vendor_ruby/librarian/puppet/source/forge/repo.rb:190:in `api_call'
from /usr/lib/ruby/vendor_ruby/librarian/puppet/source/forge/repo.rb:166:in `api_data'
from /usr/lib/ruby/vendor_ruby/librarian/puppet/source/forge/repo.rb:25:in `versions'
from /usr/lib/ruby/vendor_ruby/librarian/puppet/source/forge/repo.rb:39:in `manifests'
from /usr/lib/ruby/vendor_ruby/librarian/puppet/source/forge.rb:137:in `manifests'
from /usr/lib/ruby/vendor_ruby/librarian/dependency.rb:117:in `cache_manifests!'
from /usr/lib/ruby/vendor_ruby/librarian/dependency.rb:113:in `manifests'
from /usr/lib/ruby/vendor_ruby/librarian/resolver/implementation.rb:152:in `block in resolving_dependency_map_find_manifests'
from /usr/lib/ruby/vendor_ruby/librarian/resolver/implementation.rb:165:in `block (2 levels) in scope_resolving_dependency'
from /usr/lib/ruby/vendor_ruby/librarian/resolver/implementation.rb:179:in `block in scope_checking_manifests'
from /usr/lib/ruby/vendor_ruby/librarian/resolver/implementation.rb:223:in `scope'
from /usr/lib/ruby/vendor_ruby/librarian/resolver/implementation.rb:178:in `scope_checking_manifests'
from /usr/lib/ruby/vendor_ruby/librarian/resolver/implementation.rb:164:in `block in scope_resolving_dependency'
from /usr/lib/ruby/vendor_ruby/librarian/resolver/implementation.rb:223:in `scope'
from /usr/lib/ruby/vendor_ruby/librarian/resolver/implementation.rb:163:in `scope_resolving_dependency'
from /usr/lib/ruby/vendor_ruby/librarian/resolver/implementation.rb:151:in `resolving_dependency_map_find_manifests'
from /usr/lib/ruby/vendor_ruby/librarian/resolver/implementation.rb:62:in `recursive_resolve'
from /usr/lib/ruby/vendor_ruby/librarian/resolver/implementation.rb:50:in `resolve'
from /usr/lib/ruby/vendor_ruby/librarian/resolver.rb:23:in `resolve'
from /usr/lib/ruby/vendor_ruby/librarian/action/resolve.rb:26:in `run'
from /usr/lib/ruby/vendor_ruby/librarian/cli.rb:169:in `resolve!'
from /usr/lib/ruby/vendor_ruby/librarian/puppet/cli.rb:69:in `install'
from /usr/lib/ruby/vendor_ruby/thor/command.rb:27:in `run'
from /usr/lib/ruby/vendor_ruby/thor/invocation.rb:126:in `invoke_command'
from /usr/lib/ruby/vendor_ruby/thor.rb:359:in `dispatch'
from /usr/lib/ruby/vendor_ruby/thor/base.rb:440:in `start'
from /usr/lib/ruby/vendor_ruby/librarian/cli.rb:26:in `block (2 levels) in bin!'
from /usr/lib/ruby/vendor_ruby/librarian/cli.rb:31:in `returning_status'
from /usr/lib/ruby/vendor_ruby/librarian/cli.rb:26:in `block in bin!'
from /usr/lib/ruby/vendor_ruby/librarian/cli.rb:47:in `with_environment'
from /usr/lib/ruby/vendor_ruby/librarian/cli.rb:26:in `bin!'
from /usr/bin/librarian-puppet:7:in `<main>'
If you need any additional info, please let me know. Thanks!
you need to update, 1.0.3 is too old
I'm sorry, I was debugging this and was trying to reproduce inside the VM.
For context, I'm using vagrant with the vagrant-librarian-puppet
plugin.
This is the proper backtrace (with the same problem) running with vagrant provision
.
It seems that outside the VM I am using a more recent version (2.0.1)
Sorry for the confusion and thanks for your time by taking a look at this :)
INFO environment: Running hook: environment_unload
INFO runner: Preparing hooks for middleware sequence...
INFO runner: 6 hooks defined.
INFO runner: Running action: environment_unload #<Vagrant::Action::Builder:0x00000100b57240>
/opt/vagrant/embedded/lib/ruby/2.0.0/open-uri.rb:36:in `open': no implicit conversion of URI::Generic into String (TypeError)
from /opt/vagrant/embedded/lib/ruby/2.0.0/open-uri.rb:36:in `open'
from /Users/myusername/.vagrant.d/gems/gems/librarian-puppet-2.0.1/lib/librarian/puppet/source/forge/repo_v1.rb:99:in `api_call'
from /Users/myusername/.vagrant.d/gems/gems/librarian-puppet-2.0.1/lib/librarian/puppet/source/forge/repo_v1.rb:74:in `api_data'
from /Users/myusername/.vagrant.d/gems/gems/librarian-puppet-2.0.1/lib/librarian/puppet/source/forge/repo_v1.rb:22:in `get_versions'
from /Users/myusername/.vagrant.d/gems/gems/librarian-puppet-2.0.1/lib/librarian/puppet/source/forge/repo.rb:15:in `versions'
from /Users/myusername/.vagrant.d/gems/gems/librarian-puppet-2.0.1/lib/librarian/puppet/source/forge/repo.rb:42:in `manifests'
from /Users/myusername/.vagrant.d/gems/gems/librarian-puppet-2.0.1/lib/librarian/puppet/source/forge.rb:152:in `manifests'
from /Users/myusername/.vagrant.d/gems/gems/librarian-0.1.2/lib/librarian/dependency.rb:117:in `cache_manifests!'
from /Users/myusername/.vagrant.d/gems/gems/librarian-0.1.2/lib/librarian/dependency.rb:113:in `manifests'
from /Users/myusername/.vagrant.d/gems/gems/librarian-0.1.2/lib/librarian/resolver/implementation.rb:152:in `block in resolving_dependency_map_find_manifests'
from /Users/myusername/.vagrant.d/gems/gems/librarian-0.1.2/lib/librarian/resolver/implementation.rb:165:in `block (2 levels) in scope_resolving_dependency'
from /Users/myusername/.vagrant.d/gems/gems/librarian-0.1.2/lib/librarian/resolver/implementation.rb:179:in `block in scope_checking_manifests'
from /Users/myusername/.vagrant.d/gems/gems/librarian-0.1.2/lib/librarian/resolver/implementation.rb:223:in `scope'
from /Users/myusername/.vagrant.d/gems/gems/librarian-0.1.2/lib/librarian/resolver/implementation.rb:178:in `scope_checking_manifests'
from /Users/myusername/.vagrant.d/gems/gems/librarian-0.1.2/lib/librarian/resolver/implementation.rb:164:in `block in scope_resolving_dependency'
from /Users/myusername/.vagrant.d/gems/gems/librarian-0.1.2/lib/librarian/resolver/implementation.rb:223:in `scope'
from /Users/myusername/.vagrant.d/gems/gems/librarian-0.1.2/lib/librarian/resolver/implementation.rb:163:in `scope_resolving_dependency'
from /Users/myusername/.vagrant.d/gems/gems/librarian-0.1.2/lib/librarian/resolver/implementation.rb:151:in `resolving_dependency_map_find_manifests'
from /Users/myusername/.vagrant.d/gems/gems/librarian-0.1.2/lib/librarian/resolver/implementation.rb:62:in `recursive_resolve'
from /Users/myusername/.vagrant.d/gems/gems/librarian-0.1.2/lib/librarian/resolver/implementation.rb:50:in `resolve'
from /Users/myusername/.vagrant.d/gems/gems/librarian-0.1.2/lib/librarian/resolver.rb:23:in `resolve'
from /Users/myusername/.vagrant.d/gems/gems/librarian-0.1.2/lib/librarian/action/resolve.rb:26:in `run'
from /Users/myusername/.vagrant.d/gems/gems/vagrant-librarian-puppet-0.9.0/lib/vagrant-librarian-puppet/action/librarian_puppet.rb:63:in `provision'
from /Users/myusername/.vagrant.d/gems/gems/vagrant-librarian-puppet-0.9.0/lib/vagrant-librarian-puppet/action/librarian_puppet.rb:29:in `block in call'
from /Users/myusername/.vagrant.d/gems/gems/vagrant-librarian-puppet-0.9.0/lib/vagrant-librarian-puppet/action/librarian_puppet.rb:28:in `each'
from /Users/myusername/.vagrant.d/gems/gems/vagrant-librarian-puppet-0.9.0/lib/vagrant-librarian-puppet/action/librarian_puppet.rb:28:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/action/warden.rb:34:in `call'
from /Users/myusername/.vagrant.d/gems/gems/vagrant-librarian-chef-nochef-0.2.0/lib/vagrant-librarian-chef/action/librarian_chef.rb:20:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/action/warden.rb:34:in `call'
from /Users/myusername/.vagrant.d/gems/gems/vagrant-cachier-1.2.1/lib/vagrant-cachier/action/configure_bucket_root.rb:20:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/providers/virtualbox/action/check_accessible.rb:18:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/action/warden.rb:95:in `block in finalize_action'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/action/builder.rb:116:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/action/runner.rb:66:in `block in run'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/util/busy.rb:19:in `busy'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/action/runner.rb:66:in `run'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/action/builtin/call.rb:53:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/action/warden.rb:95:in `block in finalize_action'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/action/builder.rb:116:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/action/runner.rb:66:in `block in run'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/util/busy.rb:19:in `busy'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/action/runner.rb:66:in `run'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/action/builtin/call.rb:53:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/action/builtin/config_validate.rb:25:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/providers/virtualbox/action/check_virtualbox.rb:17:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/action/builder.rb:116:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/action/runner.rb:66:in `block in run'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/util/busy.rb:19:in `busy'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/action/runner.rb:66:in `run'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/machine.rb:214:in `action_raw'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/machine.rb:191:in `block in action'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/environment.rb:516:in `lock'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/machine.rb:178:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/machine.rb:178:in `action'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/commands/provision/command.rb:30:in `block in execute'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/plugin/v2/command.rb:226:in `block in with_target_vms'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/plugin/v2/command.rb:220:in `each'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/plugin/v2/command.rb:220:in `with_target_vms'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/commands/provision/command.rb:29:in `execute'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/cli.rb:42:in `execute'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/environment.rb:301:in `cli'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/bin/vagrant:174:in `<main>'
so, is it happening with the latest librarian-puppet version outside of vagrant ? if so, can you post the error in that case?
I managed to trace the error back (puts-driven-development on the vagrant gems folder with a backup at hand) :P
The problem was in my Puppetfile
(and not reading your README.md I guess).
The forge repo was defined as followed:
forge 'forge.puppetlabs.com'
instead of
forge 'https://forge.puppetlabs.com'
.
This made the Kernel.open
call think I was referring to a local file.
Thanks a lot for your time!
Closing as outdated