Mongod error | exception in initAndListen std::exception: locale::facet::_S_create_c_locale name not valid

I got this error while trying to start mongodb on amazon ec2. Running this command in the terminal solved the problem.

export LC_ALL=C

I don’t have any idea about what it means at this time except that it sets the terminal to display all languages. If you can explain what actually it does, please drop a comment.

6 Replies to “Mongod error | exception in initAndListen std::exception: locale::facet::_S_create_c_locale name not valid”

Leave a Reply

Your email address will not be published. Required fields are marked *