Odoo Help


Locale issue (ValueError: unknown locale: UTF-8) with odoo 8

Ahmed Attar
on 8/10/16, 11:51 AM 2,281 views

hi All

I have a problem while installing the ooo 8 on a cents 6.8 server

I installed everything according to a tutorial, one time from github and another from nighty in both cases when I write

/etc/init.d/odoo start

it gives me this

Starting Odoo Server Daemon (odoo-server): [ OK ]

root@vps21029 [~]# Traceback (most recent call last):

File /opt/odoo/openerp-server, line 5, in openerp.cli.main()

File /opt/odoo/openerp/cli/__init__.py, line 68, in main o.run(args)

File /opt/odoo/openerp/cli/server.py, line 180, in run main(args)

File /opt/odoo/openerp/cli/server.py, line 140, in main openerp.tools.config.parse_config(args)

File /opt/odoo/openerp/tools/config.py, line 359, in parse_config openerp.netsvc.init_logger()

File /opt/odoo/openerp/netsvc.py, line 138, in init_logger resetlocale()

File /opt/odoo/openerp/tools/translate.py, line 1110, in resetlocale for ln in get_locales():

File /opt/odoo/openerp/tools/translate.py, line 1078, in get_locales lang = locale.getdefaultlocale()[0]

File /home/odoo/odoo/lib/python2.7/locale.py, line 543, in getdefaultlocale return _parse_localename(localename)

File /home/odoo/odoo/lib/python2.7/locale.py, line 475, in _parse_localename raise

ValueError, unknown locale: %s % localename

ValueError: unknown locale: UTF-8

and stops and I cant access it from any browser

I tried adding value to the default/locale but no use

do you have any idea?

I appreciate your help

On 12/3/16, 10:42 AM


Please try exporting the below to your ~/.bash_profile. I had a similar problem and solved like this.

export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8


About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 8/10/16, 11:51 AM
Seen: 2281 times
Last updated: 12/3/16, 10:42 AM