This question has been flagged
2 Replies
6278 Views

I got the following error after tying to update the module list. I can not any more login into openerp.

Client Traceback (most recent call last):

File "/opt/openerp_purchase/server/openerp/addons/web/http.py", line 204, in dispatch response["result"] = method(self, **self.params)

File "/opt/openerp_purchase/server/openerp/addons/web/controllers/main.py", line 867, in authenticate req.session.authenticate(db, login, password, env)

File "/opt/openerp_purchase/server/openerp/addons/web/session.py", line 115, in authenticate uid = self.proxy('common').authenticate(db, login, password, env)

File "/opt/openerp_purchase/server/openerp/addons/web/session.py", line 30, in proxy_method result = self.session.send(self.service_name, method, *args)

File "/opt/openerp_purchase/server/openerp/addons/web/session.py", line 103, in send raise xmlrpclib.Fault(openerp.tools.ustr(e), formatted_info)

Server Traceback (most recent call last):

File "/opt/openerp_purchase/server/openerp/addons/web/session.py", line 89, in send return openerp.netsvc.dispatch_rpc(service_name, method, args)

File "/opt/openerp_purchase/server/openerp/netsvc.py", line 292, in dispatch_rpc result = ExportService.getService(service_name).dispatch(method, params)

File "/opt/openerp_purchase/server/openerp/service/web_services.py", line 433, in dispatch return fn(*params) File "/opt/openerp_purchase/server/openerp/service/web_services.py", line 444, in exp_authenticate res_users = pooler.get_pool(db).get('res.users')

File "/opt/openerp_purchase/server/openerp/pooler.py", line 49, in get_pool return get_db_and_pool(db_name, force_demo, status, update_module)[1]

File "/opt/openerp_purchase/server/openerp/pooler.py", line 33, in get_db_and_pool registry = RegistryManager.get(db_name, force_demo, status, update_module) File "/opt/openerp_purchase/server/openerp/modules/registry.py", line 193, in get update_module) File "/opt/openerp_purchase/server/openerp/modules/registry.py", line 219, in new openerp.modules.load_modules(registry.db, force_demo, status, update_module)

File "/opt/openerp_purchase/server/openerp/modules/loading.py", line 350, in load_modules force, status, report, loaded_modules, update_module)

File "/opt/openerp_purchase/server/openerp/modules/loading.py", line 256, in load_marked_modules loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)

File "/opt/openerp_purchase/server/openerp/modules/loading.py", line 188, in load_module_graph load_data(module_name, idref, mode)

File "/opt/openerp_purchase/server/openerp/modules/loading.py", line 76, in <lambda> load_data = lambda *args: _load_data(cr, *args, kind='data')

File "/opt/openerp_purchase/server/openerp/modules/loading.py", line 124, in _load_data tools.convert_xml_import(cr, module_name, fp, idref, mode, noupdate, report)

File "/opt/openerp_purchase/server/openerp/tools/convert.py", line 941, in convert_xml_import doc = etree.parse(xmlfile)

File "lxml.etree.pyx", line 2953, in lxml.etree.parse (src/lxml/lxml.etree.c:56204)

File "parser.pxi", line 1555, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:82511)

File "parser.pxi", line 1585, in lxml.etree._parseFilelikeDocument (src/lxml/lxml.etree.c:82832)

File "parser.pxi", line 1468, in lxml.etree._parseDocFromFilelike (src/lxml/lxml.etree.c:81688)

File "parser.pxi", line 1024, in lxml.etree._BaseParser._parseDocFromFilelike (src/lxml/lxml.etree.c:78735)

File "parser.pxi", line 569, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:74472)

File "parser.pxi", line 650, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:75363)

File "parser.pxi", line 590, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:74696)

XMLSyntaxError: attributes construct error, line 23, column 58

Avatar
Discard

Open any OpenERP window in a new browser tab and try again.

think of the last module you worked on and revert back to what is was before. You made a syntax error in a xml that is why you have the error and if you go to the last xml you edited on line 23 you might find the problem

Best Answer

Open postgres and in ir_module_module table set the state of your module which produces error to uninstalled and save. Now you can login to OpenERP. But to use that module you have to fix the error and install it again.

Avatar
Discard
Author

Thanks. I have been able to resolve the issue by following your advise.

Best Answer

When you have an error and lose the session, OpenERP stops your login. Resolve the error in the module view to login in OpenERP again.

Avatar
Discard