Skip to Content
Menu
This question has been flagged

Hello,

With Odoo 9.0, I successible enabled and configured the auth_ldap addon. However, on first login a MissingError is raised and the user is redirected to a 500 error page. The user seems correctly created, and the second login works well though.


Here is the detail of the traceback :


<pre><code>

2020-04-08 09:14:38,357 4175 ERROR SUPERPROD openerp.addons.website.models.ir_http: 500 Internal Server Error:

Traceback (most recent call last):
  File "/data/supercoop/odoo/src/addons/website/models/ir_http.py", line 243, in _handle_exception
    response = super(ir_http, self)._handle_exception(exception)
  File "/data/supercoop/odoo/src/openerp/addons/base/ir/ir_http.py", line 158, in _handle_exception
    return request._handle_exception(exception)
  File "/data/supercoop/odoo/src/openerp/http.py", line 797, in _handle_exception
    return super(HttpRequest, self)._handle_exception(exception)
  File "/data/supercoop/odoo/src/openerp/addons/base/ir/ir_http.py", line 183, in _dispatch
    result = request.dispatch()
  File "/data/supercoop/odoo/src/openerp/http.py", line 856, in dispatch
    r = self._call_function(**self.params)
  File "/data/supercoop/odoo/src/openerp/http.py", line 332, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/data/supercoop/odoo/src/openerp/service/model.py", line 118, in wrapper
    return f(dbname, *args, **kwargs)
  File "/data/supercoop/odoo/src/openerp/http.py", line 325, in checked_call
    result = self.endpoint(*a, **kw)
  File "/data/supercoop/odoo/src/openerp/http.py", line 975, in __call__
    return self.method(*args, **kw)
  File "/data/supercoop/odoo/src/openerp/http.py", line 525, in response_wrap
    response = f(*args, **kw)
  File "/data/supercoop/odoo/src/addons/auth_oauth/controllers/main.py", line 92, in web_login
    response = super(OAuthLogin, self).web_login(*args, **kw)
  File "/data/supercoop/odoo/src/openerp/http.py", line 525, in response_wrap
    response = f(*args, **kw)
  File "/data/supercoop/odoo/src/addons/auth_signup/controllers/main.py", line 20, in web_login
    response = super(AuthSignupHome, self).web_login(*args, **kw)
  File "/data/supercoop/odoo/src/openerp/http.py", line 525, in response_wrap
    response = f(*args, **kw)
  File "/data/supercoop/odoo/addons/coop_memberspace/controllers/main.py", line 72, in web_login
    r = super(Website, self).web_login(redirect=redirect, *args, **kw)
  File "/data/supercoop/odoo/src/openerp/http.py", line 525, in response_wrap
    response = f(*args, **kw)
  File "/data/supercoop/odoo/src/addons/website/controllers/main.py", line 53, in web_login
    r = super(Website, self).web_login(redirect=redirect, *args, **kw)
  File "/data/supercoop/odoo/src/openerp/http.py", line 525, in response_wrap
    response = f(*args, **kw)
  File "/data/supercoop/odoo/src/addons/web/controllers/main.py", line 481, in web_login
    uid = request.session.authenticate(request.session.db, request.params['login'], request.params['password'])
  File "/data/supercoop/odoo/src/openerp/http.py", line 1141, in authenticate
    if uid: self.get_context()
  File "/data/supercoop/odoo/src/openerp/http.py", line 1189, in get_context
    self.context = request.registry.get('res.users').context_get(request.cr, request.uid) or {}
  File "/data/supercoop/odoo/src/openerp/api.py", line 250, in wrapper
    return old_api(self, *args, **kwargs)
  File "<string>", line 2, in context_get
  File "/data/supercoop/odoo/src/openerp/tools/cache.py", line 85, in lookup
    value = d[key] = self.method(*args, **kwargs)
  File "/data/supercoop/odoo/src/openerp/addons/base/res/res_users.py", line 432, in context_get
    res = getattr(user, k) or False
  File "/data/supercoop/odoo/src/openerp/fields.py", line 837, in __get__
    return record._cache[self]
  File "/data/supercoop/odoo/src/openerp/models.py", line 6158, in __getitem__
    return value.get() if isinstance(value, SpecialValue) else value
  File "/data/supercoop/odoo/src/openerp/fields.py", line 39, in get
    raise self.exception
MissingError: (u'Record does not exist or has been deleted.', None)

</pre></code>


How can I solve this?

Avatar
Discard
Related Posts Replies Views Activity
5
Aug 19
27505
1
Nov 18
5415
9
Nov 18
16769
2
Mar 17
3291
3
Dec 23
26369