I often getting this error in mongo db practice labs
Please advise on how to fix this
/scripts/mongosh.sh: line 2: /app/.env: No such file or directory
Current Mongosh Log ID: 66f7c4c002c0770693964032
Connecting to: mongodb://127.0.0.1:27017/?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+2.3.1
MongoNetworkError: connect ECONNREFUSED 127.0.0.1:27017
Hi,
I have the same problem in the lab MongoDB Indexes II
/scripts/mongosh.sh: line 2: /app/.env: No such file or directory
Current Mongosh Log ID: 670fca5657cc25d984fe6910
Connecting to: mongodb://127.0.0.1:27017/?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+2.3.2
MongoNetworkError: connect ECONNREFUSED 127.0.0.1:27017
Hi @Davenson_Lombard
I could do 3 labs without problems. Now I start the lab for lesson 8 and I have the same problem again.
Restarting the lab didn’t help, closing my webbrowser and restart the lab also didn’t help.