#MongoDB database not connecting for seeding.

1 messages · Page 1 of 1 (latest)

stone shuttle
#

I'm trying to run an Amplification app that I've pushed to Github - I've downloaded the generated code and I'm working through the local setup. Everything is fine until the point of attempting to seed MongoDB (I've attached a screenshot of the error.) It's saying that it can't connect to the database on 27017 - but according to docker ps - the service is running:

5ae9dd67f326 mongo "/bin/bash -c 'opens…" 4 minutes ago Up 4 minutes (healthy) 0.0.0.0:27017->27017/tcp amp_clkecxkqx0jp2k801wsl87aut-db-1

Any idea what the problem is?

sinful citrus
#

Hi @stone shuttle someone from the team will look at it today and will get back to you

tawny pelican
#

hey @stone shuttle
I tried to reproduce your error with this repo:
https://github.com/amitplication-org/mongo-sandbox
a sample order service with mongoDB plugin
I navigated to the server folder cd apps/test-order and ran:

npm i 
npm run docker:db
npm run prisma:generate
npm run db:init

Everything works as expected. Can you provide more info? is there any chance that you have another instance of mongo running on the same port?

GitHub

Contribute to amitplication-org/mongo-sandbox development by creating an account on GitHub.