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

issue with permissions to python dist packages, Ubuntu 14.04 #10

Open
i-sam opened this issue Aug 9, 2016 · 0 comments
Open

issue with permissions to python dist packages, Ubuntu 14.04 #10

i-sam opened this issue Aug 9, 2016 · 0 comments

Comments

@i-sam
Copy link

i-sam commented Aug 9, 2016

================================================================================ Error executing actionrun` on resource 'execute[virtualenv /opt/sentry]'
================================================================================

       Mixlib::ShellOut::ShellCommandFailed
       ------------------------------------
       Expected process to exit with [0], but received '1'
       ---- Begin output of virtualenv  /opt/sentry ----
       STDOUT: 
       STDERR: Traceback (most recent call last):
         File "/usr/local/bin/virtualenv", line 7, in <module>
    from virtualenv import main
       ImportError: No module named virtualenv
       ---- End output of virtualenv  /opt/sentry ----
       Ran virtualenv  /opt/sentry returned 1

       Resource Declaration:
       ---------------------
       # In /tmp/kitchen/cache/cookbooks/python/providers/virtualenv.rb

        37:     execute "#{virtualenv_cmd}#{interpreter} #{new_resource.options} #{new_resource.path}" do
        38:       user new_resource.owner if new_resource.owner
        39:       group new_resource.group if new_resource.group
        40:       environment ({ 'HOME' => ::Dir.home(new_resource.owner) }) if new_resource.owner
        41:     end
        42:     new_resource.updated_by_last_action(true)

       Compiled Resource:
       ------------------
       # Declared in /tmp/kitchen/cache/cookbooks/python/providers/virtualenv.rb:37:in `block in class_from_file'

       execute("virtualenv  /opt/sentry") do
         action [:run]
         retries 0
         retry_delay 2
         default_guard_interpreter :execute
         command "virtualenv  /opt/sentry"
         backup 5
         environment {"HOME"=>"/opt/sentry"}
         group "sentry"
         returns 0
         user "sentry"
         declared_type :execute
         cookbook_name "sentry"
       end

   Recipe: remote_syslog2::service
     * service[remote_syslog2] action restart
       - restart service service[remote_syslog2]

   Running handlers:
   [2016-08-09T11:59:00+00:00] ERROR: Running exception handlers
   Running handlers complete
   [2016-08-09T11:59:00+00:00] ERROR: Exception handlers complete
   Chef Client failed. 14 resources updated in 57 seconds
   [2016-08-09T11:59:00+00:00] FATAL: Stacktrace dumped to /tmp/kitchen/cache/chef-stacktrace.out
   [2016-08-09T11:59:00+00:00] ERROR: execute[virtualenv  /opt/sentry] (/tmp/kitchen/cache/cookbooks/python/providers/virtualenv.rb line 37) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
   ---- Begin output of virtualenv  /opt/sentry ----
   STDOUT: 
   STDERR: Traceback (most recent call last):
     File "/usr/local/bin/virtualenv", line 7, in <module>
       from virtualenv import main
   ImportError: No module named virtualenv
   ---- End output of virtualenv  /opt/sentry ----
   Ran virtualenv  /opt/sentry returned 1
   [2016-08-09T11:59:00+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)`

I resolved it with this:
chmod -R a+rX /usr/local/lib/python2.7/dist-packages/

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

1 participant