Errror creating database

Bug #871996 reported by Felix Schubert
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Web (MOVED TO GITHUB)
Invalid
Undecided
Unassigned

Bug Description

When I try to create a new database with the latest revisions of server and web client - I receive the following traceback:

[2011-10-10 20:24:16,035][openerp] ERROR:tools.convert.xml_import:Parse error in /home/openerp/openobject-addons/base_setup/base_setup_views.xml:90:
<record id="config_action_user_preferences_config_form" model="ir.actions.todo">
          <field name="action_id" ref="action_user_preferences_config_form"/>
          <field name="category_id" ref="base.category_administration_config"/>
          <field name="type">once</field>
      </record>
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/openerp_server-6.1_dev-py2.6.egg/openerp/tools/convert.py", line 888, in parse
    self._tags[rec.tag](self.cr, rec, n)
  File "/usr/local/lib/python2.6/dist-packages/openerp_server-6.1_dev-py2.6.egg/openerp/tools/convert.py", line 855, in _tag_record
    id = self.pool.get('ir.model.data')._update(cr, self.uid, rec_model, self.module, res, rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mode=self.mode, context=rec_context )
  File "/usr/local/lib/python2.6/dist-packages/openerp_server-6.1_dev-py2.6.egg/openerp/addons/base/ir/ir_model.py", line 718, in _update
    res_id = model_obj.create(cr, uid, values, context=context)
  File "/usr/local/lib/python2.6/dist-packages/openerp_server-6.1_dev-py2.6.egg/openerp/osv/orm.py", line 4203, in create
    self._check_selection_field_value(cr, user, field, vals[field], context=context)
  File "/usr/local/lib/python2.6/dist-packages/openerp_server-6.1_dev-py2.6.egg/openerp/osv/orm.py", line 2791, in _check_selection_field_value
    _('The value "%s" for the field "%s.%s" is not in the selection') % (value, self._table, field))
except_orm: ('ValidateError', 'The value "once" for the field "ir_actions_todo.type" is not in the selection')
[2011-10-10 20:24:16,039][openerp] ERROR:db.create:CREATE DATABASE failed:
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/openerp_server-6.1_dev-py2.6.egg/openerp/service/web_services.py", line 63, in _initialize_db
    update_module=True)[1]
  File "/usr/local/lib/python2.6/dist-packages/openerp_server-6.1_dev-py2.6.egg/openerp/pooler.py", line 44, in restart_pool
    registry = RegistryManager.new(db_name, force_demo, status, update_module, True)
  File "/usr/local/lib/python2.6/dist-packages/openerp_server-6.1_dev-py2.6.egg/openerp/modules/registry.py", line 155, in new
    openerp.modules.load_modules(registry.db, force_demo, status, update_module)
  File "/usr/local/lib/python2.6/dist-packages/openerp_server-6.1_dev-py2.6.egg/openerp/modules/loading.py", line 329, in load_modules
    processed = load_marked_modules(cr, graph, states_to_load, force, status, report, loaded_modules)
  File "/usr/local/lib/python2.6/dist-packages/openerp_server-6.1_dev-py2.6.egg/openerp/modules/loading.py", line 244, in load_marked_modules
    loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules)
  File "/usr/local/lib/python2.6/dist-packages/openerp_server-6.1_dev-py2.6.egg/openerp/modules/loading.py", line 186, in load_module_graph
    load_update_xml(module_name, idref, mode)
  File "/usr/local/lib/python2.6/dist-packages/openerp_server-6.1_dev-py2.6.egg/openerp/modules/loading.py", line 91, in <lambda>
    load_update_xml = lambda *args: _load_data(cr, *args, kind='update_xml')
  File "/usr/local/lib/python2.6/dist-packages/openerp_server-6.1_dev-py2.6.egg/openerp/modules/loading.py", line 137, in _load_data
    tools.convert_xml_import(cr, module_name, fp, idref, mode, noupdate, report)
  File "/usr/local/lib/python2.6/dist-packages/openerp_server-6.1_dev-py2.6.egg/openerp/tools/convert.py", line 998, in convert_xml_import
    obj.parse(doc.getroot())
  File "/usr/local/lib/python2.6/dist-packages/openerp_server-6.1_dev-py2.6.egg/openerp/tools/convert.py", line 888, in parse
    self._tags[rec.tag](self.cr, rec, n)
  File "/usr/local/lib/python2.6/dist-packages/openerp_server-6.1_dev-py2.6.egg/openerp/tools/convert.py", line 855, in _tag_record
    id = self.pool.get('ir.model.data')._update(cr, self.uid, rec_model, self.module, res, rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mode=self.mode, context=rec_context )
  File "/usr/local/lib/python2.6/dist-packages/openerp_server-6.1_dev-py2.6.egg/openerp/addons/base/ir/ir_model.py", line 718, in _update
    res_id = model_obj.create(cr, uid, values, context=context)
  File "/usr/local/lib/python2.6/dist-packages/openerp_server-6.1_dev-py2.6.egg/openerp/osv/orm.py", line 4203, in create
    self._check_selection_field_value(cr, user, field, vals[field], context=context)
  File "/usr/local/lib/python2.6/dist-packages/openerp_server-6.1_dev-py2.6.egg/openerp/osv/orm.py", line 2791, in _check_selection_field_value
    _('The value "%s" for the field "%s.%s" is not in the selection') % (value, self._table, field))
except_orm: ('ValidateError', 'The value "once" for the field "ir_actions_todo.type" is not in the selection')
Exception in thread Thread-7:
Traceback (most recent call last):
  File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.6/threading.py", line 484, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/local/lib/python2.6/dist-packages/openerp_server-6.1_dev-py2.6.egg/openerp/service/web_services.py", line 85, in _initialize_db
    cr.close()
  File "/usr/local/lib/python2.6/dist-packages/openerp_server-6.1_dev-py2.6.egg/openerp/sql_db.py", line 152, in wrapper
    raise psycopg2.OperationalError(msg)
OperationalError: Unable to use a closed cursor.

Revision history for this message
Jignesh Rathod(OpenERP) (jir-openerp) wrote :

Hello Felix Schubert,

I have checked your issue at my end.
But I did not get any traceback.

If you still face the same problem then please update us with the more
information.

I have checked with following revision :

Trunk :

   New web Client : 1203
     Server : 3750
     addons : 5343

Thank & waiting for your replay.

Changed in openerp-web:
status: New → Incomplete
Revision history for this message
Felix Schubert (input-fescon) wrote :

Hello Jignesh Rathod,

New web client: 1203
Server: 3750
addons: 5343

Running on Ubuntu 10.04 LTS

Starting the server with openerp-server --addons-path=path/to/addons as user openerp
Starting the web-client with python openerp-web.py as user openerp

Do you need any additional information?

Thanks in advance

Felix

Revision history for this message
Vishal Parmar(Open ERP) (vpa-openerp) wrote :

Hello Felix Schubert,

I have checked your issue with latest updated code with trunk , web-client(6.1) and It is working fine at my end.

I have started server with Following :

 ./openerp-server --addons=../openobject-addons

Revision of Trunk :

web-client(6.1) -1233

server - 3755

addons - 5352

Would you please try with updated code.

Thanks and waiting for your reply

Revision history for this message
Felix Schubert (input-fescon) wrote :

Hello Jignesh Rathod,

now it works - two things were reported this time which made it easier to fix the problem:

1.) the web addon from the web-client wasn't included.
2.) your_logo.png and the folder pixmaps doesn't exist.

After fixing these errors the database was created successfully!

Thank you very much for your help!

Felix

Changed in openerp-web:
status: Incomplete → Invalid
Revision history for this message
Angel Talavera (aftalavera) wrote :

Hi there,
Same error here but have noticed it only when creating database with demo data option.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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