New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why is Upload / Download so slow? #454
Comments
Extension Logs from Startup - required
|
[info] config at c:\Users\mat01\xxxxxxxxxxx {"remotePath":"/","uploadOnSave":true,"downloadOnOpen":false,"ignore":[],"concurrency":1,"protocol":"ftp","connectTimeout":10000,"interactiveAuth":false,"secure":false,"passive":false,"remoteTimeOffsetInHours":0,"port":21,"name":"xxxxxxx","host":"xxxxxxx","username":"","password":""} |
Which part takes 20 - 30 seconds? |
I think there are two operations here, a directory list, and a file download. Both are part of 1 action (edit file locally) from VSC. The whole lot took 20 to 30 seconds. I'm afraid I don't know exactly which commands are the slowest - as you can see, there are no timestamps on the log. |
But there are time gaps between each log.
Does the second line take 10s to show after the first one? |
The biggest delay seems to happen after Since there are 2 of these during one file fetch, I'm get 2x12 seconds delay. |
Turn on Passive mode in your FTP server. |
Valuable advice, thank you. Here's an extract (last few lines) from my vsftpd .conf file. pasv_enable=YES Since, there is no error message on the debug log after 'entering passive mode', surely we must assume that passive mode was successfully (although slowly) entered? Furthermore - I've just tested our server by connecting to FTP via another client - WinSCP. This works flawlessly downloading a file in well under a second. So, this all points to your extension not working properly (I guess that's not the case), or a setting within it being incorrect. My config file in vscode is { Please advise. |
Hello? Any word on this please? |
Same problem, no error, just downloading 1 file every 10 seconds or so.
|
I have a similar problem, taking up to 23 seconds to download a file. Using Filezilla, there is no delay at all. This is where it hangs: About 18 seconds later it continues and completes: [debug] < '226 Transfer complete\r\n' As can be seen this is 600byte file This problem occurs over many different servers. I have just tested on my laptop and the problem starts once VSCode upgrades to 1.31.1 Jan 2019 Update I have also tried this with NO other extentions loaded, to make sure that there is not a conflict somewhere. It still can take up to 35 seconds to fetch a 6k file when I open it locally. My config is as follows: { |
I have that problem too. Really weird. |
Same problem Here. Problem appears only for remote->local(Download). For uploding Everything seems and works fine. Problem appears after the update to 1.31.1 |
Same problem here. [info] remote -> local d:\some.file Here it hangs for 5-60secs and it shows: And it goes to next file... My vscode bersion is 1.31.1. |
Same here. All downloads go to PASV mode and every action on the server i.e. Opening BINARY mode data connection for [...] takes forever. Hosting and therefore FTP-Server is at Checkdomain. |
Hello, same problem for me. |
Same here. Super fast on other FTP client. |
same here, taking very long time every file download. |
Problem solved by down grade my vscode version to 1.30.2-1546901769.el7. |
@liximomo do you have any update on this issue? |
I have the same issue. Great plugin but the download speed is very slow. I hope you manage to fix it. Thank you very much in advance. |
@liximomo I found out that it has something in common with the project I use. |
What if is this a problem with operating system? Maybe firewall. I'm using Windows 10. I also tried FTP-Sync addon and the speed is also very slow. |
The same problem. MacOS Mojave. |
Same problem here. Any project takes ages to download either a single file or a directory of files etc. Whether SFTP or FTP... |
My case seems related, i hope this helps fix this. [debug] < '150 Opening BINARY mode data connection for /public_html/xxxxxx/xx.php (5713 bytes)\r\n' The file appears in the folder almost instantly and i can open it with another editor checking is full downloaded 10-20 seconds waiting [debug] < '226 Transfer complete\r\n' The file opens in vscode. |
An extension in which the maximum number of installations has such a serious compatibility problem with vscode 1.31 and higher is sadness ... in fact, it is impossible to use the extension because of downloading a small file in 20-30 seconds. |
Same problem on VSCode 1.33.1 Downgrading to version 1.30.2 solves the problem. Do not forget to turn off automatic updates. |
Yeah downgrade to 1.30.x solved for me also... Any chance soon to solve this problem with compatibility ??? |
@krzysmierz It seems that this is related to vscode. 🤔 |
[SOLVED] I solved this (and replied in another GIT post - forgot where). My sftp.json: |
Same problem for me... |
In my case, this did not work. The problem is also relevant.
|
With SFTP I dont have any problems. The problem exist only with FTP! And there is interactiveAuth not helpfull. |
Hi .. Sorry, but my FTP always worked fine (my problem only was the SFTP). { |
Sorry, I don't can help you... My OS is MacOs. |
Same here. FTP super slow although I set "interactiveAuth": true |
Its I use Google Cloud Compute Engine for server! |
I had same problem for several months. Just asked hosting provider to activate SFTP, reconfigured sftp.json for using SFTP and now download works as fast as it possible. 👍 |
I use sftp to download file from remote sever. And I have this problem, too. |
stel no solution :(, very slow connection via ftp (21) sftp ok. |
"connectTimeout": 500 |
I have the very same problem ... SFTP protocol seems to be all good. This is my current config: { --> the "secure" and "secureOptions" parameter is set as the server only accepts ftp over tls/ssl and the certificate is self-signed. But it's the same slowdown with another server that accepts plain ftp. --> I'm trying to sync from remote to local, but the slowdown is exactly the same when i try to download a single file or upload a file or sync it to remote after save. This is a debug-mode activated output of two subsequent transfers (don't know where exactly one session starts and ends, so i'm pasting two loops here): [09-24 10:42:45] [debug] > MODE S As you can see, there is always a 30 second gap between "150 Opening BINARY" and "226 Transfer complete", where it seems to idle and then time-out? SFTP version: v1.12.9 |
same here... i need 30 seconds per request, too... |
this problem will probably be while vscode is alive... |
Same problem with VS Code 1.51.1 |
Same problem with VS Code 1.52.1. |
Solved this problem. |
@tyai-a You should make a pull-request to the original repo with your fix! |
@jeroenqui, the problem is that it would probably never be merged. Seeing that the maintainer is inactive. |
@Bthompson90 |
@tyai-a please! I've been neglecting it the past week, going to pick it back up today. |
Bonjour, comment on met à jour la version 1.12.9 vers la version 1.12.10 ? Translate : Hello, how do we update version 1.12.9 to version 1.12.10 ? |
The same here. [04-15 15:04:10] [debug] < '150 Opening BINARY mode data connection for /home/oodo/dev/include/head.php (2741 bytes)\r\n' |
"connectTimeout": 1000 |
"connectTimeout": 1000 as morasaiz says works. |
"connectTimeout": 1000 solves the issue. |
I was seeing the same problem - long delays on Remote->Local FTP transfers. Same server didn't have issues in the past. And same server didn't have issues with other FTP clients. What changed was that I added a Static IP to the server. While this seems specific to AWS and Filezilla, I'm guessing many people have this same issue when there's some sort of IP aliasing going on. CDN's, Static IP's, Firewalls etc. I'm using Filezilla FTP Server on an AWS server, and there's a passive setting in the configuration. The trick was to add the "Static IP" of the AWS server in the Host section of the Passive settings of the Filezilla server. So: Server->Configure->FTP and FTP over TLS->Passive Mode->Use the following host->Static IP |
Solution is simple if someone is still struggling. Just change the (passive address) pasv_address="your_external_ip" on your FTP server. The problem is that the server is returning internal IP and the client waits for it to resolve or unless there is a timeout and it uses the IP of host. |
I am connecting via FTP on port 21 to a micro EC2 instance on AWS.
Upload and Downloading files is hilariously slow. I would say both upload and download for 1 small text file takes 20 - 30 seconds.
Is this a bug, or is there something I can tweek?
The text was updated successfully, but these errors were encountered: