Recent error when trying to connect to remote server and open files

I’ve been using Komodo to edit files on a remote server for well over a year now, and just yesterday it suddenly stopped working with the following error message:

Error: ‘[Exception… “Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [koIRemoteConnectionService.getConnection2]” nsresult: “0x80004005 (NS_ERROR_FAILURE)” location: “JS frame :: chrome://komodo/content/dialogs/filebrowser/filebrowser.js :: connectToServer :: line 1554” data: no]’

Searching online found one topic from a year ago, but the solution that worked for that user didn’t work for me (reinstalling the “pycrypto” library IIRC). I tried enabling logging as mentioned in that thread and pasted the results below. I’m not sure whether this counts as a bug, since I think the problem is with my server (I can still connect to another server), though there haven’t been any changes I know of between yesterday (when it worked) and this morning.

[2014-08-20 12:31:56,680] [DEBUG] koSFTPConnection: __init__()
[2014-08-20 12:31:56,680] [DEBUG] koSFTPConnection: open: s:penguin.uthsc.edu p:22 u:zas1024
[2014-08-20 12:31:56,805] [DEBUG] koSFTPConnection: SSH login: Successful
ERROR:xpcom:Unhandled exception calling 'int8 * open(in wstring, in int32, in wstring, in wstring, in wstring, in boolean, out retval boolean);'
Traceback (most recent call last):
  File "C:\Program Files (x86)\ActiveState Komodo IDE 8\lib\mozilla\python\xpcom\server\policy.py", line 300, in _CallMethod_
    return 0, func(*params)
  File "C:\Program Files (x86)\ActiveState Komodo IDE 8\lib\mozilla\python\komodo\remotefilelib.py", line 400, in open
    if self.do_authenticateWithPassword():
  File "C:\Program Files (x86)\ActiveState Komodo IDE 8\lib\mozilla\components\koSFTP.py", line 142, in do_authenticateWithPassword
    self._setupClientSFTP()
  File "C:\Program Files (x86)\ActiveState Komodo IDE 8\lib\mozilla\components\koSFTP.py", line 120, in _setupClientSFTP
    self._sftp = paramiko.SFTP.from_transport(self._connection)
  File "C:\Program Files (x86)\ActiveState Komodo IDE 8\lib\mozilla\python\komodo\paramiko\sftp_client.py", line 105, in from_transport
    chan.invoke_subsystem('sftp')
  File "C:\Program Files (x86)\ActiveState Komodo IDE 8\lib\mozilla\python\komodo\paramiko\channel.py", line 240, in invoke_subsystem
    self._wait_for_event()
  File "C:\Program Files (x86)\ActiveState Komodo IDE 8\lib\mozilla\python\komodo\paramiko\channel.py", line 1084, in _wait_for_event
    raise e
SSHException: Channel closed.
[2014-08-20 12:31:56,823] [DEBUG] koSFTPConnection: Closing SSH connection
[2014-08-20 12:31:56,858] [DEBUG] koSFTPConnection: __del__: koSFTP object deleted
[2014-08-20 12:31:56,858] [ERROR] filepicker.remote: 
-- EXCEPTION START --
[Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [koIRemoteConnectionService.getConnection2]"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame :: chrome://komodo/content/dialogs/filebrowser/filebrowser.js :: connectToServer :: line 1554"  data: no]
+ QueryInterface (function) 3 lines
+ message (string) 'Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [koIRemoteConnectionService.getConnection2]'
+ result (number) 2147500037
+ name (string) 'NS_ERROR_FAILURE'
+ filename (string) 'chrome://komodo/content/dialogs/filebrowser/filebrowser.js'
+ lineNumber (number) 1554
+ columnNumber (number) 0
+ location (object) JS frame :: chrome://komodo/content/dialogs/filebrowser/filebrowser.js :: connectToServer :: line 1554
| + QueryInterface (function) 3 lines
| + language (number) 2
| + languageName (string) 'JavaScript'
| + filename (string) 'chrome://komodo/content/dialogs/filebrowser/filebrowser.js'
| + name (string) 'connectToServer'
| + lineNumber (number) 1554
| + sourceLine (object) null
| + caller (object) JS frame :: chrome://komodo/content/dialogs/filebrowser/filebrowser.js :: onServerChanged :: line 1587
| + inner (object) null
| + data (object) null
| + initialize (function) 3 lines
-- EXCEPTION END --

Could you try updating to Komodo 8.5.4 and seeing if the issue persists?

If it does, can you explain exactly what you are doing when the problem occurs, and can you verify whether it works ok using a ftp client, eg. filezilla?

Did you upgrade Putty recently?