Error 500 after install Odoo 15 on Ubuntu 22.04 VPS

Jan Pompe

Installed with:

Ubuntu 22.04
ufw ports allowed 22, 80, 443, 22/tcp (OpenSSH), 5432, 8072, 8069
Installed with Yenthe script
Added the odoo.conf to the Nginx configuration
Nginx is running without errors 

Now I have an 500 internal server error :  The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.

What can I / do I have to check?

Thanks in advance.

Niyas Raphy

please see the odoo log for more info regarding the issue and update the question with info from log,

Jan Pompe

Thank you Niyas,

2022-08-13 07:47:25,322 647 INFO ? werkzeug: - - [13/Aug/2022 07:47:25] "[35m[1mGET / HTTP/1.1[0m" 500 - 1 0.002 0.007
2022-08-13 07:47:25,328 647 ERROR ? werkzeug: Error on request:
Traceback (most recent call last):
File "/odoo/odoo-server/odoo/", line 1500, in _dispatch_nodb
result = request.dispatch()
File "/odoo/odoo-server/odoo/", line 810, in dispatch
r = self._call_function(**self.params)
File "/odoo/odoo-server/odoo/", line 360, in _call_function
return self.endpoint(*args, **kwargs)
File "/odoo/odoo-server/odoo/", line 916, in __call__
return self.method(*args, **kw)
File "/odoo/odoo-server/odoo/", line 535, in response_wrap
response = f(*args, **kw)
File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/", line 887, in index
return http.local_redirect('/web', query=request.params, keep_hash=True)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/werkzeug/", line 319, in run_wsgi
File "/usr/lib/python3/dist-packages/werkzeug/", line 308, in execute
application_iter = app(environ, start_response)
File "/odoo/odoo-server/odoo/service/", line 482, in app
return, s)
File "/odoo/odoo-server/odoo/service/", line 112, in application
return application_unproxied(environ, start_response)
File "/odoo/odoo-server/odoo/service/", line 87, in application_unproxied
result = odoo.http.root(environ, start_response)
File "/odoo/odoo-server/odoo/", line 1336, in __call__
return self.dispatch(environ, start_response)
File "/odoo/odoo-server/odoo/", line 1533, in dispatch
result = _dispatch_nodb()
File "/odoo/odoo-server/odoo/", line 1502, in _dispatch_nodb
return request._handle_exception(e)
File "/odoo/odoo-server/odoo/", line 748, in _handle_exception
return super(HttpRequest, self)._handle_exception(exception)
File "/odoo/odoo-server/odoo/", line 301, in _handle_exception
raise exception.with_traceback(None) from new_cause
AttributeError: module 'odoo.http' has no attribute 'local_redirect' - - -