bzr re-installation (commit no more possible)

Asked by bourricaud

I use bzr as only for myself on a winXp computer

typycally I use bzr a s following
create a new directory client with a dir project client\project
move to the directory client with on a console I do bzr\init
then work a bit in directory project
then in the console I do "bzr add project" (that add all my fles...)
sometimes I use .ignore file stored in directory client\

my problem that I had to reformat my system disk and re-install all my datas
now for all my projects "bzr commit" return an error "ERROR file 2"
(rem "bzr log" works well )
I've tryed to update to last bzr version but same problem...

is there a way to repair the system ?

I thougth all the bzr datas was stored in the directory where I do the bzr init
is that right ?

best regards

Question information

Language:
English Edit question
Status:
Answered
For:
Bazaar Explorer Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
John A Meinel (jameinel) said :
#1

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 10/3/2011 11:45 AM, bourricaud wrote:
> New question #173078 on Bazaar Explorer:
> https://answers.launchpad.net/bzr-explorer/+question/173078
>
> I use bzr as only for myself on a winXp computer
>
> typycally I use bzr a s following create a new directory client
> with a dir project client\project move to the directory client
> with on a console I do bzr\init then work a bit in directory
> project then in the console I do "bzr add project" (that add all my
> fles...) sometimes I use .ignore file stored in directory client\
>
> my problem that I had to reformat my system disk and re-install all
> my datas now for all my projects "bzr commit" return an error
> "ERROR file 2" (rem "bzr log" works well ) I've tryed to update to
> last bzr version but same problem...
>
> is there a way to repair the system ?
>
> I thougth all the bzr datas was stored in the directory where I do
> the bzr init is that right ?
>
>
> best regards
>
>

"ERROR file 2" indicates "ENOENT" so a directory or file is missing
that we expect to be present. There are a couple of directories that
we expect to be present, but which are often empty. It is possible
that your system restore does not re-create empty directories.

The ones in mind are .bzr/repository/upload and
.bzr/repository/obsolete_packs.

So if you go to:
client\project

you should have a '.bzr' directory there, and underneath that a
'repository' directory. There should be a few directories there, two
of them that are likely to have been empty are 'upload' and
'obsolete_packs'. If they are missing you can just create them as
empty folders.

I do believe there is an open bug about us creating them if they go
missing, but I don't have a bug number off hand.

You can also try running "bzr commit -Derror" which should produce a
more detailed error traceback, to help us figure out what is failing.

John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk6Jkv0ACgkQJdeBCYSNAAPxTQCfT7sh5OuHtLoaOTcOgR4+2nCL
hGkAn3uXisn+4zGin3QOmmMupVtR0kGY
=zxMS
-----END PGP SIGNATURE-----

Revision history for this message
bourricaud (herve-bourricaud) said :
#2

Hello,

thanks for your help !

I've try to create upload and obsolote_packs dir in th .bzr dir
but same problem !
rem:
 I've copyed all the datas (file and ;bzr ) in another one called old\
and create a new repository... to go on working...
but I really like to solve this problem because I'v got a lot of project
that do not commit any more...

here are 2 copy of console screen: really hope you can help !

----------------------------------------------------------------------------------
E:\data\dev\sabatier\m30ls\app\old\.bzr>dir
 Le volume dans le lecteur E s'appelle DATA
 Le numéro de série du volume est 9069-AF7D

 Répertoire de E:\data\dev\sabatier\m30ls\app\old\.bzr

03/10/2011 13:54 <REP> .
03/10/2011 13:54 <REP> ..
03/10/2011 11:47 <REP> branch
20/01/2011 15:24 35 branch-format
03/10/2011 11:47 <REP> checkout
03/10/2011 13:54 <REP> obsolete_packs
20/01/2011 15:24 141 README
26/09/2011 10:42 <REP> repository
03/10/2011 13:54 <REP> upload
               2 fichier(s) 176 octets
               7 Rép(s) 263 669 137 408 octets libres

E:\data\dev\sabatier\m30ls\app\old\.bzr>
----------------------------------------------------------------------------------
E:\data\dev\sabatier\m30ls\app\old>bzr commit

bzr: ERROR: [Errno 2] No such file or directory

E:\data\dev\sabatier\m30ls\app\old>bzr commit -Derror

bzr: ERROR: exceptions.OSError: [Errno 2] No such file or directory

Traceback (most recent call last):

  File "bzrlib\commands.pyo", line 946, in exception_to_return_code

  File "bzrlib\commands.pyo", line 1150, in run_bzr

  File "bzrlib\commands.pyo", line 699, in run_argv_aliases

  File "bzrlib\commands.pyo", line 721, in run

  File "bzrlib\cleanup.pyo", line 135, in run_simple

  File "bzrlib\cleanup.pyo", line 165, in _do_with_cleanups

  File "bzrlib\builtins.pyo", line 3316, in run

  File "bzrlib\decorators.pyo", line 217, in write_locked

  File "bzrlib\workingtree_4.pyo", line 209, in commit

  File "bzrlib\decorators.pyo", line 217, in write_locked

  File "bzrlib\mutabletree.pyo", line 210, in commit

  File "bzrlib\commit.pyo", line 289, in commit

  File "bzrlib\cleanup.pyo", line 131, in run

  File "bzrlib\cleanup.pyo", line 165, in _do_with_cleanups

  File "bzrlib\commit.pyo", line 409, in _commit

  File "bzrlib\branch.pyo", line 718, in get_commit_builder

  File "bzrlib\vf_repository.pyo", line 1244, in get_commit_builder

  File "bzrlib\repository.pyo", line 794, in start_write_group

  File "bzrlib\repofmt\pack_repo.pyo", line 1708, in _start_write_group

  File "bzrlib\repofmt\pack_repo.pyo", line 1515, in _start_write_group

  File "bzrlib\repofmt\pack_repo.pyo", line 395, in __init__

  File "bzrlib\transport\local.pyo", line 331, in open_write_stream

  File "bzrlib\osutils.pyo", line 2370, in open_file

OSError: [Errno 2] No such file or directory

E:\data\dev\sabatier\m30ls\app\old>
---------------------------------------------------------------------------------------------

If you want I can send you the whole project datas + .bzr dir in a zip file
just tell me !
rem: the zip it's 122Mbytes...

best regards
Hervé.

2011/10/3 John A Meinel <email address hidden>

> Your question #173078 on Bazaar Explorer changed:
> https://answers.launchpad.net/bzr-explorer/+question/173078
>
> Status: Open => Answered
>
> John A Meinel proposed the following answer:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 10/3/2011 11:45 AM, bourricaud wrote:
> > New question #173078 on Bazaar Explorer:
> > https://answers.launchpad.net/bzr-explorer/+question/173078
> >
> > I use bzr as only for myself on a winXp computer
> >
> > typycally I use bzr a s following create a new directory client
> > with a dir project client\project move to the directory client
> > with on a console I do bzr\init then work a bit in directory
> > project then in the console I do "bzr add project" (that add all my
> > fles...) sometimes I use .ignore file stored in directory client\
> >
> > my problem that I had to reformat my system disk and re-install all
> > my datas now for all my projects "bzr commit" return an error
> > "ERROR file 2" (rem "bzr log" works well ) I've tryed to update to
> > last bzr version but same problem...
> >
> > is there a way to repair the system ?
> >
> > I thougth all the bzr datas was stored in the directory where I do
> > the bzr init is that right ?
> >
> >
> > best regards
> >
> >
>
> "ERROR file 2" indicates "ENOENT" so a directory or file is missing
> that we expect to be present. There are a couple of directories that
> we expect to be present, but which are often empty. It is possible
> that your system restore does not re-create empty directories.
>
> The ones in mind are .bzr/repository/upload and
> .bzr/repository/obsolete_packs.
>
> So if you go to:
> client\project
>
> you should have a '.bzr' directory there, and underneath that a
> 'repository' directory. There should be a few directories there, two
> of them that are likely to have been empty are 'upload' and
> 'obsolete_packs'. If they are missing you can just create them as
> empty folders.
>
> I do believe there is an open bug about us creating them if they go
> missing, but I don't have a bug number off hand.
>
> You can also try running "bzr commit -Derror" which should produce a
> more detailed error traceback, to help us figure out what is failing.
>
> John
> =:->
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (Cygwin)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAk6Jkv0ACgkQJdeBCYSNAAPxTQCfT7sh5OuHtLoaOTcOgR4+2nCL
> hGkAn3uXisn+4zGin3QOmmMupVtR0kGY
> =zxMS
> -----END PGP SIGNATURE-----
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
>
> https://answers.launchpad.net/bzr-explorer/+question/173078/+confirm?answer_id=0
>
> 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-explorer/+question/173078
>
> You received this question notification because you asked the question.
>

--
//--------------------------------------------------------
Herve Bourricaud www.IACA-electronique.com

8 ZA les baronnes
34730 Prades le Lez
France

tel: 0499622020
mail: <email address hidden>
// --------------------------------------------------------

Revision history for this message
Martin Pool (mbp) said :
#3

You need to put the 'obsolete_packs' directory inside the 'repository'
directory, not beside it.

Can you help with this problem?

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

To post a message you must log in.