Repo command failed: RepoUnhandledExceptionError

895 views
Skip to first unread message

Vincent Prince

unread,
Dec 14, 2023, 4:56:46 AM12/14/23
to Repo and Gerrit Discussion
Hello everyone,

First, thanks for Google repo tool development, I use it for a long time now :)

Second, I have a concern about repo auto update. I run some Jenkins jobs (with Docker) to build Yocto images and we use Repo to handle multiple Git repositories. 
So at every job beginning, I run repo init <args> and repo sync in existing folder, and sometimes repo sync fails with following error:

info: A new version of repo is available
warning: repo is not tracking a remote branch, so it will not receive updates ======================================================================= Repo command failed: RepoUnhandledExceptionError repo: Updating release signing keys to keyset ver 2.3 info: Restarting repo with latest version My job then fails to continue. I tried several options but I can't figure out if there is a Repo way to fix this? I couldn't find if it's possible to disable repo update or proceed anyway? Thanks by advance for any help, Vincent

Vincent Prince

unread,
Dec 14, 2023, 5:07:15 AM12/14/23
to Repo and Gerrit Discussion
Sorry for bad formatting at the end

...

My job then fails to continue. I tried several options but I can't figure out if there is a Repo way to fix this?
I couldn't find if it's possible to disable repo update or proceed anyway?

Thanks by advance for any help,
Vincent



John Michelau

unread,
Dec 18, 2023, 12:38:38 PM12/18/23
to Repo and Gerrit Discussion
You can pin the repo version to something older using the `--repo-rev` option for `repo init`.

    --repo-rev=REV      repo branch or revision ($REPO_REV)


Vincent Prince

unread,
Dec 20, 2023, 9:23:54 AM12/20/23
to Repo and Gerrit Discussion
Thanks for answer, I'll try it 

For the moment I use following bash command so first sync result is discard by the second 
    repo sync || repo sync 

Reply all
Reply to author
Forward
0 new messages