Bug 14234

Summary: Unknown user during do_package
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Ross Burton <ross.burton>
Component: coreAssignee: Unassigned <unassigned>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Undecided CC: meta.mr.watcher, meta.watcher, richard.purdie
Version: 3.4   
Target Milestone: ---   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Ross Burton 2021-02-15 11:17:07 UTC
Most likely due to the new uninative release:

File: '/home/pokybuild/yocto-worker/genericx86/build/meta/lib/oe/sstatesig.py', lineno: 599, function: OEOuthashBasic
     0595:            process(root)
     0596:            for f in files:
     0597:                if f == 'fixmepath':
     0598:                    continue
 *** 0599:                process(os.path.join(root, f))
     0600:    finally:
     0601:        os.chdir(prev_dir)
     0602:
     0603:    return h.hexdigest()
File: '/home/pokybuild/yocto-worker/genericx86/build/meta/lib/oe/sstatesig.py', lineno: 559, function: process
     0555:                    except KeyError as e:
     0556:                        bb.warn("KeyError in %s" % path)
     0557:                        msg = ("KeyError: %s\nPath %s is owned by uid %d, gid %d, which doesn't match "
     0558:                            "any user/group on target. This may be due to host contamination." % (e, path, s.st_uid, s.st_gid))
 *** 0559:                        raise Exception(msg).with_traceback(e.__traceback__)
     0560:
     0561:                if include_timestamps:
     0562:                    update_hash(" %10d" % s.st_mtime)
     0563:
File: '/home/pokybuild/yocto-worker/genericx86/build/meta/lib/oe/sstatesig.py', lineno: 553, function: process
     0549:                    add_perm(stat.S_IXOTH, 'x')
     0550:
     0551:                if include_owners:
     0552:                    try:
 *** 0553:                        update_hash(" %10s" % pwd.getpwuid(s.st_uid).pw_name)
     0554:                        update_hash(" %10s" % grp.getgrgid(s.st_gid).gr_name)
     0555:                    except KeyError as e:
     0556:                        bb.warn("KeyError in %s" % path)
     0557:                        msg = ("KeyError: %s\nPath %s is owned by uid %d, gid %d, which doesn't match "
Exception: Exception: KeyError: 'getpwuid(): uid not found: 6000'
Path ./package/etc/motd is owned by uid 6000, gid 6000, which doesn't match any user/group on target. This may be due to host contamination.
Comment 1 Richard Purdie 2021-02-18 15:33:35 UTC
This was caused by upgrading the buildtools-extended-tarball which contained glibc 2.33 and that turned out to break pseudo.

http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=f162c34fdba51902abb9e8fb79ddc5044deab275