Fix Corrupt Repository

Asked by Paulus Koshivi

We need a help in restoring one of our Bazaar repositories without loosing the logs.

The repository is currently corrupt for reasons no one could tell, since it was not touched for the past 6 months. Currently, we cannot checkout, commit changes etc. Any such operation results in error with message similar to

bzr: ERROR: Could not parse options for index [bzrlib.btree_index.BTreeGraphIndex Object at 0x030F26F0]

The local branch is, however, valid. Is there anyway to replace the repository with the local branch (the normal commit does not work) and keeping the logs?

Question information

Language:
English Edit question
Status:
Answered
For:
Bazaar Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Vincent Ladeuil (vila) said :
#1

It mostly depends on what kind of branches and repositories you are using.

bzr: ERROR: Could not parse options for index [bzrlib.btree_index.BTreeGraphIndex Object at 0x030F26F0] is not enough to even know which file is corrupted, ~/.bzr.log should contain more details.

A description of your setup (local and remote if a server is involved) would help too, as well as whether you're the only one using that branch or if several people do (it may be that you just have to re-create the corrupted repo from a valid one used elsewhere).

Revision history for this message
Paulus Koshivi (koshivi) said :
#2

Vincent, thanks for the reply.
I have just looked at the bzr.log file and found no other error message.

Ours is a central repository on a Windows server, and accessed by two people; mainly me who commits and the other who administers the server and releases.

Both of us have valid local branches, but don't know how to recreate the repository. Any help is appreciated.

Revision history for this message
Vincent Ladeuil (vila) said :
#3

If you only have the central repository and no local repository... things will be tough :-/

I can't help you without more info about your setup:
- 'bzr info -v' (locally and on the server),
- 'bzr check -v' ( locally and on the server, you may want to try --tree --branch and --repo if you encounter errors)
- bzr config (locally and on the server)

Anonymize as needed.

Alternatively, try #bzr on freenode.

Revision history for this message
Paulus Koshivi (koshivi) said :
#4

Vincent, please I work behind thick walls and can only login to this site from my phone.I can therefore only type the results from the screen, so if possible let me know the least info you will need. Our Bazaar is 2.5.1. Thanks.

Sent from my Galaxy smartphone.
-------- Original message --------From: Vincent Ladeuil <email address hidden> Date: 7/6/16 17:17 (GMT+09:00) To: <email address hidden> Subject: Re: [Question #296027]: Fix Corrupt Repository
Your question #296027 on Bazaar changed:
https://answers.launchpad.net/bzr/+question/296027

Vincent Ladeuil proposed the following answer:
If you only have the central repository and no local repository...
things will be tough :-/

I can't help you without more info about your setup:
- 'bzr info -v' (locally and on the server),
- 'bzr check -v' ( locally and on the server, you may want to try --tree --branch and --repo if you encounter errors)
- bzr config (locally and on the server)

Anonymize as needed.

Alternatively, try #bzr on freenode.

--
If this answers your question, please go to the following page to let us
know that it is solved:
https://answers.launchpad.net/bzr/+question/296027/+confirm?answer_id=2

If you still need help, you can reply to this email or go to the
following page to enter your feedback:
https://answers.launchpad.net/bzr/+question/296027

You received this question notification because you asked the question.

Revision history for this message
Vincent Ladeuil (vila) said :
#5

8-(

This is becoming quite a challenge....

The main question is whether you have several repositories across your local host(s) and you server.

Search for a 'repository' folder under a '.bzr' folder.

If you find only one the server, you'll have to resort to a backup .

Going further requires more bandwidth, either IRC or preferably email.

Revision history for this message
Paulus Koshivi (koshivi) said :
#6

Vincent,

I have turned off the "Hide my email addresses from other Launchpad users" feature in my settings so that you can reach me through my email. Ready for any support including paying, I really need this help.

Can you help with this problem?

Provide an answer of your own, or ask Paulus Koshivi for more information if necessary.

To post a message you must log in.