makeomatic / makeomatic/mservice-calendar

ms-users docker image throwing error

Open
#82 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2
Forks
2
PR merge metrics
No merged PRs in 30d

Description

When running with
image: makeomatic/ms-users:9.3.0-8.0.4
volumes:
- ${PWD}/test/configs:/src/configs:ro
environment:
NODE_ENV: 'production'
NCONF_FILE_PATH: '["/src/configs/ms-users/config.js"]'
MS_USERS__LOGGER__DEFAULT_LOGGER: 'true'
MS_USERS__INIT_ADMIN_ACCOUNTS_DELAY: '1'

Its crashing and throwing the error:

ms-users_1 | fs.js:968
ms-users_1 | binding.stat(pathModule.toNamespacedPath(path));
ms-users_1 | ^
ms-users_1 |
ms-users_1 | Error: ENOENT: no such file or directory, stat '/src/configs/ms-users/config.js'
ms-users_1 | at Object.fs.statSync (fs.js:968:11)
ms-users_1 | at paths.reduce (/src/node_modules/ms-conf/lib/load-config.js:81:22)
ms-users_1 | at Array.reduce ()
ms-users_1 | at resolveAbsPaths (/src/node_modules/ms-conf/lib/load-config.js:80:31)
ms-users_1 | at globFiles (/src/node_modules/ms-conf/lib/load-config.js:105:3)
ms-users_1 | at loadConfiguration (/src/node_modules/ms-conf/lib/load-config.js:153:5)
ms-users_1 | at reload (/src/node_modules/ms-conf/lib/index.js:15:32)
ms-users_1 | at Object.loadStore [as get] (/src/node_modules/ms-conf/lib/index.js:64:19)
ms-users_1 | at Object. (/src/lib/users.js:142:30)
ms-users_1 | at Module._compile (module.js:660:30)
ms-users_1 | at Object.Module._extensions..js (module.js:671:10)
ms-users_1 | at Module.load (module.js:573:32)
ms-users_1 | at tryModuleLoad (module.js:513:12)
ms-users_1 | at Function.Module._load (module.js:505:3)
ms-users_1 | at Module.require (module.js:604:17)
ms-users_1 | at require (internal/module.js:11:18)

Similar things is happening with other tags of docker image as well.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by checking the Docker bind mount for /src/configs and the NCONF_FILE_PATH value used by makeomatic/ms-users:9.3.0-8.0.4. Read /src/node_modules/ms-conf/lib/load-config.js and the call from /src/lib/users.js to trace the missing path. Done means the container starts without the ENOENT error using the reported configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, node.js
Domain
backend, devops
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.