Memory error on push

Bug #256711 reported by thorwil
2
Affects Status Importance Assigned to Milestone
Bazaar
New
Undecided
Unassigned

Bug Description

On bzr push, after commiting changes to a 58 MB .xcf:

$ bzr push
Using saved location: sftp://<email address hidden>/~t-w-/ubuntu-artwork/thorwils_backgrounds/
bzr: ERROR: exceptions.MemoryError:

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 834, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 790, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 492, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.5/site-packages/bzrlib/builtins.py", line 840, in run
    stop_revision=revision_id)
  File "/usr/lib/python2.5/site-packages/bzrlib/decorators.py", line 127, in read_locked
    return unbound(self, *args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/branch.py", line 1559, in push
    target.unlock()
  File "/usr/lib/python2.5/site-packages/bzrlib/branch.py", line 1344, in unlock
    self.control_files.unlock()
  File "/usr/lib/python2.5/site-packages/bzrlib/lockable_files.py", line 270, in unlock
    self._lock.unlock()
  File "/usr/lib/python2.5/site-packages/bzrlib/lockdir.py", line 307, in unlock
    self.confirm()
  File "/usr/lib/python2.5/site-packages/bzrlib/lockdir.py", line 395, in confirm
    info = self.peek()
  File "/usr/lib/python2.5/site-packages/bzrlib/lockdir.py", line 418, in peek
    info = self._read_info_file(self._held_info_path)
  File "/usr/lib/python2.5/site-packages/bzrlib/lockdir.py", line 408, in _read_info_file
    return self._parse_info(self.transport.get(path))
  File "/usr/lib/python2.5/site-packages/bzrlib/transport/sftp.py", line 238, in get
    f = self._get_sftp().file(path, mode='rb')
  File "/var/lib/python-support/python2.5/paramiko/sftp_client.py", line 221, in open
    t, msg = self._request(CMD_OPEN, filename, imode, attrblock)
  File "/var/lib/python-support/python2.5/paramiko/sftp_client.py", line 572, in _request
    return self._read_response(num)
  File "/var/lib/python-support/python2.5/paramiko/sftp_client.py", line 602, in _read_response
    t, data = self._read_packet()
  File "/var/lib/python-support/python2.5/paramiko/sftp.py", line 180, in _read_packet
    data = self._read_all(size)
  File "/var/lib/python-support/python2.5/paramiko/sftp.py", line 163, in _read_all
    x = self.sock.recv(n)
  File "/usr/lib/python2.5/site-packages/bzrlib/transport/ssh.py", line 612, in recv
    return os.read(self.proc.stdout.fileno(), count)
MemoryError

bzr 1.3.1 on python 2.5.2.final.0 (linux2)
arguments: ['/usr/bin/bzr', 'push']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'
plugins:
  launchpad /usr/lib/python2.5/site-packages/bzrlib/plugins/launchpad [unknown]
*** Bazaar has encountered an internal error.
    Please report a bug at https://bugs.launchpad.net/bzr/+filebug
    including this traceback, and a description of what you
    were doing when the error occurred.

On doing bzr push again:
Using saved location: sftp://<email address hidden>/~t-w-/ubuntu-artwork/thorwils_backgrounds/
bzr: ERROR: Directory not empty: "/srv/bazaar.launchpad.net/push-branches/00/00/55/9d/.bzr/branch/lock/kk0dd210tn.tmp": [Errno 39] Directory not empty

How to clean this up?

Revision history for this message
thorwil (t-w-) wrote :

https://bugs.launchpad.net/bzr/+bug/230472 might be related, but the traceback is different

thorwil (t-w-)
description: updated
Revision history for this message
Andrew Bennetts (spiv) wrote :

This is almost certainly duplicate of bug 255292 (even though you got a MemoryError than an OverflowError the rest of the traceback is identical), so I'll mark it as such.

You shouldn't be getting "Directory not empty" errors; I don't see that kk0dd210tn.tmp directory on the server anymore so possibly you've already managed to workaround this? If not, "bzr break-lock sftp://<email address hidden>/~t-w-/ubuntu-artwork/thorwils_backgrounds" should help.

Revision history for this message
thorwil (t-w-) wrote :

Not that i think duplicate status is wrong, just to say that break-lock was necessary and worked. This morning:

$ bzr push
Using saved location: sftp://<email address hidden>/~t-w-/ubuntu-artwork/thorwils_backgrounds/
bzr: ERROR: Directory not empty: "/srv/bazaar.launchpad.net/push-branches/00/00/55/9d/.bzr/branch/lock/cdkgfjeezr.tmp": [Errno 39] Directory not empty

Note that the path is different from last time. After break-lock, push worked. Now should this be seen as another issue, or merely as a symptom of the main issue?

Thank you, Andrew!

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.