Comments (10)
@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.
@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
from mongodb-github-action.
@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.
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.
@fayaz07 Can you please share more details about your application? Is it Node.js with Mongoose?
from mongodb-github-action.
Node.js rest api
mongodb driver - mongoose
running tests with mocha
from mongodb-github-action.
is it related to #10?
Are you using a replica set in your tests?
from mongodb-github-action.
no, I guess I am not using them. I can share you the workflow in sometime
from mongodb-github-action.
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.
@fayaz07 thank you for letting me know that you solved your issue! Good work Mohammad!
from mongodb-github-action.
Related Issues (20)
- How to restart mongo after adding users? HOT 6
- Would you be interested in a Windows version? HOT 2
- MongoDB 6.0 contains breaking changes that make the setup action fail HOT 3
- [BUG] Action does not fail in case of missing image HOT 13
- How can i add/implement health check using this approach? HOT 1
- `mongo` and `mongosh` disappeared? HOT 15
- How can I Restore Dump from external location HOT 3
- mongoimport command not found HOT 2
- Reaching Docker Hub limit HOT 6
- Cannot connect to mongodb from Springboot HOT 2
- Add action typing HOT 4
- Mongodb tools HOT 1
- Please update v1 tag to point to newest version HOT 2
- single-instance can complete before ready to accept connections HOT 1
- How do I bind to all available interfaces? HOT 2
- tags and releases HOT 2
- MongoServerError: Authentication failed. HOT 3
- Authentication failed. HOT 2
- Error: docker: command not found
- toomanyrequests: You have reached your pull rate limit. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mongodb-github-action.