Failing repo sync cannot fetch

Hi,

I’m trying to build an image for a Colibri iMX7D 1GB following this guide on a virtual machine running Ubuntu 18.04.

I’m able to initialize repo but when I try to sync the repo, it fails.

Can you please tell me what I’m doing wrong?

I’ve installed repo initially installing the ‘phablet-tools’ package but it didn’t work. I’ve then unistalled the package and followed the installation procedure. The tool should be properly installed.

Git is also properly installed as I regularly use it in other projects.

I initialize repo:

repo init -u https://git.toradex.com/toradex-manifest.git -b dunfell-5.x.y -m tdxref/default.xml
Downloading Repo source from https://gerrit.googlesource.com/git-repo
remote: Counting objects: 4, done
remote: Finding sources: 100% (172/172)
remote: Total 172 (delta 95), reused 172 (delta 95)
Receiving objects: 100% (172/172), 160.12 KiB | 7.63 MiB/s, done.
Resolving deltas: 100% (95/95), completed with 26 local objects.
Downloading manifest from https://git.toradex.com/toradex-manifest.git

repo has been initialized in /home/estdev/oe-core

and then I try to sync it:

repo sync
Fetching:  0% (0/13) warming uperror: Cannot fetch meta-qt5.git from https://github.com/meta-qt5/meta-qt5.git
error: Cannot fetch bitbake.git from https://github.com/openembedded/bitbake.git
Fetching:  7% (1/13) bitbake.giterror: Cannot fetch meta-toradex-bsp-common.git from https://git.toradex.com/meta-toradex-bsp-common.git
error: Cannot fetch meta-freescale.git from https://github.com/Freescale/meta-freescale.git
error: Cannot fetch meta-toradex-demos.git from https://git.toradex.com/meta-toradex-demos.git
Fetching: 38% (5/13) meta-toradex-distro.giterror: Cannot fetch meta-toradex-tegra.git from https://git.toradex.com/meta-toradex-tegra.git
error: Cannot fetch meta-openembedded.git from https://github.com/openembedded/meta-openembedded.git
Fetching: 69% (9/13) meta-openembedded.giterror: Cannot fetch openembedded-core.git from https://github.com/openembedded/openembedded-core.git
Fetching: 100% (13/13), done in 1m9.343s
Garbage collecting: 100% (13/13), done in 0.170s
Fetching:  0% (0/8) warming uperror: Cannot fetch meta-freescale.git from https://github.com/Freescale/meta-freescale.git
error: Cannot fetch meta-openembedded.git from https://github.com/openembedded/meta-openembedded.git
error: Cannot fetch openembedded-core.git from https://github.com/openembedded/openembedded-core.git
Fetching: 50% (4/8) meta-toradex-bsp-common.giterror: Cannot fetch bitbake.git from https://github.com/openembedded/bitbake.git
Fetching: 100% (8/8), done in 1m8.357s
Garbage collecting: 100% (8/8), done in 0.035s
Fetching:  0% (0/4) warming uperror: Cannot fetch meta-freescale.git from https://github.com/Freescale/meta-freescale.git
error: Cannot fetch meta-openembedded.git from https://github.com/openembedded/meta-openembedded.git
error: Cannot fetch openembedded-core.git from https://github.com/openembedded/openembedded-core.git
Fetching: 100% (4/4), done in 1m2.586s
Garbage collecting: 100% (4/4), done in 0.015s
Fetching:  0% (0/3) warming uperror: Cannot fetch meta-freescale.git from https://github.com/Freescale/meta-freescale.git
error: Cannot fetch meta-openembedded.git from https://github.com/openembedded/meta-openembedded.git
error: Cannot fetch openembedded-core.git from https://github.com/openembedded/openembedded-core.git
Fetching: 100% (3/3), done in 36.237s
Garbage collecting: 100% (3/3), done in 0.025s
fatal: failed to unpack tree object HEAD
error.GitError: Cannot checkout meta-freescale.git: Cannot initialize work tree for meta-freescale.git
error: Cannot checkout meta-freescale.git
fatal: failed to unpack tree object HEAD
error.GitError: Cannot checkout meta-openembedded.git: Cannot initialize work tree for meta-openembedded.git
error: Cannot checkout meta-openembedded.git
fatal: failed to unpack tree object HEAD
error.GitError: Cannot checkout openembedded-core.git: Cannot initialize work tree for openembedded-core.git
error: Cannot checkout openembedded-core.git
Checking out: 100% (13/13), done in 0.842s

error: Unable to fully sync the tree.
error: Downloading network changes failed.
error: Checking out local projects failed.
Failing repos:
layers/meta-freescale
layers/meta-openembedded
layers/openembedded-core
Try re-running with "-j1 --fail-fast" to exit at the first error.

Thank you

Hello @mortolaniEST,

I tried to reproduce your issue here, and everything was perfectly fine in my setup.

Are you working with some Proxy, Firewalls…?

See, all the errors from git fetch were from GitHub URLs, from repos from Toradex, and others.

If you are using a VM because you are running Windows, you could try is to execute Ubuntu 18.04 through WSL2, the performance will be much better.

Best regards,
André Curvello

Hi @andrecurvello.tx ,

I’m not working with any proxy or firewall.

I run it several times and every time those same repositories failed.
Why do you suspect it’s a performance issue with the virtualization?

I see you can connfigure the name/email used in repo.
What credentials am I supposed to use?
I tried with my credentials for the Toradex and GitHub websites but with no luck.

Thank you.
Marco

Hi @mortolaniEST,

I suspect about or network configurations or system configuration at your side.

My comment about the performance was more a suggestion for you.

The name/email are configurations for git, which is used for fetching, pulling, cloning the repositories.

You can use your normal credentials, they are just used for referencing you as a user, but no authentication is used.

Are you able to at least do manually a simple “git clone …” with any repository?

Best regards,
André Curvello

Hi,

thank you for your help.

I installed Ubuntu on WSL2 and I was able to init and sync repo.

While trying to clone from inside the virtual machine, I get the following error:

“git pack has bad object at offset … inflate returned 5”

I don’t know if the two things are related,
I can continue in WSL2.

Thank you

Glad your problem was solved. Thank you for the update.