Aventinus
Aventinus

Reputation: 1382

MongoDB plugin for IntelliJ - Timed out while waiting to connect after xxxx ms

I'm trying to follow this guide but I'm stuck to the point where I have to test the MongoDB plugin. I have installed MongoDB in my system and the Mongo Plugin to IntelliJ. In the MongoDB plugin settings the "Path to Mongo Executable" is correct (it shows the success symbol when I test it).

enter image description here

But when I try to add a Mongo Server the Test Connection fails. The error is: "Timed out while waiting to connect after xxxx ms". I tried starting mongod.exe manually, restarting IntelliJ and reboot. Nothing works. What am I missing?

enter image description here

Upvotes: 2

Views: 8783

Answers (2)

Aventinus
Aventinus

Reputation: 1382

I found the solution. The answer is given by Shivam Srivastava in this thread. The problem was that I hadn't set the dbpath. Shivam shows step by step how to achieve this.

Upvotes: 0

Juan Carlos Farah
Juan Carlos Farah

Reputation: 3879

I just downloaded it and played around with the plugin. I got it to connect only after starting up mongod manually beforehand. I don't even know if you can start up the mongod process from IntelliJ, as after reading the documentation, there is nothing about starting up the server. So basically I followed the steps you outlined, but before hitting "Test Connection", I start up the server manually. Once that is done, I was able to use the plugin's functionality.

Upvotes: 2

Related Questions