Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error executing puppet module install #214

Closed
skpy opened this issue May 9, 2014 · 3 comments
Closed

Error executing puppet module install #214

skpy opened this issue May 9, 2014 · 3 comments

Comments

@skpy
Copy link

skpy commented May 9, 2014

Using 3.4.3 (Puppet Enterprise 3.2.2) on RHEL 6.5 with ruby 1.9.3p484 (2013-11-22 revision 43786) [x86_64-linux]

I installed librarian-puppet with /opt/puppet/bin/gem install librarian-puppet and I invoke it with the fully qualified path of /opt/puppet/bin/librarian-puppet.

[Librarian] Executing puppet module install for evenup/logrotate 1.0.3
Error executing puppet module install:
puppet module install --version 1.0.3 --target-dir /etc/puppetlabs/puppet/environments/chat/.tmp/librarian/cache/source/puppet/forge/3792e516e3ff92a0ef9f5e827f8e76eb/evenup/logrotate/version/1237637816a1ef8e3a33c1191d9dea66 --module_repository http://forge.puppetlabs.com --modulepath /etc/puppetlabs/puppet/environments/chat/.tmp/librarian/cache/source/puppet/forge/3792e516e3ff92a0ef9f5e827f8e76eb/evenup/logrotate/version/1237637816a1ef8e3a33c1191d9dea66 --module_working_dir /etc/puppetlabs/puppet/environments/chat/.tmp/librarian/cache/source/puppet/forge/3792e516e3ff92a0ef9f5e827f8e76eb/evenup/logrotate/version/1237637816a1ef8e3a33c1191d9dea66 --ignore-dependencies evenup/logrotate
Error:
Error: Could not execute operation for 'evenup-logrotate'
The server being queried was /v3/releases?module=evenup-logrotate
The HTTP response we received was '301 Moved Permanently'
Check the author and module names are correct.
/opt/puppet/lib/ruby/gems/1.9.1/gems/librarian-puppet-1.0.1/lib/librarian/puppet/source/forge.rb:133:in `rescue in cache_version_unpacked!'
/opt/puppet/lib/ruby/gems/1.9.1/gems/librarian-puppet-1.0.1/lib/librarian/puppet/source/forge.rb:118:in `cache_version_unpacked!'
/opt/puppet/lib/ruby/gems/1.9.1/gems/librarian-puppet-1.0.1/lib/librarian/puppet/source/forge.rb:58:in `install_version!'
/opt/puppet/lib/ruby/gems/1.9.1/gems/librarian-puppet-1.0.1/lib/librarian/puppet/source/forge.rb:292:in `install!'
/opt/puppet/lib/ruby/gems/1.9.1/gems/librarian-0.1.2/lib/librarian/manifest.rb:101:in `install!'
/opt/puppet/lib/ruby/gems/1.9.1/gems/librarian-0.1.2/lib/librarian/action/install.rb:49:in `block in install_manifests'
/opt/puppet/lib/ruby/gems/1.9.1/gems/librarian-0.1.2/lib/librarian/action/install.rb:48:in `each'
/opt/puppet/lib/ruby/gems/1.9.1/gems/librarian-0.1.2/lib/librarian/action/install.rb:48:in `install_manifests'
/opt/puppet/lib/ruby/gems/1.9.1/gems/librarian-0.1.2/lib/librarian/action/install.rb:39:in `perform_installation'
/opt/puppet/lib/ruby/gems/1.9.1/gems/librarian-0.1.2/lib/librarian/action/install.rb:12:in `run'
/opt/puppet/lib/ruby/gems/1.9.1/gems/librarian-0.1.2/lib/librarian/cli.rb:165:in `install!'
/opt/puppet/lib/ruby/gems/1.9.1/gems/librarian-puppet-1.0.1/lib/librarian/puppet/cli.rb:71:in `install'
/opt/puppet/lib/ruby/gems/1.9.1/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
/opt/puppet/lib/ruby/gems/1.9.1/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
/opt/puppet/lib/ruby/gems/1.9.1/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'
/opt/puppet/lib/ruby/gems/1.9.1/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
/opt/puppet/lib/ruby/gems/1.9.1/gems/librarian-0.1.2/lib/librarian/cli.rb:26:in `block (2 levels) in bin!'
/opt/puppet/lib/ruby/gems/1.9.1/gems/librarian-0.1.2/lib/librarian/cli.rb:31:in `returning_status'
/opt/puppet/lib/ruby/gems/1.9.1/gems/librarian-0.1.2/lib/librarian/cli.rb:26:in `block in bin!'
/opt/puppet/lib/ruby/gems/1.9.1/gems/librarian-0.1.2/lib/librarian/cli.rb:47:in `with_environment'
/opt/puppet/lib/ruby/gems/1.9.1/gems/librarian-0.1.2/lib/librarian/cli.rb:26:in `bin!'
/opt/puppet/lib/ruby/gems/1.9.1/gems/librarian-puppet-1.0.1/bin/librarian-puppet:7:in `<top (required)>'
/opt/puppet/bin/librarian-puppet:23:in `load'
/opt/puppet/bin/librarian-puppet:23:in `<main>'

Here's my Puppetfile:

#!/usr/bin/env ruby
#^syntax detection

forge "http://forge.puppetlabs.com"

#mod 'puppetlabs/stdlib'
#mod 'puppetlabs/concat'
mod 'puppetlabs/apache'
mod 'puppetlabs/mysql'
mod 'puppetlabs/ntp'
mod 'puppetlabs/postgresql'
#mod 'evenup/logrotate'
mod 'maestrodev/rvm'
mod 'saz/sudo'
mod 'stankevich/python'

And Puppetfile.lock:

FORGE
  remote: http://forge.puppetlabs.com
  specs:
    maestrodev/rvm (1.5.5)
      puppetlabs/stdlib (>= 3.2.0)
    puppetlabs/apache (1.0.1)
      puppetlabs/concat (>= 1.0.0)
      puppetlabs/stdlib (>= 2.4.0)
    puppetlabs/apt (1.4.2)
      puppetlabs/stdlib (>= 2.2.1)
    puppetlabs/concat (1.1.0-rc1)
      puppetlabs/stdlib (>= 3.0.0)
    puppetlabs/firewall (1.0.2)
    puppetlabs/mysql (2.2.3)
      puppetlabs/stdlib (>= 3.2.0)
    puppetlabs/ntp (3.0.3)
      puppetlabs/stdlib (>= 0.1.6)
    puppetlabs/postgresql (3.3.3)
      puppetlabs/apt (< 2.0.0, >= 1.1.0)
      puppetlabs/concat (< 2.0.0, >= 1.0.0)
      puppetlabs/firewall (>= 0.0.4)
      puppetlabs/stdlib (< 5.0.0, >= 3.2.0)
    puppetlabs/stdlib (4.2.1)
    saz/sudo (3.0.6)
      puppetlabs/stdlib (>= 2.3.0)
    stankevich/python (1.7.5)

Interestingly, if I comment evenup/logrotate out of my Puppetfile, the librarian-puppet invocation next fails on puppetlabs-stdlib:

[Librarian] Executing puppet module install for puppetlabs/stdlib 4.2.1
Error executing puppet module install:
puppet module install --version 4.2.1 --target-dir /etc/puppetlabs/puppet/environments/chat/.tmp/librarian/cache/source/puppet/forge/3792e516e3ff92a0ef9f5e827f8e76eb/puppetlabs/stdlib/version/65bf9cb61d2ad5d51ddbf22319311dc3 --module_repository http://forge.puppetlabs.com --modulepath /etc/puppetlabs/puppet/environments/chat/.tmp/librarian/cache/source/puppet/forge/3792e516e3ff92a0ef9f5e827f8e76eb/puppetlabs/stdlib/version/65bf9cb61d2ad5d51ddbf22319311dc3 --module_working_dir /etc/puppetlabs/puppet/environments/chat/.tmp/librarian/cache/source/puppet/forge/3792e516e3ff92a0ef9f5e827f8e76eb/puppetlabs/stdlib/version/65bf9cb61d2ad5d51ddbf22319311dc3 --ignore-dependencies puppetlabs/stdlib
Error:
Error: Could not execute operation for 'puppetlabs-stdlib'
  The server being queried was /v3/releases?module=puppetlabs-stdlib
  The HTTP response we received was '301 Moved Permanently'
    Check the author and module names are correct.
@carlossg
Copy link
Collaborator

Are you using librarian-puppet 1.0.2? that issue was fixed in #190

@skpy
Copy link
Author

skpy commented May 10, 2014

I originally invoked /opt/puppet/bin/gem install librarian-puppet, which installed 1.0.1.

When I try to install 1.0.2, I get an error that that version could not be found:

# /opt/puppet/bin/gem install librarian-puppet -v 1.0.2
ERROR:  Could not find a valid gem 'librarian-puppet' (= 1.0.2) in any repository
ERROR:  Possible alternatives: librarian-puppet

Indeed, https://rubygems.org/search?utf8=%E2%9C%93&query=librarian-puppet shows only version 1.0.1, and there is no 1.0.2 tag on this repository.

How would I install version 1.0.2?

@carlossg
Copy link
Collaborator

Yes, sorry, this is a dupe of #204 and is fixed in 1.0.2, that I will release asap.

Feel free to reopen if still happening in 1.0.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants