Comments (4)
Hi there !
I could reproduce this behavior in a VM and figured out the issue. In a fresh Debian install, the DNS has both IPv4
and IPv6
records for localhost
, so the Nodejs driver tries to connect using IPv6
. However, MongoDB does not listen to IPv6 by default, so the connection fails.
You should be able to fix the issue with one of the following solutions.
Solution 1:
Force ezPAARSE to use IPv4 by creating a config.local.json
file and replacing localhost
by 127.0.0.1
in the MongoDB URL.
{
"EZPAARSE_MONGO_URL": "mongodb://127.0.0.1:27017/ezpaarse"
}
Solution 2:
Edit the MongoDB configuration to make it listen to IPv6. In /etc/mongod.conf
:
net:
port: 27017
bindIp: 127.0.0.1,::1
ipv6: true
from ezpaarse.
Thanks for this issue.
Could you explicitly check that mongo is started in your Debian 11 install ?
In some distribution you have to manually create the /data/db directory to run
I can't reproduce your problem in my Debian 11/MongoDB 6.0.8 installation
Let us know !
from ezpaarse.
Thanks for the reply.
I can confirm that MongoDB is running, listening to localhost:27017 and I can connect to it with mongosh
command :
However I still get the following error :
I'm working on a fresh install on a VM freshly installed out from a Debian NetInst ISO.
from ezpaarse.
Thanks for your help, I can confirm that solves the problem.
I will close this issue and let you decide whether you want to make it appear in your documentation (and where) or not.
from ezpaarse.
Related Issues (20)
- Report UI Fails to Populate HREF Attribute Values
- Docker and Compose on Apple Silicon M1 HOT 1
- Docker instructions fail after addition of build HOT 1
- Failed to initialize parser list HOT 4
- Outdated Debian base image HOT 2
- fixing unknown domains?
- make update fails HOT 1
- alphabetically sort the categories displayed in the Statistics subsection on the Report tab (online form) HOT 1
- slow git commit HOT 2
- Do not start if no mongo connection HOT 3
- "make test platformX" lance tous les tests au lieu d'un seul HOT 1
- Docker builds failing HOT 2
- Can it use system node? HOT 3
- Bootstrap hangs up under node v10+
- Support for R5 HOT 3
- 4003 : Line format was not recognized HOT 2
- Manifest for 3.0.5 not found HOT 2
- French Rtype fields.json descriptions in English HOT 2
- get lines which are not processed 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 ezpaarse.