You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
With release 0.9.0, the default user/group for a running package and hooks is
hab:hab
, unless a plan overrides viapkg_svc_user
andpkg_svc_group
.The init hook tries to copy files as
hab:hab
, but the base service directory is owned byroot:root
. The plan should be modified to copy data to one of thehab
owned directories such asvar
ordata
.See also: https://forums.habitat.sh/t/failed-to-ryn-tutorial-example/164
The text was updated successfully, but these errors were encountered: