Comment 8 for bug 522637

Revision history for this message
Numérigraphe (numerigraphe) wrote :

I've encountered a similar problem, again with OpenERP server 5.0 ; here is as much detail as I could gather.

I use a local repo to host 3 branches : "5.0", "dev" and "prod".
- "5.0" is a checkout of lp:~openerp/openobject-server/5.0/
- "dev" is where I make my daily work
- "prod" is a checkout of a distant (bzr+ssh) standalone branch called "server", on the production host.
Often when a release is tagged in "5.0", I'll merge it into "dev".
Eventually I'll merge "dev" into "prod", and "bzr update" the distant "server" branch via SSH.
That worked fine for the tag "5.0.7" and the tags before.

Now I merged the tag "5.0.10" from "5.0" into "dev", but when I merged "dev" into "prod" I couldn't commit (see crash file attached)
:
ErrorFromSmartServer: Error received from smart server: ('error', "Internal check failed: Cannot add revision(s) to repository: missing referenced chk root keys: [StaticTuple('sha1:0deb2b3b15a16211b3addbfb524efe48534b139c',)]")
Commit --local worked but then push failed, and uncommit failed too.
"bzr check" on the repo and the distant branch are OK.

I tried to rebuild a new repo and import my branches into it, but met the same error when I pushed to the distant branch.

I rsynced a local copy of the distant branch to make sure it's not a bzr+ssh issue, and met the same error whe I tried to push to it.

Via SSH, I created a new distant branch from the old distant branch and tried to push to it, and met the same error.

Finally I created a new repo, imported my branches into it, then created a new standalone branch from my new "prod" branch and rsync'ed it to the distant host to replace the "server" branch. That seems to work all right now.

I have a backup copy of the initial repo and the old distant branch, I'll make them available if someone wants to investigate.

Lionel.