Error 100 MongoDB 3.4.4

0
  

2017-04-24T23: 51: 45.724-0500 I CONTROL [initandlisten] MongoDB starting: pid = 9476 port = 27017 dbpath = C: \ data \ db \ 64-bit host = ArianWhite

     

2017-04-24T23: 51: 45.726-0500 I CONTROL [initandlisten] targetMinOS: Windows 7 / Windows Server 2008 R2

     

2017-04-24T23: 51: 45.726-0500 I CONTROL [initandlisten] db version v3.4.4

     

2017-04-24T23: 51: 45.727-0500 I CONTROL [initandlisten] git version: 888390515874a9debd1b6c5d36559ca86b44babd

     

2017-04-24T23: 51: 45.727-0500 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.0.1u-fips 22 Sep 2016

     

2017-04-24T23: 51: 45.727-0500 I CONTROL [initandlisten] allocator: tcmalloc

     

2017-04-24T23: 51: 45.727-0500 I CONTROL [initandlisten] modules: enterprise

     

2017-04-24T23: 51: 45.727-0500 I CONTROL [initandlisten] build environment:

     

2017-04-24T23: 51: 45.727-0500 I CONTROL [initandlisten] distmod: windows-64

     

2017-04-24T23: 51: 45.727-0500 I CONTROL [initandlisten] distarch: x86_64

     

2017-04-24T23: 51: 45.727-0500 I CONTROL [initandlisten] target_arch: x86_64

     

2017-04-24T23: 51: 45.727-0500 I CONTROL [initandlisten] options: {}

     

2017-04-24T23: 51: 45.728-0500 I STORAGE [initandlisten] exception in initAndListen: 29 Data directory C: \ data \ db \ not found., terminating

     

2017-04-24T23: 51: 45.728-0500 I NETWORK [initandlisten] shutdown: going to close listening sockets ...

     

2017-04-24T23: 51: 45.728-0500 I NETWORK [initandlisten] shutdown: going to flush diaglog ...

     

2017-04-24T23: 51: 45.728-0500 I CONTROL [initandlisten] now exiting

     

2017-04-24T23: 51: 45.728-0500 I CONTROL [initandlisten] shutting down with code: 100

I hope you can help me with this, I installed MongoDB 3.4.4 and I get the previous errors, I'm trying to run mongod to start the services, what can I do?

    
asked by Rodrigo Arenas 25.04.2017 в 07:15
source

2 answers

1

Look at the line:

  

2017-04-24T23: 51: 45.728-0500 I STORAGE [initandlisten] exception in initAndListen: 29 Data directory C: \ data \ db \ not found., terminating

  • Verify that c:datadb exists. It is the directory in which mongo stores the database.
  • Verify that this directory has sufficient permissions to be able to write to it.
  • In linux there is the lock file in /var/lib/mongo/mongo.lock . Search Windows if there is such a file and delete it.
  • answered by 25.04.2017 в 09:55
    0
      

    2017-04-24T23: 51: 45.728-0500 I STORAGE [initandlisten] exception in   initAndListen: 29 Data directory C: \ data \ db \ not found., terminating

    You just have to create the following folders: data and db, being in C:

    C:\> mkdir data\db
    

    This is the tutorial of the steps necessary to run mongod on windows: Set up the MongoDB environment

        
    answered by 26.04.2017 в 22:32