sous-chefs / graphite

Development repository for the graphite cookbook
https://supermarket.chef.io/cookbooks/graphite
Apache License 2.0
154 stars 210 forks source link

Cannot use user www-data #209

Closed heaven closed 6 years ago

heaven commented 9 years ago

Need to use same user as nginx, otherwise no access to /tmp/uwsgi.sock. Set user/group to www-data and got this:

[2015-01-08T12:47:05-05:00] ERROR: user[www-data] (graphite::_user line 25) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '8'
---- Begin output of ["usermod", "-d", "/var/lib/graphite", "www-data"] ----
STDOUT:
STDERR: usermod: user www-data is currently used by process 29612
---- End output of ["usermod", "-d", "/var/lib/graphite", "www-data"] ----
Ran ["usermod", "-d", "/var/lib/graphite", "www-data"] returned 8
[2015-01-08T12:47:05-05:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
ianbamforth commented 8 years ago

+1

Making it possible to configure the "chown-socket" and / or "chmod-socket" in the uwsgi runit job would help.

ianbamforth commented 8 years ago

Actually looks as though what I suggested above had already been implemented. See https://github.com/hw-cookbooks/graphite/commit/73481e6d00c6c426706ac84cf362e3e8f8cc0971

The problem is that no release has taken place for well over a year.

diegobill commented 7 years ago

I still having this problem using version d90c03c40804c166df5f4c76a6027ada302790a6

+1

lock[bot] commented 4 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.