liximomo / vscode-sftp

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

doesn't work after 10~15minutes idle #541

Open ktchmy opened 5 years ago

ktchmy commented 5 years ago

Do you read the FAQ?

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):

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: keepalive@openssh.com) [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com)

krissce commented 5 years ago

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.

liximomo commented 5 years ago

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.
krissce commented 5 years ago

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: curve25519-sha256@libssh.org,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,aes128-gcm@openssh.com,aes256-gcm,aes256-gcm@openssh.com [05-30 09:14:41] [debug] (remote) Client->Server ciphers: aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com,chacha20-poly1305@openssh.com [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,aes128-gcm@openssh.com,aes256-gcm,aes256-gcm@openssh.com [05-30 09:14:41] [debug] (remote) Server->Client ciphers: aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com,chacha20-poly1305@openssh.com [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: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,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: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,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,zlib@openssh.com,zlib [05-30 09:14:41] [debug] (remote) Client->Server compression algorithms: none,zlib@openssh.com [05-30 09:14:41] [debug] Client->Server compression algorithm: none [05-30 09:14:41] [debug] (local) Server->Client compression algorithms: none,zlib@openssh.com,zlib [05-30 09:14:41] [debug] (remote) Server->Client compression algorithms: none,zlib@openssh.com [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: keepalive@openssh.com) [05-30 09:15:42] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [05-30 09:16:12] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [05-30 09:16:43] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [05-30 09:17:13] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [05-30 09:17:43] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [05-30 09:18:13] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [05-30 09:18:43] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [05-30 09:19:14] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [05-30 09:19:44] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [05-30 09:20:14] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [05-30 09:20:44] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [05-30 09:21:14] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [05-30 09:21:44] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [05-30 09:22:15] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [05-30 09:22:45] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [05-30 09:23:15] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [05-30 09:23:45] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [05-30 09:24:15] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [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: keepalive@openssh.com) [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: keepalive@openssh.com) [05-30 09:25:46] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [05-30 09:26:16] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [05-30 09:26:46] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [05-30 09:27:17] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [05-30 09:27:47] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [05-30 09:28:17] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [05-30 09:28:47] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [05-30 09:29:17] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [05-30 09:29:48] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [05-30 09:30:18] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [05-30 09:30:48] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [05-30 09:31:18] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [05-30 09:31:48] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [05-30 09:32:18] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [05-30 09:32:49] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [05-30 09:33:19] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [05-30 09:33:49] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [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: keepalive@openssh.com) [05-30 09:34:49] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [05-30 09:35:20] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [05-30 09:35:50] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [05-30 09:36:20] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [05-30 09:36:50] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [05-30 09:37:20] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [05-30 09:37:51] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [05-30 09:38:21] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [05-30 09:38:51] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [05-30 09:39:21] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [05-30 09:39:51] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [05-30 09:40:22] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [05-30 09:40:52] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [05-30 09:41:22] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [05-30 09:41:52] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [05-30 09:42:22] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [05-30 09:42:53] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [05-30 09:43:23] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [05-30 09:43:53] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [05-30 09:44:17] [debug] Outgoing: Writing CHANNEL_CLOSE (0) [05-30 09:44:23] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [05-30 09:44:53] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [05-30 09:45:24] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [05-30 09:45:54] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [05-30 09:46:24] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [05-30 09:46:54] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [05-30 09:47:24] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [05-30 09:47:54] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [05-30 09:48:25] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [05-30 09:48:55] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [05-30 09:49:25] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [05-30 09:49:55] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [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: keepalive@openssh.com) [05-30 09:50:56] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [05-30 09:51:26] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [05-30 09:51:56] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [05-30 09:52:26] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [05-30 09:52:56] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com) [05-30 09:53:27] [debug] Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com)

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.

liximomo commented 5 years ago

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

krissce commented 5 years ago

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 commented 5 years ago

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

millipedia commented 5 years ago

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 ...

nkatsambiris commented 5 years ago

@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.

millipedia commented 5 years ago

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.

disco-dev commented 4 years ago

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

pablobb commented 4 years ago

+1

Deftwun commented 4 years ago

+1 also cloudways (using vultr)

Deftwun commented 4 years ago

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 commented 4 years ago

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

haitchengland commented 4 years ago

+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.

zeshanshani commented 4 years ago

+1

zeshanshani commented 4 years ago

@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.

andydesigns commented 4 years ago

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

FYITom commented 4 years ago

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.

jeremysanchez commented 4 years ago

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.

itsmereal commented 4 years ago

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.

disco-dev commented 4 years ago

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.

anto-altrosito commented 4 years ago

same problem..

n-langle commented 4 years ago

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

jeffglynn commented 3 years ago

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.

ntseles commented 1 year ago

any update? Same issue here on cloudways.

onuryildiz58 commented 1 year ago

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

gerbz commented 1 year ago

+1, Also on Cloudways (Digital Ocean)

ntseles commented 1 year ago

+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.

RigoDeLaTorre commented 9 months ago

+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

ntseles commented 9 months ago

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

Use the Remote SSH by Microsoft. This one didn't work well for me either.

RigoDeLaTorre commented 9 months ago

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

Use the Remote SSH by Microsoft. This one didn't work well for me either.

Ah ok, will do. Thanks

Beni-L commented 3 months ago

Had a long chat with Cloudways yesterday: white listening IP, port forwarding: no solution. Today a support ticket: they increased the timeout on server: now it seems to work! That's what Cloudways did: "I just wanted to let you know that our team has made some changes to the ClientAliveCount configuration. Previously, it was set to 3, which meant that the server would wait for 15 minutes before terminating the connection as a timeout error. However, we have now adjusted it to 0, so there will be no more timeout errors and the connection will remain stable when connecting through SSH."