最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

postgresql - my odoo database failed to initailize after running the python odoo command - Stack Overflow

programmeradmin0浏览0评论
C:\Program Files\Odoo 18.0.20250401\server>python odoo-bin -r myuser -w 1234567890 -d myuser_database
ERROR: couldn't create the logfile directory. Logging to the standard output.
2025-04-03 11:17:10,756 3208 INFO ? odoo: Odoo version 18.0-20250401
2025-04-03 11:17:10,757 3208 INFO ? odoo: Using configuration file at C:\Program Files\Odoo 18.0.20250401\server\odoo.conf
2025-04-03 11:17:10,758 3208 INFO ? odoo: addons paths: ['C:\\Program Files\\Odoo 18.0.20250401\\server\\odoo\\addons', 'c:\\program files\\odoo 18.0.20250401\\sessions\\addons\\18.0', 'c:\\program files\\odoo 18.0.20250401\\server\\odoo\\addons']
2025-04-03 11:17:10,759 3208 INFO ? odoo: database: myuser@localhost:5432
2025-04-03 11:17:11,720 3208 INFO ? odoo.addons.base.models.ir_actions_report: Will use the Wkhtmltopdf binary at C:\Program Files\Odoo 18.0.20250401\thirdparty\wkhtmltopdf.exe
2025-04-03 11:17:11,753 3208 INFO ? odoo.addons.base.models.ir_actions_report: You need Wkhtmltoimage to generate images from html.
2025-04-03 11:17:12,681 3208 INFO ? odoo.service.server: HTTP service (werkzeug) running on DESKTOP-TKNHKN2:8069
2025-04-03 11:17:12,832 3208 ERROR myuser_database odoo.modules.loading: Database myuser_database not initialized, you can force it with `-i base`
2025-04-03 11:17:12,832 3208 INFO myuser_database odoo.modules.registry: Registry loaded in 0.148s
2025-04-03 11:18:12,959 3208 ERROR myuser_database odoo.sql_db: bad query: b"\n            SELECT latest_version\n            FROM ir_module_module\n             WHERE name='base'\n        "
ERROR: relation "ir_module_module" does not exist
LINE 3:             FROM ir_module_module
                         ^

2025-04-03 11:18:12,960 3208 WARNING myuser_database odoo.addons.base.models.ir_cron: Tried to poll an undefined table on database myuser_database.
2025-04-03 11:18:14,021 3208 ERROR myuser_database odoo.sql_db: bad query: b"\n            SELECT latest_version\n            FROM ir_module_module\n             WHERE name='base'\n        "
ERROR: relation "ir_module_module" does not exist
LINE 3:             FROM ir_module_module
                         ^

2025-04-03 11:18:14,022 3208 WARNING myuser_database odoo.addons.base.models.ir_cron: Tried to poll an undefined table on database myuser_database.
C:\Program Files\Odoo 18.0.20250401\server>python odoo-bin -r myuser -w 1234567890 -d myuser_database
ERROR: couldn't create the logfile directory. Logging to the standard output.
2025-04-03 11:17:10,756 3208 INFO ? odoo: Odoo version 18.0-20250401
2025-04-03 11:17:10,757 3208 INFO ? odoo: Using configuration file at C:\Program Files\Odoo 18.0.20250401\server\odoo.conf
2025-04-03 11:17:10,758 3208 INFO ? odoo: addons paths: ['C:\\Program Files\\Odoo 18.0.20250401\\server\\odoo\\addons', 'c:\\program files\\odoo 18.0.20250401\\sessions\\addons\\18.0', 'c:\\program files\\odoo 18.0.20250401\\server\\odoo\\addons']
2025-04-03 11:17:10,759 3208 INFO ? odoo: database: myuser@localhost:5432
2025-04-03 11:17:11,720 3208 INFO ? odoo.addons.base.models.ir_actions_report: Will use the Wkhtmltopdf binary at C:\Program Files\Odoo 18.0.20250401\thirdparty\wkhtmltopdf.exe
2025-04-03 11:17:11,753 3208 INFO ? odoo.addons.base.models.ir_actions_report: You need Wkhtmltoimage to generate images from html.
2025-04-03 11:17:12,681 3208 INFO ? odoo.service.server: HTTP service (werkzeug) running on DESKTOP-TKNHKN2:8069
2025-04-03 11:17:12,832 3208 ERROR myuser_database odoo.modules.loading: Database myuser_database not initialized, you can force it with `-i base`
2025-04-03 11:17:12,832 3208 INFO myuser_database odoo.modules.registry: Registry loaded in 0.148s
2025-04-03 11:18:12,959 3208 ERROR myuser_database odoo.sql_db: bad query: b"\n            SELECT latest_version\n            FROM ir_module_module\n             WHERE name='base'\n        "
ERROR: relation "ir_module_module" does not exist
LINE 3:             FROM ir_module_module
                         ^

2025-04-03 11:18:12,960 3208 WARNING myuser_database odoo.addons.base.models.ir_cron: Tried to poll an undefined table on database myuser_database.
2025-04-03 11:18:14,021 3208 ERROR myuser_database odoo.sql_db: bad query: b"\n            SELECT latest_version\n            FROM ir_module_module\n             WHERE name='base'\n        "
ERROR: relation "ir_module_module" does not exist
LINE 3:             FROM ir_module_module
                         ^

2025-04-03 11:18:14,022 3208 WARNING myuser_database odoo.addons.base.models.ir_cron: Tried to poll an undefined table on database myuser_database.
Share Improve this question edited yesterday snakecharmerb 56.1k13 gold badges134 silver badges187 bronze badges asked yesterday OluwasemiloreOluwasemilore 11 bronze badge New contributor Oluwasemilore is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct. 2
  • Please review the how to ask a question guide. You need to show us the code/commands you've tried, we cannot guess at what you've tried and what produced this error. Please also add formatting to make things more readable. – UnsanitizedInput Commented yesterday
  • Please add some context besides the link. – jottbe Commented 8 hours ago
Add a comment  | 

1 Answer 1

Reset to default 1

The log message

ERROR myuser_database odoo.modules.loading: Database myuser_database not initialized, you can force it with -i base

tells us that there is an existing database myuser which is not an Odoo database, and you haven't told Odoo to install any modules, so Odoo has not created any tables.

As the message suggests, re-execute the odoo command with an instruction to install an addon, for example:

./odoo -d myuser -i base

Alternatively, delete the myuser database and run the command again, or specify a non-existent database.

发布评论

评论列表(0)

  1. 暂无评论