project id: 1971e1a2-608a-41cc-88bf-6980e99ce984
biparker
PROOP

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


biparker
PROOP

2 years ago

mongo database deploys with no problems on logs


2 years ago

okay what is the error you are getting


biparker
PROOP

2 years ago

screen shot for the logs error

1265692997929140200


2 years ago

your client code is incorrect, please make sure you are using the correct connection details


biparker
PROOP

2 years ago

I am using the same connection details as before, when it deployed ok.


biparker
PROOP

2 years ago

That code was not changed in the Git repository.


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


biparker
PROOP

2 years ago

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


biparker
PROOP

2 years ago

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


biparker
PROOP

2 years ago

I will work with the connection code in the index. js file. This may take some time.


biparker
PROOP

2 years ago

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!


Loading...