liximomo / vscode-sftp

Super fast sftp/ftp extension for VS Code
MIT License
1.5k stars 256 forks source link

Hanging forever issue #975

Open zipelkopf opened 2 years ago

zipelkopf commented 2 years ago

Do you read the FAQ?

Describe the bug Sometime the extension stops working with the little SFTP icon spinning in the footer-bar of VSC. When checking the output log the SFTP tranfer looks like stuck and the file never gets uploaded. Nothing times out and the only way I found to make it working again is to restart VSC. This happens very irregurarly, from once in a hour to a few times in a row. I checked my internet connection and my remote server but in all occasions they were always up. Please see screenshot and debug log attached.

FYI, I have tried on both a Windows and Mac computer, same result. image

** Debug log, at the beginning you can note the SFTP works, then it hangs even when trying to save/uplaod again.

[11-30 23:19:47] [info] [file-save] c:\Users\brunil\Documents\GitHub\ninjachat\web\config\config.json [11-30 23:19:47] [trace] handle upload file for c:\Users\brunil\Documents\GitHub\ninjachat\web\config\config.json [11-30 23:19:47] [debug] > PASV [11-30 23:19:47] [debug] < '227 Entering Passive Mode (79,142,68,5,198,123)\r\n' [11-30 23:19:47] [debug] > LIST / [11-30 23:19:47] [debug] < '150 Accepted data connection\r\n' [11-30 23:19:47] [debug] < '226-Options: -a -l \r\n' [11-30 23:19:47] [debug] < '226 27 matches total\r\n' [11-30 23:19:47] [debug] > PASV [11-30 23:19:47] [debug] < '227 Entering Passive Mode (79,142,68,5,234,187)\r\n' [11-30 23:19:47] [debug] > STOR /config/config.json [11-30 23:19:47] [debug] < '150 Accepted data connection\r\n' [11-30 23:19:47] [debug] < '226-File successfully transferred\r\n' [11-30 23:19:47] [debug] < '226 0.008 seconds (measured here), 0.64 Mbytes per second\r\n' [11-30 23:19:47] [debug] > MFMT 20211130231946 /config/config.json [11-30 23:19:47] [debug] < '213 UTIME OK\r\n' [11-30 23:19:47] [info] local ➞ remote c:\Users\brunil\Documents\GitHub\ninjachat\web\config\config.json [11-30 23:19:57] [debug] > NOOP [11-30 23:19:57] [debug] < '200 Zzz...\r\n' [11-30 23:20:07] [debug] > NOOP [11-30 23:20:07] [debug] < '200 Zzz...\r\n' [11-30 23:20:17] [debug] > NOOP [11-30 23:20:17] [debug] < '200 Zzz...\r\n' [11-30 23:20:27] [debug] > NOOP [11-30 23:20:27] [debug] < '200 Zzz...\r\n' [11-30 23:20:37] [debug] > NOOP [11-30 23:20:37] [debug] < '200 Zzz...\r\n' [11-30 23:20:47] [debug] > NOOP [11-30 23:20:48] [debug] < '200 Zzz...\r\n' [11-30 23:20:58] [debug] > NOOP [11-30 23:20:58] [debug] < '200 Zzz...\r\n' [11-30 23:21:08] [debug] > NOOP [11-30 23:21:08] [debug] < '200 Zzz...\r\n' [11-30 23:21:18] [debug] > NOOP [11-30 23:21:18] [debug] < '200 Zzz...\r\n' [11-30 23:21:27] [info] [file-save] c:\Users\brunil\Documents\GitHub\ninjachat\web\config\config.json [11-30 23:21:27] [trace] handle upload file for c:\Users\brunil\Documents\GitHub\ninjachat\web\config\config.json [11-30 23:21:27] [debug] > PASV [11-30 23:21:27] [debug] < '227 Entering Passive Mode (79,142,68,5,224,149)\r\n' [11-30 23:21:30] [debug] > ABOR [11-30 23:21:30] [debug] < "226 Since you see this ABOR must've succeeded\r\n" [11-30 23:22:19] [info] [file-save] c:\Users\brunil\Documents\GitHub\ninjachat\web\app\profile\js\profile.js [11-30 23:22:19] [trace] handle upload file for c:\Users\brunil\Documents\GitHub\ninjachat\web\app\profile\js\profile.js [11-30 23:23:21] [info] [file-save] c:\Users\brunil\Documents\GitHub\ninjachat\web\app\profile\js\profile.js [11-30 23:23:21] [trace] handle upload file for c:\Users\brunil\Documents\GitHub\ninjachat\web\app\profile\js\profile.js [11-30 23:23:53] [info] [file-save] c:\Users\brunil\Documents\GitHub\ninjachat\web\app\profile\js\profile.js [11-30 23:23:53] [trace] handle upload file for c:\Users\brunil\Documents\GitHub\ninjachat\web\app\profile\js\profile.js [11-30 23:25:39] [info] [file-save] c:\Users\brunil\Documents\GitHub\ninjachat\web\app\profile\js\profile.js [11-30 23:25:39] [trace] handle upload file for c:\Users\brunil\Documents\GitHub\ninjachat\web\app\profile\js\profile.js [11-30 23:26:39] [trace] run command 'Toggle Output Panel' [11-30 23:26:41] [trace] run command 'Toggle Output Panel' [11-30 23:27:30] [info] [file-save] c:\Users\brunil\Documents\GitHub\ninjachat\web\app\profile\js\profile.js [11-30 23:27:30] [trace] handle upload file for c:\Users\brunil\Documents\GitHub\ninjachat\web\app\profile\js\profile.js

Natizyskunk commented 2 years ago

Could you try my version and tell me if it fix your problem ? You can find it here.

zipelkopf commented 2 years ago

Thanks @Natizyskunk, I have just switched to your version, so far so good but let me try it for a few days and I keep you posted.

All the best!

Natizyskunk commented 2 years ago

@zipelkopf, No problem 🙂

Thx !

jeffglynn commented 2 years ago

I still have this problem with the SFTP hanging on the @Natizyskunk version

juliemoffat commented 1 year ago

Same issue with @Natizyskunk version. Version: 1.69.1 of VSC and fresh download of SFTP as of 9/1/22. Freezes with spinning arrow on the remote folder I'm trying to toggle open. Only way to keep working is to restart.

wickedpixel commented 1 year ago

Any fix to this?

zipelkopf commented 1 year ago

Hi all, my original problem is no longer presenting itself so frequently with the latest version ...still getting it but not terribly.

By the way, I recently changed FTP server and a similar problem occurred. It was to do with the fact that my FTP server is behind a NAT: the whole secure connection worked but no data was exchanged via the passive ports, causing the forever hanging effect...

Because of the NAT situation, I had to set on my FTP server (i.e. Pure-FTP) the setting ForcePassiveIP to the server public IP address. Then the hanging in VSC stopped and all works fine.

Cheers

boxhn commented 7 months ago

Indeed, this is the solution to the problem. Thank you very much for your support.

jeffglynn commented 7 months ago

That doesn't help if you don't have control of the server