Hi @<1523701087100473344:profile|SuccessfulKoala55> thanks for your reply. Not sure where I can find more about the extra docker bash script that you mention… I would appreciate if you can point me in the right direction. Thanks.
Also @<1619867994005966848:profile|HungryTurtle13> 👆
@<1603198134261911552:profile|ColossalReindeer77> if the issue is the host key verification, you can simply add the host to the known_hosts file on the instance before running the agent
Update
I ran:
clearml-agent build --id <task-id> --docker <custom-docker> --log-level DEBUG --entry-point reuse_task
and got a similar problem:
Host key verification failed.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
error: Could not fetch origin
Hey @<1523701087100473344:profile|SuccessfulKoala55> I am not sure this is the case as the instance can checkout code in poetry/pip mode. This issue only happens if I try to run the agent in docker mode. I read in the docs that when you run the agent in docker mode the . ssh
directory of the host is copied to the container under /root/.ssh
so I have the theory that when I am building the custom docker image I don’t end up with a /root
folder (?) I haven’t had the time to debug this yet but if that is the case then this would explain why my container doesn’t have the credentials….
Hi @<1603198134261911552:profile|ColossalReindeer77> , see here: None
What I meant was that the host is not in known_hosts for the container - you can simply make sure it's injected there in the extra docker bash script configuration (in the agent configuration)