← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 691022] Re: [6.0RC1] access denied when creating new database

 

Hello,

So, I re-assign all sub-directories of addons to 777 and this time this
worked fine. When I made the update, some directories are set to 755
permissions which was the source of the error in my case.

Thanks

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/691022

Title:
  [6.0RC1] access denied when creating new database

Status in OpenObject Addons Modules:
  Incomplete

Bug description:
  Hello all,

I just updated the code (server, web, addons and extra-addons) but whe I tried to create a new database, I get the following error : (it seems the the permissions on some directories are set to 0755 which cause the problem because I set all the directories of Addons to 777 and the problem did not occurs anymore)

Unrecoverable error in the server.
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/_cprequest.py", line 541, in run
    self.respond(pi)
  File "/usr/local/lib/python2.6/dist-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/_cprequest.py", line 624, in respond
    self.handle_error()
  File "/usr/local/lib/python2.6/dist-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/_cprequest.py", line 746, in handle_error
    self.error_response()
  File "/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/addons/openerp/controllers/root.py", line 40, in _cp_on_error
    cherrypy.request.pool = openobject.pooler.get_pool()
  File "/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/openobject/pooler.py", line 93, in get_pool
    addons.load_addons(db_name, config)
  File "/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/openobject/addons.py", line 210, in load_addons
    new_modules = obj.get_new_modules()
  File "/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/addons/openerp/controllers/modules.py", line 63, in get_new_modules
    web_payload = modules.get_web(addons_to_download)
  File "/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/addons/openerp/utils/rpc.py", line 398, in <lambda>
    return lambda *args: self._session.execute("object", "execute", self._resource, name, *args)
  File "/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/addons/openerp/utils/rpc.py", line 359, in execute
    return self.gateway.execute(obj, method, *args)
  File "/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/addons/openerp/utils/rpc.py", line 155, in execute
    return self.__execute(obj, method, args)
  File "/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/addons/openerp/utils/rpc.py", line 141, in __execute
    common.error(_('Application Error'), err.backtrace)
  File "/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/addons/openerp/utils/common.py", line 74, in error
    raise TinyError(message=msg, title=title or _("Error"))
TinyError: Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/netsvc.py", line 489, in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth, params)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/service/web_services.py", line 598, in dispatch
    res = fn(db, uid, *params)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 122, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 167, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/base/module/module.py", line 568, in get_web
    for module in modules
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/__init__.py", line 228, in zip_directory
    archive.writepy(directory)
  File "/usr/lib/python2.6/zipfile.py", line 1262, in writepy
    fname, arcname = self._get_codename(initname[0:-3], basename)
  File "/usr/lib/python2.6/zipfile.py", line 1323, in _get_codename
    py_compile.compile(file_py, file_pyc, None, True)
  File "/usr/lib/python2.6/py_compile.py", line 135, in compile
    fc = open(cfile, 'wb')
IOError: [Errno 13] Permission non accord\xe9e: u'/usr/local/lib/python2.6/dist-packages/openerp-server/addons/web_livechat/web/__init__.pyc'





References