Hide Forgot
Description of problem: After installing lapack package then rebooting the server, shutdown is delayed while man-db-cache-update.service runs "A start job is running for man-db-cache-update.service (8min 30s / 15min)" Version-Release number of selected component (if applicable): lapack-3.8.0-8.el8.x86_64 How reproducible: Always Steps to Reproduce: 1. Install package on RHEL 8 # dnf install lapack 2. Reboot server Actual results: - During shutdown, mandb cache update delays shutdown for up to 15 minutes "A start job is running for man-db-cache-update.service (5min 30s / 15min)" Expected results: - Installing lapack package should not add significant time delay during server shutdown. Additional info: - A BZ is open upstream. This does not only affect the lapack package. Consider moving man-db-cache-update to after boot instead of at shutdown https://bugzilla.redhat.com/show_bug.cgi?id=1678464 - Perhaps mandb update could run automatically in the background after installation? - Alternatively, change mandb to run after boot as described in BZ#1678464
mandb update already runs in the background after installation of packages containing man pages, that's the current behaviour. But the running update also prevents system shutdown, to ensure that mandb database stays consistent, because it's not able to recover from an interrupted update. Changing it so that mandb update runs after boot would mean that the database is out of date until the next reboot, and that would be a regression. In Fedora, I resorted to attempting to restart the update after boot if it was previously interrupted [1], but that's rather fragile. But it does solve this problem, so I might end up backporting it to RHEL anyway. As a workaround, you can install man-db-cron package and set SERVICE to "no" and CRON to "yes" in /etc/sysconfig/man-db. Doing that effectively reverts to the old behaviour, with mandb update being run as a cron job every day. [1] https://src.fedoraproject.org/rpms/man-db/c/75b683fe495e761059857c797159610881208ca6?branch=master
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (man-db bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2021:4470