vscode-ftp-sync icon indicating copy to clipboard operation
vscode-ftp-sync copied to clipboard

Sync prepare in progress... nothing happens

Open smorhaim opened this issue 8 years ago • 19 comments

I set up the sftp settings as shown below, started a Remote to Local Sync... nothing happens. The message Sync prepare in progress... shows below, but nothing gets synced. It is a very small remote folder with 10 small files. The RSA key does work, since it is the same key I use for all my SSH and other apps.

(Using RSA key , replaced some values for privacy) Settings

{
    "remotePath": "./path...",
    "host": "ip...",
    "username": "user...",
    "password": "",
    "port": 22,
    "protocol": "sftp",
    "uploadOnSave": true,
    "passive": false,
    "debug": false,
    "privateKeyPath": "/path/to/my/key",
    "ignore": [
        "\\.vscode",
        "\\.git"
    ]
}

image

smorhaim avatar Mar 04 '16 14:03 smorhaim

That is the same behavior I was getting. I assumed it was due to the RSA key. https://github.com/lukasz-wronski/vscode-ftp-sync/issues/35

mattrat avatar Mar 04 '16 16:03 mattrat

I am sure the key works, has no passphrase and it has the right permissions. It has to be some bug.

smorhaim avatar Mar 04 '16 17:03 smorhaim

I got the same with a small error in my config file, perhaps there is a console where more logging can be shown?

jakenuts avatar Mar 22 '16 13:03 jakenuts

I am having same problem. I am running on a MAC with OS X El Capitan.

And there is a console - Menubar > Help > Toggle Developer Tools, Console Window shows:

[Plugin Host] Error: Encrypted private key detected, but no passphrase given at Client.connect (/Users/tbjerstedt/.vscode/extensions/lukasz-wronski.ftp-sync-0.3.1/node_modules/ssh2/lib/client.js:151:15) at self.connect (/Users/tbjerstedt/.vscode/extensions/lukasz-wronski.ftp-sync-0.3.1/modules/sftp-wrapper.js:19:16) at connect (/Users/tbjerstedt/.vscode/extensions/lukasz-wronski.ftp-sync-0.3.1/modules/sync-helper.js:175:7) at Object.prepareSync (/Users/tbjerstedt/.vscode/extensions/lukasz-wronski.ftp-sync-0.3.1/modules/sync-helper.js:198:2) at prepareSync (/Users/tbjerstedt/.vscode/extensions/lukasz-wronski.ftp-sync-0.3.1/modules/sync-command.js:53:19) at /Users/tbjerstedt/.vscode/extensions/lukasz-wronski.ftp-sync-0.3.1/modules/sync-command.js:111:4 at Object.p [as _notify](/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/pluginHostProcess.js:5:11292) at Object.__dirname.undefined.L.enter (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/pluginHostProcess.js:5:14454) at __dirname.undefined.t.Class.define._run (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/pluginHostProcess.js:5:16280) at __dirname.undefined.t.Class.define._completed (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/pluginHostProcess.js:5:15721)

If I run SFTP from the shell, it is able to connect.

tbjerstedt-hol avatar Apr 05 '16 03:04 tbjerstedt-hol

I too am having the same problem. I'm not evening using a key and it's still having the problem. :(

ghost avatar Apr 07 '16 04:04 ghost

Same here. Any news/help about this problem? :(

abrahamaranda avatar Apr 08 '16 00:04 abrahamaranda

Same

ghost avatar Apr 22 '16 14:04 ghost

same issue here

dadagama avatar Apr 26 '16 18:04 dadagama

Having the same issue while syncing remote to local on a pretty small directory. I see the message "Ftp-sync: sync prepare in progress..." for a long time and the remote contents don't appear in the explorer sidebar.

mdiaATarinc avatar May 04 '16 17:05 mdiaATarinc

When my internet connection was corrupted for a while (3G throttling or some else) I have same issue. Seems like there is no command to abort preparing (like a timeout option or a special command in console). So, i just restart VS Code for resolving the issue.

It happens not often, only when server is not responding.

b9sk avatar May 30 '16 19:05 b9sk

Having the same issue from time to time :( Any fixes?

Edit: problem resolved.

My host was ftp.domain.com, but upon redirecting my domain name it was no longer hitting the domain name of my target server. Switched to my server host given to me by my hosting provider and it synced up straight away.

tl;dr check your config

elilambnz avatar Jun 11 '16 10:06 elilambnz

Same issue here.. Anything changes?

I'm using same SFTP settings (privateKey and passphrase) like I was used in remote-sync plugin for Atom. Also I have no problem with login to my server through SSH.

I think this is quite important issue.. Right now my config looks like this:

{
    "remotePath": "/var/www/path/to/public_html",
    "host": "192.168.1.12",
    "username": "Username",
    "port": 1234,
    "secure": false,
    "protocol": "sftp",
    "uploadOnSave": true,
    "passive": false,
    "debug": false,
    "privateKeyPath": "/path/to/.ssh/id_dsa",
    "passphrase": "passToTheKey",
    "ignore": [
        "\\.vscode",
        "\\.git",
        ".DS_Store",
        "Thumbs.db",
        ".sublime-(project|workspace)",
        "sftp-config(-alt\\d?)?\\.json",
        "sftp-settings.json",
        ".remote-sync.json",
        "/venv/**",
        ".svn",
        ".hg/**",
        ".bzr",
        "_darcs",
        "CVS",
        "desktop.ini",
        "tmp",
        "log",
        "**/node_modules/**",
        "Oldskel/**",
        "**/vendors/**",
        ".tmp/**",
        "\\.idea"
    ],
    "generatedFiles": {
        "uploadOnSave": false,
        "extensionsToInclude": [],
        "path": ""
    }
}

skrzepij avatar Jul 27 '17 20:07 skrzepij

I have moved on to ftp-simple since. It has been working great for me.

mohitdia avatar Jul 27 '17 20:07 mohitdia

Ok in my case the problem occurred due to properties in ignore array. You cannot use double * symbol.

So i had to change my ignore file list:

      "\\.vscode",
      "\\.git",
      "\\.DS_Store",
      "\\.sublime-(project|workspace)",
      "sftp-config(-alt\\d?)?\\.json",
      "sftp-settings.json",
      "/venv/*",
      ".svn",
      ".hg/*",
      ".bzr",
      "_darcs",
      "CVS",
      ".DS_Store",
      "Thumbs.db",
      "desktop.ini",
      ".samsung-cache",
      "tmp",
      "log",
      "node_modules",
      "Oldskel",
      "vendors",
      ".remote-sync.json",
      ".tmp",
      ".idea"

And for now it's working, even with uploadOnSave option turned on.

But I think there should be shown some error, because I had no clue this can be caused of my config file structure.

skrzepij avatar Jul 28 '17 08:07 skrzepij

Can anyone confirm that the above solution works?

meichthys avatar Sep 09 '17 15:09 meichthys

Yeah I had the same issue. It was due to a * in my config ignore list. As soon as I removed it, syncing started working again.

blakemotl avatar Oct 26 '17 05:10 blakemotl

You just need to use [".csv"] to ignore a specific file type here. The solution above worked for me too.

parinpshah94 avatar Feb 07 '19 17:02 parinpshah94

@lukasz-wronski I believe we can close this issue!

meichthys avatar Feb 07 '19 18:02 meichthys

It's still happening, I tested without ** and what @parinpshah94 and doesn't work

Vincetroid avatar Dec 06 '21 02:12 Vincetroid