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

Why does the python plugin insist on permissions? #679

Closed
standaloneSA opened this issue Jun 6, 2017 · 1 comment
Closed

Why does the python plugin insist on permissions? #679

standaloneSA opened this issue Jun 6, 2017 · 1 comment

Comments

@standaloneSA
Copy link

The python plugin cost me several hours of downtime on a very critical machine today.

Essentially, my WSGI web-apps were unable to be loaded by the www-data user because imports failed if the code lived in /usr/local/lib/python2.7/dist-packages

[Tue Jun 06 06:48:36.043677 2017] [wsgi:error] [pid 5903:tid 140137233069824] [client #IP#:50420] File "/var/svn/trac/main/htdocs/trac.wsgi", line 30, in application
[Tue Jun 06 06:48:36.043722 2017] [wsgi:error] [pid 5903:tid 140137233069824] [client #IP#:50420] from trac.web.main import dispatch_request
[Tue Jun 06 06:48:36.043747 2017] [wsgi:error] [pid 5903:tid 140137233069824] [client #IP#:50420] ImportError: No module named trac.web.main

The reason was tracked back to this module which, as described by the readme:

  • modulepaths is an array of paths where will be Collectd looking for Python modules, Puppet will ensure that each of specified directories exists and it is owned by root (and chmod 0750). If you don't specify any modulepaths a default value for given distribution will be used.

What is the reason for setting module paths to 750?

@alexjfisher
Copy link
Member

@standaloneSA Sorry to hear you've had a bad experience. It appears this issue is fixed in the latest release.
https://github.com/voxpupuli/puppet-collectd/blob/v5.3.0/manifests/plugin/python.pp#L63

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