← Back to team overview

openerp-india team mailing list archive

[Bug 924696] [NEW] Trunk: can't create any new database with latest revisions of trunk

 

Public bug reported:

When I try to create a new database with latests revisions of trunk i
get the following error-messages:


[2012-02-01 07:02:08,347][test] ERROR:db.cursor:Programming error: relation "res_log" does not exist
LINE 1: update res_log set read=True where create_date >= E'2012-02-...
               ^
, in query update res_log set read=True where create_date >= %s
[2012-02-01 07:02:08,348][test] ERROR:db.create:CREATE DATABASE failed:
Traceback (most recent call last):
  File "/home/erp/openerp_trunk/server/openerp/service/web_services.py", line 67, in _initialize_db
    update_module=True)[1]
  File "/home/erp/openerp_trunk/server/openerp/pooler.py", line 39, in restart_pool
    registry = RegistryManager.new(db_name, force_demo, status, update_module, True)
  File "/home/erp/openerp_trunk/server/openerp/modules/registry.py", line 160, in new
    openerp.modules.load_modules(registry.db, force_demo, status, update_module)
  File "/home/erp/openerp_trunk/server/openerp/modules/loading.py", line 299, in load_modules
    loaded_modules, processed_modules = load_module_graph(cr, graph, status, perform_checks=(not update_module), report=report)
  File "/home/erp/openerp_trunk/server/openerp/modules/loading.py", line 225, in load_module_graph
    cr.execute("update res_log set read=True where create_date >= %s", (dt_before_load,))
  File "/home/erp/openerp_trunk/server/openerp/sql_db.py", line 152, in wrapper
    return f(self, *args, **kwargs)
  File "/home/erp/openerp_trunk/server/openerp/sql_db.py", line 214, in execute
    res = self._obj.execute(query, params)
ProgrammingError: relation "res_log" does not exist
LINE 1: update res_log set read=True where create_date >= E'2012-02-...
               ^

Exception in thread Thread-11:
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 "/home/erp/openerp_trunk/server/openerp/service/web_services.py", line 89, in _initialize_db
    cr.close()
  File "/home/erp/openerp_trunk/server/openerp/sql_db.py", line 151, in wrapper
    raise psycopg2.OperationalError(msg)
OperationalError: Unable to use a closed cursor.

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

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/924696

Title:
  Trunk: can't create any new database with latest revisions of trunk

Status in OpenERP Addons (modules):
  New

Bug description:
  When I try to create a new database with latests revisions of trunk i
  get the following error-messages:

  
  [2012-02-01 07:02:08,347][test] ERROR:db.cursor:Programming error: relation "res_log" does not exist
  LINE 1: update res_log set read=True where create_date >= E'2012-02-...
                 ^
  , in query update res_log set read=True where create_date >= %s
  [2012-02-01 07:02:08,348][test] ERROR:db.create:CREATE DATABASE failed:
  Traceback (most recent call last):
    File "/home/erp/openerp_trunk/server/openerp/service/web_services.py", line 67, in _initialize_db
      update_module=True)[1]
    File "/home/erp/openerp_trunk/server/openerp/pooler.py", line 39, in restart_pool
      registry = RegistryManager.new(db_name, force_demo, status, update_module, True)
    File "/home/erp/openerp_trunk/server/openerp/modules/registry.py", line 160, in new
      openerp.modules.load_modules(registry.db, force_demo, status, update_module)
    File "/home/erp/openerp_trunk/server/openerp/modules/loading.py", line 299, in load_modules
      loaded_modules, processed_modules = load_module_graph(cr, graph, status, perform_checks=(not update_module), report=report)
    File "/home/erp/openerp_trunk/server/openerp/modules/loading.py", line 225, in load_module_graph
      cr.execute("update res_log set read=True where create_date >= %s", (dt_before_load,))
    File "/home/erp/openerp_trunk/server/openerp/sql_db.py", line 152, in wrapper
      return f(self, *args, **kwargs)
    File "/home/erp/openerp_trunk/server/openerp/sql_db.py", line 214, in execute
      res = self._obj.execute(query, params)
  ProgrammingError: relation "res_log" does not exist
  LINE 1: update res_log set read=True where create_date >= E'2012-02-...
                 ^

  Exception in thread Thread-11:
  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 "/home/erp/openerp_trunk/server/openerp/service/web_services.py", line 89, in _initialize_db
      cr.close()
    File "/home/erp/openerp_trunk/server/openerp/sql_db.py", line 151, in wrapper
      raise psycopg2.OperationalError(msg)
  OperationalError: Unable to use a closed cursor.

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


Follow ups

References