'ir.cron' object has no attribute 'restart'

Bug #643580 reported by Jim Norman
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Invalid
Undecided
Unassigned

Bug Description

See following traceback:

Environment Information :
System : Linux-2.6.32-24-generic-i686-with-Ubuntu-10.04-lucid
OS Name : posix
Distributor ID: Ubuntu
Description: Ubuntu 10.04.1 LTS
Release: 10.04
Codename: lucid
Operating System Release : 2.6.32-24-generic
Operating System Version : #42-Ubuntu SMP Fri Aug 20 14:24:04 UTC 2010
Operating System Architecture : 32bit
Operating System Locale : en_US.UTF8
Python Version : 2.6.5
OpenERP-Client Version : 6.0dev
Last revision No. & ID :1565 <email address hidden>
Traceback (most recent call last):
  File "/opt/openerp/stage/trunk/server/bin/netsvc.py", line 472, in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth, params)
  File "/opt/openerp/stage/trunk/server/bin/service/web_services.py", line 65, in dispatch
    return fn(*params)
  File "/opt/openerp/stage/trunk/server/bin/service/web_services.py", line 336, in exp_migrate_databases
    pooler.restart_pool(db, force_demo=False, update_module=True)
  File "/opt/openerp/stage/trunk/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/stage/trunk/server/bin/pooler.py", line 54, in get_db_and_pool
    pool.get('ir.cron').restart(db.dbname)
AttributeError: 'ir.cron' object has no attribute 'restart'

Build 2748

Error occurs when attempting to build a new database:
Error during database creation !

The server crashed during installation.
We suggest you to drop this database.

or when attempting to Migrate an existing database.

Tags: trunk
Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Hi Jim,

I have been working on the latest copy of the code and I am unable to reproduce the same.

Would you please elaborate about this?

Thanks.

Revision history for this message
Jim Norman (jim-jsnorman) wrote :

Jay,

The latest copy of the code has the same problem. Look at line 54 in pooler.py. Then please tell me where the restart method is defined on ir.cron.

Jim

Revision history for this message
Jim Norman (jim-jsnorman) wrote :

The original code was:

pool.get('ir.cron')._poolJobs(db.dbname)

I see the same code problem in revision 2748 of server.

Jim Norman

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Hi Jim,

Can you please go to server/bin/addons/base/ir/ir_cron.py line 146 onwards?
Thanks.

Revision history for this message
Jim Norman (jim-jsnorman) wrote :

I see the code. Am checking to see why latest version isn't seeing this on my computer.

Jim

Revision history for this message
Jim Norman (jim-jsnorman) wrote :

Jay,

I was running the code with an incorrect config file, which pointed to different code.

You may close this bug.

Jim

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Jim,
Thanks for Being co-operative.

Changed in openobject-server:
status: New → Invalid
milestone: none → 6.0
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.