-
Type: Bug
-
Resolution: Gone away
-
Priority: Minor - P4
-
Affects Version/s: None
-
Component/s: CLI Module
-
None
-
Environment:OS: Fedora 37 server
node.js / npm versions: v18.15.0 / 9.5.0
Additional info: Installed vie 9Server repo
-
Not Needed
Problem Statement/Rationale
If the mongod process is started with the mongod.conf including
processManagement: fork: true
mongosh does not connect, it returns with an error.{}
Steps to Reproduce
Install and start mongod, with fork: true option, and run mongosh.
Expected Results
mongosh should connect to the Unix domain socket just fine.
Actual Results, the error:
Current Mongosh Log ID: 64232c30d3a5196d9094ad1e
Connecting to: mongodb://127.0.0.1:27017/?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+1.8.0
MongoNetworkError: connect ECONNREFUSED 127.0.0.1:27017
Additional Notes, the mongod.conf
- where to write logging data.
systemLog:
destination: file
logAppend: true
path: /var/log/mongodb/mongod.log
- Where and how to store data.
storage:
dbPath: /var/lib/mongo
journal:
enabled: true
# engine:
wiredTiger:
engineConfig:
cacheSizeGB: 4
- how the process runs
processManagement:
fork: true # fork and run in background
pidFilePath: /var/run/mongodb/mongod.pid # location of pidfile
timeZoneInfo: /usr/share/zoneinfo
- network interfaces
net:
port: 27017
bindIp: 127.0.0.1 # Enter 0.0.0.0,:: to bind to all IPv4 and IPv6 addresses or, alternatively, use the net.bindIpAll setting.
unixDomainSocket:
enabled: true
pathPrefix: /tmp
filePermissions: 0666