You are not logged in.

#1 2012-05-19 15:42:33

xangelux
Member
Registered: 2010-05-29
Posts: 73

[SOLVED]/etc/cron.daily/man-db exited with return code 2

Hi guys, 4 days ago I was trying to configure my system so I could send emails via ssmtp on my website developments and finally got it working but since 3 days ago I realize my system is takeing it too for internal mail sending (that's not a issue, i kinda like it) and started to send a mail every day complaining about mandb

/usr/bin/mandb: can't create index cache /var/cache/man/fsstnd/es/2006: No such file or directory

Finally it says "/etc/cron.daily/man-db exited with return code2"

If I use /usr/bin/mandb --debug --no-purge to see what is happening I have a couple of warnings

From the config file /etc/man_db.conf:

Mandatory mandir `/usr/man'.
Mandatory mandir `/usr/share/man'.
Mandatory mandir `/usr/local/share/man'.
Path `/bin' mapped to mandir `/usr/share/man'.
Path `/usr/bin' mapped to mandir `/usr/share/man'.
Path `/sbin' mapped to mandir `/usr/share/man'.
Path `/usr/sbin' mapped to mandir `/usr/share/man'.
Path `/usr/local/bin' mapped to mandir `/usr/local/man'.
Path `/usr/local/bin' mapped to mandir `/usr/local/share/man'.
Path `/usr/local/sbin' mapped to mandir `/usr/local/man'.
Path `/usr/local/sbin' mapped to mandir `/usr/local/share/man'.
Path `/usr/X11R6/bin' mapped to mandir `/usr/X11R6/man'.
Path `/usr/bin/X11' mapped to mandir `/usr/X11R6/man'.
Path `/usr/games' mapped to mandir `/usr/share/man'.
Path `/opt/bin' mapped to mandir `/opt/man'.
Path `/opt/sbin' mapped to mandir `/opt/man'.
Global mandir `/usr/man', catdir `/var/cache/man/fsstnd'.
Global mandir `/usr/share/man', catdir `/var/cache/man'.
Global mandir `/usr/local/man', catdir `/var/cache/man/oldlocal'.
Global mandir `/usr/local/share/man', catdir `/var/cache/man/local'.
Global mandir `/usr/X11R6/man', catdir `/var/cache/man/X11R6'.
Global mandir `/opt/man', catdir `/var/cache/man/opt'.
Added section `1'.
Added section `n'.
Added section `l'.
Added section `8'.
Added section `3'.
Added section `0'.
Added section `2'.
Added section `5'.
Added section `4'.
Added section `9'.
Added section `6'.
Added section `7'.
`/usr/man'	`'	`1'
`/usr/share/man'	`'	`1'
`/usr/local/share/man'	`'	`1'
`/bin'	`/usr/share/man'	`0'
`/usr/bin'	`/usr/share/man'	`0'
`/sbin'	`/usr/share/man'	`0'
`/usr/sbin'	`/usr/share/man'	`0'
`/usr/local/bin'	`/usr/local/man'	`0'
`/usr/local/bin'	`/usr/local/share/man'	`0'
`/usr/local/sbin'	`/usr/local/man'	`0'
`/usr/local/sbin'	`/usr/local/share/man'	`0'
`/usr/X11R6/bin'	`/usr/X11R6/man'	`0'
`/usr/bin/X11'	`/usr/X11R6/man'	`0'
`/usr/games'	`/usr/share/man'	`0'
`/opt/bin'	`/opt/man'	`0'
`/opt/sbin'	`/opt/man'	`0'
`/usr/man'	`/var/cache/man/fsstnd'	`-1'
`/usr/share/man'	`/var/cache/man'	`-1'
`/usr/local/man'	`/var/cache/man/oldlocal'	`-1'
`/usr/local/share/man'	`/var/cache/man/local'	`-1'
`/usr/X11R6/man'	`/var/cache/man/X11R6'	`-1'
`/opt/man'	`/var/cache/man/opt'	`-1'
`1'	`'	`-5'
`n'	`'	`-5'
`l'	`'	`-5'
`8'	`'	`-5'
`3'	`'	`-5'
`0'	`'	`-5'
`2'	`'	`-5'
`5'	`'	`-5'
`4'	`'	`-5'
`9'	`'	`-5'
`6'	`'	`-5'
`7'	`'	`-5'

path directory /usr/local/rvm/gems/ruby-1.9.2-p318@rails3tutorial/bin is not in the config file
and doesn't have ../man, man, ../share/man, or share/man subdirectories

path directory /usr/local/rvm/gems/ruby-1.9.2-p318@global/bin is not in the config file
and doesn't have ../man, man, ../share/man, or share/man subdirectories

path directory /usr/local/rvm/rubies/ruby-1.9.2-p318/bin is not in the config file
but does have a ../man, man, ../share/man, or share/man subdirectory
adding /usr/local/rvm/rubies/ruby-1.9.2-p318/share/man to manpath

path directory /usr/local/rvm/bin is not in the config file
but does have a ../man, man, ../share/man, or share/man subdirectory
adding /usr/local/rvm/man to manpath

path directory /usr/local/bin is in the config file
adding /usr/local/man to manpath
adding /usr/local/share/man to manpath

path directory /usr/bin is in the config file
adding /usr/share/man to manpath

path directory /bin is in the config file
/usr/share/man is already in the manpath

path directory /usr/local/sbin is in the config file
/usr/local/man is already in the manpath
/usr/local/share/man is already in the manpath

path directory /usr/sbin is in the config file
/usr/share/man is already in the manpath

path directory /sbin is in the config file
/usr/share/man is already in the manpath

path directory /opt/android-sdk/platform-tools is not in the config file
and doesn't have ../man, man, ../share/man, or share/man subdirectories

path directory /opt/android-sdk/tools is not in the config file
and doesn't have ../man, man, ../share/man, or share/man subdirectories

path directory /usr/bin/vendor_perl is not in the config file
and doesn't have ../man, man, ../share/man, or share/man subdirectories

path directory /usr/bin/core_perl is not in the config file
and doesn't have ../man, man, ../share/man, or share/man subdirectories

path directory /opt/qt/bin is not in the config file
but does have a ../man, man, ../share/man, or share/man subdirectory
adding /opt/qt/man to manpath

path directory ./ is not in the config file
and doesn't have ../man, man, ../share/man, or share/man subdirectories

path directory /home/angelux/.rvm/bin is not in the config file
and doesn't have ../man, man, ../share/man, or share/man subdirectories

adding mandatory man directories

adding /usr/man to manpath
/usr/share/man is already in the manpath
/usr/local/share/man is already in the manpath
manpath=/usr/man:/usr/share/man:/usr/local/man:/usr/local/share/man:/usr/X11R6/man:/opt/man
adding /usr/man to manpathlist
adding /usr/share/man to manpathlist
adding /usr/local/man to manpathlist
adding /usr/local/share/man to manpathlist
aviso: /usr/X11R6/man: No existe el fichero o el directorio
aviso: /opt/man: No existe el fichero o el directorio
Removing duplicate manpath entry /usr/local/share/man (3) -> /usr/local/man (2)
final search path = /usr/man:/usr/share/man:/usr/local/man
Procesando las páginas de manual bajo /usr/man...
failed to open /var/cache/man/fsstnd/2264 O_RDONLY
create_db(/usr/man): /var/cache/man/fsstnd/2264
Testing /usr/man for new files
Procesando las páginas de manual bajo /usr/man/es...
failed to open /var/cache/man/fsstnd/es/2264 O_RDONLY
create_db(/usr/man/es): /var/cache/man/fsstnd/es/2264
Testing /usr/man/es for new files
Examining man2
	subdirectory man2 has been 'modified'
/usr/bin/mandb: aviso: no se pudo crear directorio para «cat» /var/cache/man/fsstnd/es.
warning: cannot create catdir /var/cache/man/fsstnd/es
/usr/bin/mandb: no se puede crear el caché de índices /var/cache/man/fsstnd/es/2264.: No existe el fichero o el directorio
/usr/bin/mandb: no se puede actualizar el caché de índices /var/cache/man/fsstnd/es/2264.: No existe el fichero o el directorio
listo.

My system is ok and nothing is missing but this error shouldn't happend I think and I haven't play arround with man or anything so... don't know what is it. Should I re-install something or change some config file or what?

Thanks in advance.

Last edited by xangelux (2012-05-21 11:31:14)

Offline

#2 2012-05-19 19:11:52

ConnorBehan
Package Maintainer (PM)
From: Long Island NY
Registered: 2007-07-05
Posts: 1,359
Website

Re: [SOLVED]/etc/cron.daily/man-db exited with return code 2

Are they warnings or errors?

failed to open /var/cache/man/fsstnd/2264 O_RDONLY

looks like an error so I think you will get a return code of 2 whether you run it manually or from cron. Is this true? I would try changing the permissions on /var/cache/man.


6EA3 F3F3 B908 2632 A9CB E931 D53A 0445 B47A 0DAB
Great things come in tar.xz packages.

Offline

#3 2012-05-19 20:20:04

xangelux
Member
Registered: 2010-05-29
Posts: 73

Re: [SOLVED]/etc/cron.daily/man-db exited with return code 2

ConnorBehan wrote:

Are they warnings or errors?

failed to open /var/cache/man/fsstnd/2264 O_RDONLY

looks like an error so I think you will get a return code of 2 whether you run it manually or from cron. Is this true? I would try changing the permissions on /var/cache/man.

Yes, this is true, it's an error. Te permissions are set to 755 with root as owner, I just opened the directory and it is empty, I mean, there is no fsstnd dir inside, I checked as root.

Offline

#4 2012-05-20 20:42:17

xangelux
Member
Registered: 2010-05-29
Posts: 73

Re: [SOLVED]/etc/cron.daily/man-db exited with return code 2

Ok, I think the problem is some update or maybe a package deleted my fsstnd folder, so I will create it and give it a shot, if tomorrow I don't recive an email from anacron I will mark this as solved.

Offline

Board footer

Powered by FluxBB