Bug 16258

Summary: AB-INT: do_rootfs: useradd / tallylog: Permission denied
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Mathieu Dubois-Briand <mathieu.dubois-briand>
Component: coreAssignee: Unassigned <unassigned>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Undecided CC: meta.mr.watcher, meta.watcher, richard.purdie
Version: 5.99   
Target Milestone: 0.0.0   
Hardware: x86   
OS: Multiple   
Whiteboard: AB-INT
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Mathieu Dubois-Briand 2026-04-21 06:53:14 UTC
We have had this issue on the autobuilder for a few days now:

ERROR: core-image-full-cmdline-1.0-r0 do_rootfs: [log_check] core-image-full-cmdline: found 4 error messages in the logfile:
[log_check] b'/srv/pokybuild/yocto-worker/qemux86/build/build/tmp/work/qemux86-poky-linux/core-image-full-cmdline/1.0/recipe-sysroot-native/usr/sbin/useradd\n/srv/pokybuild/yocto-worker/qemux86/build/build/tmp/work/qemux86-poky-linux/core-image-full-cmdline/1.0/recipe-sysroot-native/usr/sbin/useradd\nRunning useradd commands...\nNOTE: ptest-runner: Performing useradd with [--prefix /srv/pokybuild/yocto-worker/qemux86/build/build/tmp/work/qemux86-poky-linux/core-image-full-cmdline/1.0/recipe-sysroot --system --no-create-home --home / --user-group ptest]\npam_tally2: Error opening /var/log/tallylog for update: Permission denied\npam_tally2: Authentication error\nuseradd: failed to reset the tallylog entry of user "ptest"\n/srv/pokybuild/yocto-worker/qemux86/build/build/tmp/work/qemux86-poky-linux/core-image-full-cmdline/1.0/recipe-sysroot-native/usr/sbin/useradd\n'
[log_check] pam_tally2: Error opening /var/log/tallylog for update: Permission denied
[log_check] pam_tally2: Error opening /var/log/tallylog for update: Permission denied
[log_check] pam_tally2: Error opening /var/log/tallylog for update: Permission denied
Comment 1 Mathieu Dubois-Briand 2026-04-21 07:08:53 UTC
qemux86 opensuse156-vk-1 master-next&master completed at 2026-04-16 23:39:40+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/30/builds/3587/steps/15/logs/stdio

qemux86-64-ltp opensuse156-vk-1 mathieu/master-next completed at 2026-04-17 07:04:49+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/63/builds/3428/steps/13/logs/stdio

meta-virt opensuse156-vk-1 mathieu/master-next completed at 2026-04-19 18:33:44+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/89/builds/3464/steps/14/logs/stdio

meta-virt opensuse156-vk-1 mathieu/master-next completed at 2026-04-20 16:22:28+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/89/builds/3469/steps/14/logs/stdio


Following errors differ a bit, but the underlying issue is the same:
Error opening /var/log/tallylog for update: Permission denied\npam_tally2: Authentication error\nuseradd: failed to reset the tallylog entry of user "ptest"

genericarm64 opensuse156-vk-1 master-next completed at 2026-04-17 12:41:31+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/60/builds/3616/steps/13/logs/stdio

multilib opensuse156-vk-1 master-next&master completed at 2026-04-20 12:17:09+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/92/builds/3606/steps/25/logs/stdio
Comment 2 Mathieu Dubois-Briand 2026-04-22 08:59:47 UTC
qemuarm64 opensuse156-vk-1 mathieu/master-next-tests&mathieu/master-next completed at 2026-04-21 17:49:40+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/36/builds/3633/steps/14/logs/stdio