Skip to content

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

@i-sam

Description

@i-sam

================================================================================ 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/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions