You are not logged in.

#1 2010-03-16 11:24:05

belbono
Member
Registered: 2008-08-21
Posts: 25

mandb issues

Hey everyone,

since several weeks I'm having trouble with the daily cronjob regarding mandb. Its very slow and almost blocking the system for several minutes. Think several other people are having a similar problem.

I have installed
  man-db 2.5.7-1
  man-pages 3.24-1

So, I already read through threads like http://bbs.archlinux.org/viewtopic.php?pid=616277 and http://bbs.archlinux.org/viewtopic.php?id=76528. Didn't helped me so far.

I checked the problem with modprobe.d.5.gz but there wasn't an incorrect link.
According to the output from mandb, there are some bad symlinks in the net-snmp package. Anyway, this bug has already been reported (http://bugs.archlinux.org/task/18605).

I'm also getting a lot of 'ignoring bogus filename' messages.

I already tried to completely remove those packages (by pacman -Rscn man-db man-pages) and reinstalled them. Didn't help.
Calling mandb results always to the following status output:

10 man subdirectories contained newer manual pages.
15908 manual pages were added.
0 stray cats were added.
0 old database entries were purged.

So apart from the problems with the net-snmp package, what can I do get rid of this 'ignoring bogus filename' warnings?
However, until this is fixed, I think I will set the cronjob to 644.

Thanks in advance
bel

Offline

#2 2010-03-16 11:58:21

Ultraman
Member
Registered: 2009-12-24
Posts: 242

Re: mandb issues

man-db got an update 2 days ago, I updated yesterday.
The update includes a new cron script which is more extended than the old one. It also includes settings for niceness, the old one does not. I see you have updated to this new version of man-db, have you also replaced the old script with the new one as pacman suggests?

The new script is at the /etc/cron.daily/man-db.pacnew and the old one is in the same directory without the .pacnew extension.
Compare the scripts and spot the niceness variables in there, perhaps they can help you with your load problem.
You can remove the old script and rename the man-db.pacnew to man-db.
Check if it is still executable after doing so, it was fine over here.

Last edited by Ultraman (2010-03-16 11:59:18)

Offline

#3 2010-03-16 12:45:37

belbono
Member
Registered: 2008-08-21
Posts: 25

Re: mandb issues

Thanks for your response.

I'd already replaced the old script several days ago. It changed nothing so far.
Maybe I try setting IONICE_CLASS=3, but anyway I think this wouldn't fix the actual problems regarding 'ignoring bogus filename' and incorrect symlinks.

Offline

#4 2010-03-16 14:13:39

Ultraman
Member
Registered: 2009-12-24
Posts: 242

Re: mandb issues

Okay, I'm sorry but that was my only idea for the moment.
I don't know about those bogus filenames. I have not run into that issue (yet).

Offline

#5 2010-03-16 14:20:44

Daenyth
Forum Fellow
From: Boston, MA
Registered: 2008-02-24
Posts: 1,244

Re: mandb issues

There have been some issues with mandb generating the whole db instead of doing an incremental update if some files are wrong. Look on the bug tracker at the closed mandb bugs and it should provide steps to find out what files are causing the problem

Offline

#6 2010-03-17 19:59:07

linfan
Member
From: Stockholm, Sweden
Registered: 2004-04-23
Posts: 135

Re: mandb issues

I don't know what is wrong with man-db, but I uninstalled it completely and my computer runs more smoothly. What is the use of those man pages any way? You can read them on the web, if you need them.

Offline

#7 2010-03-17 20:00:23

Peasantoid
Member
Registered: 2009-04-26
Posts: 928
Website

Re: mandb issues

linfan wrote:

I don't know what is wrong with man-db, but I uninstalled it completely and my computer runs more smoothly. What is the use of those man pages any way? You can read them on the web, if you need them.

Some people don't always have a working connection, you insensitive clod. tongue

Offline

#8 2010-03-17 21:28:00

Peasantoid
Member
Registered: 2009-04-26
Posts: 928
Website

Re: mandb issues

As for the 'ignoring bogus filename' messages, I've found this is caused by /usr/share/man/man3x (symlink to man3). Remove that and you should be fine.

** Crap, double-posted.

Last edited by Peasantoid (2010-03-17 21:28:20)

Offline

#9 2010-03-19 09:15:42

turing
Member
From: Munich, Germany
Registered: 2006-12-10
Posts: 30

Re: mandb issues

I had the same issue, nothing mentioned at the bugtracker worked.

So I uninstalled man-pages and man-db.
Then I deleted /etc/cron.daily/man-db*, /var/cache/man/* and /usr/share/man/*.
Installed man-pages and man-db again and ran mandb again.

Now it takes 1 second to run the command.

Offline

#10 2010-03-19 17:32:08

Gen2ly
Member
From: Sevierville, TN
Registered: 2009-03-06
Posts: 1,529
Website

Re: mandb issues

I love man pages.  You guys are cruel tongue.

Mandb put man pages in a database for faster access.  It's had problems in the past when I used Debian, but haven't heard of anything since then until now.  As far as accessing man pages quickly, I've always like it.  Don't think I'm going to change this until I find a proper fix, or I'll wait for a fix in an update.

Last edited by Gen2ly (2010-03-19 17:32:41)


Setting Up a Scripting Environment | Proud donor to wikipedia - link

Offline

#11 2010-03-20 20:28:48

Leonid.I
Member
From: Aethyr
Registered: 2009-03-22
Posts: 999

Re: mandb issues

Peasantoid wrote:

As for the 'ignoring bogus filename' messages, I've found this is caused by /usr/share/man/man3x (symlink to man3). Remove that and you should be fine.

** Crap, double-posted.

I agree. This is a bug in man-pages, right? Although, in the corresponding PKGBUILD nothing creates this link... Have you filed a bug, or should I?

L.


Arch Linux is more than just GNU/Linux -- it's an adventure
pkill -9 systemd

Offline

#12 2010-03-20 20:40:32

Peasantoid
Member
Registered: 2009-04-26
Posts: 928
Website

Re: mandb issues

Leonid.I wrote:

I agree. This is a bug in man-pages, right? Although, in the corresponding PKGBUILD nothing creates this link... Have you filed a bug, or should I?

L.

I examined man-db and man-pages from ABS and neither seems to create the problematic symlink. Looks like the problem was an archaic PKGBUILD that has since been updated.

Offline

#13 2010-03-21 01:03:06

ataraxia
Member
From: Pittsburgh
Registered: 2007-05-06
Posts: 1,553

Re: mandb issues

ataraxia@amaranth:~ $ pacman -Qo /usr/share/man/man3x
/usr/share/man/man3x is owned by filesystem 2010.02-4

Offline

#14 2010-03-21 02:56:56

Peasantoid
Member
Registered: 2009-04-26
Posts: 928
Website

Re: mandb issues

ataraxia: ...or that.

Does anyone know what the purpose of that symlink is?

Offline

#15 2010-03-21 18:27:30

Leonid.I
Member
From: Aethyr
Registered: 2009-03-22
Posts: 999

Re: mandb issues

Peasantoid wrote:

ataraxia: ...or that.

Does anyone know what the purpose of that symlink is?

I guess, it is just book keeping:
http://en.wikipedia.org/wiki/Man_page

So, 3x means C library manual, categorized in a X window section... Although bogus filenames errors were related to 3p, such as umask.3p.gz. This means C library, POSIX specs.

What I don't understand, is why did *.3p.gz man pages end up in the man3x dir. I suppose it should have been man3p hmm On RHEL systems there are directories, not symlinks, like man3x.

FYI, I reinstalled man-pages and the symlink did not go away -- must be a left=over from a previous version.
PS: Of course, pacman -Qo man3x/* will point to man-pages.


Arch Linux is more than just GNU/Linux -- it's an adventure
pkill -9 systemd

Offline

#16 2010-03-21 21:57:32

Peasantoid
Member
Registered: 2009-04-26
Posts: 928
Website

Re: mandb issues

Leonid.I: As ataraxia said, man3x/ is in filesystem, not man-pages. Since -x seems to be a standardized suffix, the issue would appear to lie with man-db instead.

Offline

#17 2010-03-21 23:35:41

Leonid.I
Member
From: Aethyr
Registered: 2009-03-22
Posts: 999

Re: mandb issues

Oops, my bad. Sorry for that ataraxia, must have misread your post.

Actually this now makes sense, just take a look at the latest filesystem PKGBUID from ABS. Therefore, it's not man-db related. I would argue that it is a bug, since a more logical layout would be to create man3{x,p} and copy all *.3{x,p}.gz files in there, so that man3 contains only *.3.gz.

I can file a bug, if you guys agree.

L.


Arch Linux is more than just GNU/Linux -- it's an adventure
pkill -9 systemd

Offline

#18 2010-03-22 02:11:54

Peasantoid
Member
Registered: 2009-04-26
Posts: 928
Website

Re: mandb issues

What I mean is that mandb is buggy for choking on man3x, since man*x should be considered valid. Instead it calls that a 'bogus filename'.

If I have time later, I'll sift around in the source and see if I can hunt me some bugs.

** Hmm... actually I see what you mean -- it's not that mandb dislikes man*x, it's that there's a mismatch between man3x/foo.3.gz (when it should only be seeing foo.3x.gz). So yeah, bug in man-pages and/or filesystem, not man-db.

Last edited by Peasantoid (2010-03-22 02:19:20)

Offline

#19 2010-03-22 17:00:53

Leonid.I
Member
From: Aethyr
Registered: 2009-03-22
Posts: 999

Re: mandb issues

Apparently, we were not the first to notice this, because there is a bug report FS#18783 agains filesystem.


Arch Linux is more than just GNU/Linux -- it's an adventure
pkill -9 systemd

Offline

#20 2010-11-19 21:18:55

goetzkluge
Member
From: Munich
Registered: 2009-05-05
Posts: 60
Website

Re: mandb issues

mandb run 20 minutes today. Conkey reported 3 instances running at times.

Offline

Board footer

Powered by FluxBB