Database retoring odoo 11 CE
Open
Nobody has claimed this yet.
- Dominant language
- Dockerfile
- Stars
- 1.2k
- Forks
- 1.7k
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
I have an odoo 11ce instance running on a VPS and I use the auto_backup module to backup the database.
When I try to restore the database on my local dockerized odoo I get weird things:
- Sometime the restoring succeeds but the user table (
res.users) does not contain all data. It only contains default data.
It is the same case forres.partner.But all other tables contains their data - The second attempt I got this error:
psycopg2.IntegrityError: insert or update on table "ir_model" violates foreign key constraint "ir_model_write_uid_fkey"
DETAIL: Key (write_uid)=(19) is not present in table "res_users".
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the restore from the auto_backup module in the local Dockerized Odoo 11 CE setup. Compare the restored res.users and res.partner tables with the source database, then inspect the ir_model write_uid foreign-key failure. Done means identifying why user and partner data are missing or referenced inconsistently during restore.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, postgresql, python
- Domain
- backend, databases, devops
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100