V6 - after revision update server doesn't start - hangs on wiki module

Bug #651011 reported by Felix Schubert
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Undecided
Unassigned

Bug Description

trunk
openerp-server revision 2793
addons revision 4137
client-web revision 3400

After updateing the trunk server and running openerp-server --update=all I got the following error on my web-client:
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.0dev-py2.6.egg/openerp-web/addons/openerp/controllers/root.py", line 38, in _cp_on_error
    errorpage = cherrypy.request.pool.get_controller("/openerp/errorpage")
  File "/usr/local/lib/python2.6/dist-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/__init__.py", line 301, in __getattr__
    return getattr(child, name)
AttributeError: 'Request' object has no attribute 'pool'

The logfile entry is:
[2010-09-29 12:34:58,075][xtix6] ERROR:web-services:Uncaught exception
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 57, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 140, in execute
    res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 130, 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 525, 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 1259, in writepy
    fname, arcname = self._get_codename(initname[0:-3], basename)
  File "/usr/lib/python2.6/zipfile.py", line 1320, 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 denied: u'/usr/local/lib/python2.6/dist-packages/openerp-server/addons/wiki/web/__init__.pyc'

Permission is checked - and has the same owner and access rights on the file system as other __init__.pyc files in other modules.

Thank you in advance

Felix Schubert

Revision history for this message
Felix Schubert (input-fescon) wrote :

During setting up a second database containing the same modules I get the same error in the frontend:

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.0dev-py2.6.egg/openerp-web/addons/openerp/controllers/root.py", line 38, in _cp_on_error
    errorpage = cherrypy.request.pool.get_controller("/openerp/errorpage")
  File "/usr/local/lib/python2.6/dist-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/__init__.py", line 301, in __getattr__
    return getattr(child, name)
AttributeError: 'Request' object has no attribute 'pool'

And in the log:
[2010-10-01 10:19:00,959][reference] INFO:base.ir.module.module:Sending web content of modules [u'wiki'] to web client
[2010-10-01 10:19:00,964][reference] ERROR:web-services:Uncaught exception
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 57, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 140, in execute
    res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 130, 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 521, 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 1259, in writepy
    fname, arcname = self._get_codename(initname[0:-3], basename)
  File "/usr/lib/python2.6/zipfile.py", line 1320, 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 denied: u'/usr/local/lib/python2.6/dist-packages/openerp-server/addons/wiki/web/__init__.pyc'

Now trying to setup a database without the wiki module

Changed in openobject-addons:
assignee: nobody → RME(OpenERP) (rme-openerp)
Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Hello,

It has been fixed by predecessor revisions.
Please update the code and recheck.
Thanks.

Changed in openobject-addons:
assignee: RME(OpenERP) (rme-openerp) → nobody
milestone: none → 6.0
status: New → Fix Released
Revision history for this message
L.Schaaf (lars-schaaf) wrote :

Hi,

i had to copy the /web folder of the addon into the /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/addons/wiki/ folder. Then it worked for me.
This has to be repeated after each bzr pull/update.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.