Bug 14694 - logrotate.LogrotateTest.test_logrotate_wtmp failure: /var/lib/logrotate.status is already locked
Summary: logrotate.LogrotateTest.test_logrotate_wtmp failure: /var/lib/logrotate.statu...
Status: RESOLVED WORKSFORME
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 3.4
Hardware: x86 Multiple
: Medium normal
Target Milestone: 5.0
Assignee: Unassigned
QA Contact:
URL:
Whiteboard: AB-INT AB-HAVE-PLAN
Depends on:
Blocks:
 
Reported: 2022-01-17 15:38 UTC by Alexandre Belloni
Modified: 2024-03-07 16:19 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandre Belloni 2022-01-17 15:38:09 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/107/builds/2542/steps/14/logs/stdio

AssertionError: 1 != 0 : logrotate did not successfully rotate the wtmp log. Output from logrotate -vf: 
reading config file /tmp/logrotate-test.conf
olddir is now /home/root/logrotate_dir
including /etc/logrotate.d/wtmp
reading config file /etc/logrotate.d/wtmp
error: state file /var/lib/logrotate.status is already locked
logrotate does not support parallel execution on the same set of logfiles.
Comment 1 Randy MacLeod 2022-01-20 15:47:49 UTC
Note: non-SSD worker. May not be relevant but noted.
Comment 2 Randy MacLeod 2022-04-11 16:16:16 UTC
Single occurrence 3 months ago. Move to next release or close?
Comment 3 Randy MacLeod 2022-10-27 14:54:55 UTC
This may be a race condition. There is likely a default log rotate service and if this test runs at the same time the error will occur.

Please collect more logs if this is seen again.
Comment 4 Randy MacLeod 2023-10-30 15:37:32 UTC
Build move to 5.0 -- ../Randy
Comment 5 Randy MacLeod 2024-03-07 16:19:08 UTC
Re-open if it happens again.