Node application deployment keep crashing with MongoDB plugin
kodenerds
FREEOP
a year ago
Deployment crashing with this error.
node:internal/modules/cjs/loader:1031
throw err;
^
Error: Cannot find module '/app/mongod'
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1028:15)
at Function.Module._load (node:internal/modules/cjs/loader:873:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:22:47 {code: 'MODULENOTFOUND',
requireStack: []
}
ⓘ Deployment information is only viewable by project members and Railway employees.
1 Replies
a year ago
Why is your app trying to start a local MongoDB daemon? It shouldn't be creating a local MongoDB instance it should be connecting to a separate MongoDB service within your project