← Back to team overview

openerp-india team mailing list archive

[Bug 943794] Re: database creation issue when running with gunicorn

 

Hi Thu,

When running just 1 worker, it can create new database. However, I face
another issue with uwsgi (1 worker), it run forever. uwsgi log displays
as below, (these messages repeat forever). Note that these messages are
different from with normal openerp-server log (db creation) and gunicorn
log. I also attach screen of web browser.  Repeating time between
messages is equal to 'loading' message on the web screen.

uwsgi log:
===
[pid: 2726|app: 0|req: 309/309] 192.168.1.131 () {46 vars in 932 bytes} [Thu Mar  1 17:25:44 2012] POST /web/database/progress => generated 51 bytes in 99 msecs (HTTP/1.1 200) 3 headers in 143 bytes (1 switches on core 0)
[pid: 2726|app: 0|req: 310/310] 192.168.1.131 () {46 vars in 932 bytes} [Thu Mar  1 17:25:45 2012] POST /web/database/progress => generated 51 bytes in 299 msecs (HTTP/1.1 200) 3 headers in 143 bytes (1 switches on core 0)
[pid: 2726|app: 0|req: 311/311] 192.168.1.131 () {46 vars in 932 bytes} [Thu Mar  1 17:25:46 2012] POST /web/database/progress => generated 51 bytes in 108 msecs (HTTP/1.1 200) 3 headers in 143 bytes (1 switches on core 0)
[pid: 2726|app: 0|req: 312/312] 192.168.1.131 () {46 vars in 932 bytes} [Thu Mar  1 17:25:46 2012] POST /web/database/progress => generated 51 bytes in 115 msecs (HTTP/1.1 200) 3 headers in 143 bytes (1 switches on core 0)
....
....
===


gunicorn log, the same as openerp-server log.
===
2012-03-01 17:12:51,156 INFO Starting gunicorn 0.13.4
2012-03-01 17:12:51,340 2515 INFO ? openerp.addons.web: embedded mode
2012-03-01 17:12:51 [2515] [INFO] Listening at: http://0.0.0.0:10001 (2515)
2012-03-01 17:12:51,966 2515 INFO ? gunicorn.error: Listening at: http://0.0.0.0:10001 (2515)
2012-03-01 17:12:51 [2515] [INFO] Using worker: sync
2012-03-01 17:12:51,967 2515 INFO ? gunicorn.error: Using worker: sync
2012-03-01 17:12:51 [2522] [INFO] Booting worker with pid: 2522
2012-03-01 17:12:51,972 2522 INFO ? gunicorn.error: Booting worker with pid: 2522

2012-03-01 17:13:20,083 2522 INFO template1 openerp.service.web_services: CREATE DATABASE test_05
2012-03-01 17:13:22,780 2522 INFO test_05 openerp.modules.loading: module base: loading objects
2012-03-01 17:13:22,878 2522 INFO test_05 openerp.modules.module: module base: creating or updating database tables
2012-03-01 17:13:31,773 2522 INFO test_05 openerp.osv.orm: Computing parent left and right for table res_partner_category...
...
...
===


Thanks,

** Attachment added: "uwsgi_create_db.png"
   https://bugs.launchpad.net/openobject-server/+bug/943794/+attachment/2796958/+files/uwsgi_create_db.png

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

Title:
  database creation issue when running with gunicorn

Status in OpenERP Server:
  In Progress

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,

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


References