Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 37794 - updatedb answers |fatal error: updatedb: create_db(): chdir: No such file or directory
Summary: updatedb answers |fatal error: updatedb: create_db(): chdir: No such file or ...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-10 06:43 UTC by Nuno Alexandre
Modified: 2005-04-16 15:09 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nuno Alexandre 2004-01-10 06:43:31 UTC
after upgrading slocate-2.7-r3 to slocate-2.7-r4, this problem appears:
[root@Genbox:bin]$updatedb
fatal error: updatedb: create_db(): chdir: No such file or directory

Issueing "find /" works ok, so there is no problem browsing the system.
I dont have NFS.

the contents  of /var/lib/slocate:

[root@Genbox:slocate]$la /var/lib/slocate/
total 4332
drwxr-x---    2 root     slocate      4096 Jan 10 15:32 .
drwxr-xr-x   30 root     root         4096 Dec 27 08:07 ..
-rw-r--r--    1 root     slocate         0 Jan 10 15:28 .keep
-rw-r-----    1 root     slocate   4412782 Jan 10 15:32 slocate.db




Reproducible: Always
Steps to Reproduce:
1. upgrade to the mentioned slocate version
2. issue updatedb manually or with cron
3. updatedb fails with the mentioned error

Actual Results:  
[root@Genbox:bin]$updatedb
fatal error: updatedb: create_db(): chdir: No such file or directory


Expected Results:  
just update the db and say no error

Portage 2.0.49-r20 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r3, 2.6.1)
=================================================================
System uname: 2.6.1 i686 AMD Athlon(TM) XP 1800+
Gentoo Base System version 1.4.3.10
ccache version 2.3 [enabled]
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -fstack-protector"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /opt/glftpd/etc /usr/X11R6/lib/X11/xkb
/usr/kde/2/share/config /usr/kde/3/share/config /usr/share                     
                     /config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -fstack-protector"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache cvs sandbox"
GENTOO_MIRRORS="http://gentoo.linux.no/"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X aalib alsa apm avi berkdb bindist cdr crypt directfb emacs encode
fbcon foomaticdb gd gd-external gdbm gg                                        
  i gif gpm gtk gtk2 imlib ipv6 java jikes jpeg ldap libg++ libwww mad mikmod
mmx motif mpeg mysql ncurses oggvorbis ope                                     
     ngl oss pam pdflib perl php pic png pnp python quicktime readline ruby sasl
sdl slang spell sse ssl svga tcltk tcpd ti                                     
     ff truetype x86 xml2 xmms xv zlib"
Comment 1 Tom Wesley 2004-01-12 12:16:36 UTC
Added for interest in reiserfs and this bug - I'm using 2.6.1 and can confirm that the problem still exists.
Comment 2 SpanKY gentoo-dev 2004-10-03 00:38:26 UTC
please run `updatedb -v` and `strace -f -echdir updatedb` and post the output
Comment 3 Gabriel Rossetti 2005-04-16 15:09:12 UTC
remove contents of /var/lib/slocate/
(need to be root)

# rm -fr /var/lib/slocate/*

and re-run updatedb -u

# updatedb -u

and that should fix the problem, it did for me