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

puppet module --modulepath command errors when run as non-root

    XMLWordPrintable

    Details

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

      Ubuntu 12.04 LTS

    • Template:

      Description

      When running the 'puppet module --modulepath...' command as non-root, errors are thrown when trying to chown modules that are in the user's home directory.

      Finch mentioned this line is most likely the culprit: https://github.com/puppetlabs/puppet/blob/3.4.3/lib/puppet/module_tool/tar/gnu.rb#L10

      The errors are:

      [R10K::TaskRunner - ERROR] Task #<R10K::Task::Module::Sync:0x7f17306ef778> failed while running: Command puppet module --modulepath /etc/puppet/environments/production/modules install --ignore-dependencies puppetlabs/inifile exited with 1: Error: Could not extract contents of module archive: Execution of 'chown -R 108:0 /home/r10k/.puppet/var/puppet-module/cache/tmp-unpacker-f81b689b9fb9dc5e702f22526b9ceef2b6bfe22e' returned 1: chown: changing ownership of `/home/r10k/.puppet/var/puppet-module/cache/tmp-unpacker-f81b689b9fb9dc5e702f22526b9ceef2b6bfe22e/puppetlabs-inifile-1.0.3/LICENSE': Operation not permitted
      chown: changing ownership of `/home/r10k/.puppet/var/puppet-module/cache/tmp-unpacker-f81b689b9fb9dc5e702f22526b9ceef2b6bfe22e/puppetlabs-inifile-1.0.3/Modulefile': Operation not permitted
      chown: changing ownership of `/home/r10k/.puppet/var/puppet-module/cache/tmp-unpacker-f81b689b9fb9dc5e702f22526b9ceef2b6bfe22e/puppetlabs-inifile-1.0.3/Rakefile': Operation not permitted

      Let me know if you need any more info on this.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            natewalck Nate Walck
            QA Contact:
            Eric Thompson
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support