Replies: 2 comments 8 replies
-
👋 What is the module being updated when the exception is raised?
? |
Beta Was this translation helpful? Give feedback.
-
Could you provide the version of both postgresql servers ? the production one and the restore one. |
Beta Was this translation helpful? Give feedback.
-
Hello everyone,
I have an issue with one of my bigger installations, though in the grand scheme it's not that big (a couple of GBs when compressed) and it definitely shouldn't cause problems.
In short, we backup the database and filestore using click-odoo-backupdb and we use click-odoo-restoredb to restore it in another environment for testing. Then, we run an update of all the installed modules.
It's at this point that, sometimes, we encounter the following error
psycopg2.errors.InvalidForeignKey: there is no unique constraint matching given keys for referenced table "mail_message"
Full traceback
The fact that it only happens occasionally, even when restoring from the same backup, is quite puzzling, and makes it hard to troubleshoot.
I've come across this forum thread with a person claiming that the root of the problem is Odoo's configuration, but our Odoo configuration has very high limits already, similar to the ones listed as a possible solution.
Has anyone encountered this problem already? How did you solve it?
Thank you for your time.
Beta Was this translation helpful? Give feedback.
All reactions