Natizyskunk / vscode-sftp

Super fast sftp/ftp extension for VS Code
Other
394 stars 75 forks source link

Upload files in VS Code not working - Status "done" but files are not replaced on the remote websites #333

Open Wolfff81 opened 1 year ago

Wolfff81 commented 1 year ago

When I locally save the files, sftp starts and seems it connects to the server, since in the bottom bar of VS I see "done", but the files are not replaced on the web. If I do that for instance with Sublime Text, so using the same ftp data, it works, so it's not because of my server, in fact also Filezilla and Transmit work. I tried also with other ftp extensions in VS Code and they do not work. In the past a couple of weeks ago it worked. I tried to use also some older VS Code versions.

This is happening also with other websites I manage.

VS Code Version: 1.76.2 MacOS Big Sur 11.7.3 (20G1116)

My log when I save a file from local to remote:

[03-22 11:24:41] [info] [file-save] /Users/...../MyPHPfile.php
[03-22 11:24:41] [trace] handle upload file for /Users/..../MyPHPfile.php
[03-22 11:24:41] [debug] Outbound: Sending CHANNEL_DATA (r:0, 94)
[03-22 11:24:41] [debug] SFTP: Outbound: Buffered MKDIR
[03-22 11:24:41] [debug] Inbound: CHANNEL_DATA (r:0, 28)
[03-22 11:24:41] [debug] SFTP: Inbound: Received STATUS (id:16, 4, "Failure")
[03-22 11:24:41] [debug] Outbound: Sending CHANNEL_DATA (r:0, 90)
[03-22 11:24:41] [debug] SFTP: Outbound: Buffered LSTAT
[03-22 11:24:41] [debug] Inbound: CHANNEL_DATA (r:0, 41)
[03-22 11:24:41] [debug] SFTP: Inbound: Received ATTRS (id:17)
[03-22 11:24:41] [debug] Outbound: Sending CHANNEL_DATA (r:0, 114)
[03-22 11:24:41] [debug] SFTP: Outbound: Buffered OPEN
[03-22 11:24:41] [debug] Inbound: CHANNEL_DATA (r:0, 17)
[03-22 11:24:41] [debug] SFTP: Inbound: Received HANDLE (id:18)
[03-22 11:24:41] [debug] Outbound: Sending CHANNEL_DATA (r:0, 17)
[03-22 11:24:41] [debug] SFTP: Outbound: Buffered FSTAT
[03-22 11:24:41] [debug] Inbound: CHANNEL_DATA (r:0, 41)
[03-22 11:24:41] [debug] SFTP: Inbound: Received ATTRS (id:19)
[03-22 11:24:41] [debug] Outbound: Sending CHANNEL_DATA (r:0, 25)
[03-22 11:24:41] [debug] SFTP: Outbound: Buffered FSETSTAT
[03-22 11:24:41] [debug] Inbound: CHANNEL_DATA (r:0, 28)
[03-22 11:24:41] [debug] SFTP: Inbound: Received STATUS (id:20, 0, "Success")
[03-22 11:24:41] [debug] Outbound: Sending CHANNEL_DATA (r:0, 7886)
[03-22 11:24:41] [debug] SFTP: Outbound: Sent WRITE (id:21)
[03-22 11:24:41] [debug] Inbound: CHANNEL_DATA (r:0, 28)
[03-22 11:24:41] [debug] SFTP: Inbound: Received STATUS (id:21, 0, "Success")
[03-22 11:24:41] [debug] Outbound: Sending CHANNEL_DATA (r:0, 29)
[03-22 11:24:41] [debug] SFTP: Outbound: Buffered FSETSTAT
[03-22 11:24:41] [debug] Inbound: CHANNEL_DATA (r:0, 28)
[03-22 11:24:41] [debug] SFTP: Inbound: Received STATUS (id:22, 0, "Success")
[03-22 11:24:41] [debug] Outbound: Sending CHANNEL_DATA (r:0, 17)
[03-22 11:24:41] [debug] SFTP: Outbound: Buffered CLOSE
[03-22 11:24:41] [debug] Inbound: CHANNEL_DATA (r:0, 28)
[03-22 11:24:41] [debug] SFTP: Inbound: Received STATUS (id:23, 0, "Success")
[03-22 11:24:41] [info] local ➞ remote /Users/.../MyPHPfile.php
[03-22 11:24:49] [debug] Outbound: Sending ping (GLOBAL_REQUEST: keepalive@openssh.com)
[03-22 11:24:49] [debug] Inbound: Received REQUEST_FAILURE
{
  "name": "......",
  "protocol": "sftp",
  "port": 22,
  "uploadOnSave": true,
  "username": "......",
  "password": "......",
  "host": "......",
  "remotePath": "/var/www/vhosts/....../public_html/",
  "syncMode": "full",
  "secure": true, "secureOptions": { "rejectUnauthorized": false },
  "connectTimeout": 200000,
  "watcher": {
      "files": "**/*",
      "autoUpload": false,
      "autoDelete": false
  },
  "ignore": [".vscode", ".git", ".DS_Store"],
  "syncOption": {
    "delete": true
  }
}

I hope you can help me to find and solve this issue. I'm stuck and I don't know what to do.

Thank you