Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Web Technology by (47.6k points)

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

1 Answer

0 votes
by (106k points)

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

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

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

Browse Categories

...