Odoo中文社区可以通过以下两个域名访问:shine-it.net , odoo.net.cn

由于系统升迁的原因,本论坛部分较早期的内容存在格式和链接损坏失效的问题,并非本论坛系统本身的缺陷,望谅解

本社区没有维护任何QQ群讨论组,任何与本社区同名的QQ群讨论组的言论与本社区无关!

开发人员可以登录gitter讨论组: http://gitter.im/odoo-china/Talk, 需要github账号

如果您登录系统碰到问题,请在微信公众号留言:

Openerp 6.1-1 ubuntu 12.04 安装成功 创建数据库时报错



  • 报错内容

    Could not create database 'opnerp': Traceback (most recent call last): File "/opt/openerp/server/openerp/addons/web/common/http.py", line 592, in send result = openerp.netsvc.dispatch_rpc(service_name, method, args) File "/opt/openerp/server/openerp/netsvc.py", line 360, in dispatch_rpc result = ExportService.getService(service_name).dispatch(method, params) File "/opt/openerp/server/openerp/service/web_services.py", line 117, in dispatch return fn(*params) File "/opt/openerp/server/openerp/service/web_services.py", line 137, in exp_create self._create_empty_database(db_name) File "/opt/openerp/server/openerp/service/web_services.py", line 125, in _create_empty_database cr.execute("""CREATE DATABASE "%s" ENCODING 'unicode' TEMPLATE "%s" """ % (name, chosen_template)) File "/opt/openerp/server/openerp/sql_db.py", line 152, in wrapper return f(self, *args, **kwargs) File "/opt/openerp/server/openerp/sql_db.py", line 212, in execute res = self._obj.execute(query, params) DataError: encoding UTF8 does not match locale zh_CN DETAIL: The chosen LC_CTYPE setting requires encoding EUC_CN. 
    


    应该是字符编码的问题 不知道怎么解决
    按照ubuntu时选的是中文



  • 补充 数据库是9.1版本



  • 已经搞定,删除默认的db

    sudo rm -rf /var/lib/postgresql/9.1/main/*<br />initdb -E UTF-8 -D /var/lib/postgresql/9.1/main --locale=zh_CN.UTF-8
    


  • 竟有此事?我装了几回也没有遇到。记录下


Log in to reply