Skip to Content
Menu
This question has been flagged
2 Replies
6116 Views

During the initial installation, I got the following error message - 


(odoo 16 custom enterprise, VPS, ubuntu)


Please help!!!!


config file - 

[options]

admin_passwd = ******

db_host = 127.0.0.1

db_port = 5432

db_user = odoo

db_password = ******

dbfilter = ^odoo.*$ 






2023-09-06 13:05:42,984 183909 ERROR ? odoo.modules.loading: Database odoo not initialized, you can force it with -i base 

2023-09-06 13:05:42,985 183909 INFO ? odoo.modules.registry: Registry loaded in 0.022s 

2023-09-06 13:05:42,986 183909 ERROR odoo odoo.http: Exception during request handling. 

Traceback (most recent call last):

File "/usr/lib/python3/dist-packages/odoo/http.py", line 1584, in _serve_db

return service_model.retrying(self._serve_ir_http, self.env)

File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 133, in retrying

result = func()

File "/usr/lib/python3/dist-packages/odoo/http.py", line 1596, in _serve_ir_http

ir_http = self.registry['ir.http']

File "/usr/lib/python3/dist-packages/odoo/modules/registry.py", line 190, in getitem

return self.models[model_name]

KeyError: 'ir.http'


During handling of the above exception, another exception occurred:


Traceback (most recent call last):

File "/usr/lib/python3/dist-packages/odoo/http.py", line 1998, in call

response = request._serve_db()

File "/usr/lib/python3/dist-packages/odoo/http.py", line 1588, in _serve_db

exc.error_response = self.registry['ir.http']._handle_error(exc)

File "/usr/lib/python3/dist-packages/odoo/modules/registry.py", line 190, in getitem

return self.models[model_name]

KeyError: 'ir.http'

2023-09-06 13:05:42,988 183909 INFO odoo werkzeug: 127.0.0.1 - - [06/Sep/2023 13:05:42] "GET / HTTP/1.0" 500 - 8 0.006 0.040

2023-09-06 13:05:44,972 183909 ERROR odoo odoo.http: Exception during request handling. 


Traceback (most recent call last):

File "/usr/lib/python3/dist-packages/odoo/http.py", line 1584, in _serve_db

return service_model.retrying(self._serve_ir_http, self.env)

File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 133, in retrying

result = func()

File "/usr/lib/python3/dist-packages/odoo/http.py", line 1596, in _serve_ir_http

ir_http = self.registry['ir.http']

File "/usr/lib/python3/dist-packages/odoo/modules/registry.py", line 190, in getitem

return self.models[model_name]

KeyError: 'ir.http'




During handling of the above exception, another exception occurred:




Traceback (most recent call last):


File "/usr/lib/python3/dist-packages/odoo/http.py", line 1998, in call


response = request._serve_db()


File "/usr/lib/python3/dist-packages/odoo/http.py", line 1588, in _serve_db


exc.error_response = self.registry['ir.http']._handle_error(exc)


File "/usr/lib/python3/dist-packages/odoo/modules/registry.py", line 190, in getitem


return self.models[model_name]


KeyError: 'ir.http'


2023-09-06 13:05:44,973 183909 INFO odoo werkzeug: 127.0.0.1 - - [06/Sep/2023 13:05:44] "GET / HTTP/1.0" 500 - 2 0.002 0.017

Avatar
Discard
Author

unfortunately, your suggestion does not work.

I restart the server with the next command - 

service odoo restart

and use this config 

admin_passwd = ******
db_host = 127.0.0.1
db_port = 5432
db_user = odoo
db_password = ******
dbfilter = ^odoo.*$
;dbfilter = odoo
addons_path = /usr/lib/python3/dist-packages/odoo/addons
default_productivity_apps = True 





Best Answer
2023-09-06 13:05:42,984 183909 ERROR ? odoo.modules.loading: Database odoo not initialized, you can force it with -i base 


this is the error create a new database it will create a new demo database with admin admin credentials. you will need to remove db filter from the conf file. you can add it back later.

odoo-bin -d newdb
Avatar
Discard