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

Permission denied error when installing community apps (others are fine)?

By
hanhoe
on 1/30/14, 1:52 AM 5,035 views

Hello!

When I try to install community modules, I get the following error:

OpenERP Server Error Client Traceback (most recent call last): File "/usr/lib/pymodules/python2.7/openerp/addons/web/http.py", line 204, in dispatch response["result"] = method(self, *self.params) File "/usr/lib/pymodules/python2.7/openerp/addons/web/controllers/main.py", line 1132, in call_button action = self._call_kw(req, model, method, args, {}) File "/usr/lib/pymodules/python2.7/openerp/addons/web/controllers/main.py", line 1120, in _call_kw return getattr(req.session.model(model), method)(args, **kwargs) File "/usr/lib/pymodules/python2.7/openerp/addons/web/session.py", line 42, in proxy result = self.proxy.execute_kw(self.session._db, self.session._uid, self.session._password, self.model, method, args, kw) File "/usr/lib/pymodules/python2.7/openerp/addons/web/session.py", line 30, in proxy_method result = self.session.send(self.service_name, method, *args) File "/usr/lib/pymodules/python2.7/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 "/usr/lib/pymodules/python2.7/openerp/addons/web/session.py", line 89, in send return openerp.netsvc.dispatch_rpc(service_name, method, args) File "/usr/lib/pymodules/python2.7/openerp/netsvc.py", line 292, in dispatch_rpc result = ExportService.getService(service_name).dispatch(method, params) File "/usr/lib/pymodules/python2.7/openerp/service/web_services.py", line 626, in dispatch res = fn(db, uid, params) File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 190, in execute_kw return self.execute(db, uid, obj, method, *args, *kw or {}) File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 132, in wrapper return f(self, dbname, args, *kwargs) File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 199, in execute res = self.execute_cr(cr, uid, obj, method, args, *kw) File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 187, in execute_cr return getattr(object, method)(cr, uid, args, *kw) File "/usr/lib/pymodules/python2.7/openerp/addons/base/module/module.py", line 682, in install_from_urls shutil.move(os.path.join(tmp, module_name), module_path) File "/usr/lib/python2.7/shutil.py", line 296, in move copytree(src, real_dst, symlinks=True) File "/usr/lib/python2.7/shutil.py", line 175, in copytree os.makedirs(dst) File "/usr/lib/python2.7/os.py", line 157, in makedirs mkdir(name, mode) OSError: [Errno 13] Permission denied: '/usr/lib/pymodules/python2.7/openerp/addons/stock_product_zero'

Is this a permission Problem in my Server. Features apps I can installiert without Problems.

Thank you!

Hannes

3

Marc Cassuto

--Marc Cassuto--
815
| 4 4 8
Montreal, Canada
--Marc Cassuto--


Marc Cassuto
On 1/30/14, 10:40 AM

Hello Hanes,

It is because the user that runs your openERP process does not have the rights to write in usr/lib/pymodules/python2.7/openerp/addons/ directory.

Quick and dirty to solve your problem : set the permission for your users.

Otherwise, I would suggest to reinstall your server. The correct procedures to install OpenERP is listed here : https://doc.openerp.com/book/1/1_1_Inst_Config/1_1_Inst_Config_install/

Regards, Marc

Hello Marc! Ok, I understand. But why can I install other (featured) apps? Maybe install this in an other directory? Hannes

hanhoe
on 1/30/14, 11:19 AM

When you install OpenERP, all 'standard' modules are part of the installation - copied to your server. When you install from 'Apps', OpenERP downloads the module - only if you don't already have it on your server. If you install a 'standard' module from Apps, you already have it on your server so you don't get an error.

Bista Solutions US, Ray Carnes
on 1/30/14, 1:08 PM

Ok, now I have "no handler found". I installed from here http://nightly.openerp.com/#debian At the link above the packagename is "openerp" and not "openerp-server". Read its a addon folder Problem. I can reinstall ... Just testing right now. But the instruction above is actual?

hanhoe
on 1/30/14, 4:17 PM
0
hanhoe
On 1/31/14, 7:59 AM

Hello!

I fixed the problem with "no handler found". But I don know which user rights are fine.

I changed for testing the addon folder to 777 ... then I get another message: OpenERP Server Error Client Traceback (most recent call last): File "/usr/lib/pymodules/python2.7/openerp/addons/web/http.py", line 204, in dispatch response["result"] = method(self, *self.params) File "/usr/lib/pymodules/python2.7/openerp/addons/web/controllers/main.py", line 1132, in call_button action = self._call_kw(req, model, method, args, {}) File "/usr/lib/pymodules/python2.7/openerp/addons/web/controllers/main.py", line 1120, in _call_kw return getattr(req.session.model(model), method)(args, **kwargs) File "/usr/lib/pymodules/python2.7/openerp/addons/web/session.py", line 42, in proxy result = self.proxy.execute_kw(self.session._db, self.session._uid, self.session._password, self.model, method, args, kw) File "/usr/lib/pymodules/python2.7/openerp/addons/web/session.py", line 30, in proxy_method result = self.session.send(self.service_name, method, *args) File "/usr/lib/pymodules/python2.7/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 "/usr/lib/pymodules/python2.7/openerp/addons/web/session.py", line 89, in send return openerp.netsvc.dispatch_rpc(service_name, method, args) File "/usr/lib/pymodules/python2.7/openerp/netsvc.py", line 292, in dispatch_rpc result = ExportService.getService(service_name).dispatch(method, params) File "/usr/lib/pymodules/python2.7/openerp/service/web_services.py", line 626, in dispatch res = fn(db, uid, params) File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 190, in execute_kw return self.execute(db, uid, obj, method, *args, *kw or {}) File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 132, in wrapper return f(self, dbname, args, *kwargs) File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 199, in execute res = self.execute_cr(cr, uid, obj, method, args, *kw) File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 187, in execute_cr return getattr(object, method)(cr, uid, args, *kw) File "/usr/lib/pymodules/python2.7/openerp/addons/base/module/module.py", line 706, in install_from_urls self.update_list(cr, uid, context=context) File "/usr/lib/pymodules/python2.7/openerp/addons/base/module/module.py", line 617, in update_list handler.load_addons() File "/usr/lib/pymodules/python2.7/openerp/addons/web/http.py", line 580, in load_addons m = __import__('openerp.addons.' + module) File "/usr/lib/pymodules/python2.7/openerp/modules/module.py", line 133, in load_module mod = imp.load_module('openerp.addons.' + module_part, f, path, descr) File "/usr/lib/pymodules/python2.7/openerp/addons/account_banking_sepa_credit_transfer/__init__.py", line 23, in <module> from . import wizard File "/usr/lib/pymodules/python2.7/openerp/addons/account_banking_sepa_credit_transfer/wizard/__init__.py", line 23, in <module> from . import export_sepa File "/usr/lib/pymodules/python2.7/openerp/addons/account_banking_sepa_credit_transfer/wizard/export_sepa.py", line 32, in <module> from unidecode import unidecode ImportError: No module named unidecode

After this, I have to delete the folder or cannot start openERP.

Maybe someone has a tip for the correct user rights?

Thanks

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

0 follower(s)

Stats

Asked: 1/30/14, 1:52 AM
Seen: 5035 times
Last updated: 3/16/15, 8:10 AM