ksync: Error in "ksync create" on windows

when i am running:

ksync create --selector=app=app $(pwd)\ksync /code

i am getting this error:

FATA[0000] remote path must be absolute i thinks because i am running on windows ksync does not recognize /code as a valid path…

so to overcome this i ran this command:

ksync create --selector=app=app $(pwd)\ksync c:\code and it worked!

but now i needed to change the remotepath key manually in the ksync.yaml file to:

...
localpath: C:\ksync
remotepath: **/code** (from c:\code)
...

after the change i saw syncthing logged the change i made in the ksync.yaml file and it’s also create a log every time i make a change in the C:\ksync directory, but it doesn’t sync the /code directory… i also tried to do ksync get , but still the folders haven’t synced.

any idea how to make the folder to sync, maybe i need to modify the remotepath key differently?

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 21

Most upvoted comments

I tried with ksync version 0.3.5, but I’m getting a similar problem.

With single quotes around local path:

$ ksync create --name my-app --namespace default -l app=my-app --reload=false --force C:\Users\pieter\minikube\sources\my-app /var/www/app
time="2019-03-12T17:30:01+01:00" level=fatal msg="local path must be absolute"

Without single quotes around local path:

$ ksync create --name my-app --namespace default -l app=my-app --reload=false --force 'C:\Users\pieter\minikube\sources\my-app' /var/www/app
time="2019-03-12T17:30:12+01:00" level=fatal msg="remote path must be absolute"

Is there some kind of regression?