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’M Trying To Clone A Task That Had Cloned My Code Using A Github Access Token That Is Now Expired. I Updated To A New Token In

i’m trying to clone a task that had cloned my code using a github access token that is now expired. i updated to a new token in clearml.conf , and restarted my agent, but the console shows that the old token is still being used for some reason. is there any way I can make the cloned task use the new token?

  
  
Posted 2 years ago
Votes Newest

Answers 33


i meant I should have thought to check there earlier! anyway, thanks again for your attention and help! 🙂

  
  
Posted 2 years ago

We always aim to improve 🙂

  
  
Posted 2 years ago

thanks much for your help. should have thought to check there earlier, but kind of forgot that was a thing.

  
  
Posted 2 years ago

That's probably an issue we should look at

  
  
Posted 2 years ago

i don’t get why the agent init log would list the username from clearml.conf but then use the env vars

  
  
Posted 2 years ago

there were env variables set in .zshrc

  
  
Posted 2 years ago

:face_palm:

  
  
Posted 2 years ago

no change in behavior and enable_git_ask_pass does not show up in the agent init output

  
  
Posted 2 years ago

so now i have

git_pass: "[NEW KEY]"
enable_git_ask_pass: false

in my clearml.conf file

  
  
Posted 2 years ago

the VCS cache was empty before that run. then, even with the VCS cache being disabled in the config, there was a new lock file and directory after running.

  
  
Posted 2 years ago

will try the git ask pass thing.

  
  
Posted 2 years ago

Just checking again, can you delete the vcs cache?

~/.clearml/vcs-cache

Also, make sure this is turned on:
None

  
  
Posted 2 years ago

yes. had to sanitize it a bit, but left the git username/key intact (since the key is invalid now)

sorry for the delay, had work and personal emergencies 😕

  
  
Posted 2 years ago

Can you share the agent log, specifically when it's trying to clone?

  
  
Posted 2 years ago

❯ cat ~/clearml.conf | grep git_user
    git_user: "aaaaaaaaaaaaa"
❯ cat ~/clearml.conf | grep -A 2 vcs_cache
    vcs_cache: {
        enabled: false,
        path: ~/.clearml/vcs-cache
  
  
Posted 2 years ago

further, there’s now data in the VCS cache, even though i disabled it

  
  
Posted 2 years ago

  • stopped agent
  • updated clearml.conf to have different username, wrote file
  • verified the vcs-cache is empty
  • started the agent, which resulted in this output
...
agent.custom_build_script =
agent.disable_task_docker_override = false
agent.git_user = aaaaaaaaaaaaa
agent.default_python = 3.9
...

(that’s the username I changed it to)

  • reset and enqueued the task
    checkout failed, it’s still attempting to use the old creds
  
  
Posted 2 years ago

Can you try to change the username as well and see if the agent uses the new one?

  
  
Posted 2 years ago

yes

  
  
Posted 2 years ago

Yes, it does. What setting in the file did you use? git_pass ?

  
  
Posted 2 years ago

if i run clearml-agent daemon that reads from ~/clearml.conf , right?

  
  
Posted 2 years ago

yes—am running the agent on a workstation. am sshed into that workstation and verified the change in the conf by explicitly disabling the VCS cache and then looking for that in the agent’s startup output

  
  
Posted 2 years ago

the clearml.conf used by the agent?

  
  
Posted 2 years ago

i updated the token in ~/clearml.conf , was careful to ensure it was only specified in one place

  
  
Posted 2 years ago

Also, are you sure you cleaned the VCS cache? There's no other place the agent can get the old token from...

  
  
Posted 2 years ago

How did you update the new token?

  
  
Posted 2 years ago

restarted the server on the off chance that had anything to do with it, and no. VCS is disabled, and the task is trying to pull the correct/latest commit.

  
  
Posted 2 years ago

Hmmm. Just tried cloning a brand new task and the agent is still using the expired github access token.

  
  
Posted 2 years ago

weird. will move forward with manually recreating the task.

  
  
Posted 2 years ago

agent version is

❯ clearml-agent --version
CLEARML-AGENT version 1.5.2
  
  
Posted 2 years ago