When I try to commit I get "ERROR: No such file"

Asked by Owen L

The message I get when I try to Commit (using Bazaar Explorer):
Committing to: Z:/data/bzrdb/kc/main/
added kc/misc/agent_design.txt
modified kc/misc/kc_notes.txt
modified kc/misc/kc_xxx.txt
bzr: ERROR: No such file: u'Z:/data/bzrdb/kc/.bzr/repository/indices/e89b6a9275ea7899c2cc6ef3d16b0f7f.rix': [Errno 2] No such file or directory: u'Z:/data/bzrdb/kc/.bzr/repository/indices/e89b6a9275ea7899c2cc6ef3d16b0f7f.rix'

It is true that that file does not exist. In fact the indices directory is empty. However there is a .pack file with that name in the packs directory. I don't know what happened that made it get in a bad state. I am pretty new to using Bazaar. I have probably only done about 20 commits after setting up this repository. But those all seemed to work fine.

My main question is: How can I recover from this? Or will I be forced to delete it and start over?

Thanks in advance for any help you can give me!

My files:
Z:\data\bzrdb\kc\main
Z:\data\bzrdb\kc\.bzr\branch-format
Z:\data\bzrdb\kc\.bzr\branch-lock
Z:\data\bzrdb\kc\.bzr\README
Z:\data\bzrdb\kc\.bzr\repository
Z:\data\bzrdb\kc\.bzr\repository\format
Z:\data\bzrdb\kc\.bzr\repository\indices
Z:\data\bzrdb\kc\.bzr\repository\lock
Z:\data\bzrdb\kc\.bzr\repository\no-working-trees
Z:\data\bzrdb\kc\.bzr\repository\obsolete_packs
Z:\data\bzrdb\kc\.bzr\repository\pack-names
Z:\data\bzrdb\kc\.bzr\repository\packs
Z:\data\bzrdb\kc\.bzr\repository\shared-storage
Z:\data\bzrdb\kc\.bzr\repository\upload
Z:\data\bzrdb\kc\.bzr\repository\obsolete_packs\1a2c6d08335af0075c727387c27df2fa.iix
Z:\data\bzrdb\kc\.bzr\repository\obsolete_packs\1a2c6d08335af0075c727387c27df2fa.pack
Z:\data\bzrdb\kc\.bzr\repository\obsolete_packs\1a2c6d08335af0075c727387c27df2fa.rix
Z:\data\bzrdb\kc\.bzr\repository\obsolete_packs\1a2c6d08335af0075c727387c27df2fa.six
Z:\data\bzrdb\kc\.bzr\repository\obsolete_packs\1a2c6d08335af0075c727387c27df2fa.tix
Z:\data\bzrdb\kc\.bzr\repository\obsolete_packs\27cbac71f9ffe8a6084aa86d7325e053.iix
Z:\data\bzrdb\kc\.bzr\repository\obsolete_packs\27cbac71f9ffe8a6084aa86d7325e053.pack
Z:\data\bzrdb\kc\.bzr\repository\obsolete_packs\27cbac71f9ffe8a6084aa86d7325e053.rix
Z:\data\bzrdb\kc\.bzr\repository\obsolete_packs\27cbac71f9ffe8a6084aa86d7325e053.six
Z:\data\bzrdb\kc\.bzr\repository\obsolete_packs\27cbac71f9ffe8a6084aa86d7325e053.tix
Z:\data\bzrdb\kc\.bzr\repository\obsolete_packs\2e4937ccb114e3b82537717303cc782d.iix
Z:\data\bzrdb\kc\.bzr\repository\obsolete_packs\2e4937ccb114e3b82537717303cc782d.pack
Z:\data\bzrdb\kc\.bzr\repository\obsolete_packs\2e4937ccb114e3b82537717303cc782d.rix
Z:\data\bzrdb\kc\.bzr\repository\obsolete_packs\2e4937ccb114e3b82537717303cc782d.six
Z:\data\bzrdb\kc\.bzr\repository\obsolete_packs\2e4937ccb114e3b82537717303cc782d.tix
Z:\data\bzrdb\kc\.bzr\repository\obsolete_packs\50342d852a6d690c6030f4b49cd4c0b2.iix
Z:\data\bzrdb\kc\.bzr\repository\obsolete_packs\50342d852a6d690c6030f4b49cd4c0b2.pack
Z:\data\bzrdb\kc\.bzr\repository\obsolete_packs\50342d852a6d690c6030f4b49cd4c0b2.rix
Z:\data\bzrdb\kc\.bzr\repository\obsolete_packs\50342d852a6d690c6030f4b49cd4c0b2.six
Z:\data\bzrdb\kc\.bzr\repository\obsolete_packs\50342d852a6d690c6030f4b49cd4c0b2.tix
Z:\data\bzrdb\kc\.bzr\repository\obsolete_packs\a397e1075cafef005c7d120c9abd7f97.iix
Z:\data\bzrdb\kc\.bzr\repository\obsolete_packs\a397e1075cafef005c7d120c9abd7f97.pack
Z:\data\bzrdb\kc\.bzr\repository\obsolete_packs\a397e1075cafef005c7d120c9abd7f97.rix
Z:\data\bzrdb\kc\.bzr\repository\obsolete_packs\a397e1075cafef005c7d120c9abd7f97.six
Z:\data\bzrdb\kc\.bzr\repository\obsolete_packs\a397e1075cafef005c7d120c9abd7f97.tix
Z:\data\bzrdb\kc\.bzr\repository\obsolete_packs\c4e32f3678e6f7d146593cf5bca30df0.iix
Z:\data\bzrdb\kc\.bzr\repository\obsolete_packs\c4e32f3678e6f7d146593cf5bca30df0.pack
Z:\data\bzrdb\kc\.bzr\repository\obsolete_packs\c4e32f3678e6f7d146593cf5bca30df0.rix
Z:\data\bzrdb\kc\.bzr\repository\obsolete_packs\c4e32f3678e6f7d146593cf5bca30df0.six
Z:\data\bzrdb\kc\.bzr\repository\obsolete_packs\c4e32f3678e6f7d146593cf5bca30df0.tix
Z:\data\bzrdb\kc\.bzr\repository\obsolete_packs\dc47e5c49fdf1c3e32144218152f498a.iix
Z:\data\bzrdb\kc\.bzr\repository\obsolete_packs\dc47e5c49fdf1c3e32144218152f498a.pack
Z:\data\bzrdb\kc\.bzr\repository\obsolete_packs\dc47e5c49fdf1c3e32144218152f498a.rix
Z:\data\bzrdb\kc\.bzr\repository\obsolete_packs\dc47e5c49fdf1c3e32144218152f498a.six
Z:\data\bzrdb\kc\.bzr\repository\obsolete_packs\dc47e5c49fdf1c3e32144218152f498a.tix
Z:\data\bzrdb\kc\.bzr\repository\obsolete_packs\ee5e5305bda247a87f2132be10483c85.iix
Z:\data\bzrdb\kc\.bzr\repository\obsolete_packs\ee5e5305bda247a87f2132be10483c85.pack
Z:\data\bzrdb\kc\.bzr\repository\obsolete_packs\ee5e5305bda247a87f2132be10483c85.rix
Z:\data\bzrdb\kc\.bzr\repository\obsolete_packs\ee5e5305bda247a87f2132be10483c85.six
Z:\data\bzrdb\kc\.bzr\repository\obsolete_packs\ee5e5305bda247a87f2132be10483c85.tix
Z:\data\bzrdb\kc\.bzr\repository\obsolete_packs\f3f86e8864cf0d1380cac8d103a7d19d.iix
Z:\data\bzrdb\kc\.bzr\repository\obsolete_packs\f3f86e8864cf0d1380cac8d103a7d19d.pack
Z:\data\bzrdb\kc\.bzr\repository\obsolete_packs\f3f86e8864cf0d1380cac8d103a7d19d.rix
Z:\data\bzrdb\kc\.bzr\repository\obsolete_packs\f3f86e8864cf0d1380cac8d103a7d19d.six
Z:\data\bzrdb\kc\.bzr\repository\obsolete_packs\f3f86e8864cf0d1380cac8d103a7d19d.tix
Z:\data\bzrdb\kc\.bzr\repository\obsolete_packs\f9d7ab91192c1a1346720b91c7b6c1e0.iix
Z:\data\bzrdb\kc\.bzr\repository\obsolete_packs\f9d7ab91192c1a1346720b91c7b6c1e0.pack
Z:\data\bzrdb\kc\.bzr\repository\obsolete_packs\f9d7ab91192c1a1346720b91c7b6c1e0.rix
Z:\data\bzrdb\kc\.bzr\repository\obsolete_packs\f9d7ab91192c1a1346720b91c7b6c1e0.six
Z:\data\bzrdb\kc\.bzr\repository\obsolete_packs\f9d7ab91192c1a1346720b91c7b6c1e0.tix
Z:\data\bzrdb\kc\.bzr\repository\packs\0c8354bf02e51f57793e6d4635b1979f.pack
Z:\data\bzrdb\kc\.bzr\repository\packs\d4dd03d81d872fafcd9689f75f98bcbd.pack
Z:\data\bzrdb\kc\.bzr\repository\packs\e89b6a9275ea7899c2cc6ef3d16b0f7f.pack
Z:\data\bzrdb\kc\main\.bzr\branch
Z:\data\bzrdb\kc\main\.bzr\branch-format
Z:\data\bzrdb\kc\main\.bzr\branch-lock
Z:\data\bzrdb\kc\main\.bzr\README
Z:\data\bzrdb\kc\main\.bzr\branch\branch.conf
Z:\data\bzrdb\kc\main\.bzr\branch\format
Z:\data\bzrdb\kc\main\.bzr\branch\last-revision
Z:\data\bzrdb\kc\main\.bzr\branch\lock
Z:\data\bzrdb\kc\main\.bzr\branch\tags

About Bazaar Explorer gives me:
Bazaar Explorer -- Version Control for Human Beings
Version 0.8
QBzr 0.13.1, bzrlib 1.18.1, PyQt 4.4.3, Qt 4.4.1, Python 2.5.4

My System:
Bazaar Explorer is running on my WinXP Pro laptop.
It is committing to the Z: drive which is mapped to my Drobo (a NAS device) which is in the NTFS format.

Question information

Language:
English Edit question
Status:
Solved
For:
Bazaar Edit question
Assignee:
No assignee Edit question
Solved by:
Owen L
Solved:
Last query:
Last reply:
Revision history for this message
Owen L (ol39573) said :
#1

I figured out how to recreate my remote branch. I realized that my local branch was its own complete copy (at least the way I had set it up), so I deleted the broken remote branch and pushed my local branch to it. The only reason I didn't figure this out before is that I'm so new to Bazaar and used to working with Perforce where the branches reside only on the server. And I was thinking of my remote branch like it was the server.

I still don't know how my remote branch got corrupted. But I feel confidant that if it happens again, I can easily recreate it.

Specifically, this is what I did, where my remote branch is on Z: and my local branch is on C::
<delete Z:\data\bzrdb\kc>
bzr init-repo --no-trees Z:\data\bzrdb\kc
bzr init Z:\data\bzrdb\kc\main
bzr push -d C:\dev\kc\main --overwrite --no-strict Z:\data\bzrdb\kc\main

Revision history for this message
Robert Collins (lifeless) said :
#2

I'm glad you're working ok. The missing index files are a concern, if
you have any ideas about what might have happened we'd like to hear
them.

Cheers,
Rob