iorewpractice.blogg.se

Failed to start mongodb server on port 3002
Failed to start mongodb server on port 3002











failed to start mongodb server on port 3002
  1. #Failed to start mongodb server on port 3002 password#
  2. #Failed to start mongodb server on port 3002 windows#

Enter mongodb admin database username and password which you have created earlier. On Robo 3T GUI, in the connection settings, you need to do few changes as shown on below screen shots. If you see a connection, then you are good. Save and exit the nf file and restart mongodb server. If the telnet command just sits there waiting, then not good. You can get the host ip (that wsl/Ubuntu uses for servers running on windows) by using the cat /etc/nf that is mentioned in this thread. Probably should turn off the mongodb service (if running before doing any of this).īTW, a quick and easy test would be to use telnet on the wsl/Ubuntu command line For example, if you do not specify a -dbpath, starting a MongoDB server on the C:\ drive stores all data files in C:\data\db. On Windows, this path is on the drive from which you start MongoDB. From there you can follow the steps outlined by sylvix and sarunmrznĭon't forget the bind to 0.0.0.0 setting in mongod.cfg file. By default, MongoDB listens for connections from clients on port 27017, and stores data in the /data/db directory.Then click on the "Allow an app through firewall".Double check /etc/nf and check bindip 0.0.0.0 to allow external connections. Double check you've not got conflicting rules in iptables. In the search box, type then click "Firewall & network protection" Try the following steps: Give permission to /var/lib/mongodb directory.

#Failed to start mongodb server on port 3002 windows#

Right Click the Windows Start icon (at the bottom left).

failed to start mongodb server on port 3002

The instructions for that part was a little confusing so let me clarify it a little. Something about using the Windows settings firewall (instead of just using Windows Defender Firewall) worked!!! I tried SOOOO many things and nothing seemed to work, til I finally tried the steps outlined by by sylvix and sarunmrzn!!! Thanks this works great! but why is the address on nf different from the address thats shown in ip addr? for me just the nameserver from nf works Or google for "wsl find host ip" there are plenty of solutions there. On my machine cat /etc/nf works, after "nameserver" part.

  • It will add a set of rules to Defender Firewall that didn't work for some reason when added manually.
  • Then click "Network types" and select both types. Browse for "mongod.exe" executable (in %Program Files%\MongoDB\Server\X.Y\bin.
  • Click "Change settings", then button "Allow another app" will be enabled.
  • Click "Allow an app through firewall" link in bottom part of the window.
  • Go to Firewall and Network protection in Windows settings (Start -> type "Firewall" -> Enter).
  • After installation edit mongod.cfg and set bindIp to 0.0.0.0 (see previous post by thank you, BTW).
  • failed to start mongodb server on port 3002

  • While installing MongoDB on Windows, make sure you enable Windows service, otherwise you'll have to run it manually.












  • Failed to start mongodb server on port 3002