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

`unlink': Operation not permitted #341

Open
entheologist opened this issue Dec 22, 2016 · 1 comment
Open

`unlink': Operation not permitted #341

entheologist opened this issue Dec 22, 2016 · 1 comment

Comments

@entheologist
Copy link

I couldn't get librarian-puppet to work on Windows, so instead I tried installing it inside the Vagrant VM so I can create the modules through the shared directory. It installed some modules, so it definitely works better, but I quickly ran into another problem. When I run install now, heres what happens:

vagrant@ubuntu:/vagrant/puppet$ librarian-puppet install --no-use-v1-api
/usr/lib/ruby/1.9.1/fileutils.rb:1406:in `unlink': Operation not permitted - /vagrant/puppet/modules/stdlib/CHANGELOG.md (Errno::EPERM)

Full stack trace:

vagrant@ubuntu:/vagrant/puppet$ librarian-puppet install --no-use-v1-api
/usr/lib/ruby/1.9.1/fileutils.rb:1406:in `unlink': Operation not permitted - /vagrant/puppet/modules/stdlib/CHANGELOG.md (Errno::EPERM)
        from /usr/lib/ruby/1.9.1/fileutils.rb:1406:in `block in remove_file'
        from /usr/lib/ruby/1.9.1/fileutils.rb:1411:in `platform_support'
        from /usr/lib/ruby/1.9.1/fileutils.rb:1405:in `remove_file'
        from /usr/lib/ruby/1.9.1/fileutils.rb:1394:in `remove'
        from /usr/lib/ruby/1.9.1/fileutils.rb:770:in `block in remove_entry'
        from /usr/lib/ruby/1.9.1/fileutils.rb:1444:in `block (2 levels) in postorder_traverse'
        from /usr/lib/ruby/1.9.1/fileutils.rb:1448:in `postorder_traverse'
        from /usr/lib/ruby/1.9.1/fileutils.rb:1443:in `block in postorder_traverse'
        from /usr/lib/ruby/1.9.1/fileutils.rb:1442:in `each'
        from /usr/lib/ruby/1.9.1/fileutils.rb:1442:in `postorder_traverse'
        from /usr/lib/ruby/1.9.1/fileutils.rb:768:in `remove_entry'
        from /usr/lib/ruby/1.9.1/fileutils.rb:626:in `block in rm_r'
        from /usr/lib/ruby/1.9.1/fileutils.rb:622:in `each'
        from /usr/lib/ruby/1.9.1/fileutils.rb:622:in `rm_r'
        from /usr/lib/ruby/1.9.1/pathname.rb:523:in `rmtree'
        from /var/lib/gems/1.9.1/gems/librarian-puppet-2.2.3/lib/librarian/puppet/source/forge/repo.rb:59:in `install_version!'
        from /var/lib/gems/1.9.1/gems/librarian-puppet-2.2.3/lib/librarian/puppet/source/forge.rb:114:in `install!'
        from /var/lib/gems/1.9.1/gems/librarianp-0.6.3/lib/librarian/manifest.rb:73:in `install!'
        from /var/lib/gems/1.9.1/gems/librarianp-0.6.3/lib/librarian/action/install.rb:49:in `block in install_manifests'
        from /var/lib/gems/1.9.1/gems/librarianp-0.6.3/lib/librarian/action/install.rb:48:in `each'
        from /var/lib/gems/1.9.1/gems/librarianp-0.6.3/lib/librarian/action/install.rb:48:in `install_manifests'
        from /var/lib/gems/1.9.1/gems/librarianp-0.6.3/lib/librarian/action/install.rb:39:in `perform_installation'
        from /var/lib/gems/1.9.1/gems/librarianp-0.6.3/lib/librarian/action/install.rb:12:in `run'
        from /var/lib/gems/1.9.1/gems/librarian-puppet-2.2.3/lib/librarian/puppet/cli.rb:101:in `install!'
        from /var/lib/gems/1.9.1/gems/librarian-puppet-2.2.3/lib/librarian/puppet/cli.rb:70:in `install'
        from /var/lib/gems/1.9.1/gems/thor-0.19.4/lib/thor/command.rb:27:in `run'
        from /var/lib/gems/1.9.1/gems/thor-0.19.4/lib/thor/invocation.rb:126:in `invoke_command'
        from /var/lib/gems/1.9.1/gems/thor-0.19.4/lib/thor.rb:369:in `dispatch'
        from /var/lib/gems/1.9.1/gems/thor-0.19.4/lib/thor/base.rb:444:in `start'
        from /var/lib/gems/1.9.1/gems/librarianp-0.6.3/lib/librarian/cli.rb:26:in `block (2 levels) in bin!'
        from /var/lib/gems/1.9.1/gems/librarianp-0.6.3/lib/librarian/cli.rb:31:in `returning_status'
        from /var/lib/gems/1.9.1/gems/librarianp-0.6.3/lib/librarian/cli.rb:26:in `block in bin!'
        from /var/lib/gems/1.9.1/gems/librarianp-0.6.3/lib/librarian/cli.rb:47:in `with_environment'
        from /var/lib/gems/1.9.1/gems/librarianp-0.6.3/lib/librarian/cli.rb:26:in `bin!'
        from /var/lib/gems/1.9.1/gems/librarian-puppet-2.2.3/bin/librarian-puppet:7:in `<top (required)>'
        from /usr/local/bin/librarian-puppet:23:in `load'
        from /usr/local/bin/librarian-puppet:23:in `<main>'

The VM is running Ubuntu 14. I tried running it with sudo, but no difference.

@Xylakant
Copy link

First of all, you may want to read this note on the readme: https://github.com/rodjek/librarian-puppet#note-this-project-has-moved-to-httpsgithubcomvoxpupulilibrarian-puppet

Second: This looks a lot like you're using virtualbox shared folders and permissions on those folders may be tricky. You might want to retry in a folder inside the VM that is not mounted from the host system.

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

No branches or pull requests

2 participants