[bitbake-devel] Random Bitbake build failures

Nair, Sandeep (Contractor) Sandeep_Nair2 at cable.comcast.com
Sat Jun 4 18:09:48 UTC 2016


Bitbake version : 1.22.0

We are facing random failures with Bitbake builds. Bitbake is returning an error even when the operation succeeded on the successful retry.

Eg:

ERROR: Error executing a python function in /mnt/jenkins/workspace/PACEXI3V2-Yocto-Build/meta-rdk-comcast/recipes-extended/netzyn/netzyn_git.bb:
Exception: IOError: [Errno 116] Stale file handle

WARNING: Logfile for failed setscene task is /mnt/jenkins/workspace/PACEXI3V2-Yocto-Build/build-pacexi3v2/tmp/work/mips32el-rdk-linux/netzyn/1.99+gitAUTOINC+c3752ca038_c7068967a1-r0/temp/log.do_package_setscene.8946
WARNING: Setscene task 1277 (/mnt/jenkins/workspace/PACEXI3V2-Yocto-Build/meta-rdk-comcast/recipes-extended/netzyn/netzyn_git.bb, do_package_setscene) failed with exit code '1' - real task will be run instead

"Setscene" is a bb attempt to use sstate cache.

It says about real task will run instead. Does that mean it tried build locally (it should)?

In all stale cases it fails in this code:

File: '..../openembedded-core/bitbake/lib/bb/utils.py', lineno: 467, function: md5_file
     0463:        import md5
     0464:        m = md5.new()
     0465:
     0466:    with open(filename, "rb") as f:
*** 0467:        for line in f:
     0468:            m.update(line)
     0469:    return m.hexdigest()
     0470:

As can be seen it tries use handle it was given but the file is not valid on remote side already. So system lib returns stale handle.

How does Bitbake handle the unsuccessful set scene ? will it just go with regular local build or just fail immediately.


This causes us random failures in our builds. Could you please provide insight on whether there is a patch available to address this issue or is this issue is addressed in latest Bitbake versions

Thanks,
Sandeep
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/bitbake-devel/attachments/20160604/e708a0b1/attachment-0002.html>


More information about the bitbake-devel mailing list