Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
rlocate not updating
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
gustafson
Guru
Guru


Joined: 12 Aug 2004
Posts: 430

PostPosted: Fri Jul 21, 2006 5:39 pm    Post subject: rlocate not updating Reply with quote

rlocate doesn't seem to update...

I started at http://rlocate.sourceforge.net/ to make sure I had the write kernel compile options. I compiled, installed the module, started the daemon, did the first updatedb. It should be working (I think). However when I change files nothing happens, meaning it doesn't find the new file.

For example:
Code:
touch testfile.txt
rlocate testfile.txt


and I get nothing.

Any suggestions on how to debug?

2.6.16-gentoo-r9
Back to top
View user's profile Send private message
feivelda
Guru
Guru


Joined: 21 Feb 2005
Posts: 480
Location: Frankfurt, Germany

PostPosted: Fri Jul 21, 2006 8:51 pm    Post subject: Reply with quote

Do you have done it by
Code:
emerge rlocate
rc-update add rlocate default
/etc/init.d/rlocate start

:?:
Back to top
View user's profile Send private message
gustafson
Guru
Guru


Joined: 12 Aug 2004
Posts: 430

PostPosted: Mon Jul 24, 2006 4:58 pm    Post subject: Reply with quote

Yes... except I think the init script is
/etc/init.d/rlocated

Interestingly, I got it working on two other machines (~x86) and not on this one (~amd64). I did the same process on each one.
Back to top
View user's profile Send private message
feivelda
Guru
Guru


Joined: 21 Feb 2005
Posts: 480
Location: Frankfurt, Germany

PostPosted: Mon Jul 24, 2006 5:12 pm    Post subject: Reply with quote

Try a rlocate-checkpoint as root.
Look if and what files are added since the last updatedb
Back to top
View user's profile Send private message
gustafson
Guru
Guru


Joined: 12 Aug 2004
Posts: 430

PostPosted: Mon Jul 24, 2006 7:08 pm    Post subject: Reply with quote

gus # rlocate-checkpoint
No checkpoints found. Printing all files since last updatedb.

gus # rc-status |grep rl
rlocated [ started ]
Back to top
View user's profile Send private message
sleipner
n00b
n00b


Joined: 13 Aug 2005
Posts: 48

PostPosted: Mon Jul 24, 2006 7:19 pm    Post subject: Reply with quote

rlocate 0.5.1 has some problems.. you could try downgrading to 0.5.0-r1
Back to top
View user's profile Send private message
gustafson
Guru
Guru


Joined: 12 Aug 2004
Posts: 430

PostPosted: Mon Jul 24, 2006 7:48 pm    Post subject: Reply with quote

OK. I'll try and report back. I note that this is what happens when I try to stop the daemon.
Code:
# /etc/init.d/rlocated stop
 * Caching service dependencies ...                                       [ ok ]
 * Stopping rlocated ...
start-stop-daemon: warning: failed to kill 9507: No such process          [ !! ]
 * Removing rlocate kernel module ...   
Back to top
View user's profile Send private message
gustafson
Guru
Guru


Joined: 12 Aug 2004
Posts: 430

PostPosted: Mon Jul 24, 2006 10:00 pm    Post subject: Reply with quote

OK, now the module loads and unloads. However when I locate files it doesn't find recent changes.

Running rlocate-checkpoint spews a whole list of files...

rlocate-0.5.0-r1
Back to top
View user's profile Send private message
sleipner
n00b
n00b


Joined: 13 Aug 2005
Posts: 48

PostPosted: Tue Jul 25, 2006 9:17 am    Post subject: Reply with quote

there is some changes in database format between 0.5.0 and 0.5.1. if you didn't delete old database when updating/downgrading updatedb fails.
Code:

/etc/init.d/rlocated stop
rm /var/lib/rlocate/rlocate.db*
/etc/init.d/rlocated start
updatedb


also check system log & dmesg for rlocate.
Back to top
View user's profile Send private message
sageman
Guru
Guru


Joined: 04 May 2005
Posts: 363
Location: New Hampshire

PostPosted: Tue Jul 25, 2006 12:37 pm    Post subject: Reply with quote

I have rlocate 0.5.1 up and running just fine. I suggest doing a

Code:

emerge -C rlocate
rm -f /var/lib/rlocate/rlocate.db


and then re-installing it, as on the wiki: http://gentoo-wiki.com/HOWTO_Setup_Slocate/Rlocate_in_Gentoo . Make sure you have default linux capabilities as a module and it's not loaded. If that works out well, I'll make note of it on the wiki.

After it's installed, of course, install the module into the kernel, start up the daemon and build up the initial database:

Code:

modprobe rlocate
/etc/init.d/rlocated start
updatedb
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum