Skip to content

ms-users docker image throwing error #82

@pooja-deoria

Description

@pooja-deoria

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions