-
Notifications
You must be signed in to change notification settings - Fork 315
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
Non-existent hab user/group results in Failed to set permissions
error
#755
Comments
If I had to guess I would say: pub fn create_svc_path(&self) -> Result<()> {
let runas = format!("{}:{}", SERVICE_PATH_OWNER, SERVICE_PATH_GROUP);
...
Ok(())
} Needs to check the service_path_owner, or service_path_group, or have these be checked prior to using them in the runas format string. edit: Is it more appropriate to handle the error inside of create_svc_path, or outside of it, in |
Probably best to build a new error type, and then return it early. That will make the error message useful. |
Another option here would be to use |
Additionally, it would be very useful to if this requirement were documented in: |
Just ran into this issue myself, I had seen the hab user mentioned in the docs. Would it make sense to make this a part of the cli configuration? Here's the spot in the docs where it's mentioned as a requirement: |
addressed in #1050 |
I was missing the hab user/group and trying to run
hab start core/postgresql
. It would be nice to detect this state specifically from other generic failed to set permissions errors.hab-sup(ER)[src/error.rs:321:8]: Failed to set permissions
The text was updated successfully, but these errors were encountered: