Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-1827

Permission denied when installing modules on Windows

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Duplicate
    • Affects Version/s: PUP 3.4.3
    • Fix Version/s: None
    • Component/s: Modules
    • Labels:
    • Environment:

      Windows 7

    • Template:

      Description

      When trying to install a module specifying the --modulepath I get this:

      #puppet module install joshcooper/powershell --modulepath ./modules --debug --trace
      Notice: Preparing to install into e:/dev/vagrant-teamcity/modules ...
      Notice: Downloading from https://forge.puppetlabs.com ...
      Failed to add /C=ZA/ST=Western Cape/L=Durbanville/O=Thawte/OU=Thawte Certification/CN=Thawte Timestamping CA
      Failed to add /C=US/ST=Washington/L=Redmond/O=Microsoft Corporation/CN=Microsoft Root Certificate Authority 2010
      Failed to add /C=ZA/ST=Western Cape/L=Durbanville/O=Thawte/OU=Thawte Certification/CN=Thawte Timestamping CA
      Failed to add /C=US/ST=Washington/L=Redmond/O=Microsoft Corporation/CN=Microsoft Root Certificate Authority 2010
      Notice: Installing -- do not interrupt ...
      Debug: extracting C:/ProgramData/PuppetLabs/puppet/var/puppet-module/cache/tmp-unpacker-5f1b23f2a94f96094dc13e51ddc08349f3157c2e/joshcooper-powershell-0.0.6/
      Debug: extracting C:/ProgramData/PuppetLabs/puppet/var/puppet-module/cache/tmp-unpacker-5f1b23f2a94f96094dc13e51ddc08349f3157c2e/joshcooper-powershell-0.0.6/Gemfile
      Debug: extracting C:/ProgramData/PuppetLabs/puppet/var/puppet-module/cache/tmp-unpacker-5f1b23f2a94f96094dc13e51ddc08349f3157c2e/joshcooper-powershell-0.0.6/Gemfile.lock
      Debug: extracting C:/ProgramData/PuppetLabs/puppet/var/puppet-module/cache/tmp-unpacker-5f1b23f2a94f96094dc13e51ddc08349f3157c2e/joshcooper-powershell-0.0.6/lib/
      Debug: extracting C:/ProgramData/PuppetLabs/puppet/var/puppet-module/cache/tmp-unpacker-5f1b23f2a94f96094dc13e51ddc08349f3157c2e/joshcooper-powershell-0.0.6/metadata.json
      Debug: extracting C:/ProgramData/PuppetLabs/puppet/var/puppet-module/cache/tmp-unpacker-5f1b23f2a94f96094dc13e51ddc08349f3157c2e/joshcooper-powershell-0.0.6/Modulefile
      Debug: extracting C:/ProgramData/PuppetLabs/puppet/var/puppet-module/cache/tmp-unpacker-5f1b23f2a94f96094dc13e51ddc08349f3157c2e/joshcooper-powershell-0.0.6/README.md
      Debug: extracting C:/ProgramData/PuppetLabs/puppet/var/puppet-module/cache/tmp-unpacker-5f1b23f2a94f96094dc13e51ddc08349f3157c2e/joshcooper-powershell-0.0.6/spec/
      Debug: extracting C:/ProgramData/PuppetLabs/puppet/var/puppet-module/cache/tmp-unpacker-5f1b23f2a94f96094dc13e51ddc08349f3157c2e/joshcooper-powershell-0.0.6/tests/
      Debug: extracting C:/ProgramData/PuppetLabs/puppet/var/puppet-module/cache/tmp-unpacker-5f1b23f2a94f96094dc13e51ddc08349f3157c2e/joshcooper-powershell-0.0.6/tests/init.pp
      Debug: extracting C:/ProgramData/PuppetLabs/puppet/var/puppet-module/cache/tmp-unpacker-5f1b23f2a94f96094dc13e51ddc08349f3157c2e/joshcooper-powershell-0.0.6/spec/spec_helper.rb
      Debug: extracting C:/ProgramData/PuppetLabs/puppet/var/puppet-module/cache/tmp-unpacker-5f1b23f2a94f96094dc13e51ddc08349f3157c2e/joshcooper-powershell-0.0.6/spec/unit/
      Debug: extracting C:/ProgramData/PuppetLabs/puppet/var/puppet-module/cache/tmp-unpacker-5f1b23f2a94f96094dc13e51ddc08349f3157c2e/joshcooper-powershell-0.0.6/spec/unit/provider/
      Debug: extracting C:/ProgramData/PuppetLabs/puppet/var/puppet-module/cache/tmp-unpacker-5f1b23f2a94f96094dc13e51ddc08349f3157c2e/joshcooper-powershell-0.0.6/spec/unit/provider/exec/
      Debug: extracting C:/ProgramData/PuppetLabs/puppet/var/puppet-module/cache/tmp-unpacker-5f1b23f2a94f96094dc13e51ddc08349f3157c2e/joshcooper-powershell-0.0.6/spec/unit/provider/exec/powershell_spec.rb
      Debug: extracting C:/ProgramData/PuppetLabs/puppet/var/puppet-module/cache/tmp-unpacker-5f1b23f2a94f96094dc13e51ddc08349f3157c2e/joshcooper-powershell-0.0.6/lib/puppet/
      Debug: extracting C:/ProgramData/PuppetLabs/puppet/var/puppet-module/cache/tmp-unpacker-5f1b23f2a94f96094dc13e51ddc08349f3157c2e/joshcooper-powershell-0.0.6/lib/puppet/provider/
      Debug: extracting C:/ProgramData/PuppetLabs/puppet/var/puppet-module/cache/tmp-unpacker-5f1b23f2a94f96094dc13e51ddc08349f3157c2e/joshcooper-powershell-0.0.6/lib/puppet/provider/exec/
      Debug: extracting C:/ProgramData/PuppetLabs/puppet/var/puppet-module/cache/tmp-unpacker-5f1b23f2a94f96094dc13e51ddc08349f3157c2e/joshcooper-powershell-0.0.6/lib/puppet/provider/exec/powershell.rb
      Error: Permission denied - (C:/ProgramData/PuppetLabs/puppet/var/puppet-module/cache/tmp-u
      npacker-5f1b23f2a94f96094dc13e51ddc08349f3157c2e/joshcooper-powershell-0.0.6, e:/dev/vagra
      nt-teamcity/modules/powershell)
      C:/Program Files (x86)/Puppet Labs/Puppet/sys/ruby/lib/ruby/1.9.1/fileutils.rb:519:in `rename'
      C:/Program Files (x86)/Puppet Labs/Puppet/sys/ruby/lib/ruby/1.9.1/fileutils.rb:519:in `block in mv'
      C:/Program Files (x86)/Puppet Labs/Puppet/sys/ruby/lib/ruby/1.9.1/fileutils.rb:1515:in `block in fu_each_src_dest'
      C:/Program Files (x86)/Puppet Labs/Puppet/sys/ruby/lib/ruby/1.9.1/fileutils.rb:1531:in `fu_each_src_dest0'
      C:/Program Files (x86)/Puppet Labs/Puppet/sys/ruby/lib/ruby/1.9.1/fileutils.rb:1513:in `fu_each_src_dest'
      C:/Program Files (x86)/Puppet Labs/Puppet/sys/ruby/lib/ruby/1.9.1/fileutils.rb:508:in `mv'
      C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/module_tool/applications/unpacker.rb:48:in `extract_module_to_install_dir'
      C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/module_tool/applications/unpacker.rb:18:in `run'
      C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/module_tool/applications/installer.rb:60:in `block (2 levels) in run'
      C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/module_tool/applications/installer.rb:59:in `each'
      C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/module_tool/applications/installer.rb:59:in `block in run'
      C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/module_tool/applications/installer.rb:58:in `each'
      C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/module_tool/applications/installer.rb:58:in `run'
      C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/face/module/install.rb:129:in
      `block (3 levels) in <top (required)>'
      C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/interface/action.rb+eval[wrapper]:242:in `install'
      C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/application/face_base.rb:229:in `main'
      C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/application.rb:372:in `run_command'
      C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/application.rb:364:in `block (2 levels) in run'
      C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/application.rb:470:in `plugin_hook'
      C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/application.rb:364:in `block in run'
      C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/util.rb:478:in `exit_on_fail'
      C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/application.rb:364:in `run'
      C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/util/command_line.rb:137:in `run'
      C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/util/command_line.rb:91:in `execute'
      C:/Program Files (x86)/Puppet Labs/Puppet/puppet/bin/puppet:4:in `<main>'
      Error: Try 'puppet help module install' for usage
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rob Rob Reynolds
                Reporter:
                simoneb Simone
              • Votes:
                2 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support