Yocto LF5.10.52_2.1.0 BSP repo sync fail

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Yocto LF5.10.52_2.1.0 BSP repo sync fail

6,129 Views
joshua_jhan
Contributor III

Hi 

I try to download newest Yocto BSP following IMX_YOCTO_PROJECT_USERS_GUIDE

but when I try "repo init" and "repo sync", it failed.

fail log as below:

Fetching: 0% (0/13) warming up
fatal: unable to access 'https://git.yoctoproject.org/git/poky/': server certificate verification failed. CAfile: none CRLfile: none

poky:
fatal: unable to access 'https://git.yoctoproject.org/git/poky/': server certificate verification failed. CAfile: none CRLfile: none
poky: sleeping 4.0 seconds before retrying
fatal: unable to access 'https://git.yoctoproject.org/git/poky/': server certificate verification failed. CAfile: none CRLfile: none

poky:
fatal: unable to access 'https://git.yoctoproject.org/git/poky/': server certificate verification failed. CAfile: none CRLfile: none
error: Cannot fetch poky from https://git.yoctoproject.org/git/poky
Fetching: 30% (4/13) meta-freescale-3rdparty
fatal: unable to access 'https://git.openembedded.org/meta-python2/': server certificate verification failed. CAfile: none CRLfile: none

meta-python2:
fatal: unable to access 'https://git.openembedded.org/meta-python2/': server certificate verification failed. CAfile: none CRLfile: none
meta-python2: sleeping 4.0 seconds before retrying
fatal: unable to access 'https://git.openembedded.org/meta-python2/': server certificate verification failed. CAfile: none CRLfile: none

meta-python2:
fatal: unable to access 'https://git.openembedded.org/meta-python2/': server certificate verification failed. CAfile: none CRLfile: none
error: Cannot fetch meta-python2 from https://git.openembedded.org/meta-python2
Fetching: 100% (13/13), done in 7.633s
Garbage collecting: 100% (13/13), done in 0.026s
Fetching: 0% (0/2) warming up
fatal: unable to access 'https://git.openembedded.org/meta-python2/': server certificate verification failed. CAfile: none CRLfile: none

meta-python2:
fatal: unable to access 'https://git.openembedded.org/meta-python2/': server certificate verification failed. CAfile: none CRLfile: none
meta-python2: sleeping 4.0 seconds before retrying
fatal: unable to access 'https://git.openembedded.org/meta-python2/': server certificate verification failed. CAfile: none CRLfile: none

meta-python2:
fatal: unable to access 'https://git.openembedded.org/meta-python2/': server certificate verification failed. CAfile: none CRLfile: none
error: Cannot fetch meta-python2 from https://git.openembedded.org/meta-python2

fatal: unable to access 'https://git.yoctoproject.org/git/poky/': server certificate verification failed. CAfile: none CRLfile: none

poky:
fatal: unable to access 'https://git.yoctoproject.org/git/poky/': server certificate verification failed. CAfile: none CRLfile: none
poky: sleeping 4.0 seconds before retrying
fatal: unable to access 'https://git.yoctoproject.org/git/poky/': server certificate verification failed. CAfile: none CRLfile: none

poky:
fatal: unable to access 'https://git.yoctoproject.org/git/poky/': server certificate verification failed. CAfile: none CRLfile: none
error: Cannot fetch poky from https://git.yoctoproject.org/git/poky
Fetching: 100% (2/2), done in 10.039s
Garbage collecting: 100% (2/2), done in 0.006s
fatal: failed to unpack tree object HEAD
error.GitError: Cannot checkout meta-python2: Cannot initialize work tree for meta-python2
error: Cannot checkout meta-python2
fatal: failed to unpack tree object HEAD
error.GitError: Cannot checkout poky: Cannot initialize work tree for poky
error: Cannot checkout poky

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

 how can i fix this issue, thanks.

Labels (1)
0 Kudos
4 Replies

6,123 Views
khang_letruong
Senior Contributor III

Hi @joshua_jhan ,

I struggled similar issue. Then you might need to update the list of public CA in your host machine (Ubuntu for example) :

# update CA certificates
sudo apt-get install apt-transport-https ca-certificates -y
sudo update-ca-certificates

 

Hope that helps,

K

0 Kudos

6,092 Views
ko-hey
Senior Contributor II

Hi @khang_letruong ,

 

I got similar message when I do "repo init" and "repo sync" as below.

  File "/xxx/xxx/imx-yocto-bsp_5.10.52-2.1.0/.repo/repo/main.py", line 79
    file=sys.stderr)
        ^
SyntaxError: invalid syntax

 

I tried your solution but got same error in this moment.

Could you advise me to avoid this error ?

 

Ko-hey

0 Kudos

6,079 Views
khang_letruong
Senior Contributor III

Hi @ko-hey ,

I have never gotten this kind of error. My proposed solution was for the issue  "server certificate verification failed. CAfile: none CRLfile: none", subject of this question.

I would suspect that the python version on your host machine is not good (i.e. python3 is missing). Please setup you host machine according to the IMX_YOCTO_PROJECT_USERS_GUIDE.pdf included in every BSP release :
Host-setup.png

Regards,

K

6,067 Views
ko-hey
Senior Contributor II

Hi @khang_letruong ,

 

I tried those command by your advise and there are no update about the packages but the error message disappeared.

I'm not sure about the reason of error but it solved.

 

Anyway, thank you for your advise.

 

Ko-hey

Tags (1)
0 Kudos