liximomo / vscode-sftp

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

Upload no longer working after VSCode update #925

Closed NikLever closed 3 years ago

NikLever commented 3 years ago

Do you read the FAQ?

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

Screenshot 2021-05-07 at 11 27 39

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. [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. (/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
xhniu commented 3 years ago

I face the same problem after updating to version 1.56.0.

jruns commented 3 years ago

Thank you for pointing this out. I noticed SFTP upload stopped working and wasn't sure why. I was able to install the previous VS Code update here and that got it working again for now: https://code.visualstudio.com/updates/v1_55

Of course that's a temporary fix and I'm curious what the cause of the problem is.

GoekhanDev commented 3 years ago

Experiencing the same issue :/

patrickjvieira commented 3 years ago

@jruns look https://github.com/aeschli/vscode-css-formatter/issues/20

arvislacis commented 3 years ago

Duplicate of https://github.com/liximomo/vscode-sftp/issues/919 - temporary fix can be found in that issue

ludovic-lambert commented 3 years ago

Facing same issue. Very annoying.

Im-Jinsu commented 3 years ago

Same issue has already been reported.
I had to downgrade vscode to version 1.55.2 😢

Dreamupers commented 3 years ago

The same issue has already been reported. vscode 1.56.0

matthewjschultz commented 3 years ago

+1

1suming commented 3 years ago

+1, vscode 1.56.0 。 it always report "NO such File " ,but it reallys upload success.

1suming commented 3 years ago

Very annoying Problem

C0ldstudy commented 3 years ago

Same issue. Downgrading to 1.55 will solve the problem.

suqingdong commented 3 years ago

Same issue. Downgrading to 1.55 will solve the problem.

it works!

mathiasdb commented 3 years ago

+1

fajriwip commented 3 years ago

mine, it only show an error but it still work

StevenDStanton commented 3 years ago

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?

speiffer829 commented 3 years ago

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?

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.

StevenDStanton commented 3 years ago

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.

oneilonline commented 3 years ago

FYI This is a duplicate of #919

Epizefiri commented 3 years ago

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.

Yes, please. I use this extension on all my projects, and I didn't find any similar alternative.

Green-li commented 3 years ago

This is a duplicate of #919. And the solution is in this comment posted by @phuze in https://github.com/liximomo/vscode-sftp/issues/919#issuecomment-836005639_

jewettg commented 3 years ago

POSTED TO Stack Overflow: https://stackoverflow.com/questions/67506693/vscode-error-no-such-file-sftp-liximomo-extension/67524099#67524099

See post in Issue #934.

Ben-Voris commented 3 years ago

This appears to be a duplicate of issue SFTP error upload no such file after update VS code 1.56.0 #919. Since the plugin appears to have been abandoned by the author (and also note the lack of response) only the opener can close this issue. So, please, @NikLever, would you close this issue?

NikLever commented 3 years ago

This appears to be a duplicate of issue SFTP error upload no such file after update VS code 1.56.0 #919. Since the plugin appears to have been abandoned by the author