Confusing error with BZR_SSH=plink set when plink not installed: WindowsError: [Error 2] The system cannot find the file specified

Bug #553434 reported by Angus Helm
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Low
Unassigned

Bug Description

I'm trying to push in bazaar explorer but it gives me the following status message:

Run command: bzr push sftp://<email address hidden>:22/bzr/video_system/trunk/ --directory C:/Users/Angus/Code/work/video_system_tr...
bzr: ERROR: [Error 2] The system cannot find the file specified

Running bzr push from the command line gives the same error.

This is my traceback from .bzr.log:

Thu 2010-04-01 12:08:06 -0500
0.161 bazaar version: 2.1.0
0.161 bzr arguments: [u'qsubprocess', u'--bencode', u'l4:push66:sftp://<email address hidden>:22/bzr/video_system/trunk/11:--directory43:C:/Users/Angus/Code/work/video_system_trunk10:--remember11:--no-stricte']
0.175 looking for plugins in C:/Users/Angus/AppData/Roaming/bazaar/2.0/plugins
0.175 looking for plugins in C:/Program Files (x86)/Bazaar/plugins
0.555 encoding stdout as osutils.get_user_encoding() 'cp1252'
0.772 bazaar version: 2.1.0
0.773 bzr arguments: [u'push', u'sftp://<email address hidden>:22/bzr/video_system/trunk/', u'--directory', u'C:/Users/Angus/Code/work/video_system_trunk', u'--remember', u'--no-strict']
0.778 encoding stdout as osutils.get_user_encoding() 'cp1252'
0.818 opening working tree 'C:/Users/Angus/Code/work/video_system_trunk'
0.954 bzr-svn: using Subversion 1.6.6 ()
1.032 Traceback (most recent call last):
  File "bzrlib\commands.pyo", line 853, in exception_to_return_code
  File "bzrlib\commands.pyo", line 1055, in run_bzr
  File "bzrlib\commands.pyo", line 661, in run_argv_aliases
  File "bzrlib\commands.pyo", line 665, in run_direct
  File "bzrlib\cleanup.pyo", line 122, in run_simple
  File "bzrlib\cleanup.pyo", line 156, in _do_with_cleanups
  File "C:/Program Files (x86)/Bazaar/plugins\qbzr\lib\commands.py", line 788, in run
  File "C:/Program Files (x86)/Bazaar/plugins\qbzr\lib\subprocess.py", line 786, in run_subprocess_command
  File "bzrlib\commands.pyo", line 1055, in run_bzr
  File "bzrlib\commands.pyo", line 661, in run_argv_aliases
  File "bzrlib\commands.pyo", line 665, in run_direct
  File "bzrlib\cleanup.pyo", line 122, in run_simple
  File "bzrlib\cleanup.pyo", line 156, in _do_with_cleanups
  File "bzrlib\builtins.pyo", line 1146, in run
  File "bzrlib\push.pyo", line 83, in _show_push_branch
  File "bzrlib\bzrdir.pyo", line 873, in open_from_transport
  File "bzrlib\transport\__init__.pyo", line 1644, in do_catching_redirections
  File "bzrlib\bzrdir.pyo", line 860, in find_format
  File "bzrlib\bzrdir.pyo", line 1820, in find_format
  File "bzrlib\bzrdir.pyo", line 1830, in probe_transport
  File "bzrlib\transport\sftp.pyo", line 435, in get_bytes
  File "bzrlib\transport\sftp.pyo", line 425, in get
  File "bzrlib\transport\sftp.pyo", line 397, in _get_sftp
  File "bzrlib\transport\sftp.pyo", line 389, in _create_connection
  File "bzrlib\transport\ssh.pyo", line 373, in connect_sftp
  File "bzrlib\transport\ssh.pyo", line 366, in _connect
  File "subprocess.pyo", line 594, in __init__
  File "subprocess.pyo", line 822, in _execute_child
WindowsError: [Error 2] The system cannot find the file specified

1.032 Transferred: 0KiB (0.0K/s r:0K w:0K)
1.032 return code 3

Revision history for this message
Angus Helm (angus.helm) wrote :

I'm now getting the same error when running bzr branch:

Run command: bzr branch sftp://vlm-virtualserver1.uta.edu:22/bzr/video_system/trunk C:/Users/Angus/Code/work/video_system_april1 --use-existi...
bzr: ERROR: [Error 2] The system cannot find the file specified

Revision history for this message
Angus Helm (angus.helm) wrote :

Okay, I had BZR_SSH=plink in my environment variables, removing it and restarting bazaar explorer fixed it.

Revision history for this message
Alexander Belchenko (bialix) wrote :

Angus, do you think the problem is solved and we can close this bug?

Revision history for this message
Andrew Bennetts (spiv) wrote :

The error in this case (BZR_SSH set to BZR_SSH=plink, but no plink installed) is unnecessarily confusing. So that at least is a bug we should fix, although probably not very urgently.

Changed in bzr:
importance: Undecided → Low
status: New → Confirmed
summary: - WindowsError: [Error 2] The system cannot find the file specified
+ Confusing error with BZR_SSH=plink set when plink not installed:
+ WindowsError: [Error 2] The system cannot find the file specified
Revision history for this message
Andrew Bennetts (spiv) wrote :

We just had another occurrence of this reported on #launchpad.

Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
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.