liximomo / vscode-sftp

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

Sync from Remote > Local not working #452

Open zenturacp opened 5 years ago

zenturacp commented 5 years ago

Do you read the FAQ?

Describe the bug When i want to download a remote project it just stops at random files and the dots are cycling saying remote > local filename.php

It downloads some random files the output / debug log just says [debug] Outgoing: Writing OPENDIR [debug] Outgoing: Writing CHANNEL_DATA (0) [debug] Outgoing: Writing OPENDIR [debug] Outgoing: Writing CHANNEL_DATA (0) [debug] Outgoing: Writing OPENDIR

And then suddenly data / download stops

To Reproduce Steps to reproduce the behavior: CTRL-ALT-P: SFTP: Download Project

Expected behavior Expecting the SFTP plugin to download the project

Screenshots image

Desktop (please complete the following information):

Extension Logs from Startup - required [debug] register command "Cancel All Transfer" from "./commandCancelAllTransfer.ts" [debug] register command "Config" from "./commandConfig.ts" [debug] register command "List Active Folder" from "./commandListActiveFolder.ts" [debug] register command "Open Ssh Connection" from "./commandOpenSshConnection.ts" [debug] register command "Set Profile" from "./commandSetProfile.ts" [debug] register command "Toggle Output Panel" from "./commandToggleOutputPanel.ts" [debug] register command "Upload Changed Files" from "./commandUploadChangedFiles.ts" [debug] register command "Delete Remote" from "./fileCommandDeleteRemote.ts" [debug] register command "Diff" from "./fileCommandDiff.ts" [debug] register command "Diff Active File" from "./fileCommandDiffActiveFile.ts" [debug] register command "Download" from "./fileCommandDownload.ts" [debug] register command "Download Active File" from "./fileCommandDownloadActiveFile.ts" [debug] register command "Download Active Folder" from "./fileCommandDownloadActiveFolder.ts" [debug] register command "Download File" from "./fileCommandDownloadFile.ts" [debug] register command "Download Folder" from "./fileCommandDownloadFolder.ts" [debug] register command "Download Force" from "./fileCommandDownloadForce.ts" [debug] register command "Download Project" from "./fileCommandDownloadProject.ts" [debug] register command "Edit In Local" from "./fileCommandEditInLocal.ts" [debug] register command "List" from "./fileCommandList.ts" [debug] register command "List All" from "./fileCommandListAll.ts" [debug] register command "Reveal In Explorer" from "./fileCommandRevealInExplorer.ts" [debug] register command "Reveal In Remote Explorer" from "./fileCommandRevealInRemoteExplorer.ts" [debug] register command "Sync Both Directions" from "./fileCommandSyncBothDirections.ts" [debug] register command "Sync Local To Remote" from "./fileCommandSyncLocalToRemote.ts" [debug] register command "Sync Remote To Local" from "./fileCommandSyncRemoteToLocal.ts" [debug] register command "Upload" from "./fileCommandUpload.ts" [debug] register command "Upload Active File" from "./fileCommandUploadActiveFile.ts" [debug] register command "Upload Active Folder" from "./fileCommandUploadActiveFolder.ts" [debug] register command "Upload File" from "./fileCommandUploadFile.ts" [debug] register command "Upload Folder" from "./fileCommandUploadFolder.ts" [debug] register command "Upload Force" from "./fileCommandUploadForce.ts" [debug] register command "Upload Project" from "./fileCommandUploadProject.ts" [warn] ENOENT: no such file or directory, open 'XXXXX.ssh\config' load XXXXX.ssh\config failed [info] config at XXXXX {"remotePath":"XXXXX","uploadOnSave":true,"downloadOnOpen":true,"ignore":["temp"],"concurrency":4,"protocol":"sftp","connectTimeout":10000,"interactiveAuth":false,"secure":false,"passive":false,"remoteTimeOffsetInHours":0,"port":22,"name":"XXXXX","host":"XXXXX","username":"**","password":"**","limitOpenFilesOnRemote":true} [trace] run command 'Download Project' [trace] handle download folder for XXXXX [debug] Local ident: 'SSH-2.0-ssh2js0.3.1' [debug] Client: Trying XXXXX on port 22 ... [debug] Client: Connected [debug] Remote ident: 'SSH-2.0-OpenSSH_7.4p1 Debian-10+deb9u3' [debug] Outgoing: Writing KEXINIT [debug] DEBUG: Comparing KEXINITs ... [debug] (local) KEX algorithms: ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1 [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 [debug] KEX algorithm: ecdh-sha2-nistp256 [debug] (local) Host key formats: ssh-rsa,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521 [debug] (remote) Host key formats: ssh-rsa,rsa-sha2-512,rsa-sha2-256,ecdsa-sha2-nistp256,ssh-ed25519 [debug] Host key format: ssh-rsa [debug] (local) Client->Server ciphers: aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm,aes128-gcm@openssh.com,aes256-gcm,aes256-gcm@openssh.com [debug] (remote) Client->Server ciphers: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com [debug] Client->Server Cipher: aes128-ctr [debug] (local) Server->Client ciphers: aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm,aes128-gcm@openssh.com,aes256-gcm,aes256-gcm@openssh.com [debug] (remote) Server->Client ciphers: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com [debug] Server->Client Cipher: aes128-ctr [debug] (local) Client->Server HMAC algorithms: hmac-sha2-256,hmac-sha2-512,hmac-sha1 [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 [debug] Client->Server HMAC algorithm: hmac-sha2-256 [debug] (local) Server->Client HMAC algorithms: hmac-sha2-256,hmac-sha2-512,hmac-sha1 [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 [debug] Server->Client HMAC algorithm: hmac-sha2-256 [debug] (local) Client->Server compression algorithms: none,zlib@openssh.com,zlib [debug] (remote) Client->Server compression algorithms: none,zlib@openssh.com [debug] Client->Server compression algorithm: none [debug] (local) Server->Client compression algorithms: none,zlib@openssh.com,zlib [debug] (remote) Server->Client compression algorithms: none,zlib@openssh.com [debug] Server->Client compression algorithm: none [debug] Outgoing: Writing KEXECDH_INIT [debug] DEBUG: Checking host key format [debug] DEBUG: Checking signature format [debug] DEBUG: Verifying host fingerprint [debug] DEBUG: Host accepted by default (no verification) [debug] DEBUG: Verifying signature [debug] Outgoing: Writing NEWKEYS [debug] Outgoing: Writing SERVICE_REQUEST (ssh-userauth) [debug] Outgoing: Writing USERAUTH_REQUEST (none) [debug] Client: none auth failed [debug] Outgoing: Writing USERAUTH_REQUEST (password) [debug] Outgoing: Writing CHANNEL_OPEN (0, session) [debug] Outgoing: Writing CHANNEL_REQUEST (0, subsystem: sftp) [debug] Outgoing: Writing CHANNEL_DATA (0) [debug] Outgoing: Writing LSTAT [debug] Outgoing: Writing CHANNEL_DATA (0) [debug] Outgoing: Writing OPENDIR [debug] Outgoing: Writing CHANNEL_DATA (0) [debug] Outgoing: Writing READDIR [debug] Outgoing: Writing CHANNEL_DATA (0) [debug] Outgoing: Writing READDIR [debug] Outgoing: Writing CHANNEL_DATA (0) [debug] Outgoing: Writing CLOSE [debug] Outgoing: Writing CHANNEL_DATA (0) [debug] Outgoing: Writing OPENDIR [debug] Outgoing: Writing CHANNEL_DATA (0)

zenturacp commented 5 years ago

Okay - guess maybe i already found a problem - the .git folder was not ignored and probably the cause for the issue - now it syncs

But why is this an issue?

liximomo commented 5 years ago

I have no ideas. 😔