تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
6460 أدوات العرض

We have in aour production postgresql cluster databases for odoo and for other products. By watching odoo log files, we saw that ir_cron try to work with non Odoo db. We have a dbfilter in our conf file : dbfilter='^LIB_.*'

Does exist a way to prevent those warning ?

​2019-06-12 10:50:09,033 36 ERROR zato odoo.sql_db: bad query: b"SELECT latest_version FROM ir_module_module WHERE name='base'"
ERROR: relation "ir_module_module" does not exist
LINE 1: SELECT latest_version FROM ir_module_module WHERE name='base...

الصورة الرمزية
إهمال
أفضل إجابة

In standard Odoo should be installed with user = odoo. In this case all Odoo databases has owner = odoo. Your bases must have probably another owner.

ALTER DATABASE name OWNER TO new_owner;


الصورة الرمزية
إهمال

There are many cases where multiple Odoo instances are sharing a same postgress cluster. It is certainly not a requirement that databases have odoo as owner. If there are multiple instances, that would actually be a security breach. Odoo should respect dbfilter. This not happening is a bug.

المنشورات ذات الصلة الردود أدوات العرض النشاط
0
مارس 15
5310
0
مايو 21
2392
0
يوليو 25
1530
2
نوفمبر 24
6559
2
أكتوبر 24
3497