İçereği Atla
Menü
Bu soru işaretlendi
5 Cevaplar
5595 Görünümler


Impacted versions:

8.0 at least

Steps to reproduce:

Open a runbot

Before login change database to uuid-whatsoever-base

Change back database to uuid-whatsoever-all

Current behavior:

HTTP 500 Internal server error

Reloading the page fixes the problem

Seems to happen only on the login page when website module is not installed

Logs give

Traceback (most recent call last):

File "C:\Program Files (x86)\Python27\lib\site-packages\werkzeug\serving.py", line 177, in run_wsgi

execute(self.server.app)

File "C:\Program Files (x86)\Python27\lib\site-packages\werkzeug\serving.py", line 165, in execute

application_iter = app(environ, start_response)

File "C:\Users\nicolas\Documents\Progs\GitHub\odoo\openerp\service\server.py", line 281, in app

return self.app(e, s)

File "C:\Users\nicolas\Documents\Progs\GitHub\odoo\openerp\service\wsgi_server.py", line 216,

in application

return application_unproxied(environ, start_response)

File "C:\Users\nicolas\Documents\Progs\GitHub\odoo\openerp\service\wsgi_server.py", line 202, in application_unproxied

result = handler(environ, start_response)

File "C:\Users\nicolas\Documents\Progs\GitHub\odoo\openerp\http.py", line 1280, in call

return self.dispatch(environ, start_response)

File "C:\Users\nicolas\Documents\Progs\GitHub\odoo\openerp\http.py", line 1254, in call

return self.app(environ, start_wrapped)

File "C:\Program Files (x86)\Python27\lib\site-packages\werkzeug\wsgi.py", line 588, in call

return self.app(environ, start_response)

File "C:\Users\nicolas\Documents\Progs\GitHub\odoo\openerp\http.py", line 1421, in dispatch

result = ir_http.dispatch()

File "C:\Users\nicolas\Documents\Progs\GitHub\odoo\openerp\addons\base\ir\ir_http.py", line 168, in dispatch

return self._handle_exception(e)

File "C:\Users\nicolas\Documents\Progs\GitHub\odoo\openerp\addons\base\ir\ir_http.py", line 132, in _handle_exception

attach = self._serve_attachment()

File "C:\Users\nicolas\Documents\Progs\GitHub\odoo\openerp\addons\base\ir\ir_http.py", line 104, in _serve_attachment

request.cr, openerp.SUPERUSER_ID, domain,

File "C:\Program Files (x86)\Python27\lib\site-packages\werkzeug\local.py", line 338, in __getattr

return getattr(self._get_current_object(), name)

File "C:\Users\nicolas\Documents\Progs\GitHub\odoo\openerp\http.py", line 240, in cr

self._cr = self.registry.cursor()

AttributeError: 'NoneType' object has no attribute 'cursor'

Expected behavior:

Flawless switch between databases

Avatar
Vazgeç

This issue has been reported at https://github.com/odoo/odoo/issues/6100 - did you copy and paste your post from there?

En İyi Yanıt

I create PR regarding this. It will fix your problem.

Link: https://github.com/odoo/odoo/pull/6705

Avatar
Vazgeç
Üretici

Thanks Rakesh Sindhav , Its working.

En İyi Yanıt

If you refresh page work fine too.

Avatar
Vazgeç
En İyi Yanıt

Clear cache memory of browser or delete history 

Avatar
Vazgeç
Üretici

Still not solved