Bug 6063 - Toaster traceback - Execution of event handler 'toaster_buildhistory_dump' failed
Summary: Toaster traceback - Execution of event handler 'toaster_buildhistory_dump' fa...
Status: VERIFIED FIXED
Alias: None
Product: Toaster
Classification: Build System, Metadata & Runtime
Component: toaster (show other bugs)
Version: 1.6
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.6 M5
Assignee: Alexandru Damian
QA Contact: Mihail Stanciu
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2014-03-28 13:55 UTC by Ionut Chisanovici
Modified: 2014-08-01 08:29 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments
toaster_ui.log (49.62 KB, application/octet-stream)
2014-04-09 16:29 UTC, Belen Barros Pena
no flags Details
toaster_web.log (1.36 KB, application/octet-stream)
2014-04-09 16:30 UTC, Belen Barros Pena
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ionut Chisanovici 2014-03-28 13:55:30 UTC
Hi guys,

Toaster is returning the below error when trying to do a new failed build by altering the busybox recipe and removing the tmp folder (I'm removing the tmp folder so that the busybox recipe can be reparsed).
If I stop toaster before I do the above things, everything works well. 

$ bitbake core-image-minimal
WARNING: Unable to get checksum for busybox SRC_URI entry xget_header_tar.patch: file could not be found###########################################################################          | ETA:  00:00:01
Parsing recipes: 100% |######################################################################################################################################################################| ETA:  00:00:00
Parsing of 856 .bb files complete (0 cached, 856 parsed). 1215 targets, 34 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION        = "1.21.1"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "Ubuntu-13.10"
TARGET_SYS        = "i586-poky-linux"
MACHINE           = "qemux86"
DISTRO            = "poky"
DISTRO_VERSION    = "1.5+snapshot-20140328"
TUNE_FEATURES     = "m32 i586"
TARGET_FPU        = ""
meta              
meta-yocto        
meta-yocto-bsp    = "(detachedfrom47ceed0):47ceed0d8d60a3ddc398738acafe3aabf4ab8c90"

NOTE: Preparing runqueue
ERROR: An uncaught exception occured in runqueue, please see the failure below:
NOTE: Tasks Summary: Attempted 0 tasks of which 0 didn't need to be rerun and all succeeded.
ERROR: Execution of event handler 'toaster_buildhistory_dump' failed
Traceback (most recent call last):
  File "toaster_buildhistory_dump(e)", line 58, in toaster_buildhistory_dump(e=<bb.event.BuildCompleted object at 0xbbc8d10>)
  File "toaster.bbclass", line 5, in _toaster_load_pkgdatafile(dirpath='/home/ionut/work/toaster/poky/build/tmp/sysroots/qemux86/pkgdata/runtime-reverse/', filepath='busybox')
IOError: [Errno 2] No such file or directory: '/home/ionut/work/toaster/poky/build/tmp/sysroots/qemux86/pkgdata/runtime-reverse/busybox'

Cheers,
Ionut C
Comment 1 Alexandru Damian 2014-04-02 08:19:25 UTC
I can't duplicate this issue,

Can you please get me a rule to reproduce this ?

If you manage to reproduce it, can you please attach these files ?

toaster.sqlite
toaster_ui.log
Comment 2 Belen Barros Pena 2014-04-09 16:29:59 UTC
Created attachment 1900 [details]
toaster_ui.log
Comment 3 Belen Barros Pena 2014-04-09 16:30:19 UTC
Created attachment 1901 [details]
toaster_web.log
Comment 4 Belen Barros Pena 2014-04-09 16:31:49 UTC
Managed to replicate this on master:bb66113bde5361b869dce2bdaece5b938f077ea8 with a clean -sato build for qemux86. 

I've attached the Toaster logs.  Hopefully they'll help.
Comment 5 Anders Darander 2014-04-10 09:25:47 UTC
I've seen the same behaviour as Belen has in her logs.

Basically, it seems that the event handler toaster_buildhistory_dump fails if something in the build references a non-existing package.

In my case, systemd has an RRECOMMENDS on among other things: kernel-module-autofs4 and kernel-module-binfmt-misc (well, systemd-binfmt). In my kernel configuration, the former is statically linked into the kernel, and the latter is simply not enabled. Thus,these two packages do not exist... And toaster gives us this nice traceback.

If I'm building without toaster started, everything works fine.


Excerpt from the log: 
---------------------
NOTE: Tasks Summary: Attempted 2194 tasks of which 2194 didn't need to be rerun and all succeeded.
ERROR: Execution of event handler 'toaster_buildhistory_dump' failed
Traceback (most recent call last):
  File "toaster_buildhistory_dump(e)", line 43, in toaster_buildhistory_dump(e=<bb.event.BuildCompleted object at 0xfb3df10>)
  File "toaster.bbclass", line 5, in _toaster_load_pkgdatafile(dirpath='/mnt/cs-builds/anders/oe-build/build-ccu/tmp-eglibc/sysroots/ccu/pkgdata/runtime-reverse/', filepath='kernel-module-binfmt-misc')
IOError: [Errno 2] No such file or directory: '/mnt/cs-builds/anders/oe-build/build-ccu/tmp-eglibc/sysroots/ccu/pkgdata/runtime-reverse/kernel-module-binfmt-misc'

NOTE: Writing buildhistory
Comment 6 Alexandru Damian 2014-04-10 14:05:36 UTC
Thank you for the analysis, I have a patch pending submission.
Comment 8 Mihail Stanciu 2014-08-01 08:29:12 UTC
Verified on master: 2d1660112e54653f7bb763939d0416472c49fe01.