Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Problem after installing a new module

By
Fanny
on 4/26/13, 12:41 PM 4,039 views

Hello,

I installed a fresh version of Openerp 7 on my Ubuntu 12.04 server, after installing a new big module like "Sales Management" an error occurs : "XmlHttpRequestError" then my Openerp server crashes and I have to restart it..

i also get this error :

"Client Traceback (most recent calls last) : File "/opt/openerp/server/addons/web/http.py", line 204, in dispatch response["result"] = method (self, *self.params) File "/opt/openerp/server/web/controllers/main.py", line 1133, in call_button cation = self . call kw..."*

I reinstalled Openerp like 10 times, i even tried to install it on Debian, but i get the same errors...

PS : i'm running the latest versions of Postgresql and Python

Can you help me? Thanks a lot

could you post the error log? You can restart your server with the --debug and then paste the last lines of the /var/log/openerp-server.log file. Doing so will help us better understand what is going on. Also, how did you install the server?

Gustavo
on 4/26/13, 6:15 PM

The important point is here: call_button cation = self . call kw.... :-) please post...

klacus
on 5/1/13, 2:08 AM
0

Martin

--Martin--
1978
| 5 6 8
Cornwall, Canada
--Martin--

Analysing, designing, coding and mentoring since 1975. Kilobytes to terabytes. Punch cards to punchy sites. My OpenERP video series: http://www.youtube.com/playlist?list=PLq7op4J183lX44ZlXPiHxUpRvmmRDtxye My Google Speadsheets --> OpenERP Data Pump project: http://martinhbramwell.github.io/GData_OpenERP_Data_Pump My email (with spaces removed) : mhb . warehouseman @ gmail . com

Martin
On 5/6/13, 8:22 AM

It's highly recommended to ask such a question with a properly formatted trace as a courtesy to those who might have an answer for you.

It's easy enough to use an editor to search for "File" and replace with \n File", isn't it?

Please see my questions below . . .

 Client Traceback (most recent call last): 
 File "/opt/openerp/server/openerp/addons/web/http.py"
    line 204, in dispatch response["result"] = method(self, *self.params) 

 File "/opt/openerp/server/openerp/addons/web/controllers/main.py",
    line 1133, in call_button action = self._call_kw(req, model, method, args, {}) 

 File "/opt/openerp/server/openerp/addons/web/controllers/main.py",
    line 1121, in _call_kw return getattr(req.session.model(model), method)(args, **kwargs) 

 File "/opt/openerp/server/openerp/addons/web/session.py",
    line 43, in proxy result = self.proxy.execute_kw(self.session._db, self.session._uid, self.session._password, self.model, method, args, kw) 

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

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

 Server Traceback (most recent call last):     
 File "/opt/openerp/server/openerp/addons/web/session.py",
    line 90, in send return openerp.netsvc.dispatch_rpc(service_name, method, args) 

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

 File "/opt/openerp/server/openerp/service/web_services.py",
    line 626, in dispatch res = fn(db, uid, params) 

 File "/opt/openerp/server/openerp/osv/osv.py",
    line 188, in execute_kw return self.execute(db, uid, obj, method, *args, *kw or {}) 

 File "/opt/openerp/server/openerp/osv/osv.py",
    line 131, in wrapper return f(self, dbname, args, *kwargs) 

 File "/opt/openerp/server/openerp/osv/osv.py",
    line 197, in execute res = self.execute_cr(cr, uid, obj, method, args, *kw) 

 File "/opt/openerp/server/openerp/osv/osv.py",
    line 185, in execute_cr return getattr(object, method)(cr, uid, args, *kw) 

 File "/opt/openerp/server/openerp/addons/base/res/res_config.py",
    line 153, in action_next next = self.execute(cr, uid, ids, context=context) 

 File "/opt/openerp/server/openerp/addons/account/installer.py",
    line 141, in execute return super(account_installer, self).execute(cr, uid, ids, context=context) 

 File "/opt/openerp/server/openerp/addons/base/res/res_config.py",
    line 395, in execute return self._install_modules(cr, uid, modules, context=context) 

 File "/opt/openerp/server/openerp/addons/base/res/res_config.py",
    line 51, in _install_modules ir_module.button_immediate_install(cr, uid, to_install_ids, context=context) 

 File "/opt/openerp/server/openerp/addons/base/module/module.py",
    line 424, in button_immediate_install return self._button_immediate_function(cr, uid, ids, self.button_install, context=context) 

 File "/opt/openerp/server/openerp/addons/base/module/module.py",
    line 475, in _button_immediate_function _, pool = pooler.restart_pool(cr.dbname, update_module=True) 

 File "/opt/openerp/server/openerp/pooler.py",
    line 39, in restart_pool registry = RegistryManager.new(db_name, force_demo, status, update_module) 


 File "/opt/openerp/server/openerp/modules/registry.py",
    line 218, in new openerp.modules.load_modules(registry.db, force_demo, status, update_module) 


 File "/opt/openerp/server/openerp/modules/loading.py",
    line 348, in load_modules processed = load_marked_modules(cr, graph, states_to_load, force, status, report, loaded_modules, update_module) 

 File "/opt/openerp/server/openerp/modules/loading.py",
    line 259, 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/server/openerp/modules/loading.py",
    line 191, in load_module_graph load_data(module_name, idref, mode) 

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

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

 File "/opt/openerp/server/openerp/tools/convert.py",
    line 943, in convert_xml_import etree.parse(os.path.join(config['root_path'],'import_xml.rng' ))) 

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

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

 File "parser.pxi",
    line 1562, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:82580) 

 File "parser.pxi",
    line 1462, in lxml.etree._parseDocFrom

 File (src/lxml/lxml.etree.c:81619) 

 File "parser.pxi",
    line 1002, in lxml.etree._BaseParser._parseDocFrom

 File (src/lxml/lxml.etree.c:78528) 

 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 588, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:74665) IOError: Error reading 

 File '/opt/openerp/server/openerp/import_xml.rng': failed to load external entity "/opt/openerp/server/openerp/import_xml.rng"

Have you searched for the indicated file?

/opt/openerp/server/openerp/import_xml.rng

What permissions does it have?

Thanks for your answer. My import_xml.rng has permissions : 664

Fanny
on 5/6/13, 8:43 AM
0
Fanny
On 5/6/13, 7:51 AM

Hello, sorry for this late answer.. thanks in advance for helping me

I installed the server by downloading and installing the latest openerp 7 nightly build

Here is my error log (this error occured when i installed the "Sales Management" module.. )

I was able to install CRM and Project Management modules without errors tho

Client Traceback (most recent call last): File "/opt/openerp/server/openerp/addons/web/http.py", line 204, in dispatch response["result"] = method(self, *self.params) File "/opt/openerp/server/openerp/addons/web/controllers/main.py", line 1133, in call_button action = self._call_kw(req, model, method, args, {}) File "/opt/openerp/server/openerp/addons/web/controllers/main.py", line 1121, in _call_kw return getattr(req.session.model(model), method)(args, **kwargs) File "/opt/openerp/server/openerp/addons/web/session.py", line 43, in proxy result = self.proxy.execute_kw(self.session._db, self.session._uid, self.session._password, self.model, method, args, kw) File "/opt/openerp/server/openerp/addons/web/session.py", line 31, in proxy_method result = self.session.send(self.service_name, method, *args) File "/opt/openerp/server/openerp/addons/web/session.py", line 104, in send raise xmlrpclib.Fault(openerp.tools.ustr(e), formatted_info)

Server Traceback (most recent call last): File "/opt/openerp/server/openerp/addons/web/session.py", line 90, in send return openerp.netsvc.dispatch_rpc(service_name, method, args) File "/opt/openerp/server/openerp/netsvc.py", line 293, in dispatch_rpc result = ExportService.getService(service_name).dispatch(method, params) File "/opt/openerp/server/openerp/service/web_services.py", line 626, in dispatch res = fn(db, uid, params) File "/opt/openerp/server/openerp/osv/osv.py", line 188, in execute_kw return self.execute(db, uid, obj, method, *args, *kw or {}) File "/opt/openerp/server/openerp/osv/osv.py", line 131, in wrapper return f(self, dbname, args, *kwargs) File "/opt/openerp/server/openerp/osv/osv.py", line 197, in execute res = self.execute_cr(cr, uid, obj, method, args, *kw) File "/opt/openerp/server/openerp/osv/osv.py", line 185, in execute_cr return getattr(object, method)(cr, uid, args, *kw) File "/opt/openerp/server/openerp/addons/base/res/res_config.py", line 153, in action_next next = self.execute(cr, uid, ids, context=context) File "/opt/openerp/server/openerp/addons/account/installer.py", line 141, in execute return super(account_installer, self).execute(cr, uid, ids, context=context) File "/opt/openerp/server/openerp/addons/base/res/res_config.py", line 395, in execute return self._install_modules(cr, uid, modules, context=context) File "/opt/openerp/server/openerp/addons/base/res/res_config.py", line 51, in _install_modules ir_module.button_immediate_install(cr, uid, to_install_ids, context=context) File "/opt/openerp/server/openerp/addons/base/module/module.py", line 424, in button_immediate_install return self._button_immediate_function(cr, uid, ids, self.button_install, context=context) File "/opt/openerp/server/openerp/addons/base/module/module.py", line 475, in _button_immediate_function _, pool = pooler.restart_pool(cr.dbname, update_module=True) File "/opt/openerp/server/openerp/pooler.py", line 39, in restart_pool registry = RegistryManager.new(db_name, force_demo, status, update_module)
File "/opt/openerp/server/openerp/modules/registry.py", line 218, in new openerp.modules.load_modules(registry.db, force_demo, status, update_module)
File "/opt/openerp/server/openerp/modules/loading.py", line 348, in load_modules processed = load_marked_modules(cr, graph, states_to_load, force, status, report, loaded_modules, update_module) File "/opt/openerp/server/openerp/modules/loading.py", line 259, 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/server/openerp/modules/loading.py", line 191, in load_module_graph load_data(module_name, idref, mode) File "/opt/openerp/server/openerp/modules/loading.py", line 76, in <lambda> load_data = lambda *args: _load_data(cr, *args, kind='data') File "/opt/openerp/server/openerp/modules/loading.py", line 127, in _load_data tools.convert_xml_import(cr, module_name, fp, idref, mode, noupdate, report) File "/opt/openerp/server/openerp/tools/convert.py", line 943, in convert_xml_import etree.parse(os.path.join(config['root_path'],'import_xml.rng' ))) File "lxml.etree.pyx", line 2953, in lxml.etree.parse (src/lxml/lxml.etree.c:56204) File "parser.pxi", line 1533, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:82287) File "parser.pxi", line 1562, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:82580) File "parser.pxi", line 1462, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:81619) File "parser.pxi", line 1002, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:78528) 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 588, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:74665) IOError: Error reading file '/opt/openerp/server/openerp/import_xml.rng': failed to load external entity "/opt/openerp/server/openerp/import_xml.rng"

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 4/26/13, 12:41 PM
Seen: 4039 times
Last updated: 3/17/16, 3:22 AM