can not create database in other language then English

Bug #326138 reported by Jan Verlaan
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Fix Released
Undecided
Unassigned

Bug Description

openerp5:/openerp/server# bzr version-info
revision-id: <email address hidden>
date: 2009-02-06 10:52:08 +0100
build-date: 2009-02-06 13:24:12 +0100
revno: 1706
branch-nick: server

environment debian-etch with python2.4

Create a new database via the client, in another language the English, with or without demodata doesn't matter.
After the end of creation the next error message is displayed:
Warning
Could not create database.

Physically the database is created, but not working.

When creating the database in English language there is no problem!

Could be related to bug 325259, but this one set to solved and now there is no stacktrace generated!

Revision history for this message
Jan Verlaan (jan-verlaan) wrote :

addition, with the revision of yesterday morning I could create new databses in other languages, thus this error must be introduced between yesterday and today!

Revision history for this message
Jan Verlaan (jan-verlaan) wrote :

Workarround found:

Install a new database first with the default English language,
Then as administrator go to the administration menu -> languages. Import a new language and the language will install. assign the language to the users.

Revision history for this message
Fabien (Open ERP) (fp-tinyerp) wrote :

Are you sure you have the latest version ? We tested on different environment and it works well.
Please re bzr up et retest.
We will release v5 in a few hours to tesT.

Changed in openobject-server:
status: New → Incomplete
Revision history for this message
Christophe Simonis (OpenERP) (kangol) wrote :

not reproducible

Changed in openobject-server:
status: Incomplete → Invalid
Revision history for this message
Jan Verlaan (jan-verlaan) wrote :

still reproducable, see comment for extra info

Changed in openobject-server:
status: Invalid → New
Revision history for this message
Jan Verlaan (jan-verlaan) wrote :
Download full text (27.9 KiB)

openerp5:/openerp/server# bzr version-info
revision-id: <email address hidden>
date: 2009-02-06 14:56:38 +0100
build-date: 2009-02-06 16:34:58 +0100
revno: 1709
branch-nick: server

openerp5:/openerp/addons# bzr version-info
revision-id: <email address hidden>
date: 2009-02-06 14:33:44 +0100
build-date: 2009-02-06 16:35:21 +0100
revno: 2199
branch-nick: addons

openerp5:/openerp/web# bzr version-info
revision-id: <email address hidden>
date: 2009-02-06 20:16:34 +0530
build-date: 2009-02-06 16:35:37 +0100
revno: 2271
branch-nick: web

updated my system 5 minutes ago.
Still reproducible on debian-etch with python2.4
The client used is the webclient. (perhaps that is the problem?)
Have no gtk installed on the debian server, so I could not test with a gtk client.
System is up to date

Yesterday I could create new databases, but after the update this morning I couldn't anymore.

Log of server: (not much)
openerp5:/openerp/server/bin# su postgres -c "./openerp-server.py --addons-path=../../addons" &
[1] 11963
openerp5:/openerp/server/bin# Closing connection <connection object at 0x2ad4e3d673d0; dsn: 'user=postgres dbname=template1', closed: 0>
Closing connection <connection object at 0x2ad4e3d673d0; dsn: 'user=postgres dbname=template1', closed: 0>
Closing connection <connection object at 0x2ad4e3d673d0; dsn: 'user=postgres dbname=template1', closed: 0>

Log of webclient:
openerp5:/openerp/web# su postgres -c "./start-openerp-web.py" &
[1] 11977
openerp5:/openerp/web# 2009-02-06 16:30:54,757 cherrypy.msg INFO CONFIG: Server parameters:
2009-02-06 16:30:54,758 cherrypy.msg INFO CONFIG: server.environment: development
2009-02-06 16:30:54,759 cherrypy.msg INFO CONFIG: server.log_to_screen: True
2009-02-06 16:30:54,759 cherrypy.msg INFO CONFIG: server.log_file:
2009-02-06 16:30:54,760 cherrypy.msg INFO CONFIG: server.log_tracebacks: True
2009-02-06 16:30:54,760 cherrypy.msg INFO CONFIG: server.log_request_headers: True
2009-02-06 16:30:54,761 cherrypy.msg INFO CONFIG: server.protocol_version: HTTP/1.0
2009-02-06 16:30:54,761 cherrypy.msg INFO CONFIG: server.socket_host:
2009-02-06 16:30:54,761 cherrypy.msg INFO CONFIG: server.socket_port: 8080
2009-02-06 16:30:54,761 cherrypy.msg INFO CONFIG: server.socket_file:
2009-02-06 16:30:54,762 cherrypy.msg INFO CONFIG: server.reverse_dns: False
2009-02-06 16:30:54,762 cherrypy.msg INFO CONFIG: server.socket_queue_size: 5
2009-02-06 16:30:54,762 cherrypy.msg INFO CONFIG: server.thread_pool: 10
2009-02-06 16:30:54,923 cherrypy.msg INFO HTTP: Serving HTTP on http://0.0.0.0:8080/
 - - "GET /menu HTTP/1.1" 200 7842 "http://openerp5:8080/menu" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.6) Gecko/2009011912 Firefox/3.0.6"
 - - "GET /tg_widgets/openerp/javascript/MochiKit/MochiKit.js HTTP/1.1" 200 5872 "http://openerp5:8080/menu" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.6) Gecko/2009011912 Firefox/3.0.6"
 - - "GET /tg_widgets/openerp/javascript/MochiKit/Base.js HTTP/1.1" 200 44632 "http://openerp5:8080/menu" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US;...

Revision history for this message
Jan Verlaan (jan-verlaan) wrote :
Download full text (12.6 KiB)

tested on a Ubuntu8.10 desktop version with the latest version and webclient. Same problem. See an extended trace now below.
When creating the database with the GTK client this problem doesn't occuur. (see trace ad the bottom.)

[2009-02-06 17:03:52,583] INFO:server:version - 5.0.0
[2009-02-06 17:03:52,583] INFO:server:addons_path - /home/jverlaan/openerp/addons
[2009-02-06 17:03:52,583] INFO:server:database hostname - localhost
[2009-02-06 17:03:52,584] INFO:server:database port - 5432
[2009-02-06 17:03:52,584] INFO:server:database user - postgres
[2009-02-06 17:03:52,584] INFO:objects:initialising distributed objects services
[2009-02-06 17:03:53,570] INFO:web-services:starting XML-RPC services, port 8069
[2009-02-06 17:03:53,570] INFO:web-services:starting NET-RPC service, port 8070
[2009-02-06 17:03:53,571] INFO:web-services:the server is running, waiting for connections...
[2009-02-06 17:04:21,831] INFO:dbpool:Connecting to template1
[2009-02-06 17:04:21,866] INFO:dbpool:Closing all connections to template1
Closing connection <connection object at 0x9ff441c; dsn: 'user=postgres dbname=template1', closed: 0>
[2009-02-06 17:04:52,522] INFO:dbpool:Connecting to template1
[2009-02-06 17:04:52,533] INFO:dbpool:Closing all connections to template1
Closing connection <connection object at 0x9ff448c; dsn: 'user=postgres dbname=template1', closed: 0>
[2009-02-06 17:04:52,543] INFO:dbpool:Connecting to template1
[2009-02-06 17:04:55,547] INFO:dbpool:Closing all connections to template1
Closing connection <connection object at 0x9ff441c; dsn: 'user=postgres dbname=template1', closed: 0>
[2009-02-06 17:04:55,548] INFO:web-services:CREATE DATABASE: testi
[2009-02-06 17:04:55,550] INFO:dbpool:Connecting to testi
[2009-02-06 17:04:57,643] INFO:init:module base: registering objects
[2009-02-06 17:04:58,028] INFO:init:module base: loading objects
[2009-02-06 17:04:58,064] INFO:init:module base: creating or updating database tables
[2009-02-06 17:04:59,220] INFO:orm:column 'type' in table 'ir_actions' changed size
[2009-02-06 17:04:59,360] INFO:orm:column 'report_xsl' in table 'ir_act_report_xml' changed size
[2009-02-06 17:04:59,399] INFO:orm:column 'report_xml' in table 'ir_act_report_xml' changed size
[2009-02-06 17:04:59,454] INFO:orm:column 'domain' in table 'ir_act_window' changed size
[2009-02-06 17:05:00,925] INFO:orm:column 'key2' in table 'ir_values' changed size
[2009-02-06 17:05:04,284] INFO:orm:column 'name' in table 'res_groups' changed size
[2009-02-06 17:05:04,341] INFO:orm:column 'name' in table 'res_roles' changed size
[2009-02-06 17:05:04,442] INFO:orm:column 'password' in table 'res_users' changed size
[2009-02-06 17:05:05,131] INFO:orm:storing computed values of fields.function 'menus_by_module'
[2009-02-06 17:05:05,227] INFO:orm:storing computed values of fields.function 'reports_by_module'
[2009-02-06 17:05:05,332] INFO:orm:storing computed values of fields.function 'views_by_module'
[2009-02-06 17:05:05,442] INFO:init:module base: loading base_data.xml
[2009-02-06 17:05:08,152] INFO:init:module base: loading base_menu.xml
[2009-02-06 17:05:08,262] INFO:init:module base: loading security/base_security.xml
[2009-02-06 17:05:08,417...

Revision history for this message
Davide Corio (enlightx-deactivatedaccount) wrote :

i'm having the same problem using officials tgz packages from openerp website.

with the trunk it works as expected

Revision history for this message
Davide Corio (enlightx-deactivatedaccount) wrote :

Solved.
i had to delete the hidden prefs files

Changed in openobject-server:
status: New → Invalid
Revision history for this message
PatriceJ (pv-vigierguitars) wrote :

I have the same problem under Debian, what are the names of what you call "hidden prefs files" ?

Revision history for this message
Jan Verlaan (jan-verlaan) wrote :

I think they mean .openerp_serverrc file in the homedirectory of the user running the openerp server.
But it didn't work for my case, so I'm left with the problem and glad I have someone on my side now.

Stephane, kindly have a (new) look to this issue. It is webclient based problem.

Revision history for this message
PatriceJ (pv-vigierguitars) wrote :

The openerp-server show the following errors
2009-02-10 21:37:12,895] CRITICAL:init:Couldn't load module base
[2009-02-10 21:37:12,896] CRITICAL:init:No module named pytz
[2009-02-10 21:37:12,897] ERROR:web-services:[01]: CREATE DATABASE
[2009-02-10 21:37:12,897] ERROR:web-services:[02]: Traceback (most recent call last):
[2009-02-10 21:37:12,897] ERROR:web-services:[03]: File "/usr/lib/python2.5/site-packages/openerp-server/service/web_services.py", line 90, in __call__
[2009-02-10 21:37:12,897] ERROR:web-services:[04]: update_module=True)[1]
[2009-02-10 21:37:12,897] ERROR:web-services:[05]: File "/usr/lib/python2.5/site-packages/openerp-server/pooler.py", line 61, in restart_pool
[2009-02-10 21:37:12,897] ERROR:web-services:[06]: return get_db_and_pool(db_name, force_demo, status, update_module=update_module)
[2009-02-10 21:37:12,897] ERROR:web-services:[07]: File "/usr/lib/python2.5/site-packages/openerp-server/pooler.py", line 40, in get_db_and_pool
[2009-02-10 21:37:12,897] ERROR:web-services:[08]: addons.load_modules(db, force_demo, status, update_module)
[2009-02-10 21:37:12,897] ERROR:web-services:[09]: File "/usr/lib/python2.5/site-packages/openerp-server/addons/__init__.py", line 665, in load_modules
[2009-02-10 21:37:12,897] ERROR:web-services:[10]: has_updates = load_module_graph(cr, graph, status, perform_checks=False, report=report)
[2009-02-10 21:37:12,898] ERROR:web-services:[11]: File "/usr/lib/python2.5/site-packages/openerp-server/addons/__init__.py", line 573, in load_module_graph
[2009-02-10 21:37:12,898] ERROR:web-services:[12]: register_class(m)
[2009-02-10 21:37:12,898] ERROR:web-services:[13]: File "/usr/lib/python2.5/site-packages/openerp-server/addons/__init__.py", line 373, in register_class
[2009-02-10 21:37:12,898] ERROR:web-services:[14]: imp.load_module(m, *fm)
[2009-02-10 21:37:12,898] ERROR:web-services:[15]: File "/usr/lib/python2.5/site-packages/openerp-server/addons/base/__init__.py", line 25, in <module>
[2009-02-10 21:37:12,898] ERROR:web-services:[16]: import res
[2009-02-10 21:37:12,898] ERROR:web-services:[17]: File "/usr/lib/python2.5/site-packages/openerp-server/addons/base/res/__init__.py", line 30, in <module>
[2009-02-10 21:37:12,898] ERROR:web-services:[18]: import res_user
[2009-02-10 21:37:12,898] ERROR:web-services:[19]: File "/usr/lib/python2.5/site-packages/openerp-server/addons/base/res/res_user.py", line 26, in <module>
[2009-02-10 21:37:12,898] ERROR:web-services:[20]: import pytz
[2009-02-10 21:37:12,898] ERROR:web-services:[21]: ImportError: No module named pytz

Revision history for this message
Jan Verlaan (jan-verlaan) wrote :

pytz is the a python module for World Timezone Definitions.
this module is missing on your system and part of the python dependencies used by OpenERP.
You have to install this module on your server machine. It is not a OpenERP module, but OpenERP depends on it.
Please have a look at http://pytz.sourceforge.net/ for more information how to install.
Message is not related to this bugtracker.

Revision history for this message
PatriceJ (pv-vigierguitars) wrote :

This solved my problem, thank you and sorry

Revision history for this message
Amit Mendapara (cristatus) wrote :

I confirm this error. I have tried with French and German. Though it's not related to pytz but seems that translate.py has some problem. I'm attaching the server log here...

Changed in openobject-server:
status: Invalid → New
Revision history for this message
Amit Mendapara (cristatus) wrote :
Revision history for this message
Amit Mendapara (cristatus) wrote :

Fixed. The problem was from web client only, GTK client was working perfect. The problem was that the `setlocale` accepts `str` while the web client is passing values in `unicode`.

Changed in openobject-server:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.