fail when upload directory is missing

Bug #307277 reported by EmmaJane
4
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Low
Jason Spashett

Bug Description

After recovering from backups, I got the following error when I try to commit changes to my project:

bzr: ERROR: No such file: '6ue4yf54nfayf39oslvp.pack': [Errno 2] No such file or directory: '/path/to/project/.bzr/repository/upload/6ue4yf54nfayf39oslvp.pack'

The backup recovery tool did not store/recover the empty upload directory. Creating this directory makes the shiny happy magic of bzr work again. It would be wonderful if the error message could include this as a potential problem; and it would be even more wonderful if Bazaar automatically created this directory if it was missing.

Revision history for this message
Andrew Bennetts (spiv) wrote :

I agree, it would be nice to give a clearer error in this case.

A possible alternative would be to write a short README file to the 'upload' directory (and to the 'obsolete' directory too), with contents along the lines of "This is part of a Bazaar repository. Do not remove this directory." That would be enough to fool simple automated tools, as well as discouraging simple humans from making the same mistake by hand :)

Changed in bzr:
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Martin Pool (mbp) wrote : Re: [Bug 307277] Re: fail when upload directory is missing

Since this is the second similar report, I think recreating it when
needed would be better.

Changed in bzr:
assignee: nobody → Jason Spashett (jspashett)
Revision history for this message
Vincent Ladeuil (vila) wrote :

So the summary is to recreate it with a short README inside right ?

Since that may occur on dumb servers, it would be good to avoid repeated additional roundtrips ?
Or is that overkill ?

Jelmer Vernooij (jelmer)
tags: added: packs
Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.