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
I Am Trying To Use

I am trying to use trains-agent init and it fails.
I get credentials from the Trains server in the Web GUI and copy them, but it fails to verify them.

  
  
Posted 3 years ago
Votes Newest

Answers 30


thanks. it seems to work now.

we are still considering whether to upgrade or not.

  
  
Posted 3 years ago

done

  
  
Posted 3 years ago

yes

  
  
Posted 3 years ago

Ohh

  
  
Posted 3 years ago

I logged in to the UI from the local browser. is that enough?

  
  
Posted 3 years ago

i.e. you can:
curl

  
  
Posted 3 years ago

Everything seems correct...
Let's try to set it manually.
create a file ~/trains.conf , then copy paste the credentials section from the UI, it should look something like:
api { web_server: http:127.0.0.1:8080 api_server: http:127.0.0.1:8008 files_server: http:127.0.0.1:8081 credentials { "access_key" = "access" "secret_key" = "secret" } }Let's see if that works

  
  
Posted 3 years ago

yes its the JWT issue

  
  
Posted 3 years ago

pip install "pyjwt<2.0.0"

  
  
Posted 3 years ago

the code doesn't work

  
  
Posted 3 years ago

trains-init: error: unrecognized arguments: config

  
  
Posted 3 years ago

make sure the API port is 8008 and the web 8080

  
  
Posted 3 years ago

jwt.exceptions.DecodeError: It is required that you pass in a value for the "algorithms" argument when calling decode().

  
  
Posted 3 years ago

http

  
  
Posted 3 years ago

TRAINS-AGENT setup process
Configuration file already exists: ~/trains.conf
Leaving setup, feel free to edit the configuration file.

  
  
Posted 3 years ago

we have a cloud machine running the server UI and I want to log sessions from my local machine

  
  
Posted 3 years ago

Same machine running the trains-init ?

  
  
Posted 3 years ago

BTW: I think it was fixed in the latest trains package as well as the cleaml package

  
  
Posted 3 years ago

Any reason not to ?

  
  
Posted 3 years ago

yep. they are

  
  
Posted 3 years ago

No that's okay

  
  
Posted 3 years ago

if it ain't broke, don't fix it

  
  
Posted 3 years ago

if it ain't broke, don't fix it

😄

Up to you, just a few features & nicer UI.
BTW: everything is backwards compatible, there is no need to change anything all the previous trains/trains-agent packages will work without changing anything 🙂
(This even includes the configuration file, so you can keep the current ~/trains.conf and work with whatever combination you like of trains/clearml on the same machine)

  
  
Posted 3 years ago

Just making sure, the machine that you were running the "trains-init" on can access the API server ?

  
  
Posted 3 years ago

Are the key/secret the one you see in the UI?

  
  
Posted 3 years ago

{"meta":{"id":"3b79f199a7fa42db8a30abbc67adbaa3","trx":"3b79f199a7fa42db8a30abbc67adbaa3","endpoint":{"name":"","requested_version":1.0,"actual_version":null},"result_code":400,"result_subcode":0,"result_msg":"Invalid request path /","error_stack":null},"data":{}}

  
  
Posted 3 years ago

that's the result

  
  
Posted 3 years ago

And the server itself? is it http or https ?

  
  
Posted 3 years ago

my UI is also deployed on http server

  
  
Posted 3 years ago

try: trains-init config

  
  
Posted 3 years ago