[OE-core] Problems with sstate-cache in Artifactory

Ankur Tyagi ankur.tyagi85 at gmail.com
Mon Jul 8 21:16:35 UTC 2019


Hi Chris,

Thanks for your pointers, I will try them.

Regarding using curl for sstate fetch, how to set SSTATE_MIRRORS ?
Below is my current configuration

SSTATE_MIRRORS ?= "\
file://.* https://artifactory.com/yocto/sstate-cache/PATH;downloadfilename=PATH
\
"
Thanks
Ankur

On Tue, Jul 9, 2019 at 3:37 AM chris.laplante at agilent.com
<chris.laplante at agilent.com> wrote:
>
> > I can't see any "log.do_setscene" inside the tmp directory.
> > When I start an image build, it does say executing setscene task but
> > then no setscene task log for any recipe
> >
> > Initialising tasks: 100%
> > |##############################################################################################################
> > ##############################|
> > Time: 0:00:01
> > Checking sstate mirror object availability: 100%
> > |##############################################################################################################
> > ######|
> > Time: 0:00:02
> > Sstate summary: Wanted 484 Found 0 Missed 968 Current 0 (0% match, 0% complete)
> > NOTE: Executing SetScene Tasks
> > NOTE: Executing RunQueue Tasks
>
> We have Artifactory serving our sstate as well, so here's some tips.
>
> 1. Try seeing if you can fetch some sstate using curl directly. If you are authenticating to the Artifactory server using a .netrc server, make sure to pass "--netrc" to curl.
> 2. You can diagnose the sstate mirror by passing -DDD to bitbake. It will spit out a ton of debug messages, so you might want to redirect it all to a file. E.g.:
>
> bitbake something -DDD >out.txt 2>&1
>
> Start looking after the line that begins "DEBUG: SState using premirror of". It will dump out the URLs that it tries to fetch.
>
> 3. Within Artifactory, you can check the access log by going to: Admin > System Logs > access.log
>
> Look for "DENIED LOGIN" errors.
>
> Chris


More information about the Openembedded-core mailing list