Help! Incredibles massive error occurs around 4-6 times a day.

Asked by John Chen

Hi OpenERP Team

Screen Shot Link: (is the same detail as below)
http://dl.dropbox.com/u/43009893/errorissue.JPG

I have encounters this problems for more or less a month and it still happens. The Error occurs randomly, more or less 4-6 times a day.

Error Details:
Purple display (with list of error code inside the purple layout box)

- Python 2.5.2: C:\Program Files (x86)\OpenERP 6.0\Web\openerp-web.exe
<type 'exceptions.ValueError'>
- A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occured.
- C:\Program Files (x86)\OpenERP 6.0\Web\cherrypy\_cprequest.pyo in respond(self=<cherrypy._cprequest.Request object at 0x0294D670>.path_info='/openerp/tree/open')
- C:\Program Files (x86)\OpenERP 6.0\Web\cherrypy\_cpdispatch.pyo in __call__(self=<cherrypy._cpdispatch.LateParamPageHandler objcet at 0x0294D430>)
- C:\Program Files (x86)\OpenERP 6.0\Web\openobject\tools\_expose.pyo in func_wrapper(*args=(<openobject.controllers._root.Root object at 0x01606BF0>, 'openerp', 'tree', 'open'), **kw=('_': '1330988868638', 'context': "{'lang': u'en_US', tz': False, 'section_id',: False, 'client': 'web', 'department_id': 1}",'id': '340', 'model': 'ir.ui.menu'})
- C:\Program Files (x86)\OpenERP 6.0\Web\openobject\controllers\_root.pyo in default(self=<openobject.controllers._root.Root object at 0x01606BF0>, *args=('openerp', 'tree', 'open'), **kw=('_': '1330988868638', 'context': "{'lang': u'en_US', 'tz': False, 'section_id': False, 'client': 'web', 'department_id': 1}", 'id': '340', 'model': 'ir.ui.menu'})
- C:\Program Files (x86)\OpenERP 6.0\Web\cherrypy\_cpdispatch.pyo in __call__(self=<cherrypy._cpdispatch.LateParamPageHandler object at 0x03698550>)
- C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\controllers\utils.py in wrapper(*args=(), **kw={'context': "('lang': u'en_US', 'tz': False, 'section_id': False, 'client':'web', 'department_id': 1)", 'id': '340', 'model': 'ir.ui.menu'})
---------------------------------------------------
Below Left number is line number
---------------------------------------------------
110 # User is logged in; allow access
111 clear_login_fields(kw)
112 return fn(*args, **kw)
113 else:
114 action = kw.get('login_action', '')
---------------------------------------------------
C:\Program Files (x86)\OpenERP 6.0\Web\openobject\tools\_expose.pyo in func_wrapper(*args=(<openerp.controllers.tree.Tree object at 0x033B1CD0>,), **kw={'context: "{'lang': u'en_US', 'tz': False, 'section_id': False, 'client': 'web', 'department_id':1 }", 'id': '340', 'model': 'ir.ui.menu'})
C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\controllers\tree.py in open(self=<openerp.controllers.tree.Tree object at 0x033B1CD0>, **kw={'context': "{'lang': u'en_US', 'tz': False, 'section_id': False, 'client': 'web', 'department_id': 1}", 'id', '340', 'model': 'ir.ui.menu'})
---------------------------------------------------
Below Left number is line number
---------------------------------------------------
273 return self.do_action('tree_but_open', datas={
274 '_terp_model': kw.get('model'),
275 '_terp_context': kw.get('context', {}),
276 '_terp_context': kw.get('domain', []),
277 'ids': kw.get('id')})
---------------------------------------------------
C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\controllers\tree.py in do_action(self=<openerp.controllers.tree.Tree object at 0x033B1CD0>, name="tree_but_open", adds={}, datas={'_terp_context': "{'lang': u'en_US', 'tz': False, 'section_id': False, 'client': 'Web', 'department_id': 1}", '_terp_domain': [], '_terp_model': 'ir.ui.menu', 'ids': '340'})
---------------------------------------------------
Below Left number is line number
---------------------------------------------------
224
225 ctx = rpc.session.context.copy()
226 ctx.update(context)
227
228 if ids:
<type 'exceptions.ValueError'>: dictionary update sequence element #0 has length 1; 2 is required
          args = ('dictionary update sequence element #0 has length 1; 2 is required',)
          message = 'dictionary update sequence element #0 has length 1; 2 is required'

Question information

Language:
English Edit question
Status:
Answered
For:
Odoo Web Client Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Serpent Consulting Services (serpent-consulting-services) said :
#1

John,

I guess the problem will be solved once you get an updated version 6.0.4.

We had faced this issues Earlier and we got rid of it recently. It appeared randomly.

Thanks.

Revision history for this message
John Chen (john-chen2011) said :
#2

Thanks Mr. Serpent for answering it.

We will also test it and hope it will get better. :D

Revision history for this message
John Chen (john-chen2011) said :
#3

Hi Miss Er. Jay Fora / Mr. Serpent

Can i know what cause this issue happens? I have been suspecting about 'too many' user login problems or what cause it?

Thanks

From John Chen

Revision history for this message
Serpent Consulting Services (serpent-consulting-services) said :
#4

John,

Technically : The problem is when the action passes context in the form of string.

Functionally : The problem could due to a customised module throwing wrong context format.Tell us the steps which cause the issue.

At my end, its very random and rare.

Regards,
Serpent Consulting Services.

Revision history for this message
John Chen (john-chen2011) said :
#5

Thanks Serpent

I will brief you some details about how the problems occur.

1. Actually i don't really sure about how this error pop up. It just happened in certain time, when users use it. Then it will suddenly pop up this message

2. In the error message i see some detail which i am not that sure, is this the cause of the error?

Error Messages:
1. C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\controllers\tree.py in open(self=<openerp.controllers.tree.Tree object at 0x033B1CD0>, **kw={'context': "{'lang': u'en_US', 'tz': False, 'section_id': False, 'client': 'web', 'department_id': 1}", 'id', '340', 'model': 'ir.ui.menu'})

In my database
- department_id: 1 value is Purchasing
- ir.ui.menu id 340 is Purchase Order Menu

273 return self.do_action('tree_but_open', datas={
274 '_terp_model': kw.get('model'),
275 '_terp_context': kw.get('context', {}),
276 '_terp_context': kw.get('domain', []),
277 'ids': kw.get('id')})

Quetions:
1. Is the problems lies in Purchase Order Menu?
2. What does this error lines means?
<type 'exceptions.ValueError'>: dictionary update sequence element #0 has length 1; 2 is required
          args = ('dictionary update sequence element #0 has length 1; 2 is required',)
          message = 'dictionary update sequence element #0 has length 1; 2 is required'

Thanks serpent for helping, i really appreciate your help.

From John Chen

Revision history for this message
Serpent Consulting Services (serpent-consulting-services) said :
#6

John,

Thanks for the details and the analysis.

1. Can you try the Purchase Menu with GTKclient? I also wanted to ask if you have customised something on the context of purchase Order menu.

2. Technically, this error says : context = {} should be an object of dictionary, but comes as a string.

Thanks.

Revision history for this message
John Chen (john-chen2011) said :
#7

Serpent,

1. I have tried using GTK-client just now, opening the purchase menu, convert po, validate po. It works very well.
I think maybe this error only error at Web Client. (But i also tried purchase menu in web client it works very well too, but this error just occur randomly, not everytime but sometimes)

2. And in purchase order. I have added fields, change the workflow for approval step, and etc.

3. http://dl.dropbox.com/u/43009893/pyton%20280312.JPG
I got another error lately, the error message is almost the same but this time the 'ir.ui.menu','ids': '298', 298 = Delivery Order Menu.

4. I think this line shows when user click on the selected menu. It showed in the error describe the ir.ui.menu that user clicked = 298 / delivery order.

Thanks Serpent for helping us.

Revision history for this message
John Chen (john-chen2011) said :
#8

Hi Serpent

1. The menu id which you saw in the screenshot is not telling us which menu got problematic which cause error occur,
it just tell us user hit the error when they want to access particular menu id

2. for example: warehouse n purchaser user will get the error on the same time, but the menu id which saw in the screenshot are different

Revision history for this message
Serpent Consulting Services (serpent-consulting-services) said :
#9

John,

I suspect, the customization at your end might be causing this.

Would you please check the behavior in a new database without your customization, so you can be assured that it is an issue due to customization or a built-in error of OpenERP.

Thanks,
Serpent Consulting Services.

Revision history for this message
John Chen (john-chen2011) said :
#10

Thank you Serpent,

i will test and investigate it.

Is there any different between server.environment : 'development' and server.environment : 'production' that can be set in openerp-web.cfg (folder: program files/openerp 6.0/web/conf/openerp-web.cfg or program files/openerp 6.0/web/doc/openerp-web.cfg.

https://answers.launchpad.net/openobject-client-web/+question/192473

Thanks,
John Chen

Can you help with this problem?

Provide an answer of your own, or ask John Chen for more information if necessary.

To post a message you must log in.