rookie cloud question: how do I refresh the GitHub...
# openhands-cloud
p
rookie cloud question: how do I refresh the GitHub/GitLab token OH is using,
git push
stops working after a while (I normally don't use the Cloud, but I'm traveling at the moment, and wanted to demo some OpenHands features) I tried logging out/back in, restarted the thread container. In both cases:
Copy code
# git push
remote: HTTP Basic: Access denied. If a password was provided for Git authentication, the password was incorrect or you're required to use a token instead of a password. If a token was provided, it was either incorrect, expired, or improperly scoped. See <https://gitlab.com/help/topics/git/troubleshooting_git.md#error-on-git-fetch-http-basic-access-denied>
l
Hey @polite-architect-52194, we’re working on fixing this so they auto-renew: https://github.com/All-Hands-AI/OpenHands-Cloud/issues/131 But in the meantime my workaround is to have a token that I can type into the terminal like
export GITLAB_TOKEN=xxx
. If you run that in the terminal the agent will notice that you refreshed the token and try to use the new one
p
ah, ok, known issue no rush 🙂 - I'm on vacation after all
l
We’ll try to fix this ASAP though, it’s a bit disruptive
e
Thanks for the heads up Paul - was just discussing this with our Ash, our Engineering Manager. This is in our current engineering cycle and we're taking a look. Appreciate flagging this!
p
thanks for the hint, appreciate the live support 🙂 for anyone else running into this hiccup, in VS Code terminal inside OpenHands Cloud, the following worked for me (have MFA enabled):
Copy code
export GITLAB_TOKEN=xxx
git remote set-url origin <https://oauth2>:${GITLAB_TOKEN}@gitlab.com/<your_repo_path>.git
git push