remote-ftp icon indicating copy to clipboard operation
remote-ftp copied to clipboard

Connection loop

Open LichtHund opened this issue 9 years ago • 15 comments

Hello, I've been using this package for a while, but I stopped for some time, though now that I want to set it up again I am having trouble connecting. When ever I try to connect to my main server(godaddy) the connection gets in a loop of connecting and disconnecting and I don't know what is the problem, I know it is getting connected as the info is all correct and I can see the connection established on the active connections on the panel, but it doesn't show the files and it keeps disconnecting. I tried with another server and worked, but I used this package with godaddy before and never had any problem, also I can easily connect using filezilla so I don't know what is the problem.

My config: `{

"protocol": "ftp",
"host": "tri(sensor)ft.com",
"port": 21,
"user": "li(sensor)nd",
"pass": "(sensor)",
"promptForPass": false,
"remote": "/",
"local": "",
"secure": false,
"secureOptions": null,
"connTimeout": 10000,
"pasvTimeout": 10000,
"keepalive": 10000,
"watch": [],
"watchTimeout": 500

}`

Cheers. artwva4-t6ahjs0bsvsd6g

LichtHund avatar Aug 05 '17 11:08 LichtHund

I'm having this issue on multiple Windows devices as well.

vradinolfi avatar Aug 13 '17 16:08 vradinolfi

https://github.com/icetee/remote-ftp/issues/585

Setting keepalive in .ftpconfig to zero fixed the issue for me.

"keepalive": 0,

jsmeltzer avatar Aug 15 '17 20:08 jsmeltzer

Tried that but still does the same.

LichtHund avatar Aug 15 '17 21:08 LichtHund

Try change domain name, use IP address. Maybe redirection?

icetee avatar Aug 15 '17 21:08 icetee

I tried with the IP too but nothing, think it's godaddy's problem?

LichtHund avatar Aug 15 '17 22:08 LichtHund

I think ~~cPanel~~ problem. I'm trying to debug with it this week.

icetee avatar Aug 15 '17 22:08 icetee

Last year I used it and worked fine, I could try contacting their support and see what they say.

LichtHund avatar Aug 15 '17 22:08 LichtHund

Changing remote-ftp package file is fixed my problem. I saw that solution before at somewhere but I could not remember now to reference it.

At Atom packages folder: Remote-FTP/node-modules/ftp/lib/connection.js:106

socket.setKeepAlive(true) should be socket.setKeepAlive(false)

Just change to false and problem should be fixed

bwqr avatar Sep 04 '17 14:09 bwqr

Since 0.10.5 supported keepalive option in .ftpconfig. Simply set to 0. This is the hotfix for the moment.

There is an automatic reconnection it is infinite.

Solution in .ftpconfig: "keepalive": 0,

https://github.com/icetee/remote-ftp/blob/6615f115f8e0944344525d2f99e0a632630c6d30/lib/connectors/ftp.js#L48

icetee avatar Sep 13 '17 20:09 icetee

Can anyone have access (in email) to Windows as soon as the error occurs?

icetee avatar Sep 13 '17 20:09 icetee

Hello, I'm having this connection loop aswell, I've tried modifying both the connection.js and the ftp.js as many other threads have suggested but to no avail. Also setting the KeepAlive to 0 in the .ftpconfig doesn't work either

Updated my remote-ftp to 1.1.3 version and I can no longer connect to GoDaddy through FTP sums it up pretty well.

Any updates on this bug?

DanMoCa avatar Sep 25 '17 14:09 DanMoCa

@DanMoCa Can you try the master branch?

icetee avatar Sep 25 '17 14:09 icetee

@icetee I installed through Atom on friday, 2 days after the last change on master branch, shouldn't that make my build be at master branch with the latest changes? If not, would you please illustrate me (possibly step by step) in what you want me to test please? Appreciate the help! love this plugin!

DanMoCa avatar Sep 25 '17 22:09 DanMoCa

Unfortunately I ran into this today. But I can not induce it. My FTP server type ProFTPd.

It's sure 421's timeout and then maybe unsuccessful connection.

icetee avatar Oct 23 '17 11:10 icetee

image self.ftp._socket.setKeepAlive(self.info.keepalive > 0); to setKeepAlive(false); and fixed

behzadmonfared avatar Dec 25 '17 19:12 behzadmonfared