[MongoDB] Failed global initialization: BadValue Invalid or no user locale set. Please ensure LANG and/or LC_* environment variables are set correctly.
Tadashi Shigeoka · Mon, February 16, 2015
An error occurred when trying to enter mongo shell.
$ mongo myDb
Failed global initialization: BadValue Invalid or no user locale set. Please ensure LANG and/or LC_* environment variables are set correctly.
For now, you can connect to mongo shell by using the default locale.
$ export LC_ALL=C
Also, according to the article below, uninstalling unnecessary mongo packages should resolve the issue.
Reference Information
- What does export LANG=C mean | Redhat Enterprise Linux 4
- LANG=C doesn't output messages in English (I think) - Welcome to Hatena
That’s all from the Gemba.
