MONGODB LABS:: MongoNetworkError: connect ECONNREFUSED 127.0.0.1:27017

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 @sadham_hussain,

Thanks for reaching out.

Can you clarify in which lab you face this issue?

Thank you,

Davenson Lombard

This was on MONGO indexes II

However after 2 days it got resolved

Hi @sadham_hussain ,

Thanks for the update.

Happy to hear that it got resolve. I’ll review the lab nonetheless.

1 Like

The issue is still here attempt to restart the lab but still it persists. Please advice if there is any workaround.

Hi @LIM_SHENG_XUE ,

Can you confirm in which lab you are facing this issue?

Hi. It was The MongoDB Shell Lab 2, but it got resolved now.

1 Like

Hi @LIM_SHENG_XUE ,

Sorry for the delay. We are deploying a fix which resolved the issue.

Let me know if you face this issue again.

Thanks,

Davenson Lombard

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

How can I fix this?

Hi @Joke_Vereertbrugghen ,

The labs in MongoDB Indexes II have been fixed.

If you still face this error, please let me know. Restarting the lab normally fixes this issue as it is transient.

Thank you,

Davenson Lombard

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.

Hi @Joke_Vereertbrugghen,

Thanks for the update. The lab is fixed now.

Thanks

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.