Can't open remote directory

I configure “server” in Preferences -> Servers

Server type: SFTP
Name: MyServer

and another options that you don’t need to know (hostname, username and password).
When I try to select the server that I want to see, I get a JavaScript Application Error: "Error: 'Имя или служба не известны'" (Name or service unknown). Why?

My OS: Debian Jessie (Debian 8).

Well, I fix it. I enter server IP and it’s work normal.

My errors log is too big, but I show you ftp errors:

[2014-06-15 15:55:10,734] [WARNING] koFTPConnection: socket.getaddrinfo raised exception: gaierror(-2, '\xd0\x98\xd0\xbc\xd1\x8f \xd0\xb8\xd0\xbb\xd0\xb8 \xd1\x81\xd0\xbb\xd1\x83\xd0\xb6\xd0\xb1\xd0\xb0 \xd0\xbd\xd0\xb5 \xd0\xb8\xd0\xb7\xd0\xb2\xd0\xb5\xd1\x81\xd1\x82\xd0\xbd\xd1\x8b')
[2014-06-15 15:55:10,785] [WARNING] koFTPConnection: socket.getaddrinfo raised exception: gaierror(-2, '\xd0\x98\xd0\xbc\xd1\x8f \xd0\xb8\xd0\xbb\xd0\xb8 \xd1\x81\xd0\xbb\xd1\x83\xd0\xb6\xd0\xb1\xd0\xb0 \xd0\xbd\xd0\xb5 \xd0\xb8\xd0\xb7\xd0\xb2\xd0\xb5\xd1\x81\xd1\x82\xd0\xbd\xd1\x8b')
[2014-06-15 15:55:10,785] [ERROR] koFTPConnection: FTP do_openSocket ERROR: Имя или служба не известны
[2014-06-15 15:55:31,889] [WARNING] koFTPConnection: socket.getaddrinfo raised exception: gaierror(-2, '\xd0\x98\xd0\xbc\xd1\x8f \xd0\xb8\xd0\xbb\xd0\xb8 \xd1\x81\xd0\xbb\xd1\x83\xd0\xb6\xd0\xb1\xd0\xb0 \xd0\xbd\xd0\xb5 \xd0\xb8\xd0\xb7\xd0\xb2\xd0\xb5\xd1\x81\xd1\x82\xd0\xbd\xd1\x8b')
[2014-06-15 15:55:31,906] [WARNING] koFTPConnection: socket.getaddrinfo raised exception: gaierror(-2, '\xd0\x98\xd0\xbc\xd1\x8f \xd0\xb8\xd0\xbb\xd0\xb8 \xd1\x81\xd0\xbb\xd1\x83\xd0\xb6\xd0\xb1\xd0\xb0 \xd0\xbd\xd0\xb5 \xd0\xb8\xd0\xb7\xd0\xb2\xd0\xb5\xd1\x81\xd1\x82\xd0\xbd\xd1\x8b')
[2014-06-15 15:55:31,906] [ERROR] koFTPConnection: FTP do_openSocket ERROR: Имя или служба не известны
[2014-06-15 15:56:23,601] [WARNING] koFTPConnection: socket.getaddrinfo raised exception: gaierror(-2, '\xd0\x98\xd0\xbc\xd1\x8f \xd0\xb8\xd0\xbb\xd0\xb8 \xd1\x81\xd0\xbb\xd1\x83\xd0\xb6\xd0\xb1\xd0\xb0 \xd0\xbd\xd0\xb5 \xd0\xb8\xd0\xb7\xd0\xb2\xd0\xb5\xd1\x81\xd1\x82\xd0\xbd\xd1\x8b')
[2014-06-15 15:56:23,615] [WARNING] koFTPConnection: socket.getaddrinfo raised exception: gaierror(-2, '\xd0\x98\xd0\xbc\xd1\x8f \xd0\xb8\xd0\xbb\xd0\xb8 \xd1\x81\xd0\xbb\xd1\x83\xd0\xb6\xd0\xb1\xd0\xb0 \xd0\xbd\xd0\xb5 \xd0\xb8\xd0\xb7\xd0\xb2\xd0\xb5\xd1\x81\xd1\x82\xd0\xbd\xd1\x8b')
[2014-06-15 15:56:23,615] [ERROR] koFTPConnection: FTP do_openSocket ERROR: Имя или служба не известны
[2014-06-15 15:59:03,536] [WARNING] koFTPConnection: socket.getaddrinfo raised exception: gaierror(-2, '\xd0\x98\xd0\xbc\xd1\x8f \xd0\xb8\xd0\xbb\xd0\xb8 \xd1\x81\xd0\xbb\xd1\x83\xd0\xb6\xd0\xb1\xd0\xb0 \xd0\xbd\xd0\xb5 \xd0\xb8\xd0\xb7\xd0\xb2\xd0\xb5\xd1\x81\xd1\x82\xd0\xbd\xd1\x8b')
[2014-06-15 15:59:03,545] [WARNING] koFTPConnection: socket.getaddrinfo raised exception: gaierror(-2, '\xd0\x98\xd0\xbc\xd1\x8f \xd0\xb8\xd0\xbb\xd0\xb8 \xd1\x81\xd0\xbb\xd1\x83\xd0\xb6\xd0\xb1\xd0\xb0 \xd0\xbd\xd0\xb5 \xd0\xb8\xd0\xb7\xd0\xb2\xd0\xb5\xd1\x81\xd1\x82\xd0\xbd\xd1\x8b')
[2014-06-15 15:59:03,546] [ERROR] koFTPConnection: FTP do_openSocket ERROR: Имя или служба не известны
[2014-06-15 15:59:35,677] [WARNING] filepicker.remote: setServerInfoUsingUri: Could not parse uri: 
[2014-06-15 15:59:42,218] [WARNING] koFTPConnection: socket.getaddrinfo raised exception: gaierror(-2, '\xd0\x98\xd0\xbc\xd1\x8f \xd0\xb8\xd0\xbb\xd0\xb8 \xd1\x81\xd0\xbb\xd1\x83\xd0\xb6\xd0\xb1\xd0\xb0 \xd0\xbd\xd0\xb5 \xd0\xb8\xd0\xb7\xd0\xb2\xd0\xb5\xd1\x81\xd1\x82\xd0\xbd\xd1\x8b')
[2014-06-15 15:59:42,241] [WARNING] koFTPConnection: socket.getaddrinfo raised exception: gaierror(-2, '\xd0\x98\xd0\xbc\xd1\x8f \xd0\xb8\xd0\xbb\xd0\xb8 \xd1\x81\xd0\xbb\xd1\x83\xd0\xb6\xd0\xb1\xd0\xb0 \xd0\xbd\xd0\xb5 \xd0\xb8\xd0\xb7\xd0\xb2\xd0\xb5\xd1\x81\xd1\x82\xd0\xbd\xd1\x8b')
[2014-06-15 15:59:42,241] [ERROR] koFTPConnection: FTP do_openSocket ERROR: Имя или служба не известны"

Hostname actually seems pretty relevant for this issue if you still want to get to the bottom of it.

Looks like you’re up and running though.

  • Carey

Well, Ok. My hostname: ftp.bestgothic.com. FileZilla and my browser (Mozilla Firefox (Iceweasel)) open the ftp connection via hostname normally.

Hey Defman21,

Could you find and open the following file:
<komodo dir>/lib/mozilla/components/koFTP.py

and add the following line of code at line 141:

log_koFTP.warn("SERVER NAME: %s", self.server)

Remember that indenting matters in Python and must match the current block.

Restart Komodo and try to connect to your server again. When it fails, please attach the logs again.

  • Carey

At line 141 I see function __del__(self)
I must move this function on a one line and insert your code?
And why your code not like: self.log.warn("SERVER NAME: %s", self.server)?
At line 133 I see defention of variable self.log = log_koFTP.

My bad, I didn’t know you’re using Komodo Edit. Short term memory lapse. You mentioned it in a tweet not long ago.

You’re modifying do_openSocket(). Add a line after line 173. You can use self.log.warn() if you like. Looks better if you do.

  • Carey
[2014-06-20 20:58:20,407] [WARNING] koFTPConnection: SERVER NAME: ftp.defmanblog.tk

Huh, it’s start working.

That wasn’t the URL you posted before.

“My hostname: ftp.bestgothic.com.”

Did you check against the URL that was not working?

  • Carey

And on this url (ftp.bestgothic.com) connection works normal. I don’t know what I changed or what changed on a server. But it’s work and i’m happy. Thanks :smile:

[2014-06-20 21:30:02,432] [WARNING] koFTPConnection: SERVER NAME: ftp.bestgothic.com

Haha weird. Ok, glad you’re sorted out. Keep enjoying Komodo.

  • Carey