-
Notifications
You must be signed in to change notification settings - Fork 518
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
God misreports permissions when run as a non-root user #43
Comments
Can you check the parent directories and make sure that they all are executable? |
/var is owned by root, but executable by others:
Everything else up the chain is both owned by deploy and executable. |
Can you run this?
|
|
Can you paste the god recipe you're using? Does it include a Also, can you paste the output of:
|
|
Here's the god scripts: https://gist.github.com/987989 |
Ah, when running as a non-root user, don't specify Also, there are a couple things you may want to fix: If you don't specify
so god knows where to write the pid files to. Also, your resque worker shouldn't need to write its own pid file, god will do that automatically if you don't specify a The rule is:
|
I just got bitten by this problem as well. The log message is pretty descriptive about the problem, but it also happens to be wrong. Can the log message be changed to reflect the fact that w.uid and w.gid are not permitted when God is not running as root? Another thing that would help is to mention that the god process's EUID (which is different UID than what is being reported in the log) is the one unable to open the noted files. |
I'd like to second @bklang's suggestion - that would be quite helpful. |
Also just got bitten - would 3rd @bklang's suggestion. |
Yeah, those seem like a good idea. If someone would be willing to make a pull request with the check and the better error message, I'll definitely review it. I'm not sure how soon I'll have a chance to make the improvement myself, but I'll keep it on my radar. |
First reported in 2011 and still not fixed in 2014? The error message is so misleading. I'm glad this issue shows up in Google, so I was able to figure out what was happening. |
Happy birthday, misleading error message. At least we're able to find this thread that explains w.uid and w.gid are not permitted when God is not running as root. |
+1 |
When i try to run god as the "deploy" user on one of our servers, I see the following output int the god log:
However, an
ls -la
on the shared/pids directory shows that the deploy user does have write permissions:The second line in the god log output -- related to /dev/null not being accessible -- may be another bug, but not related to permissions. I have log file locations specified both for the process god is managing, yet god is still trying to use /dev/null for logging, apparently.
The text was updated successfully, but these errors were encountered: