Skip to content

Commit 0015a4e

Browse files
authored
Define HOME variable inside konnector jail (#4470)
Some node modules as indirect dependencies rely on HOME variable to be set. If HOME env variable is not set, the konnector fail with the following message: ``` SystemError [ERR_SYSTEM_ERROR]: A system error occurred: uv_os_homedir returned ENOENT (no such file or directory) ``` Defining this variable make the konnector happy
2 parents 6cbe0e4 + eba2a03 commit 0015a4e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

scripts/konnector-nsjail-node-run.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ nsjail \
164164
-E "COZY_JOB_MANUAL_EXECUTION=${COZY_JOB_MANUAL_EXECUTION}" \
165165
-E "COZY_TIME_LIMIT=${COZY_TIME_LIMIT}" \
166166
-E "COZY_TRIGGER_ID=${COZY_TRIGGER_ID}" \
167+
-E "HOME=/usr/src/konnector" \
167168
-R "${rundir}:/usr/src/konnector/" \
168169
-R /lib \
169170
-R /lib64 \
@@ -194,5 +195,6 @@ nsjail \
194195
# -E "COZY_CREDENTIALS=${COZY_CREDENTIALS}" \
195196
# -E "COZY_JOB_MANUAL_EXECUTION=${COZY_JOB_MANUAL_EXECUTION}" \
196197
# -E "COZY_LOCALE=${COZY_LOCALE}" \
198+
# -E "HOME=/usr/src/konnector" \
197199
# -R "${rundir}:/usr/src/konnector/" \
198200
# -- /usr/bin/nodejs ${NODE_OPTS} "${runfile}"

0 commit comments

Comments
 (0)