Site icon Satish Gandham

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.

Exit mobile version