Repo Sync issue

I’m trying to do a fresh build of a Yocto Project Reference Image, and it looks like meta-toradex-ti.git - Toradex BSP layer, recipes for TI based modules has been overwritten with the contents from toradex-manifest.git - Repo manifest for Toradex Embedded Linux TorizonCore and BSP layer setup for Yocto Project/Openembedded leading to a failed repo sync.

Trying to repo sync for the first time:

Fetching: 68% (11/16) 0:08 | 4 jobs | 0:06 meta-openembedded.git @ layers/meta-openembeddederror.GitError: Cannot fetch GitCommandError: 'update-ref -m manifest set to dbf615d3235f5d83ce7262b57a4f38e133a9b7c8 --no-deref refs/remotes/m/refs/tags/7.2.0 dbf615d3235f5d83ce7262b57a4f38e133a9b7c8^0' on meta-toradex-ti.git failed
stderr: fatal: dbf615d3235f5d83ce7262b57a4f38e133a9b7c8^0: not a valid SHA1

Fetching: 100% (16/16), done in 37.565s
Fetching:  0% (0/1) 0:00 | ..working..error.GitError: Cannot fetch GitCommandError: 'update-ref -m manifest set to dbf615d3235f5d83ce7262b57a4f38e133a9b7c8 --no-deref refs/remotes/m/refs/tags/7.2.0 dbf615d3235f5d83ce7262b57a4f38e133a9b7c8^0' on meta-toradex-ti.git failed
stderr: fatal: dbf615d3235f5d83ce7262b57a4f38e133a9b7c8^0: not a valid SHA1

Fetching: 100% (1/1), done in 0.211s
fatal: failed to unpack tree object HEAD
error.GitError: Cannot checkout meta-toradex-ti.git: Cannot initialize work tree for meta-toradex-ti.git
error: Cannot checkout meta-toradex-ti.git
Checking out:  93% (15/16), done in 0.428s
Checking out:   6% (1/16), done in 0.098s
error: Unable to fully sync the tree
error: Downloading network changes failed.
error: Checking out local projects failed.
Failing repos (checkout):
layers/meta-toradex-ti
Try re-running with "-j1 --fail-fast" to exit at the first error.
================================================================================
Repo command failed due to the following `SyncError` errors:
GitCommandError: 'update-ref -m manifest set to dbf615d3235f5d83ce7262b57a4f38e133a9b7c8 --no-deref refs/remotes/m/refs/tags/7.2.0 dbf615d3235f5d83ce7262b57a4f38e133a9b7c8^0' on meta-toradex-ti.git failed
stderr: fatal: dbf615d3235f5d83ce7262b57a4f38e133a9b7c8^0: not a valid SHA1

GitCommandError: 'update-ref -m manifest set to dbf615d3235f5d83ce7262b57a4f38e133a9b7c8 --no-deref refs/remotes/m/refs/tags/7.2.0 dbf615d3235f5d83ce7262b57a4f38e133a9b7c8^0' on meta-toradex-ti.git failed
stderr: fatal: dbf615d3235f5d83ce7262b57a4f38e133a9b7c8^0: not a valid SHA1

Cannot initialize work tree for meta-toradex-ti.git

Subsequent runs of repo sync:

Fetching: 93% (15/16) 0:05 | 1 job | 0:03 meta-toradex-ti.git @ layers/meta-toradex-ti
fatal: bad object HEAD
error: https://git.toradex.com/meta-toradex-ti.git did not send all necessary objects


meta-toradex-ti.git:
fatal: bad object HEAD
error: https://git.toradex.com/meta-toradex-ti.git did not send all necessary objects

meta-toradex-ti.git: sleeping 4.0 seconds before retrying
fatal: bad object HEAD
error: https://git.toradex.com/meta-toradex-ti.git did not send all necessary objects
error: Cannot fetch meta-toradex-ti.git from https://git.toradex.com/meta-toradex-ti.git
Fetching: 100% (16/16), done in 5.727s
Fetching:  0% (0/1) 0:04 | 1 job | 0:04 meta-toradex-ti.git @ layers/meta-toradex-ti
fatal: bad object HEAD
error: https://git.toradex.com/meta-toradex-ti.git did not send all necessary objects


meta-toradex-ti.git:
fatal: bad object HEAD
error: https://git.toradex.com/meta-toradex-ti.git did not send all necessary objects

meta-toradex-ti.git: sleeping 4.0 seconds before retrying
fatal: bad object HEAD
error: https://git.toradex.com/meta-toradex-ti.git did not send all necessary objects
error: Cannot fetch meta-toradex-ti.git from https://git.toradex.com/meta-toradex-ti.git
Fetching: 100% (1/1), done in 4.393s
fatal: failed to unpack tree object HEAD
error.GitError: Cannot checkout meta-toradex-ti.git: Cannot initialize work tree for meta-toradex-ti.git
error: Cannot checkout meta-toradex-ti.git
Checking out:  93% (15/16), done in 0.022s
Checking out:   6% (1/16), done in 0.003s
error: Unable to fully sync the tree
error: Downloading network changes failed.
error: Checking out local projects failed.
Failing repos (checkout):
layers/meta-toradex-ti
Try re-running with "-j1 --fail-fast" to exit at the first error.
================================================================================
Repo command failed due to the following `SyncError` errors:
GitCommandError: 'fetch --quiet --progress repo --prune --recurse-submodules=no --tags +refs/heads/*:refs/remotes/repo/* +refs/heads/scarthgap-7.x.y:refs/remotes/repo/scarthgap-7.x.y +refs/tags/*:refs/tags/*' on meta-toradex-ti.git failed
stdout: fatal: bad object HEAD
GitCommandError: 'fetch --quiet --progress repo --prune --recurse-submodules=no --tags +refs/heads/*:refs/remotes/repo/* +refs/heads/scarthgap-7.x.y:refs/remotes/repo/scarthgap-7.x.y +refs/tags/*:refs/tags/*' on meta-toradex-ti.git failed
stdout: fatal: bad object HEAD
Cannot initialize work tree for meta-toradex-ti.git
1 Like

Hi, I’m the Toradex AI Assistant.

I might make mistakes. Our support team will step in if needed. If I answered your question, please tick the “Solution” checkbox. For follow-up questions to me, please use @ToradexAI in your post.

Did you like my answer? :+1: :-1:


Hello! Thank you for sharing the detailed error logs.

The errors you’re experiencing—such as “fatal: bad object HEAD” and “not a valid SHA1” for meta-toradex-ti.git—indicate that the remote repository at Index of /meta-toradex-ti.git is currently in a broken state and does not contain valid Git objects required for syncing and checking out.

Your observation that “meta-toradex-ti.git has been overwritten with the contents from toradex-manifest.git” points to a possible server-side issue where the repository data is corrupted or replaced incorrectly. At this moment, this is not an issue that can be resolved from your end with commands like repo sync, git gc, or removing your cache. Those commands are effective for local cache or partial download problems, but not when the upstream repository is missing necessary commits or even its HEAD.

What you can do:

  • Double-check the manifest and URL: Make sure you’re using the correct manifest version intended for your Yocto build and that the URL for meta-toradex-ti is correct in your manifest. Sometimes, development versions or changes in the manifest can temporarily point at a wrong or updated branch/tag.
  • Retry later: If this is a temporary server-side repository issue, it may be resolved once Toradex restores/fixes the meta-toradex-ti repository.
  • Stay updated: Monitor the Toradex Embedded Linux page for announcements or fixes regarding repository issues.

For future reference:

  • The standard troubleshooting steps (like removing local copies, running git gc, reducing sync jobs) are mostly for local issues, not upstream repository content problems (source).

Once the repository is fixed upstream, you should be able to perform a fresh repo sync without issues.

Best regards, Toradex AI Assistant.

I can access the commit and its correct contents listed in the manifest directly, but that doesn’t help me clone it.

https://git.toradex.com/cgit/meta-toradex-ti.git/commit/?h=scarthgap-7.x.y&id=dbf615d3235f5d83ce7262b57a4f38e133a9b7c8

We’re using NXP modules, so this issue isn’t a blocker. I commented out the TI layers in bblayers.conf and was able to proceed. However, I would still like this issue to be fixed otherwise I would need to add an additional step to comment out the TI repos in the manifest before running repo sync.

I’m having the same problem.

It looks like the issue has been resolved.

1 Like