Trying to deploy odoo app but always getting erro…
Tried use odoo image from docker hub…
https://hub.docker.com/_/odoo
Tried to deploy with github
But both are getting the same result…
Trying to deploy odoo app but always getting erro…
Tried use odoo image from docker hub…
https://hub.docker.com/_/odoo
Tried to deploy with github
But both are getting the same result…
To run odoo
image, after deploying our DB, you need to set the following env vars:
DATABASE=koyebdb
HOST=
PASSWORD=
PORT=5432
USER=koyeb-adm
Fill with your host and password. For storing password, you can also use secrets.
As for your Dockerfile, it’s using docker compose. We have an example showing how to do it.
If you want to persist your data, I would go with the first option.
Awesome @Lukasz_Oles thanks. That’s fix the problem,
But another one appear… maybe you can help with this as well.
KeyError: 'ir.http'
2025-03-01 14:33:00,906 1 INFO koyebdb werkzeug: 135.148.55.78 - - [01/Mar/2025 14:33:00] "GET / HTTP/1.1" 500 - 8 0.041 0.101
2025-03-01 14:33:23,617 1 INFO ? odoo.service.server: Initiating shutdown
2025-03-01 14:33:23,617 1 INFO ? odoo.service.server: Hit CTRL-C again or send a second signal to force the shutdown.
Forced shutdown.
HTTP health check failed on port 8069.
Instance stopped.
Instance created. Preparing to start...
2025-03-01 14:33:34,454 1 INFO ? odoo: Odoo version 18.0-20250218
2025-03-01 14:33:34,455 1 INFO ? odoo: Using configuration file at /etc/odoo/odoo.conf
2025-03-01 14:33:34,455 1 INFO ? odoo: addons paths: ['/usr/lib/python3/dist-packages/odoo/addons', '/var/lib/odoo/addons/18.0', '/mnt/extra-addons']
2025-03-01 14:33:34,455 1 INFO ? odoo: database: koyeb-adm@ep-royal-glade-a46dltx6.us-east-1.pg.koyeb.app:5432
Warn: Can't find .pfb for face 'Courier'
2025-03-01 14:33:34,788 1 INFO ? odoo.addons.base.models.ir_actions_report: Will use the Wkhtmltopdf binary at /usr/local/bin/wkhtmltopdf
2025-03-01 14:33:34,843 1 INFO ? odoo.addons.base.models.ir_actions_report: Will use the Wkhtmltoimage binary at /usr/local/bin/wkhtmltoimage
2025-03-01 14:33:35,183 1 INFO ? odoo.service.server: HTTP service (werkzeug) running on f7dd308d:8069
Instance is starting... Waiting for health checks to pass.
2025-03-01 14:33:52,519 1 ERROR ? odoo.modules.loading: Database koyebdb not initialized, you can force it with `-i base`
2025-03-01 14:33:52,523 1 INFO ? odoo.modules.registry: Registry loaded in 0.076s
2025-03-01 14:33:52,534 1 ERROR koyebdb odoo.http: Exception during request handling.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/http.py", line 2372, in __call__
response = request._serve_db()
^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/odoo/http.py", line 1880, in _serve_db
rule, args = self.registry['ir.http']._match(self.httprequest.path)
~~~~~~~~~~~~~^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/odoo/modules/registry.py", line 240, in __getitem__
return self.models[model_name]
~~~~~~~~~~~^^^^^^^^^^^^
KeyError: 'ir.http'
2025-03-01 14:33:52,538 1 INFO koyebdb werkzeug: 135.148.55.84 - - [01/Mar/2025 14:33:52] "GET / HTTP/1.1" 500 - 8 0.042 0.105
2025-03-01 14:34:07,698 1 INFO ? odoo.service.server: Initiating shutdown
2025-03-01 14:34:07,699 1 INFO ? odoo.service.server: Hit CTRL-C again or send a second signal to force the shutdown.
I think you have the solution in the error. DB is not initialized yet.