trunk5.0 Client Total crashes!

Bug #324924 reported by Tanel Kurvits
2
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Undecided
Unassigned

Bug Description

After today update:

Server 1683
Client 924
addons 2191

My old database not worked, tryd migrate = crash.
Made new database = client crashed and suggested delete DB
Tryd again and again crash....

1) When i try start old DB:
[Tue Feb 03 2009 18:27:33] INFO:dbpool:Connecting to scala
[Tue Feb 03 2009 18:27:33] INFO:init:module base: registering objects
[Tue Feb 03 2009 18:27:33] INFO:init:module base: loading objects
[Tue Feb 03 2009 18:27:34] CRITICAL:init:module base: invalid quality certificate: 76807797149

2) In server console when i make new DB i see:
...
[Tue Feb 03 2009 18:29:25] INFO:init:module base: loading maintenance/maintenance_view.xml
[Tue Feb 03 2009 18:29:25] INFO:init:module base: loading security/ir.model.access.csv
[Tue Feb 03 2009 18:29:27] INFO:init:updating modules list
[Tue Feb 03 2009 18:29:31] ERROR:sql:[01]: bad query: update "ir_module_module" set "website"=E'http://www.openerp.com',"license"=E'GPL-2',"description"=E'Project management module that track multi-level projects, tasks,
[Tue Feb 03 2009 18:29:31] ERROR:sql:[02]: works done on tasks, eso. It is able to render planning, order tasks, eso.
[Tue Feb 03 2009 18:29:31] ERROR:sql:[03]: ',"certificate"=E'0020645028723437',"author"=E'Tiny',"shortdesc"=E'Project Management',write_uid=1,write_date=now() where id in (72)
[Tue Feb 03 2009 18:29:31] ERROR:web-services:[01]: CREATE DATABASE
[Tue Feb 03 2009 18:29:31] ERROR:web-services:[02]: Traceback (most recent call last):
[Tue Feb 03 2009 18:29:31] ERROR:web-services:[03]: File "/opt/openerp/unstable/5.0/openerp-server/bin/service/web_services.py", line 90, in __call__
[Tue Feb 03 2009 18:29:31] ERROR:web-services:[04]: update_module=True)[1]
[Tue Feb 03 2009 18:29:31] ERROR:web-services:[05]: File "/opt/openerp/unstable/5.0/openerp-server/bin/pooler.py", line 61, in restart_pool
[Tue Feb 03 2009 18:29:31] ERROR:web-services:[06]: return get_db_and_pool(db_name, force_demo, status, update_module=update_module)
[Tue Feb 03 2009 18:29:31] ERROR:web-services:[07]: File "/opt/openerp/unstable/5.0/openerp-server/bin/pooler.py", line 40, in get_db_and_pool
[Tue Feb 03 2009 18:29:31] ERROR:web-services:[08]: addons.load_modules(db, force_demo, status, update_module)
[Tue Feb 03 2009 18:29:31] ERROR:web-services:[09]: File "/opt/openerp/unstable/5.0/openerp-server/bin/addons/__init__.py", line 672, in load_modules
[Tue Feb 03 2009 18:29:31] ERROR:web-services:[10]: modobj.update_list(cr, 1)
[Tue Feb 03 2009 18:29:31] ERROR:web-services:[11]: File "/opt/openerp/unstable/5.0/openerp-server/bin/addons/base/module/module.py", line 314, in update_list
[Tue Feb 03 2009 18:29:31] ERROR:web-services:[12]: 'certificate': terp.get('certificate') or None,
[Tue Feb 03 2009 18:29:31] ERROR:web-services:[13]: File "/opt/openerp/unstable/5.0/openerp-server/bin/osv/orm.py", line 2244, in write
[Tue Feb 03 2009 18:29:31] ERROR:web-services:[14]: 'where id in ('+ids_str+')', upd1)
[Tue Feb 03 2009 18:29:31] ERROR:web-services:[15]: File "/opt/openerp/unstable/5.0/openerp-server/bin/sql_db.py", line 76, in wrapper
[Tue Feb 03 2009 18:29:31] ERROR:web-services:[16]: return f(self, *args, **kwargs)
[Tue Feb 03 2009 18:29:31] ERROR:web-services:[17]: File "/opt/openerp/unstable/5.0/openerp-server/bin/sql_db.py", line 118, in execute
[Tue Feb 03 2009 18:29:31] ERROR:web-services:[18]: res = self._obj.execute(query, params)
[Tue Feb 03 2009 18:29:31] ERROR:web-services:[19]: IntegrityError: duplicate key value violates unique constraint "ir_module_module_certificate_uniq"

3) IF needed migration crash report i can post...

Revision history for this message
Stephane Wirtel (OpenERP) (stephane-openerp) wrote :

Can you check with the last revision of the server and the addons ?

Thank you

Changed in openobject-addons:
status: New → Fix Released
Revision history for this message
Tanel Kurvits (tanel-kurvits) wrote :

WOW that was really big fix! Stephane you decided jump 5.0 and go directly 6.0 :) !?
Ok i report if not working.

Revision history for this message
Tanel Kurvits (tanel-kurvits) wrote :
Download full text (5.6 KiB)

Result: 1684; 924; 2195
Old DB same bug

New DB:
Server console:

[Tue Feb 03 2009 19:59:52] INFO:init:module product: loading process/product_process.xml
[Tue Feb 03 2009 19:59:52] INFO:i18n:module product: loading translation file for language et_EE
[Tue Feb 03 2009 19:59:55] INFO:init:module hr: registering objects
[Tue Feb 03 2009 19:59:55] CRITICAL:init:Couldn't load module hr
[Tue Feb 03 2009 19:59:55] CRITICAL:init:No module named bymonth
[Tue Feb 03 2009 19:59:55] ERROR:web-services:[01]: Exception in call: Traceback (most recent call last):
[Tue Feb 03 2009 19:59:55] ERROR:web-services:[02]: File "/opt/openerp/unstable/5.0/openerp-server/bin/wizard/__init__.py", line 74, in execute_cr
[Tue Feb 03 2009 19:59:55] ERROR:web-services:[03]: action_res = action(self, cr, uid, data, context)
[Tue Feb 03 2009 19:59:55] ERROR:web-services:[04]: File "/opt/openerp/unstable/5.0/openerp-server/bin/addons/base_setup/wizard/wizard_base_setup.py", line 195, in _update
[Tue Feb 03 2009 19:59:55] ERROR:web-services:[05]: (db, pool)=pooler.restart_pool(cr.dbname, update_module=True)
[Tue Feb 03 2009 19:59:55] ERROR:web-services:[06]: File "/opt/openerp/unstable/5.0/openerp-server/bin/pooler.py", line 61, in restart_pool
[Tue Feb 03 2009 19:59:55] ERROR:web-services:[07]: return get_db_and_pool(db_name, force_demo, status, update_module=update_module)
[Tue Feb 03 2009 19:59:55] ERROR:web-services:[08]: File "/opt/openerp/unstable/5.0/openerp-server/bin/pooler.py", line 40, in get_db_and_pool
[Tue Feb 03 2009 19:59:55] ERROR:web-services:[09]: addons.load_modules(db, force_demo, status, update_module)
[Tue Feb 03 2009 19:59:55] ERROR:web-services:[10]: File "/opt/openerp/unstable/5.0/openerp-server/bin/addons/__init__.py", line 707, in load_modules
[Tue Feb 03 2009 19:59:55] ERROR:web-services:[11]: r = load_module_graph(cr, graph, status, report=report)
[Tue Feb 03 2009 19:59:55] ERROR:web-services:[12]: File "/opt/openerp/unstable/5.0/openerp-server/bin/addons/__init__.py", line 576, in load_module_graph
[Tue Feb 03 2009 19:59:55] ERROR:web-services:[13]: register_class(m)
[Tue Feb 03 2009 19:59:55] ERROR:web-services:[14]: File "/opt/openerp/unstable/5.0/openerp-server/bin/addons/__init__.py", line 376, in register_class
[Tue Feb 03 2009 19:59:55] ERROR:web-services:[15]: imp.load_module(m, *fm)
[Tue Feb 03 2009 19:59:55] ERROR:web-services:[16]: File "/opt/openerp/unstable/5.0/openerp-server/bin/addons/hr/__init__.py", line 26, in <module>
[Tue Feb 03 2009 19:59:55] ERROR:web-services:[17]: import report
[Tue Feb 03 2009 19:59:55] ERROR:web-services:[18]: File "/opt/openerp/unstable/5.0/openerp-server/bin/addons/hr/report/__init__.py", line 23, in <module>
[Tue Feb 03 2009 19:59:55] ERROR:web-services:[19]: import bymonth
[Tue Feb 03 2009 19:59:55] ERROR:web-services:[20]: ImportError: No module named bymonth
[Tue Feb 03 2009 19:59:55] INFO:init:module base: loading o...

Read more...

Revision history for this message
Tanel Kurvits (tanel-kurvits) wrote :
Download full text (7.0 KiB)

Second server TEST

Server 1684
client 924
addons 2195

1) old DB
[Tue Feb 03 2009 20:14:18] INFO:init:module base: registering objects
[Tue Feb 03 2009 20:14:18] INFO:init:module base: loading objects
[Tue Feb 03 2009 20:14:18] CRITICAL:init:module base: invalid quality certificate: 76807797149

2) New DB
Its makes new database ok but when load Manufacturing profile then crashing

Server console:

[T veebr 03 2009 20:15:48] INFO:init:module product: loading pricelist_view.xml
[T veebr 03 2009 20:15:48] INFO:init:module product: loading partner_view.xml
[T veebr 03 2009 20:15:48] INFO:init:module product: loading product_wizard.xml
[T veebr 03 2009 20:15:48] INFO:init:module product: loading process/product_process.xml
[T veebr 03 2009 20:15:48] INFO:i18n:module product: loading translation file for language et_EE
[T veebr 03 2009 20:15:49] INFO:init:module hr: registering objects
[T veebr 03 2009 20:15:49] CRITICAL:init:Couldn't load module hr
[T veebr 03 2009 20:15:49] CRITICAL:init:No module named bymonth
[T veebr 03 2009 20:15:49] ERROR:web-services:[01]: Exception in call: Traceback (most recent call last):
[T veebr 03 2009 20:15:49] ERROR:web-services:[02]: File "/opt/openerp/unstable/5.0/openerp-server/bin/wizard/__init__.py", line 74, in execute_cr
[T veebr 03 2009 20:15:49] ERROR:web-services:[03]: action_res = action(self, cr, uid, data, context)
[T veebr 03 2009 20:15:49] ERROR:web-services:[04]: File "/opt/openerp/unstable/5.0/openerp-server/bin/addons/base_setup/wizard/wizard_base_setup.py", line 195, in _update
[T veebr 03 2009 20:15:49] ERROR:web-services:[05]: (db, pool)=pooler.restart_pool(cr.dbname, update_module=True)
[T veebr 03 2009 20:15:49] ERROR:web-services:[06]: File "/opt/openerp/unstable/5.0/openerp-server/bin/pooler.py", line 61, in restart_pool
[T veebr 03 2009 20:15:49] ERROR:web-services:[07]: return get_db_and_pool(db_name, force_demo, status, update_module=update_module)
[T veebr 03 2009 20:15:49] ERROR:web-services:[08]: File "/opt/openerp/unstable/5.0/openerp-server/bin/pooler.py", line 40, in get_db_and_pool
[T veebr 03 2009 20:15:49] ERROR:web-services:[09]: addons.load_modules(db, force_demo, status, update_module)
[T veebr 03 2009 20:15:49] ERROR:web-services:[10]: File "/opt/openerp/unstable/5...

Read more...

Changed in openobject-addons:
status: Fix Released → Confirmed
Revision history for this message
Stephane Wirtel (OpenERP) (stephane-openerp) wrote :

retry because there was a small bug in a merge, I fixed with a revert !

Thank you

Changed in openobject-addons:
status: Confirmed → Incomplete
Revision history for this message
Tanel Kurvits (tanel-kurvits) wrote :

1685
924
2195

Noticed setup.py change update time

But bug still there. = my previous post.

Maked aditional test and deleted all my installations and (in python also) and made new install but no changes.

Thank you.

Revision history for this message
Stephane Wirtel (OpenERP) (stephane-openerp) wrote :

and with a new database ? because with a previous merge, there was a bug.

Thanks

Revision history for this message
Tanel Kurvits (tanel-kurvits) wrote :

I made already new db.
But ok i try make clean install again (delete also /usr/lib/python2.5/site-packages/openerp* and download install all).

Please give me some minits.

Thank You

Revision history for this message
Tanel Kurvits (tanel-kurvits) wrote :

Please look also attachment!
Seems critical bug!

Traceback (most recent call last):
  File "/opt/openerp/unstable/5.0/openerp-server/bin/netsvc.py", line 229, in dispatch
    result = LocalService(service_name)(method, *params)
  File "/opt/openerp/unstable/5.0/openerp-server/bin/netsvc.py", line 74, in __call__
    return getattr(self, method)(*params)
  File "/opt/openerp/unstable/5.0/openerp-server/bin/service/web_services.py", line 537, in execute
    return self._execute(db, uid, wiz_id, datas, action, context)
  File "/opt/openerp/unstable/5.0/openerp-server/bin/service/web_services.py", line 517, in _execute
    return wiz.execute(db, uid, self.wiz_datas[wiz_id], action, context)
  File "/opt/openerp/unstable/5.0/openerp-server/bin/wizard/__init__.py", line 178, in execute
    res = self.execute_cr(cr, uid, data, state, context)
  File "/opt/openerp/unstable/5.0/openerp-server/bin/wizard/__init__.py", line 74, in execute_cr
    action_res = action(self, cr, uid, data, context)
  File "/opt/openerp/unstable/5.0/openerp-server/bin/addons/base_setup/wizard/wizard_base_setup.py", line 195, in _update
    (db, pool)=pooler.restart_pool(cr.dbname, update_module=True)
  File "/opt/openerp/unstable/5.0/openerp-server/bin/pooler.py", line 61, in restart_pool
    return get_db_and_pool(db_name, force_demo, status, update_module=update_module)
  File "/opt/openerp/unstable/5.0/openerp-server/bin/pooler.py", line 40, in get_db_and_pool
    addons.load_modules(db, force_demo, status, update_module)
  File "/opt/openerp/unstable/5.0/openerp-server/bin/addons/__init__.py", line 707, in load_modules
    r = load_module_graph(cr, graph, status, report=report)
  File "/opt/openerp/unstable/5.0/openerp-server/bin/addons/__init__.py", line 576, in load_module_graph
    register_class(m)
  File "/opt/openerp/unstable/5.0/openerp-server/bin/addons/__init__.py", line 376, in register_class
    imp.load_module(m, *fm)
  File "/opt/openerp/unstable/5.0/openerp-server/bin/addons/hr/__init__.py", line 26, in <module>
    import report
  File "/opt/openerp/unstable/5.0/openerp-server/bin/addons/hr/report/__init__.py", line 23, in <module>
    import bymonth
ImportError: No module named bymonth

Revision history for this message
Stephane Wirtel (OpenERP) (stephane-openerp) wrote :

a tips, get the sources from launchpad and try in your local directory. you avoid to have some errors.

Here is how I work.

mkdir ~/openerp/trunk -p
cd ~/openerp/trunk
bzr clone lp:openobject-server server
bzr clone lp:openobject-addons addons
bzr clone lp:openobject-client client
cd server/bin/addons
ln -s ../../../addons/* .
cd ../
./openerp-server.py --debug --log-level=debug_rpc

--debug catch all exceptions from the server
--debug_rpc shows you all requests with all responses from the server and to the clients.

Revision history for this message
Tanel Kurvits (tanel-kurvits) wrote :

Ok i try your way again but please look your email i sended to you my scripts what i use for download or update trunk. Maby you found bugs in my scripts!?

Thank you.

Revision history for this message
Stephane Wirtel (OpenERP) (stephane-openerp) wrote :

So, remove the addons repository from your local directory, and recreate it from bazaar, I uncommited two commits and re-push. I don't like this solution, certainly there was an other solution, but I don't know. Sorry for the inconvenience :(

Changed in openobject-addons:
status: Incomplete → Fix Released
Revision history for this message
Tanel Kurvits (tanel-kurvits) wrote :

Yes its working now again. Thanks.
But if i use old databases i get error:
CRITICAL:init:module base: invalid quality certificate: 76807797149
Migration also fails. Is there way use them again or yesterday was "All Databases Reset" day?

Thank you.
Tanel

bigmyc (myc-2)
description: updated
Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Hello bigmyc,

It is the problem of certificate when your module has a different certificate now (which was different in DB).
You may simply remove the certificate key from the __terp__.py file and recheck. Currently your traceback suggests that the problem comes due to project module.

Can you have another try please?

Thanks.

Revision history for this message
Balezo (faustin-mvogo) wrote :

Hello all

I try to install report_analytic_planning openerp 6 module and, in the importation of openERP module, i get this error :

duplicate key value violates unique constraint "ir_module_module_certificate_uniq"

I need your big help as soon as possible

Thank you

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.