svn import to bazaar stuck at "Fetching revisions:Inserting stream:Estimate"

Bug #1779572 reported by Adam Reviczky
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Launchpad itself
Colin Watson

Bug Description

Since 8 June the code import from an svn repository into launchpad's bazaar is stuck at:
Fetching revisions:Inserting stream:Estimate 7/*

The full error then is:

Traceback (most recent call last):
  File "/srv/", line 106, in <module>
  File "/srv/", line 101, in main
  File "/srv/", line 543, in run
    return self._doImport()
  File "/srv/", line 772, in _doImport
  File "/srv/", line 602, in pushBazaarBranch
  File "/srv/", line 250, in push
    pull_result = remote_branch.pull(bzr_branch, overwrite=True)
  File "/srv/", line 1111, in pull
    possible_transports=possible_transports, *args, **kwargs)
  File "<string>", line 4, in pull_write_locked
  File "/srv/", line 3306, in pull
    merge_tags_to_master=not source_is_master)
  File "/srv/", line 3441, in _pull
  File "<string>", line 4, in _update_revisions_write_locked
  File "/srv/", line 3249, in _update_revisions
  File "<string>", line 4, in fetch_write_locked
  File "/srv/", line 3226, in fetch
  File "/srv/", line 1268, in fetch
    find_ghosts=find_ghosts, fetch_spec=fetch_spec)
  File "<string>", line 4, in fetch_write_locked
  File "/srv/", line 2585, in fetch
  File "/srv/", line 77, in __init__
  File "/srv/", line 104, in __fetch
  File "/srv/", line 132, in _fetch_everything_for_search
    stream, from_format, [])
  File "/srv/", line 2043, in insert_stream
    src_format, is_resume)
  File "/srv/", line 2107, in insert_stream_without_locking
  File "/srv/", line 1643, in insert_record_stream
    for _ in self._insert_record_stream(stream, random_id=False):
  File "/srv/", line 1762, in _insert_record_stream
    [(None, len(bytes))], bytes)[0]
  File "/srv/", line 1991, in add_raw_records
    raw_data[offset:offset+size], [])
  File "/srv/", line 163, in add_bytes_record
  File "/srv/", line 135, in write_func
  File "/srv/", line 153, in _write_data
  File "/srv/", line 277, in write
    osutils.pump_string_file(bytes, self.file_handle)
  File "/srv/", line 743, in pump_string_file
  File "/srv/", line 402, in write
  File "/srv/", line 519, in _write_all
    count = self._write(data)
  File "/srv/", line 203, in _write
    t, msg = self.sftp._read_response(req)
  File "/srv/", line 810, in _read_response
    t, data = self._read_packet()
  File "/srv/", line 174, in _read_packet
    x = self._read_all(4)
  File "/srv/", line 158, in _read_all
    x = self.sock.recv(n)
  File "/srv/", line 207, in recv
    return self.__socket.recv(n)
  File "/srv/", line 741, in recv
    return self._sock.recv(count)
Import failed:
Traceback (most recent call last):
Failure: twisted.internet.error.TimeoutError: User timeout caused connection failure.

See code import:

Related branches

Revision history for this message
Adam Reviczky (reviczky) wrote :
Revision history for this message
Adam Reviczky (reviczky) wrote :
Revision history for this message
Qwerty Chouskie (asdfghrbljzmkd) wrote :
Changed in launchpad:
status: New → Confirmed
Changed in bzr:
status: New → Confirmed
Revision history for this message
Colin Watson (cjwatson) wrote :

I can reproduce this when pushing to the Bazaar branch store using sftp, but not when pushing using bzr+ssh. The latter is generally a better protocol anyway, so I think we should just switch to that.

Changed in launchpad:
assignee: nobody → Colin Watson (cjwatson)
importance: Undecided → High
status: Confirmed → In Progress
Changed in bzr:
status: Confirmed → New
Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
tags: added: qa-needstesting
Changed in launchpad:
status: In Progress → Fix Committed
Colin Watson (cjwatson)
tags: added: qa-ok
removed: qa-needstesting
Revision history for this message
Colin Watson (cjwatson) wrote :

Fixed, and all the imports I saw mentioned here are working again.

Changed in launchpad:
status: Fix Committed → Fix Released
Revision history for this message
Qwerty Chouskie (asdfghrbljzmkd) wrote :


To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Related questions