View previous topic :: View next topic |
Author |
Message |
gustafson Guru
Joined: 12 Aug 2004 Posts: 430
|
Posted: Fri Jul 21, 2006 5:39 pm Post subject: rlocate not updating |
|
|
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 |
|
|
feivelda Guru
Joined: 21 Feb 2005 Posts: 480 Location: Frankfurt, Germany
|
Posted: Fri Jul 21, 2006 8:51 pm Post subject: |
|
|
Do you have done it by
Code: | emerge rlocate
rc-update add rlocate default
/etc/init.d/rlocate start |
|
|
Back to top |
|
|
gustafson Guru
Joined: 12 Aug 2004 Posts: 430
|
Posted: Mon Jul 24, 2006 4:58 pm Post subject: |
|
|
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 |
|
|
feivelda Guru
Joined: 21 Feb 2005 Posts: 480 Location: Frankfurt, Germany
|
Posted: Mon Jul 24, 2006 5:12 pm Post subject: |
|
|
Try a rlocate-checkpoint as root.
Look if and what files are added since the last updatedb |
|
Back to top |
|
|
gustafson Guru
Joined: 12 Aug 2004 Posts: 430
|
Posted: Mon Jul 24, 2006 7:08 pm Post subject: |
|
|
gus # rlocate-checkpoint
No checkpoints found. Printing all files since last updatedb.
gus # rc-status |grep rl
rlocated [ started ] |
|
Back to top |
|
|
sleipner n00b
Joined: 13 Aug 2005 Posts: 48
|
Posted: Mon Jul 24, 2006 7:19 pm Post subject: |
|
|
rlocate 0.5.1 has some problems.. you could try downgrading to 0.5.0-r1 |
|
Back to top |
|
|
gustafson Guru
Joined: 12 Aug 2004 Posts: 430
|
Posted: Mon Jul 24, 2006 7:48 pm Post subject: |
|
|
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 |
|
|
gustafson Guru
Joined: 12 Aug 2004 Posts: 430
|
Posted: Mon Jul 24, 2006 10:00 pm Post subject: |
|
|
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 |
|
|
sleipner n00b
Joined: 13 Aug 2005 Posts: 48
|
Posted: Tue Jul 25, 2006 9:17 am Post subject: |
|
|
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 |
|
|
sageman Guru
Joined: 04 May 2005 Posts: 363 Location: New Hampshire
|
Posted: Tue Jul 25, 2006 12:37 pm Post subject: |
|
|
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 |
|
|
|