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

Habitat tutorial fails to run init hook due to permissions problems #1168

Closed
bookshelfdave opened this issue Aug 17, 2016 · 1 comment
Closed
Assignees
Labels
Type: Bug Issues that describe broken functionality

Comments

@bookshelfdave
Copy link
Contributor

With release 0.9.0, the default user/group for a running package and hooks is hab:hab, unless a plan overrides via pkg_svc_user and pkg_svc_group.

The init hook tries to copy files as hab:hab, but the base service directory is owned by root:root. The plan should be modified to copy data to one of the hab owned directories such as var or data.

[metadave] hab_dev:root:/src/tutorial$ ls -latr /hab/svc/mytutorialapp/
total 48
drwx------ 2 hab  hab  4096 Aug 17 13:23 var
drwx------ 2 root root 4096 Aug 17 13:23 toml
-rwxr-xr-x 1 root root  333 Aug 17 13:23 run
drwx------ 2 hab  hab  4096 Aug 17 13:23 files
drwx------ 2 hab  hab  4096 Aug 17 13:23 data
-rw-r--r-- 1 root root 8565 Aug 17 13:23 config.toml
drwx------ 2 hab  hab  4096 Aug 17 13:23 config
drwxr-xr-x 3 root root 4096 Aug 17 13:23 ..
drwxr-xr-x 8 root root 4096 Aug 17 13:23 .
drwxr-xr-x 2 root root 4096 Aug 17 13:23 hooks

See also: https://forums.habitat.sh/t/failed-to-ryn-tutorial-example/164

@bookshelfdave
Copy link
Contributor Author

resolved via #1169, waiting for changes to be published to habitat.sh

@eeyun eeyun added C-bug and removed Bug labels Jun 6, 2017
@christophermaier christophermaier added Type: Bug Issues that describe broken functionality and removed C-bug labels Jul 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issues that describe broken functionality
Projects
None yet
Development

No branches or pull requests

3 participants