WARNING: simple-sd-image-1.0-r0 do_genimage: KeyError in ./deploy-simple-sd-image
ERROR: simple-sd-image-1.0-r0 do_genimage: Error executing a python function in exec_python_func() autogenerated:
The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_python_func() autogenerated', lineno: 2, function: <module>
0001:
*** 0002:sstate_report_unihash(d)
0003:
File: '/home/phoenix/build/YOCTO.BSP-Pengutronix-OP-TEE/meta/classes/sstate.bbclass', lineno: 840, function: sstate_report_unihash
0836: report_unihash = getattr(bb.parse.siggen, 'report_unihash', None)
0837:
0838: if report_unihash:
0839: ss = sstate_state_fromvars(d)
*** 0840: report_unihash(os.getcwd(), ss['task'], d)
0841:}
0842:
0843:#
0844:# Shell function to decompress and prepare a package for installation
File: '/home/phoenix/build/YOCTO.BSP-Pengutronix-OP-TEE/bitbake/lib/bb/siggen.py', lineno: 596, function: report_unihash
0592:
0593: if "." in self.method:
0594: (module, method) = self.method.rsplit('.', 1)
0595: locs['method'] = getattr(importlib.import_module(module), method)
*** 0596: outhash = bb.utils.better_eval('method(path, sigfile, task, d)', locs)
0597: else:
0598: outhash = bb.utils.better_eval(self.method + '(path, sigfile, task, d)', locs)
0599:
0600: try:
File: '/home/phoenix/build/YOCTO.BSP-Pengutronix-OP-TEE/bitbake/lib/bb/utils.py', lineno: 420, function: better_eval
0416: if extraglobals:
0417: ctx = copy.copy(ctx)
0418: for g in extraglobals:
0419: ctx[g] = extraglobals[g]
*** 0420: return eval(source, ctx, locals)
0421:
0422:@contextmanager
0423:def fileslocked(files):
0424: """Context manager for locking and unlocking file locks."""
File: '<string>', lineno: 1, function: <module>
File "<string>", line 1, in <module>
File: '/home/phoenix/build/YOCTO.BSP-Pengutronix-OP-TEE/meta/lib/oe/sstatesig.py', lineno: 592, function: OEOuthashBasic
0588:
0589: update_hash("\n")
0590:
0591: # Process this directory and all its child files
*** 0592: process(root)
0593: for f in files:
0594: if f == 'fixmepath':
0595: continue
0596: process(os.path.join(root, f))
File: '/home/phoenix/build/YOCTO.BSP-Pengutronix-OP-TEE/meta/lib/oe/sstatesig.py', lineno: 555, function: process
0551: add_perm(stat.S_IXOTH, 'x')
0552:
0553: if include_owners:
0554: try:
*** 0555: update_hash(" %10s" % pwd.getpwuid(s.st_uid).pw_name)
0556: update_hash(" %10s" % grp.getgrgid(s.st_gid).gr_name)
0557: except KeyError:
0558: bb.warn("KeyError in %s" % path)
0559: raise
Exception: KeyError: 'getpwuid(): uid not found: 1000'
ERROR: Logfile of failure stored in: /home/phoenix/build/YOCTO.BSP-Pengutronix-OP-TEE/build/tmp/work/stm32dk2-oe-linux-gnueabi/simple-sd-image/1.0-r0/temp/log.do_genimage.2807
ERROR: Task (/home/phoenix/build/YOCTO.BSP-Pengutronix-OP-TEE/meta-ptx-optee/meta-ptx-optee-bsp/recipes-core/images/simple-sd-image.bb:do_genimage) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2745 tasks of which 2744 didn't need to be rerun and 1 failed.
Summary: 1 task failed:
/home/phoenix/build/YOCTO.BSP-Pengutronix-OP-TEE/meta-ptx-optee/meta-ptx-optee-bsp/recipes-core/images/simple-sd-image.bb:do_genimage
Summary: There was 1 WARNING message shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
This looks like a pseudo problem where pseudo tries to record the uid for the images contained in DEPLOYDIR
, but those are already owned by the user and pseudo can't lookup the uid.