[Bug 1219370] New: recent update of package 'man' is causing installation errors
https://bugzilla.suse.com/show_bug.cgi?id=1219370 Bug ID: 1219370 Summary: recent update of package 'man' is causing installation errors Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Other Assignee: screening-team-bugs@suse.de Reporter: comes@naic.edu QA Contact: qa-bugs@suse.de Target Milestone: --- Found By: --- Blocker: --- After the recent update of the package 'man' few days ago, after I complete a tumbleweed installation I see many error message in /var/log/zypp/history like: # 2024-01-30 15:14:48 okular-23.08.4-1.2.x86_64.rpm installed ok # Additional rpm output: # /usr/bin/mandb: can't create index cache /var/cache/man/28439: No such file or directory # 2024-01-30 15:14:48|install|okular|23.08.4-1.2|x86_64||openSUSE-20240128-0|7ab449585748ca45227b66763d5376ca5fbba244075330b8d73f02b587fd53244422ea93636ceeee3174607716ba5eefdd04d9f995f213419fabfc68c76c9f44| # 2024-01-30 14:47:14 totem-43.0-4.1.x86_64.rpm installed ok # Additional rpm output: # /usr/bin/mandb: can't create index cache /var/cache/man/15071: No such file or directory # 2024-01-30 14:47:14|install|totem|43.0-4.1|x86_64||openSUSE-20240128-0|3d8ec0aa702138cb58f9d35681000e67103be5935f22b5b53c27e8f3a5d62c515bfe54ba6c6e6d005659bb7911fac213aa09a7f9318842b15c1ccb95bc7a5daa| # 2024-01-30 14:44:28 emacs-29.1-8.1.x86_64.rpm installed ok # Additional rpm output: # /usr/bin/mandb: can't create index cache /var/cache/man/12259: No such file or directory # 2024-01-30 14:44:28|install|emacs|29.1-8.1|x86_64||openSUSE-20240128-0|d19e7b859f1722b148afedf38c38031195206837a811f044be73c4292ccad4dac281b494451224633eb9ea3c2d5b926a9563d9e844998c5536f407b590fd7132| There are about 300 of such errors. One week ago there were none. I guess such errors are related to the macro %(trans)filetriggerin recently added in the man spec file. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1219370 Chenzi Cao <chcao@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|screening-team-bugs@suse.de |werner@suse.com -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1219370 https://bugzilla.suse.com/show_bug.cgi?id=1219370#c4 Giacomo Comes <comes@naic.edu> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(comes@naic.edu) | --- Comment #4 from Giacomo Comes <comes@naic.edu> --- (In reply to Dr. Werner Fink from comment #1)
Does /usr/lib/tmpfiles.d/man-db.conf exists?
Yes
Does /var/cache/man/ exists?
Yes
Is this a container or full system with running systemd?
full system with systemd
What happens is you run
/usr/bin/systemd-tmpfiles --create /usr/lib/tmpfiles.d/man-db.conf
command get executed, no error messages -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1219370 https://bugzilla.suse.com/show_bug.cgi?id=1219370#c5 Giacomo Comes <comes@naic.edu> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|NEW |RESOLVED --- Comment #5 from Giacomo Comes <comes@naic.edu> --- (In reply to Dr. Werner Fink from comment #3)
Please give 'man' from
https://download.opensuse.org/repositories/Base:/System/standard/
a try .. guess: architecture is x86_64
I did a new installation and now I don't see the error as well. Either the recent mass rebuild fixed the problem, or there was some hiccup during my previous installation. Anyway, since I cannot reproduce the problem anymore, I'm going to close this bug. If the problem resurface again, I'll reopen it. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1219370 https://bugzilla.suse.com/show_bug.cgi?id=1219370#c7 Giacomo Comes <comes@naic.edu> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED |--- --- Comment #7 from Giacomo Comes <comes@naic.edu> --- The bug is back and this time I had the opportunity to try several installation and I think I understood what is going on. The installation I did was with tumbleweed snapshot 20240208. I have a local copy of it so I can do several installation test without worrying about new packages being available in tumbleweed. During a installation, after the 'man' package is installed the error messages about '/var/cache/man/nnnnn not found' starts to appear in /var/log/zypp/history. Each error message is printed after the corresponding package is installed. The error is consistent with the fact that /var/cache/man does not exist while the packages are installed, because it gets created at the end of the installation process when the transpost scriptlet of the package 'man' get executed. During the installation, while the error messages were written in /var/log/zypp/history, I decided to run: /usr/bin/systemd-tmpfiles --create /usr/lib/tmpfiles.d/man-db.conf and after that /var/cache/man was created and in /var/log/zypp/history there were no more error messages. It looks to me like the macro %transfiletriggerin defined in the package 'man' is executed not at the end of the transaction, but at the end of each package installation, like if it was a %filetriggerin macro. If I have to guess, there is a bug in the code that decides when to run the filetrigger macro. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1219370 https://bugzilla.suse.com/show_bug.cgi?id=1219370#c9 --- Comment #9 from Giacomo Comes <comes@naic.edu> --- The tumbleweed snapshot I was using did not have the updated man package. Let me use the latest snapshot and see how it goes. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1219370 https://bugzilla.suse.com/show_bug.cgi?id=1219370#c11 Giacomo Comes <comes@naic.edu> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(comes@naic.edu) | --- Comment #11 from Giacomo Comes <comes@naic.edu> --- I tested the current tumbleweed snapshot which contains the man package with SR#1145198. There are no error messages in /var/log/zypp/history during the installation. When the man package with SR#1146144 appears in next few days in tumbleweed I'll test it too and report here. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1219370 https://bugzilla.suse.com/show_bug.cgi?id=1219370#c12 --- Comment #12 from Giacomo Comes <comes@naic.edu> --- I tested the latest tumbleweed snapshot which includes man-2.12.0-4.1 with SR#1146144. At the end of the installation I found the following error message in /var/log/zypp/history: # 2024-02-17 21:15:18 man-2.12.0-4.1.x86_64.rpm installed ok # Additional rpm output: # Failed to open '/usr/lib/tmpfiles.d/man-db.conf': No such file or directory # Updating /etc/sysconfig/cron ... # Created symlink /etc/systemd/system/timers.target.wants/man-db.timer -> /usr/lib/systemd/system/man-db.timer. # 2024-02-17 21:15:18|install|man|2.12.0-4.1|x86_64||openSUSE-20240216-0|523c08bff4873411abcc210c900a98906806989bff5079c7c891637b1d672951a47e659cdd5d7a2866f06b4e1732517ebcad400154be8e2d7ee5b83c4643a160| On a fresh installation, during the pre scriptlet execution, before man istelf is installed, /usr/lib/tmpfiles.d/man-db.conf does not exist yet. May be the post scriptlet is the proper location for such failing command? -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1219370 https://bugzilla.suse.com/show_bug.cgi?id=1219370#c15 Giacomo Comes <comes@naic.edu> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution|--- |FIXED Flags|needinfo? | --- Comment #15 from Giacomo Comes <comes@naic.edu> --- After the last change in the man package, there are no more errors during the installation. The issue is fixed. Closing the bug. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com