fatal error in running server after login

Bug #313547 reported by Jan Verlaan
2
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Fix Released
Critical
Unassigned

Bug Description

updated to latest server revision 1555 (and updated all other projects)
did a setup.py build and install
started the server again with --update=all
started the server and webserver normally
connected with my webbrowser -> loginscreen appeared
After login the below error popped-up
Did a connect with the thick-client -> loginscreen appeared
After login the thick client is killed unexpectly

Unrecoverable error in the server.

===First Error===

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/CherryPy-2.3.0-py2.4.egg/cherrypy/_cphttptools.py", line 121, in _run
    self.main()
  File "/usr/lib/python2.4/site-packages/CherryPy-2.3.0-py2.4.egg/cherrypy/_cphttptools.py", line 264, in main
    body = page_handler(*virtual_path, **self.params)
  File "/openerp/web/openerp/tinyres.py", line 112, in wrapper
    if rpc.session.login(db, user, password) <= 0:
  File "/openerp/web/openerp/rpc.py", line 338, in login
    self.user_name = self.execute('object', 'execute', 'res.users', 'read', [uid], ['name'])[0]['name']
  File "/openerp/web/openerp/rpc.py", line 420, in execute
    raise common.error(_('Application Error!'), err.backtrace)
  File "/openerp/web/openerp/common.py", line 59, in error
    raise TinyError(message=msg, title=title or _("Error"))
TinyError: Traceback (most recent call last):
  File "/openerp/server/bin/netsvc.py", line 421, in run
    result_from_method = method(*msg[2:])
  File "/openerp/server/bin/service/web_services.py", line 427, in execute
    res = service.execute(db, uid, object, method, *args)
AttributeError: 'LocalService' object has no attribute 'execute'

===Second Error===

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/CherryPy-2.3.0-py2.4.egg/cherrypy/_cphttptools.py", line 446, in handleError
    _cputil.get_special_attribute('_cp_on_error', '_cpOnError')()
  File "/openerp/web/openerp/controllers.py", line 102, in _cp_on_error
    message = self.errorpage.render()
  File "/openerp/web/openerp/subcontrollers/error_page.py", line 60, in render
    return self.__render(value)
  File "<string>", line 3, in __render
  File "/usr/lib/python2.4/site-packages/TurboGears-1.0.7-py2.4.egg/turbogears/controllers.py", line 358, in expose
    output = database.run_with_transaction(
  File "<string>", line 5, in run_with_transaction
  File "/usr/lib/python2.4/site-packages/TurboGears-1.0.7-py2.4.egg/turbogears/database.py", line 359, in so_rwt
    retval = func(*args, **kw)
  File "<string>", line 5, in _expose
  File "/usr/lib/python2.4/site-packages/TurboGears-1.0.7-py2.4.egg/turbogears/controllers.py", line 373, in <lambda>
    mapping, fragment, args, kw)))
  File "/usr/lib/python2.4/site-packages/TurboGears-1.0.7-py2.4.egg/turbogears/controllers.py", line 410, in _execute_func
    output = errorhandling.try_call(func, *args, **kw)
  File "/usr/lib/python2.4/site-packages/TurboGears-1.0.7-py2.4.egg/turbogears/errorhandling.py", line 77, in try_call
    return func(self, *args, **kw)
  File "/openerp/web/openerp/subcontrollers/error_page.py", line 70, in __render
    maintenance = proxy.status()
  File "/openerp/web/openerp/rpc.py", line 471, in __call__
    return session.execute("object", "execute", self.object, self.func, *args)
  File "/openerp/web/openerp/rpc.py", line 420, in execute
    raise common.error(_('Application Error!'), err.backtrace)
  File "/openerp/web/openerp/common.py", line 59, in error
    raise TinyError(message=msg, title=title or _("Error"))
TinyError: Traceback (most recent call last):
  File "/openerp/server/bin/netsvc.py", line 421, in run
    result_from_method = method(*msg[2:])
  File "/openerp/server/bin/service/web_services.py", line 427, in execute
    res = service.execute(db, uid, object, method, *args)
AttributeError: 'LocalService' object has no attribute 'execute'

Revision history for this message
Christophe Simonis (OpenERP) (kangol) wrote :

can you provide us the output of the command
$> bzr version-info

Changed in openobject-server:
status: New → Incomplete
Revision history for this message
Jan Verlaan (jan-verlaan) wrote :

openerp:/openerp/server# bzr version-info
revision-id: <email address hidden>
date: 2009-01-03 12:14:41 +0100
build-date: 2009-01-04 00:37:34 +0100
revno: 1555
branch-nick: server

openerp:/openerp/web# bzr version-info
revision-id: <email address hidden>
date: 2009-01-02 11:13:53 +0530
build-date: 2009-01-04 00:38:42 +0100
revno: 2151
branch-nick: web

openerp:/openerp/client# bzr version-info
revision-id: <email address hidden>
date: 2009-01-03 03:36:27 +0100
build-date: 2009-01-04 00:39:22 +0100
revno: 858
branch-nick: client

Revision history for this message
Fabien (Open ERP) (fp-tinyerp) wrote :

try to rm ~/.openerp_server_rc

Revision history for this message
Jan Verlaan (jan-verlaan) wrote :

removed .openerp_server_rc
restarted openerp-server
All modules are loaded and the webclient is giving the loginscreen. (with all available databases)
*****************
part of serverlog
......
......
[Sun Jan 04 2009 12:13:37] INFO:init:module profile_service: registering objects
[Sun Jan 04 2009 12:13:37] INFO:init:module profile_service loading objects
[Sun Jan 04 2009 12:13:37] INFO:web-service:successful login from 'admin' using database 'test3'
*****************
After login (via the webclient) the same error popped-up as described in first message.

Revision history for this message
Stephane Wirtel (OpenERP) (stephane-openerp) wrote :

I can't confirm your bug :|

Revision history for this message
Jan Verlaan (jan-verlaan) wrote :

Hmmm, so I have to check my server configuration as OpenERP was running before I updated to the latest revision.
Do you have any hint where I can start my investigation?
OpenERP is running on on a Debian Etch Xen system with only the necessarily software installed to get OpenERP running.

Revision history for this message
Jan Verlaan (jan-verlaan) wrote :

Pulled the latest revision (same as on my server) to my Ubuntu 8.10 Desktop and installed the server on my desktop.
The server is running fine on Ubuntu 8.10 desktop without any problem.
Still on my Debian Etch Xen system the problem is still there.
I will investigate further trying to track the problem. Any hints are appreciated.

Revision history for this message
Christophe Simonis (OpenERP) (kangol) wrote :

fix by 1557 <email address hidden>
This was a problem due to python2.4

Changed in openobject-server:
importance: Undecided → Critical
status: Incomplete → Fix Released
Revision history for this message
Jan Verlaan (jan-verlaan) wrote :

thank you :-)
my investigation pointed also that direction, but I couldn't get a definitive point to it yet, to put a comment back in this bugtracker.
I' am glad you did find it. ;-)

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

Other bug subscribers

Remote bug watches

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