N
Novu•11mo ago
Sid

Mongo/Mongoose Error in "npm run start:api:dev"

[Nest] 17180 - 01/22/2024, 6:16:01 PM ERROR [ExceptionHandler] connect ECONNREFUSED 127.0.0.1:27017 MongooseServerSelectionError: connect ECONNREFUSED 127.0.0.1:27017 at _handleConnectionErrors (/home/sid/code/novu/node_modules/.pnpm/[email protected]/node_modules/mongoose/lib/connection.js:805:11) at NativeConnection.openUri (/home/sid/code/novu/node_modules/.pnpm/[email protected]/node_modules/mongoose/lib/connection.js:780:11)
No description
23 Replies
Sid
SidOP•11mo ago
System Info Windows 10 Pro WSL & Docker enabled. Mongo install in windows Redis install in WSL
Sid
SidOP•11mo ago
Novu
Windows - Novu
Learn how to configure your local Windows machine to run Novu
Sid
SidOP•11mo ago
Project in linux filesytem & running using it. Now i am installing project in windows file system
Sid
SidOP•11mo ago
No description
Sid
SidOP•11mo ago
I doubted may be mongo is in windows & project in WSL may cause issue and to verify I setup one simple node & mongoose in both windows & WSL. And its work well in both. Question Can i run mongo & redis in docker. @Pawan Jain Can you please help?
Novu_Bot
Novu_Bot•11mo ago
@Sid, you just advanced to level 2!
empe
empe•11mo ago
Hey @Sid, Pawan is unavailable for the upcoming days. I will try to help you as much as I can 🙂 Can you please elaborate on what you are trying to accomplish so I can help you or provide more context to the team for additional assistance? @Sid What is your Node version?
Sid
SidOP•11mo ago
Thank emil I have multiple node versions , 18.18 and 20.10 I tried using both I am setup project using 18.18
empe
empe•11mo ago
What about pnpm version? Are you using latest next branch code?
Sid
SidOP•11mo ago
I need to setup project locally for a contribution. I tried npn run start and api only commands both failed in share error 8.8.0 Yes, i guess I will pull one more time
empe
empe•11mo ago
Okay, meanwhile I will try to find an answer
Sid
SidOP•11mo ago
Okay I am also trying to set up a project using powershell. Thank you for your help One more thing Question Can i run mongo & redis in docker.
empe
empe•11mo ago
Yes, you can run MongoDB and Redis in Docker
Sid
SidOP•11mo ago
Okay, I asked because for Mac you suggest using homebrew. Is there anything different with homebrew?
empe
empe•11mo ago
I have found this conversation: https://discord.com/channels/895029566685462578/1125526392453468170 Can you please have a look at it?
Sid
SidOP•11mo ago
Sure Emil shared support regarding docker. I will try with docker later And they mentioned mongo altas. It is installed on my system mongo compas*
empe
empe•11mo ago
@Zac Clifton can you help here mb?
Zac Clifton
Zac Clifton•11mo ago
@Sid Where you able to spin everything up from the docker compose files?
Sid
SidOP•11mo ago
@Zac Clifton not yet, it will take some time to do.
Novu_Bot
Novu_Bot•11mo ago
@Sid, you just advanced to level 3!
Sid
SidOP•11mo ago
Currently I am trying in the windows file system. Can I use pnpm > 8.9.0. Or 8.14 Got this https://cloud.nx.app/runs/7UeBhS4adZ after running from powershell guys, can i use this doc for docker spin https://docs.novu.co/self-hosting-novu/deploy-with-docker
Zac Clifton
Zac Clifton•11mo ago
Yeah you should be able to
Sid
SidOP•11mo ago
Okay, thanks @Zac Clifton
Want results from more Discord servers?
Add your server