odoo / odoo/docker

Database retoring odoo 11 CE

Open
#377 1 comment 0 reactions 0 assignees View on GitHub

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:

  1. 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 for res.partner. But all other tables contains their data
  2. 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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.