Open ghost opened 6 years ago
Just discussed with GoDaddy guys about it and it's not a problem from them. As I said, it works with FileZilla and with other FTP plugins for VS Code.
The problem is that a list command is failed because your server has a bandwidth restriction for all FTP connections to the server. I think this will still happen if you try to list
your remote dir with other FTP plugins for vscode.
Ok, but I tried to connect with Filezilla, WinSCP, Atom, Notepad++, Php Storm, VSCode with ftp-sync, ftp-simple plugins and they are all working.
What can I do? Should I increase the bandwidth or check something else?
What actually have you done with sftp. How to trigger this error?
Can you provide the full logs?
This is strange. I tried on different computer and it works. I don't think there's something which should be set up on the computer, right?
On my personal computer, where it's not working, I reinstalled the extension for a couple of times, I removed all FTP connections from that IP to not fall into "Too many connections from this IP" error and also I switched connections to mobile hotspot, thinking that maybe there was some errors regarding the the network.
I'll try in couple of hours on my personal computer again. On question until then, a little bit off-topic maybe.
The "name" parameter shouldn't change the main folder name which is showed in the Remote Explorer? Everytime is showed in there the name of the last directory from the "remotePath" parameter. If I have "/home/dev", I'll have "dev" in there, if I have just "/", then the folder name is empty and it's a little bit annoying, considering that I have around 10-15 ftp connections and a couple of them have no folder name.
Just tried on my personal computer with the same settings used earlier, but same error message. Also, I tried using my mobile phone hotspot, through cable and also using another laptop, but same error.
I have no explanation for this. Just installed again WinSCP, Filezilla and works like a charm.
Below is a screenshot with the full output. https://drive.google.com/file/d/1aBWWawlP6JH0EtTLaIgvTTWxklRD9hMA/view?usp=sharing
I didn't see anything wrong in the logs. I don't think this is a full output.
The full output is exactly as I posted above. Here I attach it again:
[info] config at c:\Users\Iulian\Downloads\Test {"remotePath":"/","uploadOnSave":false,"downloadOnOpen":false,"syncMode":"update","ignore":[],"concurrency":4,"protocol":"ftp","connectTimeout":10000,"interactiveAuth":false,"secure":false,"passive":false,"port":21,"name":"Test","host":"MyHostName","username":"**","password":"**","context":"c:\Users\Iulian\Downloads\Test"} [debug] < 220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------\r\n220-You are user number 4 of 500 allowed.\r\n220-Local time is now 11:57. Server port: 21.\r\n220-This is a private system - No anonymous login\r\n220 You will be disconnected after 15 minutes of inactivity. [debug] > USER MyUserName [debug] < 331 User MyUserName OK. Password required [debug] > PASS **
@klopp1892 I don't see ECONNRESET
in the log. How did you know there is a ECONNRESET
error?
That's because with the previous configuration, it gives a timeout error due to 10000 connectionTimeout value. If I change that value to 20000 and try to connect again, connectionTimeout error dissapears and the ECONNRESET error appears, with the following error: 230-Your bandwidth usage is restricted\r\n230 OK. Current restricted directory is /.
Try to close the firewall in your computer.
Still not working with closed firewall.
Does it have something about passive mode maybe?
I have the exact same problem with Godaddy. Is there a way to set PASV mode in sftp?
I get the same error in every attempt to connect. FileZilla is forcing the connection attempt. Because the connection with Filezilla sometimes fails. Filezilla is trying again and succeeding. Is there a setting about this? The "retry" setting would be perfect.
I'm having the same issue, but with the SFTP extension. I'm new to this... how to solve this?
[11-27 13:11:13] [info] config at c:\Users\Demon\AppData\Local\Programs\xampp\htdocs\MachPrinciple {"remotePath":"/var/www/html/MachPrinciple/","uploadOnSave":true,"downloadOnOpen":false,"ignore":[],"concurrency":4,"protocol":"sftp","connectTimeout":10000,"interactiveAuth":false,"secure":false,"remoteTimeOffsetInHours":0,"name":"sourabh","host":"ec2-3-6-39-138.ap-south-1.compute.amazonaws.com","port":22,"username":"**","password":"**"}
[11-27 13:11:31] [info] [file-save] c:\Users\Demon\AppData\Local\Programs\xampp\htdocs\MachPrinciple.htaccess
[11-27 13:11:41] [error] Error: [ec2-3-6-39-138.ap-south-1.compute.amazonaws.com]: Timed out while waiting for handshake
at Client.
Try to close the firewall in your computer.
it worked for me, thx!
Expected Behavior
Connecting without problems to the host.
Actual Behavior
Receiving ECONNRESET error.
Steps to Reproduce the Problem
Specifications
Requisites (important to diagnose the problem!)
My current connection
{ "name": "MyName", "protocol": "ftp", "host": "MyHostName", "port": 21, "username": "MyUsername", "password": "MyPassword", "remotePath": "/", "connectTimeout": 20000
}
Output connect info
[info] config at d:\asd {"remotePath":"/","uploadOnSave":false,"downloadOnOpen":false,"syncMode":"update","ignore":[],"concurrency":4,"protocol":"ftp","connectTimeout":20000,"interactiveAuth":false,"secure":false,"passive":false,"port":21,"name":"MyName","host":"MyHostName","username":"MyUsername","password":"MyPassword","context":"d:\asd"}