Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mongo waiting on 27017 even after reinstall

Tags:

I have uninstalled and reinstalled mongo (3.0.1), being sure i accepted the network access on windows 8, and yet i still have the same issue of "waiting on 27017".

The commands i sent are the following:

PS C:\Program Files\MongoDB\Server\3.0\bin> .\mongod.exe --dbpath  C:\mongodb\data 2015-04-01T21:33:46.787-0400 I JOURNAL  [initandlisten] journal dir=C:\mongodb\data\journal 2015-04-01T21:33:46.790-0400 I JOURNAL  [initandlisten] recover : no journal files present, no recovery needed 2015-04-01T21:33:46.972-0400 I JOURNAL  [durability] Durability thread started 2015-04-01T21:33:46.973-0400 I JOURNAL  [journal writer] Journal writer thread started 2015-04-01T21:33:47.134-0400 I CONTROL  [initandlisten] MongoDB starting : pid=7436 port=27017 dbpath=C:\mongodb\data 64 -bit host=CookieMunster 2015-04-01T21:33:47.135-0400 I CONTROL  [initandlisten] targetMinOS: Windows 7/Windows Server 2008 R2 2015-04-01T21:33:47.135-0400 I CONTROL  [initandlisten] db version v3.0.1 2015-04-01T21:33:47.136-0400 I CONTROL  [initandlisten] git version: 534b5a3f9d10f00cd27737fbcd951032248b5952 2015-04-01T21:33:47.137-0400 I CONTROL  [initandlisten] OpenSSL version: OpenSSL 1.0.1j-fips 15 Oct 2014 2015-04-01T21:33:47.137-0400 I CONTROL  [initandlisten] build info: windows sys.getwindowsversion(major=6, minor=1, buil d=7601, platform=2, service_pack='Service Pack 1') BOOST_LIB_VERSION=1_49 2015-04-01T21:33:47.139-0400 I CONTROL  [initandlisten] allocator: system 2015-04-01T21:33:47.141-0400 I CONTROL  [initandlisten] options: { storage: { dbPath: "C:\mongodb\data" } } 2015-04-01T21:33:47.148-0400 I INDEX    [initandlisten] allocating new ns file C:\mongodb\data\local.ns, filling with ze roes... 2015-04-01T21:33:47.587-0400 I STORAGE  [FileAllocator] allocating new datafile C:\mongodb\data\local.0, filling with ze roes... 2015-04-01T21:33:47.589-0400 I STORAGE  [FileAllocator] creating directory C:\mongodb\data\_tmp 2015-04-01T21:33:47.721-0400 I STORAGE  [FileAllocator] done allocating datafile C:\mongodb\data\local.0, size: 64MB,  t ook 0.007 secs 2015-04-01T21:33:47.747-0400 I NETWORK  [initandlisten] waiting for connections on port 27017 

This is pending and will continue to do see endlessly.

Hitting my head against a wall and any help is wonderful.

Thanks

like image 685
jason m Avatar asked Apr 02 '15 01:04

jason m


People also ask

How do I know if port 27017 is open?

Open the Command Line of the Windows operation system, and type the command netstat –ano |findstr “27017” as shown below: Find the process whose status is LISTENING, and the 2700 is the PID of the process.

How do you check if Mongo DB is installed or not?

Open the command prompt and type "cd c:\program files\mongodb\server\your version\bin". After you enter the bin folder type "mongo start". If you get either a successful connection or failed one it means it's installed at least.


1 Answers

The waiting for connections message in the console output indicates that the mongod.exe process is running successfully.

http://docs.mongodb.org/manual/tutorial/install-mongodb-on-windows/?_ga=1.82566930.525730850.1428016333

Next you need to connect to MongoDB through mongo.exe shell using another command promt.

As soon as you are done with that, the waiting message in first console would change to connection accepted.

Hope that helps :)

like image 78
Waqas Avatar answered Oct 14 '22 06:10

Waqas