Pushing to SFTP Server Error (Repost)

Asked by Albert Yang

I am re-asking this because the original post (https://answers.launchpad.net/bzr/+question/177747) became inactive after a while.
I am currently using Serv-U. When I try pushing a branch to my server with bazaar using sftp, it says the following:

Connecter (version 2.0, client Serv-U_11.0.0.2)
Authentication continues...
Secsh channel 1 opened.
[chan 1] Opened sftp connection (server version 3)
bzr: ERROR: Failure.

However, pushing without using sftp and only normal ftp, or branching with sftp works perfectly fine. May someone please help me solve this problem? Thanks in advance.

This is what happens in bzr.log

0.219 bazaar version: 2.4.0
0.219 bzr arguments: [u'push', u'sftp://***:***@192.168.*.**/sftptest']
0.360 looking for plugins in C:/Documents and Settings/gyang/Application Data/bazaar/2.0/plugins
0.360 looking for plugins in C:/Program Files/Bazaar/plugins
0.531 encoding stdout as sys.stdout encoding 'cp936'
0.688 opening working tree 'C:/Documents and Settings/gyang/stuff'
1.219 falling back to default implementation
1.219 failed to load system host keys: [Errno 2] No such file or directory: 'C:\\Documents and Settings\\gyang/.ssh/known_hosts'
[ 5184] 2011-11-11 23:29:29.703 INFO: Connected (version 2.0, client Serv-U_11.0.0.2)
[ 5184] 2011-11-11 23:29:30.937 INFO: Authentication continues...
[ 5184] 2011-11-11 23:29:31.015 INFO: Secsh channel 1 opened.
[ 5184] 2011-11-11 23:29:31.125 INFO: [chan 1] Opened sftp connection (server version 3)
2.906 opening working tree 'C:/Documents and Settings/gyang/stuff'
6.016 creating repository in sftp://***:***@192.168.*.**/sftptest/.bzr/.
10.625 Using fetch logic to copy between CHKInventoryRepository('file:///C:/Documents%20and%20Settings/gyang/stuff/.bzr/repository/')(RepositoryFormat2a()) and CHKInventoryRepository('sftp://***:***@192.168.*.**/sftptest/.bzr/repository/')(RepositoryFormat2a())
10.625 fetching: <PendingAncestryResult heads:frozenset(['<email address hidden>']) repo:CHKInventoryRepository('file:///C:/Documents%20and%20Settings/gyang/stuff/.bzr/repository/')>
11.235 Raising exception with args ('Failure.',)
11.360 Transferred: 1kB (0.1kB/s r:1kB w:0kB)
11.360 Traceback (most recent call last):
  File "bzrlib\commands.pyo", line 946, in exception_to_return_code
  File "bzrlib\commands.pyo", line 1150, in run_bzr
  File "bzrlib\commands.pyo", line 699, in run_argv_aliases
  File "bzrlib\commands.pyo", line 721, in run
  File "bzrlib\cleanup.pyo", line 135, in run_simple
  File "bzrlib\cleanup.pyo", line 165, in _do_with_cleanups
  File "bzrlib\builtins.pyo", line 1204, in run
  File "bzrlib\push.pyo", line 91, in _show_push_branch
  File "bzrlib\branch.pyo", line 1414, in create_clone_on_transport
  File "bzrlib\bzrdir.pyo", line 205, in clone_on_transport
  File "bzrlib\repository.pyo", line 724, in fetch
  File "bzrlib\decorators.pyo", line 217, in write_locked
  File "bzrlib\vf_repository.pyo", line 2497, in fetch
  File "bzrlib\fetch.pyo", line 75, in __init__
  File "bzrlib\fetch.pyo", line 102, in __fetch
  File "bzrlib\fetch.pyo", line 130, in _fetch_everything_for_search
  File "bzrlib\vf_repository.pyo", line 1968, in insert_stream
  File "bzrlib\repository.pyo", line 641, in commit_write_group
  File "bzrlib\repofmt\pack_repo.pyo", line 1711, in _commit_write_group
  File "bzrlib\repofmt\pack_repo.pyo", line 1587, in _commit_write_group
  File "bzrlib\repofmt\groupcompress_repo.pyo", line 753, in _check_new_inventories
  File "bzrlib\repofmt\groupcompress_repo.pyo", line 1333, in _build_interesting_key_sets
  File "bzrlib\repofmt\groupcompress_repo.pyo", line 977, in _iter_inventories
  File "bzrlib\groupcompress.pyo", line 1474, in get_record_stream
  File "bzrlib\groupcompress.pyo", line 1635, in _get_remaining_record_stream
  File "bzrlib\groupcompress.pyo", line 1188, in yield_factories
  File "bzrlib\groupcompress.pyo", line 1430, in _get_blocks
  File "bzrlib\repofmt\pack_repo.pyo", line 2026, in get_raw_records
  File "bzrlib\pack.pyo", line 221, in make_readv_reader
  File "bzrlib\transport\__init__.pyo", line 682, in readv
  File "bzrlib\transport\sftp.pyo", line 457, in _readv
  File "bzrlib\transport\sftp.pyo", line 719, in _translate_io_exception
IOError: Failure.

Question information

Language:
English Edit question
Status:
Answered
For:
Bazaar Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Martin Pool (mbp) said :
#1

please rerun the command with the -Dsftp option and post the log

Revision history for this message
Albert Yang (alberty123) said :
#2

Wed 2011-11-16 22:49:22 +0800
0.219 bazaar version: 2.4.0
0.219 bzr arguments: [u'push', u'sftp://***:***@gyang2009.gicp.net/sftptest', u'-Dsftp']
0.344 looking for plugins in C:/Documents and Settings/gyang/Application Data/bazaar/2.0/plugins
0.344 looking for plugins in C:/Program Files/Bazaar/plugins
0.485 encoding stdout as sys.stdout encoding 'cp936'
0.625 opening working tree 'C:/Documents and Settings/gyang/stuff'
1.047 falling back to default implementation
1.047 failed to load system host keys: [Errno 2] No such file or directory: 'C:\\Documents and Settings\\gyang/.ssh/known_hosts'
[ 5652] 2011-11-16 22:49:24.437 INFO: Connected (version 2.0, client Serv-U_11.0.0.2)
[ 5652] 2011-11-16 22:49:25.608 INFO: Authentication continues...
[ 5652] 2011-11-16 22:49:25.687 INFO: Secsh channel 1 opened.
[ 5652] 2011-11-16 22:49:25.842 INFO: [chan 1] Opened sftp connection (server version 3)
3.703 opening working tree 'C:/Documents and Settings/gyang/stuff'
6.422 creating repository in sftp://***@gyang2009.gicp.net/sftptest/.bzr/.
9.938 Using fetch logic to copy between CHKInventoryRepository('file:///C:/Documents%20and%20Settings/gyang/stuff/.bzr/repository/')(RepositoryFormat2a()) and CHKInventoryRepository('sftp://***@gyang2009.gicp.net/sftptest/.bzr/repository/')(RepositoryFormat2a())
9.938 fetching: <PendingAncestryResult heads:frozenset(['<email address hidden>']) repo:CHKInventoryRepository('file:///C:/Documents%20and%20Settings/gyang/stuff/.bzr/repository/')>
10.438 Raising exception with args ('Failure.',)
10.563 Transferred: 1kB (0.1kB/s r:1kB w:0kB)
10.563 Traceback (most recent call last):
  File "bzrlib\commands.pyo", line 946, in exception_to_return_code
  File "bzrlib\commands.pyo", line 1150, in run_bzr
  File "bzrlib\commands.pyo", line 699, in run_argv_aliases
  File "bzrlib\commands.pyo", line 721, in run
  File "bzrlib\cleanup.pyo", line 135, in run_simple
  File "bzrlib\cleanup.pyo", line 165, in _do_with_cleanups
  File "bzrlib\builtins.pyo", line 1204, in run
  File "bzrlib\push.pyo", line 91, in _show_push_branch
  File "bzrlib\branch.pyo", line 1414, in create_clone_on_transport
  File "bzrlib\bzrdir.pyo", line 205, in clone_on_transport
  File "bzrlib\repository.pyo", line 724, in fetch
  File "bzrlib\decorators.pyo", line 217, in write_locked
  File "bzrlib\vf_repository.pyo", line 2497, in fetch
  File "bzrlib\fetch.pyo", line 75, in __init__
  File "bzrlib\fetch.pyo", line 102, in __fetch
  File "bzrlib\fetch.pyo", line 130, in _fetch_everything_for_search
  File "bzrlib\vf_repository.pyo", line 1968, in insert_stream
  File "bzrlib\repository.pyo", line 641, in commit_write_group
  File "bzrlib\repofmt\pack_repo.pyo", line 1711, in _commit_write_group
  File "bzrlib\repofmt\pack_repo.pyo", line 1587, in _commit_write_group
  File "bzrlib\repofmt\groupcompress_repo.pyo", line 753, in _check_new_inventories
  File "bzrlib\repofmt\groupcompress_repo.pyo", line 1333, in _build_interesting_key_sets
  File "bzrlib\repofmt\groupcompress_repo.pyo", line 977, in _iter_inventories
  File "bzrlib\groupcompress.pyo", line 1474, in get_record_stream
  File "bzrlib\groupcompress.pyo", line 1635, in _get_remaining_record_stream
  File "bzrlib\groupcompress.pyo", line 1188, in yield_factories
  File "bzrlib\groupcompress.pyo", line 1430, in _get_blocks
  File "bzrlib\repofmt\pack_repo.pyo", line 2026, in get_raw_records
  File "bzrlib\pack.pyo", line 221, in make_readv_reader
  File "bzrlib\transport\__init__.pyo", line 682, in readv
  File "bzrlib\transport\sftp.pyo", line 457, in _readv
  File "bzrlib\transport\sftp.pyo", line 719, in _translate_io_exception
IOError: Failure.

Revision history for this message
Martin Pool (mbp) said :
#3

This looks like some kind of failure originating in your sftp server.
Perhaps it doesn't support readv requests.

Please have a look on that server and see if there's an error logged there.

Can you use bzr+ssh rather than sftp?

Revision history for this message
Albert Yang (alberty123) said :
#4

I have tried sing bzr+ssh but it does not work as well. I have also tried this with another server but still no luck. Is there any ftp server that you would recommend and know it works with bazaar?

Revision history for this message
Albert Yang (alberty123) said :
#5

I'm not sure if this helps, but when i use bzr+ssh i get a "unable to invoke remote bzr *server*; Channel Closed" error

Revision history for this message
Martin Pool (mbp) said :
#6

> I have tried sing bzr+ssh but it does not work as well.

What happens?

> tried this with another server but still no luck.  Is there any ftp
> server that you would recommend and know it works with bazaar?

OpenSSH is probably a good bet: http://sshwindows.sourceforge.net/

--
Martin

Can you help with this problem?

Provide an answer of your own, or ask Albert Yang for more information if necessary.

To post a message you must log in.