Coder Social home page Coder Social logo

Comments (10)

marcuspoehls avatar marcuspoehls commented on June 12, 2024

@fayaz07 Hey Mohammad, can you please help me to debug your situation.

How do you connect to the MongoDB instance in GitHub actions?
How does your GitHub action configuration look like?

from mongodb-github-action.

fayaz07 avatar fayaz07 commented on June 12, 2024

@marcuspoehls Hi Marcus, thank you for your quick response.
I assume this MongoDB action will setup and run the db on port 27017. But when I ran the workflow, that didn't run the db. So I tried to run MongoDB instance as daemon by this command

mongod --fork --logpath /var/log/mongod.log

I have uploaded the error screenshot here, please check it
Screenshot from 2020-08-21 16-33-44

from mongodb-github-action.

marcuspoehls avatar marcuspoehls commented on June 12, 2024

@fayaz07 This actions starts MongoDB in a docker container. MongoDB is then available on localhost:27017.

Is your app not connecting to MongoDB?
What errors are you seeing using this MongoDB GitHub action?

from mongodb-github-action.

fayaz07 avatar fayaz07 commented on June 12, 2024

It's setting up perfectly no issue with that, but my application is unable to connect to it. It throws timeout exception as the db isn't running

from mongodb-github-action.

marcuspoehls avatar marcuspoehls commented on June 12, 2024

@fayaz07 Can you please share more details about your application? Is it Node.js with Mongoose?

from mongodb-github-action.

fayaz07 avatar fayaz07 commented on June 12, 2024

Node.js rest api
mongodb driver - mongoose
running tests with mocha

from mongodb-github-action.

marcuspoehls avatar marcuspoehls commented on June 12, 2024

is it related to #10?
Are you using a replica set in your tests?

from mongodb-github-action.

fayaz07 avatar fayaz07 commented on June 12, 2024

no, I guess I am not using them. I can share you the workflow in sometime

from mongodb-github-action.

fayaz07 avatar fayaz07 commented on June 12, 2024

Unfortunately I used, replica-sets which was the reason why db didn't start, I removed the replica sets and it fixed the issue. Thanks @marcuspoehls

from mongodb-github-action.

marcuspoehls avatar marcuspoehls commented on June 12, 2024

@fayaz07 thank you for letting me know that you solved your issue! Good work Mohammad!

from mongodb-github-action.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.