module install fails

90 views
Skip to first unread message

André Meyer

unread,
Nov 10, 2014, 4:26:35 AM11/10/14
to puppet...@googlegroups.com
Hello,

Whenever I try to install a module from the puppet forge it fails, for every plugin. Here is an example with the git plugin:

puppet module install puppetlabs-git
Notice: Preparing to install into /etc/puppet/modules ...
Notice: Downloading from https://forge.puppetlabs.com ...
Notice: Installing -- do not interrupt ...
Error: can't convert nil into String
Error: Try 'puppet help module install' for usage

My environment:
Solaris 11 x86
Puppet Version: 3.4.1 (from the Solaris repos)

Jesse Scott

unread,
Nov 10, 2014, 7:21:08 PM11/10/14
to puppet...@googlegroups.com
Hi André,

Can you re-run the command with the --debug and --trace options? E.g. "puppet module install puppetlabs-git --debug --trace"

It's hard to know exactly what's going wrong without the detail those options will provide.


-Jesse

André Meyer

unread,
Nov 11, 2014, 3:20:49 AM11/11/14
to puppet...@googlegroups.com
Here is the more detailed output:

puppet module install puppetlabs-git --debug --trace
Notice: Preparing to install into /etc/puppet/modules ...
Notice: Downloading from https://forge.puppetlabs.com ...
Notice: Installing -- do not interrupt ...
Debug: Executing 'tar xzf /var/lib/puppet/puppet-module/cache/https_forge_puppetlabs_com-ed3a0e51b3c1d8d395ffb1d12c849e3f50d35a10/puppetlabs-git-0.2.0.tar.gz --no-same-owner -C /var/lib/puppet/puppet-module/cache/tmp-unpacker-f24ee4d5a20c43ed764abf87213b440e73a55b25'
Debug: Executing 'find /var/lib/puppet/puppet-module/cache/tmp-unpacker-f24ee4d5a20c43ed764abf87213b440e73a55b25 -type d -exec chmod 755 {} +'
Debug: Executing 'find /var/lib/puppet/puppet-module/cache/tmp-unpacker-f24ee4d5a20c43ed764abf87213b440e73a55b25 -type f -exec chmod a-wst {} +'
Debug: Executing 'chown -R 40:40 /var/lib/puppet/puppet-module/cache/tmp-unpacker-f24ee4d5a20c43ed764abf87213b440e73a55b25'
Error: can't convert nil into String
/usr/ruby/1.9/lib/ruby/1.9.1/fileutils.rb:1527:in `path'
/usr/ruby/1.9/lib/ruby/1.9.1/fileutils.rb:1527:in `fu_each_src_dest0'
/usr/ruby/1.9/lib/ruby/1.9.1/fileutils.rb:1513:in `fu_each_src_dest'
/usr/ruby/1.9/lib/ruby/1.9.1/fileutils.rb:508:in `mv'
/usr/ruby/1.9/lib/ruby/vendor_ruby/1.9.1/puppet/module_tool/applications/unpacker.rb:48:in `extract_module_to_install_dir'
/usr/ruby/1.9/lib/ruby/vendor_ruby/1.9.1/puppet/module_tool/applications/unpacker.rb:18:in `run'
/usr/ruby/1.9/lib/ruby/vendor_ruby/1.9.1/puppet/module_tool/applications/installer.rb:60:in `block (2 levels) in run'
/usr/ruby/1.9/lib/ruby/vendor_ruby/1.9.1/puppet/module_tool/applications/installer.rb:59:in `each'
/usr/ruby/1.9/lib/ruby/vendor_ruby/1.9.1/puppet/module_tool/applications/installer.rb:59:in `block in run'
/usr/ruby/1.9/lib/ruby/vendor_ruby/1.9.1/puppet/module_tool/applications/installer.rb:58:in `each'
/usr/ruby/1.9/lib/ruby/vendor_ruby/1.9.1/puppet/module_tool/applications/installer.rb:58:in `run'
/usr/ruby/1.9/lib/ruby/vendor_ruby/1.9.1/puppet/face/module/install.rb:129:in `block (3 levels) in <top (required)>'
/usr/ruby/1.9/lib/ruby/vendor_ruby/1.9.1/puppet/interface/action.rb+eval[wrapper]:242:in `install'
/usr/ruby/1.9/lib/ruby/vendor_ruby/1.9.1/puppet/application/face_base.rb:229:in `main'
/usr/ruby/1.9/lib/ruby/vendor_ruby/1.9.1/puppet/application.rb:372:in `run_command'
/usr/ruby/1.9/lib/ruby/vendor_ruby/1.9.1/puppet/application.rb:364:in `block (2 levels) in run'
/usr/ruby/1.9/lib/ruby/vendor_ruby/1.9.1/puppet/application.rb:470:in `plugin_hook'
/usr/ruby/1.9/lib/ruby/vendor_ruby/1.9.1/puppet/application.rb:364:in `block in run'
/usr/ruby/1.9/lib/ruby/vendor_ruby/1.9.1/puppet/util.rb:468:in `exit_on_fail'
/usr/ruby/1.9/lib/ruby/vendor_ruby/1.9.1/puppet/application.rb:364:in `run'
/usr/ruby/1.9/lib/ruby/vendor_ruby/1.9.1/puppet/util/command_line.rb:137:in `run'
/usr/ruby/1.9/lib/ruby/vendor_ruby/1.9.1/puppet/util/command_line.rb:91:in `execute'
/usr/sbin/puppet:4:in `<main>'

Jesse Scott

unread,
Nov 13, 2014, 12:16:10 PM11/13/14
to puppet...@googlegroups.com
Hi André,

It looks like it isn't able to find the module's root directory after attempting to extract, do you have GNU tar (gtar) installed? I believe that is a requirement for the correct functioning of the Puppet module tool on Solaris.

-Jesse
Reply all
Reply to author
Forward
0 new messages