Thursday, 30 April 2015

Mongo starting issue : LC_* environment variables are set correctly

I have been facing this issue with mongo lately. After i installed zsh, whenever i login to a remote box and try to start mongo i get this error :

Failed global initialization: BadValue Invalid or no user locale set. Please ensure LANG and/or LC_* environment variables are set correctly

So  simple solution is mentioned here: http://askubuntu.com/questions/536875/error-in-installing-mongo-in-virtual-machine

export LC_ALL=C
mongo 

To solve this permanently i change the ssh config :

sudo vim /etc/ssh/ssh_config 

and change the value from:

SendEnv LANG LC_*

to:

SendEnv LANG LC_ALL=C

That's it.
Thanks





2 comments:

  1. still gives the problem ::
    414+0000 SEVERE: Failed global initialization: BadValue Invalid or no user locale set. Please ensure LANG and/or LC_* environment variables are set correctly.

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete