Closed fbridebian closed 10 months ago
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 !
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.
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
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.
Since EZPaarse
3.9.0
, themake
script fails on the MongoDB step when I'm trying a fresh install on Debian 11.It works fine with EZPaarse 3.8.0 and the previous versions.
Local Config :
Main shell commands used for EZpaarse 3.9.1 on a fresh Debian 11 Install :
Full log results :
Main shell commands used for EZpaarse 3.8.0 on a fresh Debian 11 Install :
Full log results :