Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command "apropos" doesn find anything #201

Closed
2f2a opened this issue Jan 26, 2023 · 2 comments
Closed

Command "apropos" doesn find anything #201

2f2a opened this issue Jan 26, 2023 · 2 comments
Labels

Comments

@2f2a
Copy link

2f2a commented Jan 26, 2023

Hi, I tested "Grml" the other day, and noticed "apropos man" return nothing.

(wut I was doing: I accidentally deleted my home-directory, was sorting backup, and one slash too much.. I had the "grml" -debian package installed, noticed another inconvenience, that Debian-Grml had mounted the corrupt disk..)

@jkirk jkirk added the help-wanted Lack of resources, please contribute if it's important for you label Feb 2, 2023
@jkirk
Copy link
Collaborator

jkirk commented Feb 2, 2023

Just played around a bit with apropos and I can say that directly after booting apropos man did return some content.

But after some time this happened:

root@grml ~ # apropos man
man: nothing appropriate.

Running mandb manually fixed that for me.
We still need to find out, why the mandb got lost.

If you can, please help us by giving us some steps to reproduce this behavior.
Also please check if /var/cache/man/index.db really does not exist, when apropos returns nothing.

@jkirk
Copy link
Collaborator

jkirk commented Feb 2, 2023

We just found this:

root@grml ~ # apropos man | wc -l
590
root@grml ~ # systemctl list-timers
NEXT                        LEFT       LAST PASSED UNIT                         ACTIVATES                     
Thu 2023-02-02 15:06:09 UTC 12min left -    -      systemd-tmpfiles-clean.timer systemd-tmpfiles-clean.service

1 timers listed.
Pass --all to see loaded but inactive timers, too.
root@grml ~ # systemctl restart systemd-tmpfiles-clean.service 
root@grml ~ # apropos man        
man: nothing appropriate.

@mika then found this:

root@grml ~ # cat /usr/lib/tmpfiles.d/man-db.conf
d /var/cache/man 0755 man man 1w

So, the man cache gets deleted if its older than a week when systemd-tmpfiles-clean.timer kicks in (15 minutes after boot).
FTR, the cache is older than a week 😉 :

root@grml ~ # ls -l /var/cache/man/index.db 
-rw-r--r-- 1 man man 573440 Nov 29 07:16 /var/cache/man/index.db

We are working on a fix. Thanks for the bug report @2f2a !

@mika mika added bug and removed help-wanted Lack of resources, please contribute if it's important for you labels Feb 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants