problems with bzr 0.10 and paramiko sftp transfer

Lukáš Lalinský lalinsky at
Thu Aug 31 15:50:25 BST 2006

John Arbash Meinel wrote:
> Lukáš Lalinský wrote:
> ...
>> F:\tmp>bzr branch
>> bzr: ERROR: Knit header error: '\n' unexpected
>> But yes, with trunk it works fine.
> I just looked at Robey's branches, and I'm getting the same error.
> If I browse to his repository using Firefox, I think I see why we are
> getting the error, but I don't know if it is because of a problem with
> Apache, or if there is actually a problem with the branch.
> If you go to:
> or
> Now there are a few things:
> 1) There is no 'Knit index format 8\n' header at the top of the file.
> There should be something similar to this:
> Now, this header actually has an extra blank line between the header,
> and the start of data.
> So my feeling is that Apache is misconfigured, and it is sending this
> line out as part of the Headers for the file, rather than as part of the
> Body of the file. (since HTTP headers are separated by 2 CRLF pairs).

I've just experienced the same problem on my server. In my local branch all the
.kndx files start with "# bzr knit index 8\n\n", but if I push the branch using
the sftp transfer (paramiko 1.6.2), the headers get removed. After downgrade to
paramiko 1.6.1 it pushed the branch correctly (though the one on server was
damaged, so I had to do delete it and push all revisions). Unfortunately this is
probably too deep in the source code for me to debug it...


More information about the bazaar mailing list