Skip to contentSkip to conversation

Bitbake fails to find a file in SSTATE_MIRROR even though it exists

DISCUSSION Maksym Iliev 2 participants 3 messages Apr 1, 2022

lore
Share & tools
lore
#0 lore raw

I have an AWS S3 bucket setup to be an SSTATE_MIRROR. However, there is an occasional error happening where bitbake is not able to find a file that actually exists in that bucket. Here is an example of an error:

WARNING: gdk-pixbuf-2.40.0-r0 do_packagedata_setscene: Failed to fetch URL file://3a/83/sstate:gdk-pixbuf:corei7-64-poky-linux:2.40.0:r0:corei7-64:3:3a83036f92542f5385730d42c4ffdffcbbde2822d48f7f194ce4957d21906f7e_packagedata.tgz.siginfo;downloadfilename=3a/83/sstate:gdk-pixbuf:corei7-64-poky-linux:2.40.0:r0:corei7-64:3:3a83036f92542f5385730d42c4ffdffcbbde2822d48f7f194ce4957d21906f7e_packagedata.tgz.siginfo , attempting MIRRORS if available
ERROR: gdk-pixbuf-2.40.0-r0 do_packagedata_setscene: Fetcher failure: Unable to find file file://3a/83/sstate:gdk-pixbuf:corei7-64-poky-linux:2.40.0:r0:corei7-64:3:3a83036f92542f5385730d42c4ffdffcbbde2822d48f7f194ce4957d21906f7e_packagedata.tgz.siginfo;downloadfilename=3a/83/sstate:gdk-pixbuf:corei7-64-poky-linux:2.40.0:r0:corei7-64:3:3a83036f92542f5385730d42c4ffdffcbbde2822d48f7f194ce4957d21906f7e_packagedata.tgz.siginfo anywhere. The paths that were searched were:
/srv/yocto/sstate-cache
/srv/yocto/sstate-cache

The base_local.conf configuration for SSTATE_MIRROR is as below (bucket name hidden):

INHERIT += "own-mirrors"
SOURCE_MIRROR_URL = " https://*mybucketname*.s3.amazonaws.com/ ( https://yocto-dl-cache.s3.amazonaws.com/ ) "

My question is what could possibly be causing this issue?

#1 lore raw
Quoted 8 lines · Maksym Iliev via lists.openembedded.org

I have an AWS S3 bucket setup to be an SSTATE_MIRROR. However, there is an occasional error happening where bitbake is not able to find a file that actually exists in that bucket. Here is an example of an error:

WARNING: gdk-pixbuf-2.40.0-r0 do_packagedata_setscene: Failed to fetch URL file://3a/83/sstate:gdk-pixbuf:corei7-64-poky-linux:2.40.0:r0:corei7-64:3:3a83036f92542f5385730d42c4ffdffcbbde2822d48f7f194ce4957d21906f7e_packagedata.tgz.siginfo;downloadfilename=3a/83/sstate:gdk-pixbuf:corei7-64-poky-linux:2.40.0:r0:corei7-64:3:3a83036f92542f5385730d42c4ffdffcbbde2822d48f7f194ce4957d21906f7e_packagedata.tgz.siginfo, attempting MIRRORS if available
ERROR: gdk-pixbuf-2.40.0-r0 do_packagedata_setscene: Fetcher failure: Unable to find file file://3a/83/sstate:gdk-pixbuf:corei7-64-poky-linux:2.40.0:r0:corei7-64:3:3a83036f92542f5385730d42c4ffdffcbbde2822d48f7f194ce4957d21906f7e_packagedata.tgz.siginfo;downloadfilename=3a/83/sstate:gdk-pixbuf:corei7-64-poky-linux:2.40.0:r0:corei7-64:3:3a83036f92542f5385730d42c4ffdffcbbde2822d48f7f194ce4957d21906f7e_packagedata.tgz.siginfo anywhere. The paths that were searched were:
/srv/yocto/sstate-cache
/srv/yocto/sstate-cache

Quoted 5 lines

The base_local.conf configuration for SSTATE_MIRROR is as below (bucket name hidden):

INHERIT += "own-mirrors"
SOURCE_MIRROR_URL = "https://*mybucketname*.s3.amazonaws.com/"

Thats setting up source mirrors not sstate mirrors. Can you show how you configured sstate mirror ?

Quoted 13 lines

My question is what could possibly be causing this issue?

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#13562): https://lists.openembedded.org/g/bitbake-devel/message/13562
Mute This Topic: https://lists.openembedded.org/mt/90178640/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/bitbake-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#2 lore raw

My mistake. Please find the sstate mirror config below:

SSTATE_MIRRORS ?= "\
file://.* ://sstate-cache.s3.amazonaws.com/PATH"