vscode-sftp icon indicating copy to clipboard operation
vscode-sftp copied to clipboard

doesn't work after 10~15minutes idle

Open ktchmy opened this issue 5 years ago • 33 comments

Do you read the FAQ?

  • [ ] Yes.

Describe the bug SFTP connected to server at starts, when idle for 15 minutes or more. It doesn't connect to the server for FTP syncing.

To Reproduce Steps to reproduce the behavior:

  1. Connect to any server
  2. Idle for at least 15minutes
  3. Doesn't work as normal after that

Expected behavior Still be able to connect to server after long idle time.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Mac
  • VSCode Version : 1.33.1
  • Extension Version : 1.12.2

Extension Logs from Startup - required

  1. Open User Settings.

    • On Windows/Linux - File > Preferences > Settings
    • On macOS - Code > Preferences > Settings
  2. Set sftp.debug to true and reload vscode.

  3. Reproduce the problem, get the logs from View > Output > sftp.

[debug] Outgoing: Writing MKDIR [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected])

ktchmy avatar Apr 20 '19 08:04 ktchmy

I have the same issue. After few minutes I can't upload any file. Got the same debug output as user above. It's really annoying, I have to close Visual Studio Code and open again in order to upload files.

krissce avatar May 29 '19 11:05 krissce

Extension Logs from Startup - required

  1. Open User Settings.

    • On Windows/Linux - File > Preferences > Settings
    • On macOS - Code > Preferences > Settings
  2. Set sftp.debug to true and reload vscode.

  3. Reproduce the problem, get the logs from View > Output > sftp.

liximomo avatar May 30 '19 00:05 liximomo

Here you have debug output (had to remove FTP credentials):

[05-30 09:14:29] [debug] register command "Cancel All Transfer" from "./commandCancelAllTransfer.ts" [05-30 09:14:29] [debug] register command "Config" from "./commandConfig.ts" [05-30 09:14:29] [debug] register command "List Active Folder" from "./commandListActiveFolder.ts" [05-30 09:14:29] [debug] register command "Open Ssh Connection" from "./commandOpenSshConnection.ts" [05-30 09:14:29] [debug] register command "Set Profile" from "./commandSetProfile.ts" [05-30 09:14:29] [debug] register command "Toggle Output Panel" from "./commandToggleOutputPanel.ts" [05-30 09:14:29] [debug] register command "Upload Changed Files" from "./commandUploadChangedFiles.ts" [05-30 09:14:29] [debug] register command "Delete Remote" from "./fileCommandDeleteRemote.ts" [05-30 09:14:29] [debug] register command "Diff" from "./fileCommandDiff.ts" [05-30 09:14:29] [debug] register command "Diff Active File" from "./fileCommandDiffActiveFile.ts" [05-30 09:14:29] [debug] register command "Download" from "./fileCommandDownload.ts" [05-30 09:14:29] [debug] register command "Download Active File" from "./fileCommandDownloadActiveFile.ts" [05-30 09:14:29] [debug] register command "Download Active Folder" from "./fileCommandDownloadActiveFolder.ts" [05-30 09:14:29] [debug] register command "Download File" from "./fileCommandDownloadFile.ts" [05-30 09:14:29] [debug] register command "Download Folder" from "./fileCommandDownloadFolder.ts" [05-30 09:14:29] [debug] register command "Download Force" from "./fileCommandDownloadForce.ts" [05-30 09:14:29] [debug] register command "Download Project" from "./fileCommandDownloadProject.ts" [05-30 09:14:29] [debug] register command "Edit In Local" from "./fileCommandEditInLocal.ts" [05-30 09:14:29] [debug] register command "List" from "./fileCommandList.ts" [05-30 09:14:29] [debug] register command "List All" from "./fileCommandListAll.ts" [05-30 09:14:29] [debug] register command "Reveal In Explorer" from "./fileCommandRevealInExplorer.ts" [05-30 09:14:29] [debug] register command "Reveal In Remote Explorer" from "./fileCommandRevealInRemoteExplorer.ts" [05-30 09:14:29] [debug] register command "Sync Both Directions" from "./fileCommandSyncBothDirections.ts" [05-30 09:14:29] [debug] register command "Sync Local To Remote" from "./fileCommandSyncLocalToRemote.ts" [05-30 09:14:29] [debug] register command "Sync Remote To Local" from "./fileCommandSyncRemoteToLocal.ts" [05-30 09:14:29] [debug] register command "Upload" from "./fileCommandUpload.ts" [05-30 09:14:29] [debug] register command "Upload Active File" from "./fileCommandUploadActiveFile.ts" [05-30 09:14:29] [debug] register command "Upload Active Folder" from "./fileCommandUploadActiveFolder.ts" [05-30 09:14:29] [debug] register command "Upload File" from "./fileCommandUploadFile.ts" [05-30 09:14:29] [debug] register command "Upload Folder" from "./fileCommandUploadFolder.ts" [05-30 09:14:29] [debug] register command "Upload Force" from "./fileCommandUploadForce.ts" [05-30 09:14:29] [debug] register command "Upload Project" from "./fileCommandUploadProject.ts" [05-30 09:14:29] [info] config at d:\wamp\www\ {"remotePath":"./","uploadOnSave":false,"downloadOnOpen":false,"ignore":[],"concurrency":4,"protocol":"sftp","connectTimeout":10000,"interactiveAuth":false,"secure":false,"remoteTimeOffsetInHours":0,"name":"","profiles":{"Live Cloudways":{"host":"157....","protocol":"sftp","port":22,"username":"","password":"","remotePath":"/applications/public_html/","uploadOnSave":false}," Test Cloudwys":{"host":"157....","protocol":"sftp","port":22,"username":"","password":"","remotePath":"/applications/public_html/","uploadOnSave":false},"Live - OLD HOST":{"host":"ftp.x.net","protocol":"sftp","port":22,"username":"","password":"","remotePath":"/public_html/","uploadOnSave":false}},"defaultProfile":" Test Cloudwys"} [05-30 09:14:40] [trace] run command 'Upload Active File' [05-30 09:14:40] [info] Using profile: Test Cloudwys [05-30 09:14:40] [warn] ENOENT: no such file or directory, open 'C:\Users\kcare.ssh\config' load C:\Users\kcare.ssh\config failed [05-30 09:14:40] [trace] handle upload file for d:\wamp\www\models\SettingsForm.php [05-30 09:14:40] [debug] Local ident: 'SSH-2.0-ssh2js0.4.2' [05-30 09:14:40] [debug] Client: Trying 157.X.X.X on port 22 ... [05-30 09:14:40] [debug] Client: Connected [05-30 09:14:41] [debug] Remote ident: 'SSH-2.0-OpenSSH_6.7p1 Debian-5+deb8u8' [05-30 09:14:41] [debug] Outgoing: Writing KEXINIT [05-30 09:14:41] [debug] DEBUG: Comparing KEXINITs ... [05-30 09:14:41] [debug] (local) KEX algorithms: ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1 [05-30 09:14:41] [debug] (remote) KEX algorithms: [email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1 [05-30 09:14:41] [debug] KEX algorithm: ecdh-sha2-nistp256 [05-30 09:14:41] [debug] (local) Host key formats: ssh-rsa,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521 [05-30 09:14:41] [debug] (remote) Host key formats: ssh-rsa,ssh-dss [05-30 09:14:41] [debug] Host key format: ssh-rsa [05-30 09:14:41] [debug] (local) Client->Server ciphers: aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm,[email protected],aes256-gcm,[email protected] [05-30 09:14:41] [debug] (remote) Client->Server ciphers: aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected],[email protected] [05-30 09:14:41] [debug] Client->Server Cipher: aes128-ctr [05-30 09:14:41] [debug] (local) Server->Client ciphers: aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm,[email protected],aes256-gcm,[email protected] [05-30 09:14:41] [debug] (remote) Server->Client ciphers: aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected],[email protected] [05-30 09:14:41] [debug] Server->Client Cipher: aes128-ctr [05-30 09:14:41] [debug] (local) Client->Server HMAC algorithms: hmac-sha2-256,hmac-sha2-512,hmac-sha1 [05-30 09:14:41] [debug] (remote) Client->Server HMAC algorithms: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1 [05-30 09:14:41] [debug] Client->Server HMAC algorithm: hmac-sha2-256 [05-30 09:14:41] [debug] (local) Server->Client HMAC algorithms: hmac-sha2-256,hmac-sha2-512,hmac-sha1 [05-30 09:14:41] [debug] (remote) Server->Client HMAC algorithms: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1 [05-30 09:14:41] [debug] Server->Client HMAC algorithm: hmac-sha2-256 [05-30 09:14:41] [debug] (local) Client->Server compression algorithms: none,[email protected],zlib [05-30 09:14:41] [debug] (remote) Client->Server compression algorithms: none,[email protected] [05-30 09:14:41] [debug] Client->Server compression algorithm: none [05-30 09:14:41] [debug] (local) Server->Client compression algorithms: none,[email protected],zlib [05-30 09:14:41] [debug] (remote) Server->Client compression algorithms: none,[email protected] [05-30 09:14:41] [debug] Server->Client compression algorithm: none [05-30 09:14:41] [debug] Outgoing: Writing KEXECDH_INIT [05-30 09:14:41] [debug] DEBUG: Checking host key format [05-30 09:14:41] [debug] DEBUG: Checking signature format [05-30 09:14:41] [debug] DEBUG: Verifying host fingerprint [05-30 09:14:41] [debug] DEBUG: Host accepted by default (no verification) [05-30 09:14:41] [debug] DEBUG: Verifying signature [05-30 09:14:41] [debug] Outgoing: Writing NEWKEYS [05-30 09:14:41] [debug] Outgoing: Writing SERVICE_REQUEST (ssh-userauth) [05-30 09:14:41] [debug] Outgoing: Writing USERAUTH_REQUEST (none) [05-30 09:14:41] [debug] Client: none auth failed [05-30 09:14:41] [debug] Outgoing: Writing USERAUTH_REQUEST (password) [05-30 09:14:42] [debug] Outgoing: Writing CHANNEL_OPEN (0, session) [05-30 09:14:42] [debug] Outgoing: Writing CHANNEL_REQUEST (0, subsystem: sftp) [05-30 09:14:42] [debug] Outgoing: Writing CHANNEL_DATA (0) [05-30 09:14:42] [debug] Outgoing: Writing MKDIR [05-30 09:14:42] [debug] Outgoing: Writing CHANNEL_DATA (0) [05-30 09:14:42] [debug] Outgoing: Writing LSTAT [05-30 09:14:42] [debug] Outgoing: Writing CHANNEL_DATA (0) [05-30 09:14:43] [debug] Outgoing: Writing OPEN [05-30 09:14:43] [debug] Outgoing: Writing CHANNEL_DATA (0) [05-30 09:14:43] [debug] Outgoing: Writing FSTAT [05-30 09:14:43] [debug] Outgoing: Writing CHANNEL_DATA (0) [05-30 09:14:43] [debug] Outgoing: Writing FSETSTAT [05-30 09:14:43] [debug] Outgoing: Writing CHANNEL_DATA (0) [05-30 09:14:43] [debug] Outgoing: Writing WRITE [05-30 09:14:43] [debug] Outgoing: Writing CHANNEL_DATA (0) [05-30 09:14:43] [debug] Outgoing: Writing FSETSTAT [05-30 09:14:43] [debug] Outgoing: Writing CHANNEL_DATA (0) [05-30 09:14:43] [debug] Outgoing: Writing CLOSE [05-30 09:14:43] [debug] Outgoing: Writing CHANNEL_DATA (0) [05-30 09:14:44] [info] local ➞ remote d:\wamp\www\models\SettingsForm.php [05-30 09:15:12] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [05-30 09:15:42] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [05-30 09:16:12] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [05-30 09:16:43] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [05-30 09:17:13] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [05-30 09:17:43] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [05-30 09:18:13] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [05-30 09:18:43] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [05-30 09:19:14] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [05-30 09:19:44] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [05-30 09:20:14] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [05-30 09:20:44] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [05-30 09:21:14] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [05-30 09:21:44] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [05-30 09:22:15] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [05-30 09:22:45] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [05-30 09:23:15] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [05-30 09:23:45] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [05-30 09:24:15] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [05-30 09:24:44] [trace] run command 'Upload Active File' [05-30 09:24:44] [info] Using profile: Test Cloudwys [05-30 09:24:44] [trace] handle upload file for d:\wamp\www\models\SettingsForm.php [05-30 09:24:44] [debug] Outgoing: Writing MKDIR [05-30 09:24:44] [debug] Outgoing: Writing CHANNEL_DATA (0) [05-30 09:24:44] [debug] Outgoing: Writing LSTAT [05-30 09:24:44] [debug] Outgoing: Writing CHANNEL_DATA (0) [05-30 09:24:44] [debug] Outgoing: Writing OPEN [05-30 09:24:44] [debug] Outgoing: Writing CHANNEL_DATA (0) [05-30 09:24:44] [debug] Outgoing: Writing FSTAT [05-30 09:24:44] [debug] Outgoing: Writing CHANNEL_DATA (0) [05-30 09:24:44] [debug] Outgoing: Writing FSETSTAT [05-30 09:24:44] [debug] Outgoing: Writing CHANNEL_DATA (0) [05-30 09:24:45] [debug] Outgoing: Writing WRITE [05-30 09:24:45] [debug] Outgoing: Writing CHANNEL_DATA (0) [05-30 09:24:45] [debug] Outgoing: Writing FSETSTAT [05-30 09:24:45] [debug] Outgoing: Writing CHANNEL_DATA (0) [05-30 09:24:45] [debug] Outgoing: Writing CLOSE [05-30 09:24:45] [debug] Outgoing: Writing CHANNEL_DATA (0) [05-30 09:24:45] [info] local ➞ remote d:\wamp\www\models\SettingsForm.php [05-30 09:24:46] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [05-30 09:25:01] [info] Using profile: Test Cloudwys [05-30 09:25:01] [info] Using profile: Test Cloudwys [05-30 09:25:16] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [05-30 09:25:46] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [05-30 09:26:16] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [05-30 09:26:46] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [05-30 09:27:17] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [05-30 09:27:47] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [05-30 09:28:17] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [05-30 09:28:47] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [05-30 09:29:17] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [05-30 09:29:48] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [05-30 09:30:18] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [05-30 09:30:48] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [05-30 09:31:18] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [05-30 09:31:48] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [05-30 09:32:18] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [05-30 09:32:49] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [05-30 09:33:19] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [05-30 09:33:49] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [05-30 09:34:04] [trace] run command 'Upload Active File' [05-30 09:34:04] [info] Using profile: Test Cloudwys [05-30 09:34:04] [trace] handle upload file for d:\wamp\www\models\SettingsForm.php [05-30 09:34:04] [debug] Outgoing: Writing MKDIR [05-30 09:34:04] [debug] Outgoing: Writing CHANNEL_DATA (0) [05-30 09:34:05] [debug] Outgoing: Writing LSTAT [05-30 09:34:05] [debug] Outgoing: Writing CHANNEL_DATA (0) [05-30 09:34:05] [debug] Outgoing: Writing OPEN [05-30 09:34:05] [debug] Outgoing: Writing CHANNEL_DATA (0) [05-30 09:34:05] [debug] Outgoing: Writing FSTAT [05-30 09:34:05] [debug] Outgoing: Writing CHANNEL_DATA (0) [05-30 09:34:05] [debug] Outgoing: Writing FSETSTAT [05-30 09:34:05] [debug] Outgoing: Writing CHANNEL_DATA (0) [05-30 09:34:05] [debug] Outgoing: Writing WRITE [05-30 09:34:05] [debug] Outgoing: Writing CHANNEL_DATA (0) [05-30 09:34:06] [debug] Outgoing: Writing FSETSTAT [05-30 09:34:06] [debug] Outgoing: Writing CHANNEL_DATA (0) [05-30 09:34:06] [debug] Outgoing: Writing CLOSE [05-30 09:34:06] [debug] Outgoing: Writing CHANNEL_DATA (0) [05-30 09:34:06] [info] local ➞ remote d:\wamp\www\models\SettingsForm.php [05-30 09:34:13] [info] Using profile: Test Cloudwys [05-30 09:34:14] [trace] run command 'Upload Active File' [05-30 09:34:14] [info] Using profile: Test Cloudwys [05-30 09:34:14] [trace] handle upload file for d:\wamp\www\models\SettingsForm.php [05-30 09:34:14] [debug] Outgoing: Writing MKDIR [05-30 09:34:14] [debug] Outgoing: Writing CHANNEL_DATA (0) [05-30 09:34:14] [debug] Outgoing: Writing LSTAT [05-30 09:34:14] [debug] Outgoing: Writing CHANNEL_DATA (0) [05-30 09:34:14] [debug] Outgoing: Writing OPEN [05-30 09:34:14] [debug] Outgoing: Writing CHANNEL_DATA (0) [05-30 09:34:14] [debug] Outgoing: Writing FSTAT [05-30 09:34:14] [debug] Outgoing: Writing CHANNEL_DATA (0) [05-30 09:34:15] [debug] Outgoing: Writing FSETSTAT [05-30 09:34:15] [debug] Outgoing: Writing CHANNEL_DATA (0) [05-30 09:34:15] [debug] Outgoing: Writing WRITE [05-30 09:34:15] [debug] Outgoing: Writing CHANNEL_DATA (0) [05-30 09:34:15] [debug] Outgoing: Writing FSETSTAT [05-30 09:34:15] [debug] Outgoing: Writing CHANNEL_DATA (0) [05-30 09:34:15] [debug] Outgoing: Writing CLOSE [05-30 09:34:15] [debug] Outgoing: Writing CHANNEL_DATA (0) [05-30 09:34:15] [info] local ➞ remote d:\wamp\www\models\SettingsForm.php [05-30 09:34:19] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [05-30 09:34:49] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [05-30 09:35:20] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [05-30 09:35:50] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [05-30 09:36:20] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [05-30 09:36:50] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [05-30 09:37:20] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [05-30 09:37:51] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [05-30 09:38:21] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [05-30 09:38:51] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [05-30 09:39:21] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [05-30 09:39:51] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [05-30 09:40:22] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [05-30 09:40:52] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [05-30 09:41:22] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [05-30 09:41:52] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [05-30 09:42:22] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [05-30 09:42:53] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [05-30 09:43:23] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [05-30 09:43:53] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [05-30 09:44:17] [debug] Outgoing: Writing CHANNEL_CLOSE (0) [05-30 09:44:23] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [05-30 09:44:53] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [05-30 09:45:24] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [05-30 09:45:54] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [05-30 09:46:24] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [05-30 09:46:54] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [05-30 09:47:24] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [05-30 09:47:54] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [05-30 09:48:25] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [05-30 09:48:55] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [05-30 09:49:25] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [05-30 09:49:55] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [05-30 09:50:25] [trace] run command 'Upload Active File' [05-30 09:50:25] [info] Using profile: Test Cloudwys [05-30 09:50:25] [trace] handle upload file for d:\wamp\www\models\SettingsForm.php [05-30 09:50:25] [debug] Outgoing: Writing MKDIR [05-30 09:50:25] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [05-30 09:50:56] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [05-30 09:51:26] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [05-30 09:51:56] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [05-30 09:52:26] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [05-30 09:52:56] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected]) [05-30 09:53:27] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: [email protected])

Last message is being sent all the time. Upload icon in status bar at the left bottom is spinning, nothing happens. Fils is not being uploaded.

Got latest Visual Studio code and SFTP plugin.

krissce avatar May 30 '19 07:05 krissce

@krissce It looks like your FTP server didn't respond to us. You might need to check your server's logs.

liximomo avatar May 30 '19 08:05 liximomo

Found this info in server SFTP logs. Client connects and there is a timeout: 2019-05-30 10:11:46 [5378]New client [ ] from [89.x.x.x][64360] 2019-05-30 10:21:49 [5378][masger_][89.x.x.x][64360]Connection time out 2019-05-30 10:21:49 [5378][masger_][89.x.x.x][64360]Quit.

I can only tell that I have no issues using WinSCP or Netbeans SFTP that I've used in the past on the same server.

krissce avatar May 30 '19 10:05 krissce

Any news on this? Does extension have any connection timeout logic? IMO it should reconnect automatically.

krissce avatar Jun 05 '19 13:06 krissce

Just adding my plus one to this I'm afraid.

It does seem to be server related. On most servers we manage everything works well, but we have some sites running on Cloudways (using Digital Ocean) that drop their connection after 10 mins or so of idleness. It looks as if @krissce above is also using Cloudways.

I'll take it up with Cloudways support but I'm not entirely sure what to be asking them so any suggestions welcome ...

millipedia avatar Jun 10 '19 09:06 millipedia

@millipedia We're also running into the same issue with Cloudways. Did you end up resolving this issue? Alternatively @liximomo is there a way we can auto save/upload with a set timeout to keep the connection alive or attempt reconnect if it's disconnected as the only way to reconnect is to close and reopen the project.

nkatsambiris avatar Aug 16 '19 00:08 nkatsambiris

Sorry - missed the reply notification - and am checking back now because I'm on another project using Cloudways and this is still happening (and is still annoying). So no resolution to provide I'm afraid.

millipedia avatar Oct 04 '19 16:10 millipedia

+1, also using Cloudways. Really hindering my workflow having to restart VS Code over and over

disco-dev avatar Oct 11 '19 17:10 disco-dev

+1

pablobb avatar Oct 23 '19 14:10 pablobb

+1 also cloudways (using vultr)

Deftwun avatar Oct 31 '19 22:10 Deftwun

Could this be an issue with cloudways/server disconnecting & maybe temp blocking idle sftp connections? I didn't see any settings in cloudways admin panel..

Relevant?: https://www.daveperrett.com/articles/2006/08/17/stop-ssh-and-sftp-timeout/

Deftwun avatar Nov 06 '19 05:11 Deftwun

When we create the ssh CLI string on this line - what if we did this instead? :

let sshStr = `ssh -t ${config.username}@${config.host} -p ${config.port} ServerAliveInterval=${config.timeout}`;

then add a 'timeout' parameter to the configSchema so the user can specifiy their own timeout in .vscode/sftp.json

I'm not sure that's possible or how much work is involved though

https://forum.ivorde.com/how-to-prevent-linux-ssh-client-from-disconnecting-using-serveraliveinterval-t19451.html

Deftwun avatar Nov 06 '19 07:11 Deftwun

+1, same issue, I'm also on Cloudways using digital ocean. The only way to get it to work again is reloading the window from the command pallet.

haitchengland avatar Nov 11 '19 12:11 haitchengland

+1

zeshanshani avatar Nov 14 '19 20:11 zeshanshani

@haitchengland you don't need to reload window. What I do is quickly change any text in the sftp.json file, undo, and save, then it works fine.

Apparently, if sftp.json is edited, the extension will start a new connection with the SFTP server. strange but works.

zeshanshani avatar Nov 14 '19 20:11 zeshanshani

+1, Also on Cloudways (Digital Ocean) and having the same problem.

andydesigns avatar Feb 27 '20 19:02 andydesigns

This seems like an issue relating to Cloudways, I have forward this thread to them and they are looking into it :-) Glad to see so many people using Cloudways too! Excellent service.

FYITom avatar Apr 09 '20 11:04 FYITom

Same issue here. It does seem like an obvious solution would be automatic reconnect. That's the behavior I would expect from other SFTP clients.

jeremysanchez avatar May 10 '20 23:05 jeremysanchez

Cloudways did not fix this issue yet. If you ask them to increase the idle time to something greater like 60 mins or 120 mins, they do that for the server. Still not a perfect solution as we have to contact them each time opening a ticket.

itsmereal avatar Aug 05 '20 09:08 itsmereal

Cloudways did not fix this issue yet. If you ask them to increase the idle time to something greater like 60 mins or 120 mins, they do that for the server. Still not a perfect solution as we have to contact them each time opening a ticket.

Why is this a Cloudways issue? IntelliJ IDEs work fine with Cloudways using their built-in SFTP, so this should be fixable by updating this extension. I assume it pings the server every X seconds to keep the session alive or something like that.

disco-dev avatar Aug 05 '20 12:08 disco-dev

same problem..

anto-altrosito avatar Sep 14 '20 20:09 anto-altrosito

same... but with an other server...

n-langle avatar Sep 18 '20 16:09 n-langle

same problem, different server. Shouldn't it try to reconnect?

From above: Apparently, if sftp.json is edited, the extension will start a new connection with the SFTP server. strange but works.

This does work as a slightly annoying work around.

jeffglynn avatar Jan 11 '21 22:01 jeffglynn

any update? Same issue here on cloudways.

ntseles avatar Feb 15 '23 21:02 ntseles

Are there any updates on this? Disabling and enabling the Sftp extension also works but it's very hard to do it everytime.

onuryildiz58 avatar Feb 17 '23 03:02 onuryildiz58

+1, Also on Cloudways (Digital Ocean)

gerbz avatar May 03 '23 23:05 gerbz

+1, Also on Cloudways (Digital Ocean)

They have finally started to re-open the ports needed. Just start a chat and tell them you require ssh-port-forwarding. I can confirm it's now working for me as of last week.

ntseles avatar May 03 '23 23:05 ntseles

+1, Also on Cloudways (Digital Ocean)

They have finally started to re-open the ports needed. Just start a chat and tell them you require ssh-port-forwarding. I can confirm it's now working for me as of last week.

Is there anything else you needed to do on your side? They said they have enabled port forwarding, however I still have the same issue, in fact its a bit worse now as it hangs after just 5 minutes vs 15 minutes

RigoDeLaTorre avatar Dec 10 '23 19:12 RigoDeLaTorre