Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escaping: Escape characters +-&|!(){}[]^"~*?:\ with \, e.g. \+
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Answered
Is It Possible To Disable Vcs-Cache? I Tried To Change Value From True To False In The Trains.Conf, But It Does Not Affect Anything. I Want To Disable It, Because It Gives Error When I Run A Project Firstly On Docker Then On Venv.

Is it possible to disable vcs-cache? I tried to change value from true to false in the trains.conf, but it does not affect anything. I want to disable it, because it gives error when I run a project firstly on docker then on venv.

  
  
Posted 4 years ago
Votes Newest

Answers 10


fatal: destination path '/home/dogukan/.trains/vcs-cache/pre-post-script-repo.git.35f82b395021c8e6afef186fafa662cc/pre-post-script-repo.git' already exists and is not an empty directory. Repository cloning failed: Command '['clone', 'git@192.168.1.230:dogukan/pre-post-script-repo.git', '/home/dogukan/.trains/vcs-cache/pre-post-script-repo.git.35f82b395021c8e6afef186fafa662cc/pre-post-script-repo.git', '--quiet', '--recursive']' returned non-zero exit status 128. Cannot find output file

  
  
Posted 4 years ago

If I delete this folder that is in ~/.trains/vcs-cache directory, it fixes the problem

  
  
Posted 4 years ago

Yap, this should solve the issue. Let me check the causing of it

  
  
Posted 4 years ago

So, is there any trick to fix this issue?

  
  
Posted 4 years ago

MysteriousBee56
Well we don't want to ask sudo permission automatically, and usually setups do no change, but you can diffidently call this one before running the agent 😉
sudo chmod 777 -R ~/.trains/

  
  
Posted 4 years ago

Hi MysteriousBee56 ,
Yes this is permissions issue, the docker creates all folders as root (as it is the root user running inside the docker), Then when you execute in venv mode, you are running it from your user, which obviously cannot change root created folders.

  
  
Posted 4 years ago

Hi TimelyPenguin76 , My version is 0.15.2rc0 and I am running with this command; trains-agent daemon --detached --gpus 0 --queue default --docker nvidia/cuda --foreground

  
  
Posted 4 years ago

Hi MysteriousBee56 .

What trains-agent version are you running? Do you run it docker mode (e.g.
trains-agent daemon --queue <your queue name> --docker?

  
  
Posted 4 years ago

fatal: destination path '/home/dogukan/.trains/vcs-cache/pre-post-script-repo.git.35f82b395021c8e6afef186fafa662cc/pre-post-script-repo.git' already exists and is not an empty directory.Actually, the error occurs because of this line. I run my experiment firstly on docker, then it creates a folder in the vcs-cache that gives access permission only to root. Then, I run my experiment on venv and it cannot access this folder and cannot create new one because of the same name.

  
  
Posted 4 years ago

Can you share the logs from the run?

  
  
Posted 4 years ago
1K Views
10 Answers
4 years ago
one year ago
Tags