Coder Social home page Coder Social logo

Comments (4)

nojhamster avatar nojhamster commented on August 24, 2024 2

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.

pseudom avatar pseudom commented on August 24, 2024

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.

fbridebian avatar fbridebian commented on August 24, 2024

Thanks for the reply.

I can confirm that MongoDB is running, listening to localhost:27017 and I can connect to it with mongosh command :

image

However I still get the following error :

image

I'm working on a fresh install on a VM freshly installed out from a Debian NetInst ISO.

from ezpaarse.

fbridebian avatar fbridebian commented on August 24, 2024

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)

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.