Habitat oc_bifrost init missing $HOME
Open
Nobody has claimed this yet.
Aspect: Packaging
Component: habitat
Status: Good First Issue
Status: To be prioritized
Triage: Try Reproducing
Type: Bug
- Dominant language
- Erlang
- Stars
- 303
- Forks
- 211
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 5
Description
habitat/hooks/init:
Aug 03 10:12:48 dokken hab[14447]: oc_bifrost.default hook[init]:(HK): createdb: database creation failed: ERROR: database "bifrost" already exists
Aug 03 10:12:48 dokken hab[14447]: oc_bifrost.default hook[init]:(HK): NOTICE: extension "uuid-ossp" already exists, skipping
Aug 03 10:12:48 dokken hab[14447]: oc_bifrost.default hook[init]:(HK): CREATE EXTENSION
Aug 03 10:12:48 dokken hab[14447]: oc_bifrost.default hook[init]:(HK): Could not determine home directory
Adding export HOME=/hab/svc/oc_bifrost/var fixes this issue, but run script still contains issues:
-export CHEF_SECRETS_DATA=$(cat /hab/svc/oc_bifrost/config/veil-secrets.json)
+export CHEF_SECRETS_DATA="$(cat /hab/svc/oc_bifrost/config/veil-secrets.json)"
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with habitat/hooks/init and locate the run script containing CHEF_SECRETS_DATA. Reproduce the oc_bifrost initialization output, verify the home-directory failure and secret-value handling, then confirm the hook completes without that error and the existing initialization behavior remains intact.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- postgresql, shell
- Domain
- databases, infrastructure
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100