vscode-sftp: Upload no longer working after VSCode update
Do you read the FAQ?
- [* ] Yes.
- I am going to read now.
Describe the bug Upload generates error since updating VSCode to April 21 version
To Reproduce Steps to reproduce the behavior: Using upload command or simply saving file with upload on save set to true.
Expected behavior Upload works
Screenshots

Desktop (please complete the following information):
- OS: [e.g. Mac, Win, Linux] Mac 11.1
- VSCode Version [e.g. 1.27.0] 1.56.0
- Extension Version [e.g. 1.7.0] 1.12.9
Extension Logs from Startup - required
-
Open User Settings.
- On Windows/Linux - File > Preferences > Settings
- On macOS - Code > Preferences > Settings
-
Set
sftp.debugtotrueand reload vscode. -
Reproduce the problem, get the logs from View > Output > sftp. [05-08 10:05:55] [debug] register command “Cancel All Transfer” from “./commandCancelAllTransfer.ts” [05-08 10:05:55] [debug] register command “Config” from “./commandConfig.ts” [05-08 10:05:55] [debug] register command “List Active Folder” from “./commandListActiveFolder.ts” [05-08 10:05:55] [debug] register command “Open Ssh Connection” from “./commandOpenSshConnection.ts” [05-08 10:05:55] [debug] register command “Set Profile” from “./commandSetProfile.ts” [05-08 10:05:55] [debug] register command “Toggle Output Panel” from “./commandToggleOutputPanel.ts” [05-08 10:05:55] [debug] register command “Upload Changed Files” from “./commandUploadChangedFiles.ts” [05-08 10:05:55] [debug] register command “Delete Remote” from “./fileCommandDeleteRemote.ts” [05-08 10:05:55] [debug] register command “Diff” from “./fileCommandDiff.ts” [05-08 10:05:55] [debug] register command “Diff Active File” from “./fileCommandDiffActiveFile.ts” [05-08 10:05:55] [debug] register command “Download” from “./fileCommandDownload.ts” [05-08 10:05:55] [debug] register command “Download Active File” from “./fileCommandDownloadActiveFile.ts” [05-08 10:05:55] [debug] register command “Download Active Folder” from “./fileCommandDownloadActiveFolder.ts” [05-08 10:05:55] [debug] register command “Download File” from “./fileCommandDownloadFile.ts” [05-08 10:05:55] [debug] register command “Download Folder” from “./fileCommandDownloadFolder.ts” [05-08 10:05:55] [debug] register command “Download Force” from “./fileCommandDownloadForce.ts” [05-08 10:05:55] [debug] register command “Download Project” from “./fileCommandDownloadProject.ts” [05-08 10:05:55] [debug] register command “Edit In Local” from “./fileCommandEditInLocal.ts” [05-08 10:05:55] [debug] register command “List” from “./fileCommandList.ts” [05-08 10:05:55] [debug] register command “List All” from “./fileCommandListAll.ts” [05-08 10:05:55] [debug] register command “Reveal In Explorer” from “./fileCommandRevealInExplorer.ts” [05-08 10:05:55] [debug] register command “Reveal In Remote Explorer” from “./fileCommandRevealInRemoteExplorer.ts” [05-08 10:05:55] [debug] register command “Sync Both Directions” from “./fileCommandSyncBothDirections.ts” [05-08 10:05:55] [debug] register command “Sync Local To Remote” from “./fileCommandSyncLocalToRemote.ts” [05-08 10:05:55] [debug] register command “Sync Remote To Local” from “./fileCommandSyncRemoteToLocal.ts” [05-08 10:05:55] [debug] register command “Upload” from “./fileCommandUpload.ts” [05-08 10:05:55] [debug] register command “Upload Active File” from “./fileCommandUploadActiveFile.ts” [05-08 10:05:55] [debug] register command “Upload Active Folder” from “./fileCommandUploadActiveFolder.ts” [05-08 10:05:55] [debug] register command “Upload File” from “./fileCommandUploadFile.ts” [05-08 10:05:55] [debug] register command “Upload Folder” from “./fileCommandUploadFolder.ts” [05-08 10:05:55] [debug] register command “Upload Force” from “./fileCommandUploadForce.ts” [05-08 10:05:55] [debug] register command “Upload Project” from “./fileCommandUploadProject.ts” [05-08 10:05:55] [info] config at /Users/NikLever/Documents/videos/ThreeJS Game Dev/github {“remotePath”:“public_html/threejs-games-course/”,“uploadOnSave”:true,“downloadOnOpen”:false,“ignore”:[],“concurrency”:4,“protocol”:“sftp”,“connectTimeout”:10000,“interactiveAuth”:false,“secure”:false,“remoteTimeOffsetInHours”:0,“name”:“My Server”,“host”:“77.68.12.83”,“port”:22,“username”:““,“password”:””} [05-08 10:06:00] [warn] ENOENT: no such file or directory, open ‘/Users/NikLever/.ssh/config’ load /Users/NikLever/.ssh/config failed [05-08 10:06:22] [info] [file-save] /Users/NikLever/Documents/videos/ThreeJS Game Dev/github/start/lecture2_4/index.html [05-08 10:06:22] [trace] handle upload file for /Users/NikLever/Documents/videos/ThreeJS Game Dev/github/start/lecture2_4/index.html [05-08 10:06:22] [debug] Local ident: ‘SSH-2.0-ssh2js0.4.5’ [05-08 10:06:22] [debug] Client: Trying 77.68.12.83 on port 22 … [05-08 10:06:22] [debug] Client: Connected [05-08 10:06:22] [debug] Remote ident: ‘SSH-2.0-OpenSSH_7.6p1 Ubuntu-4ubuntu0.3’ [05-08 10:06:22] [debug] Outgoing: Writing KEXINIT [05-08 10:06:22] [debug] DEBUG: Comparing KEXINITs … [05-08 10:06:22] [debug] (local) KEX algorithms: ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1 [05-08 10:06:22] [debug] (remote) KEX algorithms: curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1 [05-08 10:06:22] [debug] KEX algorithm: ecdh-sha2-nistp256 [05-08 10:06:22] [debug] (local) Host key formats: ssh-ed25519,ssh-rsa,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521 [05-08 10:06:22] [debug] (remote) Host key formats: ssh-rsa,rsa-sha2-512,rsa-sha2-256,ecdsa-sha2-nistp256,ssh-ed25519 [05-08 10:06:22] [debug] Host key format: ssh-ed25519 [05-08 10:06:22] [debug] (local) Client->Server ciphers: aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm,aes128-gcm@openssh.com,aes256-gcm,aes256-gcm@openssh.com [05-08 10:06:22] [debug] (remote) Client->Server ciphers: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com [05-08 10:06:22] [debug] Client->Server Cipher: aes128-ctr [05-08 10:06:22] [debug] (local) Server->Client ciphers: aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm,aes128-gcm@openssh.com,aes256-gcm,aes256-gcm@openssh.com [05-08 10:06:22] [debug] (remote) Server->Client ciphers: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com [05-08 10:06:22] [debug] Server->Client Cipher: aes128-ctr [05-08 10:06:22] [debug] (local) Client->Server HMAC algorithms: hmac-sha2-256,hmac-sha2-512,hmac-sha1 [05-08 10:06:22] [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-08 10:06:22] [debug] Client->Server HMAC algorithm: hmac-sha2-256 [05-08 10:06:22] [debug] (local) Server->Client HMAC algorithms: hmac-sha2-256,hmac-sha2-512,hmac-sha1 [05-08 10:06:22] [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-08 10:06:22] [debug] Server->Client HMAC algorithm: hmac-sha2-256 [05-08 10:06:22] [debug] (local) Client->Server compression algorithms: none,zlib@openssh.com,zlib [05-08 10:06:22] [debug] (remote) Client->Server compression algorithms: none,zlib@openssh.com [05-08 10:06:22] [debug] Client->Server compression algorithm: none [05-08 10:06:22] [debug] (local) Server->Client compression algorithms: none,zlib@openssh.com,zlib [05-08 10:06:22] [debug] (remote) Server->Client compression algorithms: none,zlib@openssh.com [05-08 10:06:22] [debug] Server->Client compression algorithm: none [05-08 10:06:22] [debug] Outgoing: Writing KEXECDH_INIT [05-08 10:06:22] [debug] DEBUG: Checking host key format [05-08 10:06:22] [debug] DEBUG: Checking signature format [05-08 10:06:22] [debug] DEBUG: Verifying host fingerprint [05-08 10:06:22] [debug] DEBUG: Host accepted by default (no verification) [05-08 10:06:22] [debug] DEBUG: Verifying signature [05-08 10:06:22] [debug] Outgoing: Writing NEWKEYS [05-08 10:06:22] [debug] Outgoing: Writing SERVICE_REQUEST (ssh-userauth) [05-08 10:06:22] [debug] Outgoing: Writing USERAUTH_REQUEST (none) [05-08 10:06:22] [debug] Client: none auth failed [05-08 10:06:22] [debug] Outgoing: Writing USERAUTH_REQUEST (password) [05-08 10:06:22] [debug] Outgoing: Writing CHANNEL_OPEN (0, session) [05-08 10:06:22] [debug] Outgoing: Writing CHANNEL_REQUEST (0, subsystem: sftp) [05-08 10:06:22] [debug] Outgoing: Writing CHANNEL_DATA (0) [05-08 10:06:22] [debug] Outgoing: Writing MKDIR [05-08 10:06:22] [debug] Outgoing: Writing CHANNEL_DATA (0) [05-08 10:06:22] [debug] Outgoing: Writing LSTAT [05-08 10:06:22] [debug] Outgoing: Writing CHANNEL_DATA (0) [05-08 10:06:22] [debug] Outgoing: Writing OPEN [05-08 10:06:22] [debug] Outgoing: Writing CHANNEL_DATA (0) [05-08 10:06:22] [debug] Outgoing: Writing FSTAT [05-08 10:06:22] [debug] Outgoing: Writing CHANNEL_DATA (0) [05-08 10:06:22] [debug] Outgoing: Writing FSETSTAT [05-08 10:06:22] [debug] Outgoing: Writing CHANNEL_DATA (0) [05-08 10:06:22] [debug] Outgoing: Writing WRITE [05-08 10:06:22] [debug] Outgoing: Writing CHANNEL_DATA (0) [05-08 10:06:22] [debug] Outgoing: Writing CLOSE [05-08 10:06:22] [debug] Outgoing: Writing CHANNEL_DATA (0) [05-08 10:06:22] [debug] Outgoing: Writing FSETSTAT [05-08 10:06:22] [debug] Outgoing: Writing CHANNEL_DATA (0) [05-08 10:06:22] [warn] Can’t set modified time to the file because Failure [05-08 10:06:22] [debug] Outgoing: Writing CLOSE [05-08 10:06:22] [debug] Outgoing: Writing CHANNEL_DATA (0) [05-08 10:06:22] [error] Error: No such file at SFTPStream._transform (/Users/NikLever/.vscode/extensions/liximomo.sftp-1.12.9/node_modules/ssh2-streams/lib/sftp.js:412:27) at SFTPStream.Transform._read (internal/streams/transform.js:205:10) at SFTPStream._read (/Users/NikLever/.vscode/extensions/liximomo.sftp-1.12.9/node_modules/ssh2-streams/lib/sftp.js:183:15) at SFTPStream.Transform._write (internal/streams/transform.js:193:12) at writeOrBuffer (internal/streams/writable.js:358:12) at SFTPStream.Writable.write (internal/streams/writable.js:303:10) at Channel.ondata (internal/streams/readable.js:719:22) at Channel.emit (events.js:315:20) at addChunk (internal/streams/readable.js:309:12) at readableAddChunk (internal/streams/readable.js:284:9) at Channel.Readable.push (internal/streams/readable.js:223:10) at SSH2Stream.<anonymous> (/Users/NikLever/.vscode/extensions/liximomo.sftp-1.12.9/node_modules/ssh2/lib/Channel.js:167:15) at SSH2Stream.emit (events.js:315:20) at parsePacket (/Users/NikLever/.vscode/extensions/liximomo.sftp-1.12.9/node_modules/ssh2-streams/lib/ssh.js:3288:10) at SSH2Stream._transform (/Users/NikLever/.vscode/extensions/liximomo.sftp-1.12.9/node_modules/ssh2-streams/lib/ssh.js:694:13) at SSH2Stream.Transform._read (internal/streams/transform.js:205:10) at SSH2Stream._read (/Users/NikLever/.vscode/extensions/liximomo.sftp-1.12.9/node_modules/ssh2-streams/lib/ssh.js:253:15) at SSH2Stream.Transform._write (internal/streams/transform.js:193:12) at writeOrBuffer (internal/streams/writable.js:358:12) at SSH2Stream.Writable.write (internal/streams/writable.js:303:10) at Socket.ondata (internal/streams/readable.js:719:22) at Socket.emit (events.js:315:20) at addChunk (internal/streams/readable.js:309:12) at readableAddChunk (internal/streams/readable.js:284:9) at Socket.Readable.push (internal/streams/readable.js:223:10) at TCP.onStreamRead (internal/stream_base_commons.js:188:23) when local ➞ remote /Users/NikLever/Documents/videos/ThreeJS Game Dev/github/start/lecture2_4/index.html
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 24
I face the same problem after updating to version 1.56.0.
If we don’t hear from the maintainers by the end of the week I may look into forking this to a new repo and continuing development on it there. If I do so I will update this and also look into getting it onto VSCode. I really hate to abandon this for another one as I have been using this since I started using VSCode.
I’m with this guy. If this is never going to be resolved I need to start looking at alternatives rather than just never updating VSCode.
Is anyone even still maintaining this Repo? It seems like all updates stopped back in 2019. I know personally moving to a previous version of VSCode to make this one extention work doesn’t feel like a good choice. Any chances this will be fixed?
Same issue. Downgrading to 1.55 will solve the problem.
+1, vscode 1.56.0 。 it always report "NO such File " ,but it reallys upload success.