liximomo / vscode-sftp

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

Determine why connection fails #849

Open karenpayneoregon opened 3 years ago

karenpayneoregon commented 3 years ago

Do you read the FAQ?

Describe the bug This is not a bug nor a feature request. We have two separate servers, the first connects fine while the second times out. My question is: Is there a way to diagnose why there is a timeout? I suspect it's a permission issue but that is just a guess and wonder how to figure out if it's permissions or not.

BTW This extension so far, zero issues for me other than the above question. Thanks for creating this extension!!!

To Reproduce Steps to reproduce the behavior:

  1. Make a change to a file
  2. Press Ctrl + S
  3. Selected file is uploaded to remote path

Expected behavior Press Press Ctrl + S and file is uploaded to remote path.

Screenshots N/A

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.

[11-02 15:08:43] [info] [file-save] c:\OED\WebProjects\headfoot__IMPORTANT_NOTE.TXT [11-02 15:08:44] [trace] handle upload file for c:\OED\WebProjects\headfoot__IMPORTANT_NOTE.TXT [11-02 15:08:44] [debug] < '220-FileZilla Server 0.9.60 beta\r\n220 You are on wdoedwebl04\r\n' [11-02 15:08:44] [debug] > USER * (Karen starred this) [11-02 15:08:44] [debug] < '331 Password required for cfdev\r\n' [11-02 15:08:44] [debug] > PASS **** [11-02 15:08:44] [debug] < '230 Logged on\r\n' [11-02 15:08:44] [debug] > FEAT [11-02 15:08:44] [debug] > TYPE I [11-02 15:08:44] [debug] < '200 Type set to I\r\n' [11-02 15:08:44] [debug] > PASV [11-02 15:08:44] [debug] < '227 Entering Passive Mode (10,1,46,87,226,121)\r\n' [11-02 15:08:54] [debug] > ABOR [11-02 15:08:54] [debug] < '226 ABOR command successful\r\n'

[11-02 15:16:03] [debug] register command "Cancel All Transfer" from "./commandCancelAllTransfer.ts" [11-02 15:16:03] [debug] register command "Config" from "./commandConfig.ts" [11-02 15:16:03] [debug] register command "List Active Folder" from "./commandListActiveFolder.ts" [11-02 15:16:03] [debug] register command "Open Ssh Connection" from "./commandOpenSshConnection.ts" [11-02 15:16:03] [debug] register command "Set Profile" from "./commandSetProfile.ts" [11-02 15:16:03] [debug] register command "Toggle Output Panel" from "./commandToggleOutputPanel.ts" [11-02 15:16:03] [debug] register command "Upload Changed Files" from "./commandUploadChangedFiles.ts" [11-02 15:16:03] [debug] register command "Delete Remote" from "./fileCommandDeleteRemote.ts" [11-02 15:16:03] [debug] register command "Diff" from "./fileCommandDiff.ts" [11-02 15:16:03] [debug] register command "Diff Active File" from "./fileCommandDiffActiveFile.ts" [11-02 15:16:03] [debug] register command "Download" from "./fileCommandDownload.ts" [11-02 15:16:03] [debug] register command "Download Active File" from "./fileCommandDownloadActiveFile.ts" [11-02 15:16:03] [debug] register command "Download Active Folder" from "./fileCommandDownloadActiveFolder.ts" [11-02 15:16:03] [debug] register command "Download File" from "./fileCommandDownloadFile.ts" [11-02 15:16:03] [debug] register command "Download Folder" from "./fileCommandDownloadFolder.ts" [11-02 15:16:03] [debug] register command "Download Force" from "./fileCommandDownloadForce.ts" [11-02 15:16:03] [debug] register command "Download Project" from "./fileCommandDownloadProject.ts" [11-02 15:16:03] [debug] register command "Edit In Local" from "./fileCommandEditInLocal.ts" [11-02 15:16:03] [debug] register command "List" from "./fileCommandList.ts" [11-02 15:16:03] [debug] register command "List All" from "./fileCommandListAll.ts" [11-02 15:16:03] [debug] register command "Reveal In Explorer" from "./fileCommandRevealInExplorer.ts" [11-02 15:16:03] [debug] register command "Reveal In Remote Explorer" from "./fileCommandRevealInRemoteExplorer.ts" [11-02 15:16:03] [debug] register command "Sync Both Directions" from "./fileCommandSyncBothDirections.ts" [11-02 15:16:03] [debug] register command "Sync Local To Remote" from "./fileCommandSyncLocalToRemote.ts" [11-02 15:16:03] [debug] register command "Sync Remote To Local" from "./fileCommandSyncRemoteToLocal.ts" [11-02 15:16:03] [debug] register command "Upload" from "./fileCommandUpload.ts" [11-02 15:16:03] [debug] register command "Upload Active File" from "./fileCommandUploadActiveFile.ts" [11-02 15:16:03] [debug] register command "Upload Active Folder" from "./fileCommandUploadActiveFolder.ts" [11-02 15:16:03] [debug] register command "Upload File" from "./fileCommandUploadFile.ts" [11-02 15:16:03] [debug] register command "Upload Folder" from "./fileCommandUploadFolder.ts" [11-02 15:16:03] [debug] register command "Upload Force" from "./fileCommandUploadForce.ts" [11-02 15:16:03] [debug] register command "Upload Project" from "./fileCommandUploadProject.ts" [11-02 15:16:03] [info] config at c:\OED\WebProjects\headfoot {"remotePath":"//test/karen/testme1/","uploadOnSave":true,"downloadOnOpen":false,"ignore":[],"concurrency":4,"protocol":"ftp","connectTimeout":10000,"interactiveAuth":false,"secure":false,"remoteTimeOffsetInHours":0,"name":"Test","host":"XXXXXX","port":21,"username":"**","password":"**"} [11-02 15:16:26] [info] [file-save] c:\OED\WebProjects\headfoot__IMPORTANT_NOTE.TXT [11-02 15:16:26] [trace] handle upload file for c:\OED\WebProjects\headfoot__IMPORTANT_NOTE.TXT [11-02 15:16:26] [debug] < '220-FileZilla Server 0.9.60 beta\r\n220 You are on **\r\n' (Karen redacted) [11-02 15:16:26] [debug] > USER [11-02 15:16:26] [debug] < '331 Password required for \r\n' [11-02 15:16:26] [debug] > PASS ** [11-02 15:16:26] [debug] < '230 Logged on\r\n' [11-02 15:16:26] [debug] > FEAT [11-02 15:16:27] [debug] > TYPE I [11-02 15:16:27] [debug] < '200 Type set to I\r\n' [11-02 15:16:27] [debug] > PASV [11-02 15:16:27] [debug] < '227 Entering Passive Mode (10,1,46,87,233,250)\r\n' [11-02 15:16:37] [debug] > ABOR [11-02 15:16:37] [debug] < '226 ABOR command successful\r\n'

Ben-Voris commented 3 years ago

I'm new to this extension, but I don't see an error in the log display. Is it there and I'm missing it, or is part of the problem that no error is logged?

Also, do other FTP clients have the same problem at the same time?

Does the second connection ever work?

ghost commented 3 years ago

@Ben-Voris I don't see any errors being logged either. I'll look into reproducing this issue.