Hi @<1523712386849050624:profile|NastyFox63> , I assume this is the vcs cache storing the old token (this is probably an older agent version as this has been fixed in recent versions). I suggest clearing the vcs cache of the agent (should be under ~/.clearml) and upgrading the agent version
if i run clearml-agent daemon
that reads from ~/clearml.conf
, right?
weird. will move forward with manually recreating the task.
also tried disabling the VCS cache in the config—pull this from the output of the agent’s startup output:
agent.vcs_cache.enabled = false
Hmmm. Just tried cloning a brand new task and the agent is still using the expired github access token.
further, there’s now data in the VCS cache, even though i disabled it
Also, are you sure you cleaned the VCS cache? There's no other place the agent can get the old token from...
i updated the token in ~/clearml.conf
, was careful to ensure it was only specified in one place
- 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
Yes, it does. What setting in the file did you use? git_pass
?
i don’t get why the agent init log would list the username from clearml.conf
but then use the env vars
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.
Can you try to change the username as well and see if the agent uses the new one?
Can you share the agent log, specifically when it's trying to clone?
i meant I should have thought to check there earlier! anyway, thanks again for your attention and help! 🙂
❯ 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
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.
That's probably an issue we should look at
so now i have
git_pass: "[NEW KEY]"
enable_git_ask_pass: false
in my clearml.conf file
no change in behavior and enable_git_ask_pass
does not show up in the agent init output
Just checking again, can you delete the vcs cache?
~/.clearml/vcs-cache
Also, make sure this is turned on:
None
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 😕
thanks much for your help. should have thought to check there earlier, but kind of forgot that was a thing.