Bug Report: MongooseServerSelectionError: connect ECONNREFUSED 127.0.0.1:27017 #2782
iampearceman
started this conversation in
Feature Feedback
Replies: 1 comment
-
|
i am getting the same issue while deploying the API service on google cloud run ! HELP ME |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
📜 Description
i have a mongo installed, and i tried with MONGO_URL=mongodb://mongodb/novu-db, same error
i haven't did any changes, docker-compose files and .env 's are default
.
.
.
ws | [Nest] 537 - 02/04/2023, 11:28:41 AM [ExceptionHandler] connect ECONNREFUSED 127.0.0.1:27017 +30092ms
ws | MongooseServerSelectionError: connect ECONNREFUSED 127.0.0.1:27017
ws | at NativeConnection.Connection.openUri (/usr/src/app/node_modules/.pnpm/[email protected]/node_modules/mongoose/lib/connection.js:819:32)
ws | at /usr/src/app/node_modules/.pnpm/[email protected]/node_modules/mongoose/lib/index.js:379:10
ws | at /usr/src/app/node_modules/.pnpm/[email protected]/node_modules/mongoose/lib/helpers/promiseOrCallback.js:32:5
ws | at new Promise ()
ws | at promiseOrCallback (/usr/src/app/node_modules/.pnpm/[email protected]/node_modules/mongoose/lib/helpers/promiseOrCallback.js:31:10)
ws | at Mongoose._promiseOrCallback (/usr/src/app/node_modules/.pnpm/[email protected]/node_modules/mongoose/lib/index.js:1224:10)
ws | at Mongoose.connect (/usr/src/app/node_modules/.pnpm/[email protected]/node_modules/mongoose/lib/index.js:378:20)
ws | at DalService. (/usr/src/app/libs/dal/dist/dal.service.js:21:45)
ws | at Generator.next ()
ws | at /usr/src/app/libs/dal/dist/dal.service.js:8:71
ws | at new Promise ()
ws | at __awaiter (/usr/src/app/libs/dal/dist/dal.service.js:4:12)
ws | at DalService.connect (/usr/src/app/libs/dal/dist/dal.service.js:16:16)
ws | at /usr/src/app/apps/ws/src/shared/shared.module.ts:44:24
ws | at Generator.next ()
ws | at /usr/src/app/apps/ws/dist/src/shared/shared.module.js:14:71
ws | 2023-02-04T11:28:41: PM2 log: App [main:0] exited with code [1] via signal [SIGINT]
ws | 2023-02-04T11:28:41: PM2 log: App [main:0] starting in -fork mode-
ws | 2023-02-04T11:28:41: PM2 log: App [main:0] online
👟 Reproduction steps
docker-compose -f ./local/deployment/docker-compose.yml up
👍 Expected behavior
i have no idea
👎 Actual Behavior with Screenshots
mongo is not connecting to any services
📃 Provide any additional context for the Bug.
No response
👀 Have you spent some time to check if this bug has been raised before?
🏢 Have you read the Contributing Guidelines?
Are you willing to submit PR?
None
NV-1631
Beta Was this translation helpful? Give feedback.
All reactions