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
Maybe This Is More A Git Question Than A Clearml Question, But How Do I Get The Clearml_Agent_Git_User And Clearml_Agent_Git_Pass For Step 11 In

Maybe this is more a git question than a ClearML question, but how do I get the CLEARML_AGENT_GIT_USER and CLEARML_AGENT_GIT_PASS for step 11 in https://allegro.ai/clearml/docs/docs/deploying_clearml/clearml_server_linux_mac.html ?

  
  
Posted 3 years ago
Votes Newest

Answers 13


@<1523710674990010368:profile|GreasyPenguin14> what do you mean "but I do I get the... " ?
Configuring git user/pass will allow you to launch Tasks from private repositories on the services queue (the agent is part of the docker-compose).
That said, this is not a must, worst case you'll get an error when git fails to clone your repo :)

  
  
Posted 3 years ago

Yes that is the error I get when trying to launch a custom slack alert service (when not running it locally)

  
  
Posted 3 years ago

Make sense 🙂
Just make sure you configure the git user/pass in the docker-compose so the agent has your credentials for the repo clone.

  
  
Posted 3 years ago

None
Change to:

CLEARML_AGENT_GIT_USER: ${CLEARML_AGENT_GIT_USER:my_git_user_here}

and the same for the password.
You can also just set the environment variables before launching docker-compose, whatever is more convenient for you

  
  
Posted 3 years ago

I am using gitlab, I can create an access token. From the gitlab page:
"Personal Access Tokens
You can generate a personal access token for each application you use that needs access to the GitLab API."

However, now I have an access token, not an username/password. Is there also an option to authenticate with the access token?

  
  
Posted 3 years ago

see None

  
  
Posted 3 years ago

and None

  
  
Posted 3 years ago

@<1523710674990010368:profile|GreasyPenguin14> If I understand correctly you can use tokens as user/pass (it's basically the same interface from the git client perspective, meaning from ClearML

git_user = gitlab-ci-token
git_pass = <the_actual_toke>

WDYT?

  
  
Posted 3 years ago

Is there a way to test this? It seems my git user and token are correct. I can do git clone https://<NAME_TOKEN >:<ACCESSTOKEN> gitlab.com/mycompany/repo.git

However when starting the service it fails with:

cloning: git@gitlab.com:mycompany/repo.git
Using user/pass credentials - replacing ssh url

:mycompany/repo.git' with https url '

'
2021-01-18 20:04:08
User aborted: stopping task (3)

  
  
Posted 3 years ago

@<1523710674990010368:profile|GreasyPenguin14> make sure it to uses https not ssh:
edit ~/clearml.conf

force_git_ssh_protocol: false

and that you have both git_user & git_pass set in your clearml.conf

  
  
Posted 3 years ago

I dont see that option in my ~/clearml.conf?

  
  
Posted 3 years ago

Started clearml server again and now everything seems to work fine

  
  
Posted 3 years ago

Nice 🙂
@<1523710674990010368:profile|GreasyPenguin14> for future reference the agent part in the clearml.conf is only created when you call clearml-agent init (no need for it for the python SDK). Full default configuration is here:
None

  
  
Posted 3 years ago