database creation issue when running with gunicorn
Bug #943794 reported by
Cuong
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
In Progress
|
Wishlist
|
OpenERP's Framework R&D |
Bug Description
Hi,
I face an database creation issue while launched with gunicorn. Please look at my attached image.
Server Info:
openerp-server: 6.1 rev 4086
openerp-web: 6.1 rev 2244, operate in embedded mode
gunicorn: 0.13.4
Thanks,
Changed in openobject-server: | |
assignee: | nobody → OpenERP's Framework R&D (openerp-dev-framework) |
To post a comment you must log in.
Gunicorn support (with more than 1 worker process) is unfortunately limited to completely 'installed' databases. It is not possible to use it to create a new database, or to update any data for which the server has a local cache (e.g. record rules or translations).
We have a patch already available to coordinate the multiple processes so that their state (model pool and caches) is kept in sync at https:/ /code.launchpad .net/~openerp- dev/openobject- server/ trunk-gunicorn- signaling- vmt
This also requires a little change change client-side to use a blocking operation when creating a new database instead of a polling one (which would hit different (not in sync) workers.