| Summary: |
Exception from toaster_buildhistory_dump |
| Product: |
[Build System, Metadata & Runtime] Toaster
|
Reporter: |
Richard Purdie <richard.purdie> |
| Component: |
toaster | Assignee: |
Elliot Smith <elliot.smith> |
| Status: |
RESOLVED
FIXED
|
QA Contact: |
Libertad <libertad.gonzalez.de.la.cruz> |
| Severity: |
major
|
|
|
| Priority: |
Medium+
|
CC: |
belen.barros.pena, brian.avery, jessica.zhang, stanciux.mihail
|
| Version: |
2.2 | |
|
| Target Milestone: |
2.2 M3 | |
|
| Hardware: |
x86 | |
|
| OS: |
Multiple | |
|
| Whiteboard: |
|
|
OS type for building Yocto:
|
---
|
Type of Regression:
|
---
|
|
Verified:
|
|
Documentation change:
|
No (bug/feature does not impact docs)
|
| Bug Depends on: |
9784
|
|
|
| Bug Blocks: |
|
|
|
If my image doesn't build (for example I Ctrl+C a bitbake core-image-sato early before it completes I'm now seeing: NOTE: Writing buildhistory ERROR: Execution of event handler 'toaster_buildhistory_dump' failed Traceback (most recent call last): File "/media/build1/poky/meta/classes/toaster.bbclass", line 335, in toaster_buildhistory_dump(e=<bb.event.BuildCompleted object at 0x7f9e9b1b51d0>): > with open("%s/files-in-image.txt" % installed_img_path, "r") as fin: for line in fin: FileNotFoundError: [Errno 2] No such file or directory: '/media/build1/poky/build/buildhistory/images/genericx86_64/glibc/core-image-sato/files-in-image.txt' ERROR: Running idle function Traceback (most recent call last): File "/media/build1/poky/bitbake/lib/bb/cooker.py", line 1400, in buildTargetsIdle(server=<ProcessServer(ProcessServer-1, started)>, rq=<bb.runqueue.RunQueue object at 0x7f9e9ba30f60>, abort=False): if not retval: > bb.event.fire(bb.event.BuildCompleted(len(rq.rqdata.runtaskentries), buildname, targets, failures, interrupted), self.data) self.command.finishAsyncCommand(msg) File "/media/build1/poky/bitbake/lib/bb/event.py", line 174, in fire(event=<bb.event.BuildCompleted object at 0x7f9e9b1b51d0>, d=<bb.data_smart.DataSmart object at 0x7f9ea2f6cd30>): > fire_class_handlers(event, d) if worker_fire: File "/media/build1/poky/bitbake/lib/bb/event.py", line 112, in fire_class_handlers(event=<bb.event.BuildCompleted object at 0x7f9e9b1b51d0>, d=<bb.data_smart.DataSmart object at 0x7f9ea2f6cd30>): continue > execute_handler(name, handler, event, d) File "/media/build1/poky/bitbake/lib/bb/event.py", line 84, in execute_handler(name='toaster_buildhistory_dump', handler=<function toaster_buildhistory_dump at 0x7f9eb1ef7378>, event=<bb.event.BuildCompleted object at 0x7f9e9b1b51d0>, d=<bb.data_smart.DataSmart object at 0x7f9ea2f6cd30>): try: > ret = handler(event) except (bb.parse.SkipRecipe, bb.BBHandledException): File "/media/build1/poky/meta/classes/toaster.bbclass", line 335, in toaster_buildhistory_dump(e=<bb.event.BuildCompleted object at 0x7f9e9b1b51d0>): > with open("%s/files-in-image.txt" % installed_img_path, "r") as fin: for line in fin: FileNotFoundError: [Errno 2] No such file or directory: '/media/build1/poky/build/buildhistory/images/genericx86_64/glibc/core-image-sato/files-in-image.txt'