Unrecognised container format issue

Asked by Muhammad Bashir Al-Noimi on 2013-05-22

I'm using bzr over ftp, whenever I try to send my commits I get this error message:
-----
Run command: bzr commit -m asdf test
Committing to: ftp://<email address hidden>:21/Alfresco/Sites/dawaween/testrep/trunk/
added test
bzr: ERROR: Unrecognised container format: 'B260'
-----

How can I fix this issue?

PS
* checkout and branch work fine.
* I'm using ubuntu 12.10, QBzr 0.22.2, bzrlib 2.6b2, PyQt 4.9.3, Qt 4.8.2, Python 2.7.3
* I can read/write with usual ftp clients without any problem.

Question information

Language:
English Edit question
Status:
Solved
For:
Bazaar Edit question
Assignee:
No assignee Edit question
Solved by:
John A Meinel
Solved:
2013-05-29
Last query:
2013-05-29
Last reply:
2013-05-29

Any suggest guys?! I can't use bzr at all :(

Vincent Ladeuil (vila) said : #2

Unrecognised container format: 'B260' is a hint that bzr doesn't recognize a file format, very few files have such headers but guessing which exactly raised the exception is hard without more information.

Your .bzr.log file (bzr version -v will tell you where it's located) may contain more information.

Given that you're using ftp though, it may just be that your ftp server doesn't implement some key part of the ftp protocol bzr relies on.

I'd suggest you research the existing bugs or file a new one with the relevant excerpts of your log file, I don't have bug numbers handy but many suggestions have been made in the past on how to work around some ftp servers issues or just plainly use a different protocol.

John A Meinel (jameinel) said : #3

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

On 2013-05-25 11:51, Vincent Ladeuil wrote:
> Question #229392 on Bazaar changed:
> https://answers.launchpad.net/bzr/+question/229392
>
> Status: Open => Answered
>
> Vincent Ladeuil proposed the following answer: Unrecognised
> container format: 'B260' is a hint that bzr doesn't recognize a
> file format, very few files have such headers but guessing which
> exactly raised the exception is hard without more information.
>
> Your .bzr.log file (bzr version -v will tell you where it's
> located) may contain more information.
>
> Given that you're using ftp though, it may just be that your ftp
> server doesn't implement some key part of the ftp protocol bzr
> relies on.
>
> I'd suggest you research the existing bugs or file a new one with
> the relevant excerpts of your log file, I don't have bug numbers
> handy but many suggestions have been made in the past on how to
> work around some ftp servers issues or just plainly use a different
> protocol.
>

It does sound like the situation where your ftp server claims to
support APPE (append data to a file), but when we request an append it
just overwrites the data instead. B260 is usually our start-of-content
header, which is written after our "this is a pack file" header.

John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlGgnSkACgkQJdeBCYSNAAOhAgCfSKWhHw1l/+qXFPBfiK9xkKw3
kAMAnjl4Rn6/bth6+wSxPw8uRYYWjXqq
=lyLP
-----END PGP SIGNATURE-----

In the attachment you can find .bzr.log file it shows something strange
starting from "11.106 Unable to open <bzrlib.transport." and ending with
"UnknownContainerFormatError"

Could you please tell me what's going on?

I didn't face this issue before!!!

On Sat, May 25, 2013 at 9:51 AM, Vincent Ladeuil <
<email address hidden>> wrote:

> Your question #229392 on Bazaar changed:
> https://answers.launchpad.net/bzr/+question/229392
>
> Status: Open => Answered
>
> Vincent Ladeuil proposed the following answer:
> Unrecognised container format: 'B260' is a hint that bzr doesn't
> recognize a file format, very few files have such headers but guessing
> which exactly raised the exception is hard without more information.
>
> Your .bzr.log file (bzr version -v will tell you where it's located) may
> contain more information.
>
> Given that you're using ftp though, it may just be that your ftp server
> doesn't implement some key part of the ftp protocol bzr relies on.
>
> I'd suggest you research the existing bugs or file a new one with the
> relevant excerpts of your log file, I don't have bug numbers handy but
> many suggestions have been made in the past on how to work around some
> ftp servers issues or just plainly use a different protocol.
>
> --
> 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/229392/+confirm?answer_id=1
>
> 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/229392
>
> You received this question notification because you asked the question.
>

--
Best Regards
Muhammad Bashir Al-Noimi

You mean I use FTP server doesn't support APPE? If that so does .bzr.log
shows the details of that error?

PS
I sent the .bzr.log as attachment in the last reply.

On Sat, May 25, 2013 at 1:16 PM, John A Meinel <
<email address hidden>> wrote:

> Your question #229392 on Bazaar changed:
> https://answers.launchpad.net/bzr/+question/229392
>
> John A Meinel proposed the following answer:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 2013-05-25 11:51, Vincent Ladeuil wrote:
> > Question #229392 on Bazaar changed:
> > https://answers.launchpad.net/bzr/+question/229392
> >
> > Status: Open => Answered
> >
> > Vincent Ladeuil proposed the following answer: Unrecognised
> > container format: 'B260' is a hint that bzr doesn't recognize a
> > file format, very few files have such headers but guessing which
> > exactly raised the exception is hard without more information.
> >
> > Your .bzr.log file (bzr version -v will tell you where it's
> > located) may contain more information.
> >
> > Given that you're using ftp though, it may just be that your ftp
> > server doesn't implement some key part of the ftp protocol bzr
> > relies on.
> >
> > I'd suggest you research the existing bugs or file a new one with
> > the relevant excerpts of your log file, I don't have bug numbers
> > handy but many suggestions have been made in the past on how to
> > work around some ftp servers issues or just plainly use a different
> > protocol.
> >
>
> It does sound like the situation where your ftp server claims to
> support APPE (append data to a file), but when we request an append it
> just overwrites the data instead. B260 is usually our start-of-content
> header, which is written after our "this is a pack file" header.
>
> John
> =:->
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.13 (Cygwin)
> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>
> iEYEARECAAYFAlGgnSkACgkQJdeBCYSNAAOhAgCfSKWhHw1l/+qXFPBfiK9xkKw3
> kAMAnjl4Rn6/bth6+wSxPw8uRYYWjXqq
> =lyLP
> -----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/+question/229392/+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/229392
>
> You received this question notification because you asked the question.
>

--
Best Regards
Muhammad Bashir Al-Noimi

Oops it seems that Ansers doesn't support attaching option... so I'll past
here the content of .bzr.log http://pastebin.com/SJhyawZP

Best John A Meinel (jameinel) said : #9

The log file does show that bzr had uploaded its content, and then was reading it back to make sure things were correct, and could not read what it had written.

So the problem is that the FTP server *claims* it supports APPE, but when you send an APPE request, it overwrites the existing data (starts from 0, rather than appending to the end).

I don't know if there is anything you can do to fix the FTP server, but perhaps you could use a different protocol? (sftp, have bzr installed on the remote machine and use bzr+ssh, etc).

There is some support inside bzr to handle FTP servers that do not support APPE, but honestly the performance is pretty terrible, and I would recommend not using an FTP site that is actually broken.

By the way, Does bzr support FTPS (FTP over SSL) protocol?

On Sun, May 26, 2013 at 4:36 PM, Muhammad Bashir Al-Noimi <
<email address hidden>> wrote:

> Your question #229392 on Bazaar changed:
> https://answers.launchpad.net/bzr/+question/229392
>
> Status: Answered => Open
>
> You are still having a problem:
>
>
> --
> You received this question notification because you asked the question.
>

--
Best Regards
Muhammad Bashir Al-Noimi

John A Meinel (jameinel) said : #14

As far as I know, bzr does not have FTPS support. It would probably be
possible to add it (even as a plugin). I know there is support for Kerberos
based authentication, but I don't think that involves SSL at the transport
layer.

On Sun, May 26, 2013 at 9:36 PM, Muhammad Bashir Al-Noimi <
<email address hidden>> wrote:

> Question #229392 on Bazaar changed:
> https://answers.launchpad.net/bzr/+question/229392
>
> Muhammad Bashir Al-Noimi gave more information on the question:
> By the way, Does bzr support FTPS (FTP over SSL) protocol?
>
>
> On Sun, May 26, 2013 at 4:36 PM, Muhammad Bashir Al-Noimi <
> <email address hidden>> wrote:
>
> > Your question #229392 on Bazaar changed:
> > https://answers.launchpad.net/bzr/+question/229392
> >
> > Status: Answered => Open
> >
> > You are still having a problem:
> >
> >
> > --
> > You received this question notification because you asked the question.
> >
>
>
> --
> Best Regards
> Muhammad Bashir Al-Noimi
>
> You received this question notification because you are an answer
> contact for Bazaar.
>

Thanks John A Meinel, that solved my question.

I think I've to use another FTP server (I found pureFTPd is most suitable one)

I filed a bug report to Alfresco here: https://issues.alfresco.com/jira/browse/ALF-19014