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

Ftp-sync sync error: Error: No such file

Open dfowler7437 opened this issue 8 years ago • 12 comments

I really have no clue what's wrong here. Using protocol sftp...

I looked at the output windows and find that there are a dozen, maybe one for each time I tried something? In the windows I see "[sync-helper] listRemoteFiles" so maybe the remote list is failing.

I tried using the wrong username and got a different message so I assume it's able to log in.

I have confirmed the user and password using a separate sftp tool.

So I see two possible bugs here.
The error message should be more specific, what file is it not finding? The output windows should not stack up.

I have no idea how to proceed at this point.

dfowler7437 avatar Jul 12 '16 02:07 dfowler7437

I am getting the exact same error and the same results in the output window. The path I specified for remotePath does indeed exist on the server. Has there been an update on this?

Thanks!

ghost avatar Dec 02 '16 22:12 ghost

The lack of console logs for this gave me cancer.

acdemiralp avatar Dec 31 '16 09:12 acdemiralp

If anyone is still having trouble with this, it is likely a permissions error on the server. Try changing the permissions to writable.

aparrett avatar Oct 14 '17 02:10 aparrett

After I change permission in my server, this problem is same. There is Anyone solved this problem?

CreatiCoding avatar Mar 30 '18 01:03 CreatiCoding

I have the same issue. Works fine in CyberDuck with seemingly the same config. What's up here?

Sometimes the error pop-up appears and sometimes it doesn't. Never uploads. screen shot 2018-04-27 at 9 35 30 am

CryptoZenMaster avatar Apr 27 '18 16:04 CryptoZenMaster

my solution is to add "/" at the end of the RemotePath, and it started working

hong-cai avatar May 30 '18 02:05 hong-cai

hi,I met the same problem remotePath is './' and '/' but it not work, I believe my config is true, and then i change permissions in server ,but still not work,why?? QAQ please help me image

OctupleSakura avatar Oct 10 '18 03:10 OctupleSakura

sorry,i found my mistake my path is not the same as the server's path if your permissions and other config is true,double check your path maybe upload directory name not the same as the server's directory name

OctupleSakura avatar Oct 10 '18 04:10 OctupleSakura

I run the pwd command on raspberry to know exactly the path to my folder and then I realize that the path starts with "/home" instead of "./home". It is the answer for the Error:No such file

PnMagalhaes avatar May 28 '19 00:05 PnMagalhaes

Please close issue, it is only due to bad path naming. Check if you are directing from root with "remotePath": '/' instead of "remotePath": './'. Adding slash in the end may help too.

sookah avatar Jul 12 '19 11:07 sookah

I also have had this issue. The only fix for my problem was to completely delete everything on the remote project, and do a clean full sync and it worked after that. I have no idea why it worked, but all I know is it had nothing to do with my config file.

XALM1337X avatar Sep 03 '20 17:09 XALM1337X

This issue appeared for me after I had mistakenly created a file called "js" when I meant to create a directory called "js". After fixing this issue locally, the file to directory change wouldn't write to the server, and I saw this error for all changes saved to files within the "js" directory.

danielshawellis avatar Feb 16 '21 01:02 danielshawellis