liximomo / vscode-sftp

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

Failed Sync or Upload On Save from Local to Remote, Return 226 ABOR #812

Open rayhanadri opened 4 years ago

rayhanadri commented 4 years ago

Do you read the FAQ?

Describe the bug Cannot sync or upload from local to remote. I'm using uploadOnSave:true but can't upload files to remote, the logs shows after PASV "227 Entering Passive Mode" returns ABOR "226 Since you see this ABOR must've succeeded". After returned ABOR, every upload on save attempt stuck at trace [trace] handle upload file for e:\xampp

To Reproduce

{ "name": "SIMASJID BETA2", "host": "ftp.servername.com", "protocol": "ftp", "port": 21, "username": "rayhan@beta2.simasjid.my.id", "password": "xxxxx", "remotePath": "/", "uploadOnSave": true }

Expected behavior Expecting successful sync and save to remote server.

Desktop (please complete the following information):

Extension Logs from Startup - required

[08-12 22:41:03] [debug] register command "Cancel All Transfer" from "./commandCancelAllTransfer.ts" [08-12 22:41:03] [debug] register command "Config" from "./commandConfig.ts" [08-12 22:41:03] [debug] register command "List Active Folder" from "./commandListActiveFolder.ts" [08-12 22:41:03] [debug] register command "Open Ssh Connection" from "./commandOpenSshConnection.ts" [08-12 22:41:03] [debug] register command "Set Profile" from "./commandSetProfile.ts" [08-12 22:41:03] [debug] register command "Toggle Output Panel" from "./commandToggleOutputPanel.ts" [08-12 22:41:03] [debug] register command "Upload Changed Files" from "./commandUploadChangedFiles.ts" [08-12 22:41:03] [debug] register command "Delete Remote" from "./fileCommandDeleteRemote.ts" [08-12 22:41:03] [debug] register command "Diff" from "./fileCommandDiff.ts" [08-12 22:41:03] [debug] register command "Diff Active File" from "./fileCommandDiffActiveFile.ts" [08-12 22:41:03] [debug] register command "Download" from "./fileCommandDownload.ts" [08-12 22:41:03] [debug] register command "Download Active File" from "./fileCommandDownloadActiveFile.ts" [08-12 22:41:03] [debug] register command "Download Active Folder" from "./fileCommandDownloadActiveFolder.ts" [08-12 22:41:03] [debug] register command "Download File" from "./fileCommandDownloadFile.ts" [08-12 22:41:03] [debug] register command "Download Folder" from "./fileCommandDownloadFolder.ts" [08-12 22:41:03] [debug] register command "Download Force" from "./fileCommandDownloadForce.ts" [08-12 22:41:03] [debug] register command "Download Project" from "./fileCommandDownloadProject.ts" [08-12 22:41:03] [debug] register command "Edit In Local" from "./fileCommandEditInLocal.ts" [08-12 22:41:03] [debug] register command "List" from "./fileCommandList.ts" [08-12 22:41:03] [debug] register command "List All" from "./fileCommandListAll.ts" [08-12 22:41:03] [debug] register command "Reveal In Explorer" from "./fileCommandRevealInExplorer.ts" [08-12 22:41:03] [debug] register command "Reveal In Remote Explorer" from "./fileCommandRevealInRemoteExplorer.ts" [08-12 22:41:03] [debug] register command "Sync Both Directions" from "./fileCommandSyncBothDirections.ts" [08-12 22:41:03] [debug] register command "Sync Local To Remote" from "./fileCommandSyncLocalToRemote.ts" [08-12 22:41:03] [debug] register command "Sync Remote To Local" from "./fileCommandSyncRemoteToLocal.ts" [08-12 22:41:03] [debug] register command "Upload" from "./fileCommandUpload.ts" [08-12 22:41:03] [debug] register command "Upload Active File" from "./fileCommandUploadActiveFile.ts" [08-12 22:41:03] [debug] register command "Upload Active Folder" from "./fileCommandUploadActiveFolder.ts" [08-12 22:41:03] [debug] register command "Upload File" from "./fileCommandUploadFile.ts" [08-12 22:41:03] [debug] register command "Upload Folder" from "./fileCommandUploadFolder.ts" [08-12 22:41:03] [debug] register command "Upload Force" from "./fileCommandUploadForce.ts" [08-12 22:41:03] [debug] register command "Upload Project" from "./fileCommandUploadProject.ts" [08-12 22:41:05] [info] config at e:\xampp\htdocs\beta2.simasjid.my.id {"remotePath":"/","uploadOnSave":true,"downloadOnOpen":false,"ignore":[],"concurrency":4,"protocol":"ftp","connectTimeout":10000,"interactiveAuth":false,"secure":false,"remoteTimeOffsetInHours":0,"name":"SIMASJID BETA2","host":"ftp.erudesu.com","port":21,"username":"**","password":"**"} [08-12 22:41:17] [trace] run command 'Sync Local To Remote' [08-12 22:41:18] [trace] handle sync local ➞ remote for e:\xampp\htdocs\beta2.simasjid.my.id [08-12 22:41:18] [debug] > USER rayhan@beta2.simasjid.my.id [08-12 22:41:18] [debug] < '331 User rayhan@beta2.simasjid.my.id OK. Password required\r\n' [08-12 22:41:18] [debug] > PASS ** [08-12 22:41:18] [debug] < '230 OK. Current restricted directory is /\r\n' [08-12 22:41:18] [debug] > FEAT [08-12 22:41:19] [debug] > TYPE I [08-12 22:41:19] [debug] < '200 TYPE is now 8-bit binary\r\n' [08-12 22:41:19] [debug] > PASV [08-12 22:41:19] [debug] < '227 Entering Passive Mode (103,251,44,209,233,139)\r\n' [08-12 22:41:29] [debug] > ABOR [08-12 22:41:29] [debug] < "226 Since you see this ABOR must've succeeded\r\n"

[08-12 22:42:15] [info] [file-save] e:\xampp\htdocs\beta2.simasjid.my.id\app\Http\Controllers\Aset\AsetController.php [08-12 22:42:15] [trace] handle upload file for e:\xampp\htdocs\beta2.simasjid.my.id\app\Http\Controllers\Aset\AsetController.php [08-12 22:42:16] [debug] > USER rayhan@beta2.simasjid.my.id [08-12 22:42:16] [debug] < '331 User rayhan@beta2.simasjid.my.id OK. Password required\r\n' [08-12 22:42:16] [debug] > PASS ** [08-12 22:42:16] [debug] < '230 OK. Current restricted directory is /\r\n' [08-12 22:42:16] [debug] > FEAT [08-12 22:42:16] [debug] > TYPE I [08-12 22:42:16] [debug] < '200 TYPE is now 8-bit binary\r\n' [08-12 22:42:16] [debug] > PASV [08-12 22:42:16] [debug] < '227 Entering Passive Mode (103,251,44,209,223,178)\r\n' [08-12 22:42:16] [debug] > LIST /app/Http/Controllers [08-12 22:42:16] [debug] < '150 Accepted data connection\r\n' [08-12 22:42:16] [debug] < '226-Options: -a -l \r\n226 10 matches total\r\n' [08-12 22:42:16] [debug] > PASV [08-12 22:42:16] [debug] < '227 Entering Passive Mode (103,251,44,209,232,180)\r\n' [08-12 22:42:26] [debug] > ABOR [08-12 22:42:26] [debug] < "226 Since you see this ABOR must've succeeded\r\n" [08-12 22:44:15] [info] [file-save] e:\xampp\htdocs\beta2.simasjid.my.id\app\Http\Controllers\Aset\AsetController.php [08-12 22:44:15] [trace] handle upload file for e:\xampp\htdocs\beta2.simasjid.my.id\app\Http\Controllers\Aset\AsetController.php