Hi,
I have a VirtualBox VM running Ubuntu 16.04. Verified I have internet connectivity. I am running behind a corporate firewall.
I am following the instructions in the i.MX Yocto Project User's Guide, Rev L4.9.88_2.00-ga 05/2018, Chapter 4, Yocto Project Setup.
When I do "repo sync", I get
Fetching project poky
Fetching project meta-qt5
fatal: unable to connect to github.com:
github.com[0: 192.30.255.112]: errno=Connection refused
github.com[1: 192.30.255.113]: errno=Connection refused
fatal: unable to connect to git.yoctoproject.org:
git.yoctoproject.org[0: 140.211.169.56]: errno=Connection refused
fatal: unable to connect to git.yoctoproject.org:
git.yoctoproject.org[0: 140.211.169.56]: errno=Connection refused
fatal: unable to connect to github.com:
github.com[0: 192.30.255.113]: errno=Connection refused
github.com[1: 192.30.255.112]: errno=Connection refused
error: Cannot fetch meta-qt5
Fetching project meta-browser
fatal: unable to connect to github.com:
github.com[0: 192.30.255.112]: errno=Connection refused
github.com[1: 192.30.255.113]: errno=Connection refused
error: Cannot fetch poky
fatal: unable to connect to github.com:
github.com[0: 192.30.255.113]: errno=Connection refused
github.com[1: 192.30.255.112]: errno=Connection refused
error: Cannot fetch meta-browser
error: Exited sync due to fetch errors
I tried "git config --global url."https://".insteadOf git://" This time I get:
Fetching project poky
Fetching project meta-qt5
Fetching project meta-browser
Fetching projects: 20% (2/10) Fetching project meta-freescale
fatal: repository 'https://git.yoctoproject.org/poky/' not found
fatal: repository 'https://git.yoctoproject.org/meta-freescale/' not found
fatal: repository 'https://git.yoctoproject.org/poky/' not found
fatal: repository 'https://git.yoctoproject.org/meta-freescale/' not found
error: Cannot fetch poky
Fetching project meta-fsl-bsp-release
Fetching projects: 30% (3/10) error: Cannot fetch meta-freescale
error: Exited sync due to fetch errors
Any idea what might be going on? I imagine I am not the only one trying to build Linux for IMX8 on VirtualBox Ubuntu 16.04.
Thanks in advance,
marion
My workaround:
git config --global url."https://github.com/".insteadOf git@github.com:
git config --global url."https://".insteadOf git://
git config --global url."https://git.yoctoproject.org/cgit/cgit.cgi/poky".insteadOf git://git.yoctoproject.org/poky
git config --global url."https://git.yoctoproject.org/cgit/cgit.cgi/meta-freescale/".insteadOf git://git.yoctoproject.org/meta-freescale
But these days, I had to use workaround:
1
<remote name="oe" fetch="https://github.com/openembedded"/>
instead of
<remote name="oe" fetch="git://git.openembedded.org"/>
2.
added
<remote name="yoctopoky" fetch="https://git.yoctoproject.org/git"/>
3.
<project name="meta-freescale.git" path="sources/meta-freescale" remote="fsl" revision="thud"/>
instead of
<project name="meta-freescale.git" path="sources/meta-freescale" remote="yocto" revision="thud"/>
4.
<project name="poky.git" path="sources/poky" remote="yoctopoky" revision="thud"/>
instead of
<project name="poky.git" path="sources/poky" remote="yocto" revision="thud"/>
Hi, gusarambula,
I assume you have used a VM like Virtual Box before, and that it is nothing on the VirtualBox end I need to configure?
I do believe that is the case. I just wanted to confirm before I ask IT to fix it. We recently lost a very knowledgeable IT person who would know the exact holes to poke through the firewalls. Does anybody know what protocols/ports need to be opened?
Thanks for your help,
Best Regards/Happy Holidays!
marion
Hello Marion,
It seems to be an internet connectivity problem. It is common for corporate firewalls to block most ports except for the ones used by the most common office applications. I would recommend making sure that the ports that git uses are open.
I hope this helps!
Regards,