@<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 :)
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
Started clearml server again and now everything seems to work fine
I dont see that option in my ~/clearml.conf?
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.
@<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
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)
Yes that is the error I get when trying to launch a custom slack alert service (when not running it locally)
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?
@<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?
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