2 years ago
Deployment crash for basic ejs app. Logs show problem with mongo database.
16 Replies
2 years ago
what is the state of your mongo database deployment
2 years ago
okay what is the error you are getting
2 years ago
your client code is incorrect, please make sure you are using the correct connection details
2 years ago
you have missconfigured something, please see those logs, it is attempting to connect to mongo at ::1 and that's just not correct in the slightest
Ok, I will examine my code. I noted when it deployed ok 6 months ago, Railway changed connection code in the index.js file. Should I use that?
2 years ago
railway isn't changing anything in your index.js file, you simply have something missconfigured
2 years ago
please review your mongodb client to make sure you are creating a client with the correct credentials as per mongo's syntax for the client initiator
Seems I need to role back to an earlier repository, and check the mongo variables and other settings. Other than that, I can delete the mongo service and try to build another.
2 years ago
i think you shouldn't do something so drastic, instead, simply fix your coding / config mistake
I will work with the connection code in the index. js file. This may take some time.
your suggestion was helpful, I was able to change the mongo connection code and it worked, the revised app deploys. Thanks!
2 years ago
no problem!
