Hi,
I've just downloaded Komodo Edit 5.1 and im struggling to load a remote file via ftp. I've checked the settings for the server with a colleague who is also using 5.1 and can connect to the same server and they are the same.
I have checked the pystderr.log file and these two lines appear when it times out:
[2009-06-25 14:46:15,346] [ERROR] koFTPConnection: FTP CLOSE ERROR: timed out
[2009-06-25 14:47:26,025] [ERROR] koFTPConnection: FTP do_verifyConnected ERROR: Connection timed out
Any ideas?
Thanks
John
Sorry forgot to mention im using ubuntu 9.04 (as is my colleague).
I do not know what could be causing the timeout - the logs messages look normal for a connection timing out in Komodo. Are there any other error messages in Komodo's log file?
I'm guessing you've already tried connecting to the same machine via the "ftp" command line, to see if that works.
Are there any firewalls involved... are both you and your colleague using the same network (i.e. same IP subnet)?
Cheers,
Todd
Hi,
I've tried a fresh connection with the same error. This is the entire pystderr.log file:
[2009-06-26 08:51:20,156] [WARNING] keybindings: Upgrading keybindings from version: 14 to 15
/home/john/Komodo-Edit-5/lib/mozilla/python/komodo/Crypto/Hash/SHA.py:6: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
from sha import *
/home/john/Komodo-Edit-5/lib/mozilla/python/komodo/Crypto/Hash/MD5.py:6: DeprecationWarning: the md5 module is deprecated; use hashlib instead
from md5 import *
[2009-06-26 08:53:28,487] [ERROR] koFTPConnection: FTP do_verifyConnected ERROR: Connection timed out
I have an active ssh connection to the same machine and i usually have an ftp connection open through nautilus to the same machine as well. (Though i have tried open remote file both with and without this being active in case there was a conflict).
I can also connect using gftp and the same settings. There isn't a firewall involved and as far as i know my colleague and i use the same external connection (the machine isn't on the locate network) but we may be using a different subnet.
thanks
John
Right - if you can connect successfully from gftp, then Komodo should also be able to connect as well (i.e. there should be no firewall or subnet problems).
You will need to turn on the debugging of the ftp module, in order to get more details of what is occurring. Open the file:
/home/john/Komodo-Edit-5/lib/mozilla/components/koFTP.py
then uncomment the three log_XXX.setLevel(logging.DEBUG) statements near the top of the file (by removing the starting "#" from these three lines).
Restart Komodo and try again, this should then provide a bit more information.
Cheers,
Todd
Hi,
This is the output it produced:
[2009-06-26 17:18:42,505] [DEBUG] koFTPConnection: open: s:ftp.somesite.net p:21 u:myuser
[2009-06-26 17:18:52,937] [DEBUG] koFTPConnection: do_authenticateWithPassword: login successful
[2009-06-26 17:18:52,938] [DEBUG] koFTPConnection: Password authentication successful.
[2009-06-26 17:18:52,938] [INFO] koFTPConnection: ftp connection opened on ftp.somesite.net:21 for user myuser
[2009-06-26 17:18:52,940] [DEBUG] koFTPConnection: list: (refresh:False) path: '/filer/'
[2009-06-26 17:18:52,940] [DEBUG] koFTPConnection: list: Removed trailing slash from path: '/filer'
[2009-06-26 17:18:52,941] [DEBUG] koFTPConnection: list: path is not cached, getting info
[2009-06-26 17:18:52,941] [DEBUG] koFTPConnection: Sending NOOP
[2009-06-26 17:19:53,000] [INFO] koFTPConnection: FTP NOOP ERROR: timed out
[2009-06-26 17:19:53,000] [ERROR] koFTPConnection: FTP do_verifyConnected ERROR: Connection timed out
[2009-06-26 17:19:59,123] [DEBUG] koFTPConnection: closing connection
[2009-06-26 17:19:59,123] [DEBUG] koFTPConnection: do_close: Closing FTP connection
Thanks
John
Can you remove the default path (leave as empty) in the Komodo server preferences for the FTP account. Does that change anything?
Hi,
It's still timing out on the NOOP command:
[2009-06-29 12:10:34,854] [DEBUG] koFTPConnection: open: s:puma.traveltek.net p:21 u:traveltek
[2009-06-29 12:10:45,296] [DEBUG] koFTPConnection: do_authenticateWithPassword: login successful
[2009-06-29 12:10:45,296] [DEBUG] koFTPConnection: Password authentication successful.
[2009-06-29 12:10:45,296] [INFO] koFTPConnection: ftp connection opened on puma.traveltek.net:21 for user traveltek
[2009-06-29 12:10:45,298] [DEBUG] koFTPConnection: Sending NOOP
[2009-06-29 12:11:45,342] [INFO] koFTPConnection: FTP NOOP ERROR: timed out
[2009-06-29 12:11:45,343] [ERROR] koFTPConnection: FTP do_verifyConnected ERROR: Connection timed out
[2009-06-29 12:11:53,741] [DEBUG] koFTPConnection: closing connection
[2009-06-29 12:11:53,741] [DEBUG] koFTPConnection: do_close: Closing FTP connection
[2009-06-29 12:12:53,792] [ERROR] koFTPConnection: FTP CLOSE ERROR: timed out
I did another test where i opened a file in komodo using the ftp connection i have opened in nautilus and tried to make a change and save it but i got this error, not sure if it the same issue:
No handlers could be found for logger "URIlib"
[2009-06-29 12:15:31,961] [ERROR] koDocument: save: can't write to file u'/home/john/.gvfs/FTP as traveltek on puma.traveltek.net/home/traveltek/johncheck.pl'
Traceback (most recent call last):
File "/home/john/Komodo-Edit-5/lib/mozilla/components/koDocument.py", line 1204, in save
self.file.open('wb+')
File "", line 3, in open
Exception
Any ideas?
This is pretty much stopping me from using komodo.
I am sorry, but I cannot tell why this is occurring. Komodo's ftp handling is successful at logging in, but then times out when sending a "noop" command (which verifies that Komodo's ftp is currently connected).
Your remote server connection does support Passive FTP connections right (and is not set to Active connections only)?
yes it does support passive connections, i can see it using one in gftp when it connects.
The strange thing is that a few of my colleagues are using the same server all using komodo (on ubuntu, xp and osx) and it is working.
Try using a different "Default Path" setting, here are some examples to try:
That make any difference?
I tried a few different variations, but the all still timed out. However after the first try(which timed out at the NOOP command) the rest seemed to timeout with:
FTP do_getPathInfo ERROR: Connection timed out
Try restarting Komodo after making the change to the server preferences - as it looks like Komodo is caching the ftp connection and then re-using this connection after you change the path.
Hi,
I tried a connection, which timed out on NOOP, then made a change and restarted it and it timing out at NOOP again.
Thanks
John
I had some issues with my machine recently which meant that i've had to reinstall ubuntu. At the moment, the only version i have available is 8.04. i wiped the drive and installed from scratch.
I've also moved desk so im on a different connection.
However, i am still getting the exact same error. I have also tried Komodo IDE, and the nightly of edit. (using the same central settings i think as the settings were still there).
I'm not sure what it could be, except something to do with my network card causing it.
Can you connect to any other FTP sites, is this limited to the one site?
What about SFTP... same problems?
I just changed this server to use sftp and port 22 and it works.
EDIT: that should have said port 22, i wrote 21.