← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 886697] [NEW] Server Error at start time

 

Public bug reported:

Just after the connection I get this on the screen (more informations further) :
----------------------------
Traceback (most recent call last):
  File "/opt/openerp/server/bin/netsvc.py", line 489, in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth, params)
  File "/opt/openerp/server/bin/service/web_services.py", line 599, in dispatch
    res = fn(db, uid, *params)
  File "/opt/openerp/server/bin/osv/osv.py", line 122, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/opt/openerp/server/bin/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/opt/openerp/server/bin/osv/osv.py", line 167, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/opt/openerp/server/bin/osv/orm.py", line 1630, in fields_view_get
    xml = self.__get_default_search_view(cr, user, context)
  File "/opt/openerp/server/bin/osv/orm.py", line 1394, in __get_default_search_view
    tree_view = self.fields_view_get(cr, uid, False, 'tree', context=context)
  File "/opt/openerp/server/bin/osv/orm.py", line 1645, in fields_view_get
    xarch, xfields = self.__view_look_dom_arch(cr, user, result['arch'], view_id, context=ctx)
  File "/opt/openerp/server/bin/osv/orm.py", line 1336, in __view_look_dom_arch
    cr.execute('select name, model from ir_ui_view where (id=%s or inherit_id=%s) and arch like %s', (view_id, view_id, '%%%s%%' % field))
  File "/opt/openerp/server/bin/sql_db.py", line 78, in wrapper
    return f(self, *args, **kwargs)
  File "/opt/openerp/server/bin/sql_db.py", line 131, in execute
    res = self._obj.execute(query, params)
ProgrammingError: ERREUR:  l'opérateur n'existe pas : integer = boolean
LIGNE 1 : select name, model from ir_ui_view where (id=false or inheri...
                                                      ^
ASTUCE : Aucun opérateur ne correspond au nom donné et aux types d'arguments.
Vous devez ajouter des conversions explicites de type.
--------------------------------------------------------------------------------

So I did put a trace in orm.py, here follows  the copy of the console :

/opt/openerp/server/bin$ ./openerp-server.py -c /opt/serverrc 
[2011-11-05 23:43:40,336][?] INFO:server:OpenERP version - 6.0.3
[2011-11-05 23:43:40,340][?] INFO:server:addons_path - /opt/openerp/server/bin/addons
[2011-11-05 23:43:40,340][?] INFO:server:database hostname - localhost
[2011-11-05 23:43:40,341][?] INFO:server:database port - 5432
[2011-11-05 23:43:40,341][?] INFO:server:database user - openerp
[2011-11-05 23:43:40,341][?] INFO:server:initialising distributed objects services
[2011-11-05 23:43:40,604][?] INFO:web-services:starting HTTP service at 0.0.0.0 port 8069
[2011-11-05 23:43:40,604][?] INFO:web-services:starting HTTPS service at 0.0.0.0 port 8071
[2011-11-05 23:43:40,605][?] INFO:web-services:Registered XML-RPC over HTTP
[2011-11-05 23:43:40,606][?] INFO:web-services:starting NET-RPC service at 0.0.0.0 port 8070
[2011-11-05 23:43:40,606][?] INFO:server:Starting 3 services
[2011-11-05 23:43:40,607][?] INFO:server:OpenERP server is running, waiting for connections...
[2011-11-05 23:43:59,679][bibi] INFO:init:module base: loading objects
[2011-11-05 23:43:59,680][bibi] INFO:init:module base: registering objects
[2011-11-05 23:44:00,210][bibi] INFO:init:module base: loading objects
[2011-11-05 23:44:00,346][bibi] INFO:init:module web_livechat: loading objects
[2011-11-05 23:44:00,346][bibi] INFO:init:module web_livechat: registering objects
[2011-11-05 23:44:00,350][bibi] INFO:init:module base_setup: loading objects
[2011-11-05 23:44:00,351][bibi] INFO:init:module base_setup: registering objects
                                                                                                                                                          
ORM:::__view_look_dom_arch::: field= name  view_id= False     (<== my trace just before the line 1336)
Traceback (most recent call last):
  File "/usr/lib/python2.6/logging/__init__.py", line 773, in emit
    stream.write(fs % msg.encode("UTF-8"))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 98: ordinal not in range(128)
Traceback (most recent call last):
  File "/usr/lib/python2.6/logging/__init__.py", line 773, in emit
    stream.write(fs % msg.encode("UTF-8"))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1412: ordinal not in range(128)
ORM:::__view_look_dom_arch::: field= name  view_id= False
Traceback (most recent call last):
  File "/usr/lib/python2.6/logging/__init__.py", line 773, in emit
    stream.write(fs % msg.encode("UTF-8"))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 98: ordinal not in range(128)
Traceback (most recent call last):
  File "/usr/lib/python2.6/logging/__init__.py", line 773, in emit
    stream.write(fs % msg.encode("UTF-8"))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1412: ordinal not in range(128)

** Affects: openobject-server
     Importance: Undecided
         Status: New


** Tags: start

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP Project Group.
https://bugs.launchpad.net/bugs/886697

Title:
  Server Error at start time

Status in OpenERP Server:
  New

Bug description:
  Just after the connection I get this on the screen (more informations further) :
  ----------------------------
  Traceback (most recent call last):
    File "/opt/openerp/server/bin/netsvc.py", line 489, in dispatch
      result = ExportService.getService(service_name).dispatch(method, auth, params)
    File "/opt/openerp/server/bin/service/web_services.py", line 599, in dispatch
      res = fn(db, uid, *params)
    File "/opt/openerp/server/bin/osv/osv.py", line 122, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/opt/openerp/server/bin/osv/osv.py", line 176, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/opt/openerp/server/bin/osv/osv.py", line 167, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/opt/openerp/server/bin/osv/orm.py", line 1630, in fields_view_get
      xml = self.__get_default_search_view(cr, user, context)
    File "/opt/openerp/server/bin/osv/orm.py", line 1394, in __get_default_search_view
      tree_view = self.fields_view_get(cr, uid, False, 'tree', context=context)
    File "/opt/openerp/server/bin/osv/orm.py", line 1645, in fields_view_get
      xarch, xfields = self.__view_look_dom_arch(cr, user, result['arch'], view_id, context=ctx)
    File "/opt/openerp/server/bin/osv/orm.py", line 1336, in __view_look_dom_arch
      cr.execute('select name, model from ir_ui_view where (id=%s or inherit_id=%s) and arch like %s', (view_id, view_id, '%%%s%%' % field))
    File "/opt/openerp/server/bin/sql_db.py", line 78, in wrapper
      return f(self, *args, **kwargs)
    File "/opt/openerp/server/bin/sql_db.py", line 131, in execute
      res = self._obj.execute(query, params)
  ProgrammingError: ERREUR:  l'opérateur n'existe pas : integer = boolean
  LIGNE 1 : select name, model from ir_ui_view where (id=false or inheri...
                                                        ^
  ASTUCE : Aucun opérateur ne correspond au nom donné et aux types d'arguments.
  Vous devez ajouter des conversions explicites de type.
  --------------------------------------------------------------------------------

  So I did put a trace in orm.py, here follows  the copy of the console
  :

  /opt/openerp/server/bin$ ./openerp-server.py -c /opt/serverrc 
  [2011-11-05 23:43:40,336][?] INFO:server:OpenERP version - 6.0.3
  [2011-11-05 23:43:40,340][?] INFO:server:addons_path - /opt/openerp/server/bin/addons
  [2011-11-05 23:43:40,340][?] INFO:server:database hostname - localhost
  [2011-11-05 23:43:40,341][?] INFO:server:database port - 5432
  [2011-11-05 23:43:40,341][?] INFO:server:database user - openerp
  [2011-11-05 23:43:40,341][?] INFO:server:initialising distributed objects services
  [2011-11-05 23:43:40,604][?] INFO:web-services:starting HTTP service at 0.0.0.0 port 8069
  [2011-11-05 23:43:40,604][?] INFO:web-services:starting HTTPS service at 0.0.0.0 port 8071
  [2011-11-05 23:43:40,605][?] INFO:web-services:Registered XML-RPC over HTTP
  [2011-11-05 23:43:40,606][?] INFO:web-services:starting NET-RPC service at 0.0.0.0 port 8070
  [2011-11-05 23:43:40,606][?] INFO:server:Starting 3 services
  [2011-11-05 23:43:40,607][?] INFO:server:OpenERP server is running, waiting for connections...
  [2011-11-05 23:43:59,679][bibi] INFO:init:module base: loading objects
  [2011-11-05 23:43:59,680][bibi] INFO:init:module base: registering objects
  [2011-11-05 23:44:00,210][bibi] INFO:init:module base: loading objects
  [2011-11-05 23:44:00,346][bibi] INFO:init:module web_livechat: loading objects
  [2011-11-05 23:44:00,346][bibi] INFO:init:module web_livechat: registering objects
  [2011-11-05 23:44:00,350][bibi] INFO:init:module base_setup: loading objects
  [2011-11-05 23:44:00,351][bibi] INFO:init:module base_setup: registering objects
                                                                                                                                                            
  ORM:::__view_look_dom_arch::: field= name  view_id= False     (<== my trace just before the line 1336)
  Traceback (most recent call last):
    File "/usr/lib/python2.6/logging/__init__.py", line 773, in emit
      stream.write(fs % msg.encode("UTF-8"))
  UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 98: ordinal not in range(128)
  Traceback (most recent call last):
    File "/usr/lib/python2.6/logging/__init__.py", line 773, in emit
      stream.write(fs % msg.encode("UTF-8"))
  UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1412: ordinal not in range(128)
  ORM:::__view_look_dom_arch::: field= name  view_id= False
  Traceback (most recent call last):
    File "/usr/lib/python2.6/logging/__init__.py", line 773, in emit
      stream.write(fs % msg.encode("UTF-8"))
  UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 98: ordinal not in range(128)
  Traceback (most recent call last):
    File "/usr/lib/python2.6/logging/__init__.py", line 773, in emit
      stream.write(fs % msg.encode("UTF-8"))
  UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1412: ordinal not in range(128)

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/886697/+subscriptions


Follow ups

References