Skip to content

Instantly share code, notes, and snippets.

@bderickson
Created April 14, 2014 18:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bderickson/10670325 to your computer and use it in GitHub Desktop.
Save bderickson/10670325 to your computer and use it in GitHub Desktop.
Librarian-Puppet error when path contains spaces
> librarian-puppet version
librarian-puppet v1.0.0
> ruby --version
ruby 1.8.7 (2013-12-22 patchlevel 375) [x86_64-linux]
> librarian-puppet install
Unable to rollback path /tmp/librarian/with spaces/blah/.tmp/librarian/cache/source/puppet/forge/3792e516e3ff92a0ef9f5e827f8e76eb/puppetlabs/stdlib/version/804879af3577ffc462dba2bf74cceb6b: Directory not empty - /tmp/librarian/with spaces/blah/.tmp/librarian/cache/source/puppet/forge/3792e516e3ff92a0ef9f5e827f8e76eb/puppetlabs/stdlib/version/804879af3577ffc462dba2bf74cceb6b
Error executing puppet module install:
puppet module install --version 4.1.0 --target-dir /tmp/librarian/with spaces/blah/.tmp/librarian/cache/source/puppet/forge/3792e516e3ff92a0ef9f5e827f8e76eb/puppetlabs/stdlib/version/804879af3577ffc462dba2bf74cceb6b --module_repository http://forge.puppetlabs.com --modulepath /tmp/librarian/with spaces/blah/.tmp/librarian/cache/source/puppet/forge/3792e516e3ff92a0ef9f5e827f8e76eb/puppetlabs/stdlib/version/804879af3577ffc462dba2bf74cceb6b --module_working_dir /tmp/librarian/with spaces/blah/.tmp/librarian/cache/source/puppet/forge/3792e516e3ff92a0ef9f5e827f8e76eb/puppetlabs/stdlib/version/804879af3577ffc462dba2bf74cceb6b --ignore-dependencies puppetlabs/stdlib
Error:
Error: Could not extract contents of module archive: Execution of 'tar xzf /tmp/librarian/with spaces/blah/.tmp/librarian/cache/source/puppet/forge/3792e516e3ff92a0ef9f5e827f8e76eb/puppetlabs/stdlib/version/804879af3577ffc462dba2bf74cceb6b/cache/http_forge_puppetlabs_com-75a31f1d6f1ef6eb63b4479b3512ee1508209a7f/puppetlabs-stdlib-4.1.0.tar.gz -C /tmp/librarian/with spaces/blah/.tmp/librarian/cache/source/puppet/forge/3792e516e3ff92a0ef9f5e827f8e76eb/puppetlabs/stdlib/version/804879af3577ffc462dba2bf74cceb6b/cache/tmp-unpacker-caddf5336d687def271badc2321a49b23e7dbd56' returned 2: tar: /tmp/librarian/with: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: spaces/blah/.tmp/librarian/cache/source/puppet/forge/3792e516e3ff92a0ef9f5e827f8e76eb/puppetlabs/stdlib/version/804879af3577ffc462dba2bf74cceb6b/cache/http_forge_puppetlabs_com-75a31f1d6f1ef6eb63b4479b3512ee1508209a7f/puppetlabs-stdlib-4.1.0.tar.gz: Not found in archive
tar: spaces/blah/.tmp/librarian/cache/source/puppet/forge/3792e516e3ff92a0ef9f5e827f8e76eb/puppetlabs/stdlib/version/804879af3577ffc462dba2bf74cceb6b/cache/tmp-unpacker-caddf5336d687def271badc2321a49b23e7dbd56: Not found in archive
tar: Exiting with failure status due to previous errors
Error: Try 'puppet help module install' for usage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment