bzr fails commit

Bug #819487 reported by Piet Honkoop
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
New
Undecided
Unassigned

Bug Description

Hi,

bzr tries to commit to a central branch.
the branch is worked on from 2 locations, committed & merged once both ways.
From then on, commit fails with the trace shown below.
pull/push/merge give similar results.

What am I (bzr newbie) missing?

Thanks,

P.

perfweb $ bzr commit
Committing to: bzr+ssh://srv.softcontrol.nl/~/bazaar/perfweb/
modified buildrpt.php
modified pw_admin.js
     5kB 0kB/s | Uploading data to master branch - Stage:Fetching r.. 20/20
bzr: ERROR: bzrlib.errors.ErrorFromSmartServer: Error received from smart server: ('error', 'Error -3 while decompressing data: incorrect data check')

Traceback (most recent call last):
  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 946, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 1150, in run_bzr
    ret = run(*run_argv)
  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 699, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 721, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/cleanup.py", line 135, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/cleanup.py", line 165, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/builtins.py", line 3316, in run
    lossy=lossy)
  File "/Library/Python/2.6/site-packages/bzrlib/decorators.py", line 217, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/workingtree_4.py", line 209, in commit
    result = WorkingTree.commit(self, message, revprops, *args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/decorators.py", line 217, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/mutabletree.py", line 210, in commit
    *args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/commit.py", line 289, in commit
    lossy=lossy)
  File "/Library/Python/2.6/site-packages/bzrlib/cleanup.py", line 131, in run
    self.cleanups, self.func, self, *args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/cleanup.py", line 165, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/commit.py", line 457, in _commit
    self.branch, new_revno, self.rev_id, lossy=lossy)
  File "/Library/Python/2.6/site-packages/bzrlib/branch.py", line 1069, in import_last_revision_info_and_tags
    self.fetch(source, revid)
  File "/Library/Python/2.6/site-packages/bzrlib/decorators.py", line 217, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/branch.py", line 682, in fetch
    return InterBranch.get(from_branch, self).fetch(last_revision, limit=limit)
  File "/Library/Python/2.6/site-packages/bzrlib/decorators.py", line 217, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/branch.py", line 3290, in fetch
    fetch_spec=fetch_spec)
  File "/Library/Python/2.6/site-packages/bzrlib/remote.py", line 1656, in fetch
    find_ghosts=find_ghosts, fetch_spec=fetch_spec)
  File "/Library/Python/2.6/site-packages/bzrlib/decorators.py", line 217, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/vf_repository.py", line 2497, in fetch
    find_ghosts=find_ghosts)
  File "/Library/Python/2.6/site-packages/bzrlib/fetch.py", line 75, in __init__
    self.__fetch()
  File "/Library/Python/2.6/site-packages/bzrlib/fetch.py", line 102, in __fetch
    self._fetch_everything_for_search(search_result)
  File "/Library/Python/2.6/site-packages/bzrlib/fetch.py", line 130, in _fetch_everything_for_search
    stream, from_format, [])
  File "/Library/Python/2.6/site-packages/bzrlib/remote.py", line 2109, in insert_stream
    (verb, path, resume_tokens) + lock_args, byte_stream)
  File "/Library/Python/2.6/site-packages/bzrlib/smart/client.py", line 181, in call_with_body_stream
    expect_response_body=False)
  File "/Library/Python/2.6/site-packages/bzrlib/smart/client.py", line 81, in _call_and_read_response
    expect_body=expect_response_body),
  File "/Library/Python/2.6/site-packages/bzrlib/smart/message.py", line 306, in read_response_tuple
    _raise_smart_server_error(self.args)
  File "/Library/Python/2.6/site-packages/bzrlib/smart/message.py", line 351, in _raise_smart_server_error
    raise errors.ErrorFromSmartServer(error_tuple)
ErrorFromSmartServer: Error received from smart server: ('error', 'Error -3 while decompressing data: incorrect data check')

bzr 2.4b5 on python 2.6.1 (Darwin-10.8.0-i386-64bit)
arguments: ['/usr/local/bin/bzr', 'commit']
plugins: bash_completion[2.4b5], bzrtools[2.3.1], changelog_merge[2.4b5],
    colo[0.2.1], email[unknown], explorer[1.1.2], extmerge[unknown],
    fastimport[0.10.0], keychain[0.1.0], launchpad[2.4b5], loom[2.2.1dev],
    netrc_credential_store[2.4b5], news_merge[2.4b5], pipeline[1.1.0],
    qbzr[0.21.0dev2], rewrite[0.6.2], svn[1.1.0dev], upload[1.0.1dev],
    weave_fmt[2.4b5], xmloutput[0.8.7.dev]
encoding: 'UTF-8', fsenc: 'utf-8', lang: 'en_US.UTF-8'

.bzr.log reports:

Mon 2011-08-01 21:02:04 +0200
0.052 bazaar version: 2.4b5
0.053 bzr arguments: [u'commit']0.089 looking for plugins in /Users/piethonkoop/.bazaar/plugins
0.089 looking for plugins in /Library/Python/2.6/site-packages/bzrlib/plugins
0.156 encoding stdout as sys.stdout encoding 'UTF-8'0.202 opening working tree '/Users/piethonkoop/devel/perfweb'
0.301 ssh implementation is OpenSSH
1.338 preparing to commit[55822] 2011-08-01 21:02:05.910 INFO: Committing to: bzr+ssh://srv.softcontrol.n
l/~/bazaar/perfweb/
1.489 Selecting files for commit with filter None
[55822] 2011-08-01 21:02:05.926 INFO: modified buildrpt.php
[55822] 2011-08-01 21:02:05.927 INFO: modified pw_admin.js1.602 check paths: None
36.918 Using fetch logic to copy between CHKInventoryRepository('file:///Users/
piethonkoop/devel/.bzr/repository/')(RepositoryFormat2a()) and RemoteRepository(bzr+ssh://srv.softcontrol.nl/~/bazaar/.bzr/)(RemoteRepositoryFormat(_network_nam
e='Bazaar repository format 2a (needs bzr 1.16 or later)\n'))
36.918 fetching: <SearchResult search:(['<email address hidden>
2cyp3elm4', '<email address hidden>', 'piet@libertronic
.com-20101209121025-jbhin2jb5uqqswxk', '<email address hidden>
c71yn2jxvudn', '<email address hidden>', ...], ['<email address hidden>', '<email address hidden>', '<email address hidden>', '<email address hidden>', '<email address hidden>', ...], 2)>
37.048 creating new compressed block on-the-fly in 0.000s 2541 bytes => 408 bytes
37.052 creating new compressed block on-the-fly in 0.000s 1460 bytes => 263 bytes
37.054 creating new compressed block on-the-fly in 0.000s 13465 bytes => 11689 bytes
37.057 creating new compressed block on-the-fly in 0.000s 5265 bytes => 1017 bytes
37.060 creating new compressed block on-the-fly in 0.002s 128991 bytes => 96271 bytes
630.238 Transferred: 42kB (0.1kB/s r:5kB w:37kB)
630.305 Traceback (most recent call last):
  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 946, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 1150, in run_bzr
    ret = run(*run_argv)
  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 699, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 721, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/cleanup.py", line 135, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/cleanup.py", line 165, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/builtins.py", line 3316, in run
    lossy=lossy)
  File "/Library/Python/2.6/site-packages/bzrlib/decorators.py", line 217, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/workingtree_4.py", line 209, in
 commit
    result = WorkingTree.commit(self, message, revprops, *args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/decorators.py", line 217, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/mutabletree.py", line 210, in commit
    *args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/commit.py", line 289, in commit
    lossy=lossy)
  File "/Library/Python/2.6/site-packages/bzrlib/cleanup.py", line 131, in run
    self.cleanups, self.func, self, *args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/cleanup.py", line 165, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/commit.py", line 457, in _commit
    self.branch, new_revno, self.rev_id, lossy=lossy)
  File "/Library/Python/2.6/site-packages/bzrlib/branch.py", line 1069, in import_last_revision_info_and_tags
    self.fetch(source, revid)
  File "/Library/Python/2.6/site-packages/bzrlib/decorators.py", line 217, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/branch.py", line 682, in fetch
    return InterBranch.get(from_branch, self).fetch(last_revision, limit=limit)
  File "/Library/Python/2.6/site-packages/bzrlib/decorators.py", line 217, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/branch.py", line 3290, in fetch
    fetch_spec=fetch_spec)
  File "/Library/Python/2.6/site-packages/bzrlib/remote.py", line 1656, in fetch
    find_ghosts=find_ghosts, fetch_spec=fetch_spec)
  File "/Library/Python/2.6/site-packages/bzrlib/decorators.py", line 217, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/vf_repository.py", line 2497, in fetch
    find_ghosts=find_ghosts)
  File "/Library/Python/2.6/site-packages/bzrlib/fetch.py", line 75, in __init__
    self.__fetch()
  File "/Library/Python/2.6/site-packages/bzrlib/fetch.py", line 102, in __fetch
    self._fetch_everything_for_search(search_result)
  File "/Library/Python/2.6/site-packages/bzrlib/fetch.py", line 130, in _fetch_everything_for_search
    stream, from_format, [])
  File "/Library/Python/2.6/site-packages/bzrlib/remote.py", line 2109, in insert_stream
    (verb, path, resume_tokens) + lock_args, byte_stream)
  File "/Library/Python/2.6/site-packages/bzrlib/smart/client.py", line 181, in call_with_body_stream
    expect_response_body=False)
  File "/Library/Python/2.6/site-packages/bzrlib/smart/client.py", line 81, in _call_and_read_response
    expect_body=expect_response_body),
  File "/Library/Python/2.6/site-packages/bzrlib/smart/message.py", line 306, in read_response_tuple
    _raise_smart_server_error(self.args)
  File "/Library/Python/2.6/site-packages/bzrlib/smart/message.py", line 351, in _raise_smart_server_error
    raise errors.ErrorFromSmartServer(error_tuple)
ErrorFromSmartServer: Error received from smart server: ('error', 'Error -3 while decompressing data: incorrect data check')

Revision history for this message
Martin Pool (mbp) wrote :

Hi Piet,

Unfortunately this indicates either memory or disk corruption on the server. You should run memtest on the server, and 'bzr check' on the repository, and if necessary restore it from a backup, or by removing it and re-pushing from another repository that's working ok.

Revision history for this message
Piet Honkoop (piet-n) wrote :

bzr check turned up a sha1 error on 1 pack of the repo.
memtest / fsck et al give no problems whatsoever. (server is FreeBSD btw, should that matter).

I created a new repo (leaving all old files intact of course should there be a bad block in the pack file.

Now I was wondering, is there a way to copy a branch over from one repo to another on a server?

Thanks,

Piet

Revision history for this message
Martin Pool (mbp) wrote : Re: [Bug 819487] Re: bzr fails commit

On 3 August 2011 09:26, Piet Honkoop <email address hidden> wrote:
> *** This bug is a duplicate of bug 598572 ***
>    https://bugs.launchpad.net/bugs/598572
>
> bzr check turned up a sha1 error on 1 pack of the repo.
> memtest / fsck et al give no problems whatsoever. (server is FreeBSD btw, should that matter).

fsck typically won't catch block corruption; you need 'badblocks' or
the equivalent, or catting the disk to /dev/null will probably flag an
io error if something's broken.

>
> I created a new repo (leaving all old files intact of course should
> there be a bad block in the pack file.
>
> Now I was wondering, is there a way to copy a branch over from one repo
> to another on a server?

Yes, of course:

  bzr push mybranch bzr+ssh://otherserver/~/project/mybranch

Martin

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.