Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
20430 Vistas

What am I doing wrong? Debian Squeeze with backports, postgresql 9.1.9-1~bpo60+1, python 2.6.6-8+b1, openerp 7.0-20130819-231103 Tried a number of different community modules including:- ;Australian and New Zealand States; Willow Australian and New Zealand Postcode Lookup ;Customize OpenERP web client. All have a number of different errors but share one:-

  File "/usr/lib/python2.6/shutil.py", line 142, in copytree
    os.makedirs(dst)
  File "/usr/lib/python2.6/os.py", line 157, in makedirs
    mkdir(name, mode)
OSError: [Errno 13] Permission denied:

OpenERP, postgresql, and python have been re-installed on clean VMs three times, and I've attempted to reinstall the same modules, in a different order each time - with the same result. No clues in the logs. Non-community modules install without error.

I've found the same problem reported several times on the old forums and elsewhere on the intertubes. In each case no answer has been given.

Australian and New Zealand States module errors:-

Server Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/openerp/addons/web/session.py", line 89, in send
    return openerp.netsvc.dispatch_rpc(service_name, method, args)
  File "/usr/lib/pymodules/python2.6/openerp/netsvc.py", line 292, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "/usr/lib/pymodules/python2.6/openerp/service/web_services.py", line 626, in dispatch
    res = fn(db, uid, *params)
  File "/usr/lib/pymodules/python2.6/openerp/osv/osv.py", line 188, in execute_kw
    return self.execute(db, uid, obj, method, *args, **kw or {})
  File "/usr/lib/pymodules/python2.6/openerp/osv/osv.py", line 131, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/usr/lib/pymodules/python2.6/openerp/osv/osv.py", line 197, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/usr/lib/pymodules/python2.6/openerp/osv/osv.py", line 185, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/usr/lib/pymodules/python2.6/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.6/shutil.py", line 257, in move
    copytree(src, real_dst, symlinks=True)
  File "/usr/lib/python2.6/shutil.py", line 142, in copytree
    os.makedirs(dst)
  File "/usr/lib/python2.6/os.py", line 157, in makedirs
    mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/usr/lib/pymodules/python2.6/openerp/addons/base_aus_nz_states'
Avatar
Descartar

That looks like a file permissions error. You don't way which module is causing that error, or what the other errors are getting .. they may relate to that error you have shown us. You'll need to further investigate what/where the particular module is trying to write to.

Autor

Thanks Ian, I'd named three of the modules in question. I've just added the full traceback for one of the modules to the parent.

Also .. where did you get Australian and New Zealand States; Willow Australian and New Zealand Postcode Lookup from? We could find those quite handy ourselves

Mejor respuesta

It looks like OpenERP (specifically the openerp user that OpenERP runs as) can't write to /usr/lib/pymodules/python2.6/openerp/addons/base_aus_nz_states

For custom/non-standard modules (as in a module not supplied in the .deb), such as you have there, I put them in a different directory (eg /opt/openerp/addons) that the openerp user and/or group has permission to (read and) write to and update the addon_path in the config file.

Avatar
Descartar

Note that having the 'custom' addon files writeable by the openerp user is probably not the best/sanest thing to do, but for our internal dev process that works quite well and we'll need to re-examine the process down the track.

Mejor respuesta

We try to install the google_api from within Apps installation menu with the same error.

OSError: [Errno 13] Permission denied: '/usr/lib/python2.6/site-packages/openerp-7.0_20131009_231130-py2.6.egg/openerp/addons/google_api'

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

**We also found a WALL in the Backup Database with same error. We have root access in a VM of ours but we don't know if we should force OPENERP to run as a different user. Do you suggest smthng like that? Would it be wise to give openerp user full access? And if so which is the process to do so?

THANKS in advance everyone for any help!**

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
3
mar 15
8605
0
mar 15
3357
0
mar 15
7583
2
mar 15
7086
9
abr 19
10457