erikg
asked on
ghost file appears in LOCATE
I have a ghost file that appears on my FreeBSD!
When I do 'locate myfile.pm' the result is something like this:
/usr/local/www/data/myfile .pm
But the thing is, the file is really placed here:
/usr/local/www/data/module s/myfile.p m
What's going on?
I have tried to remove the directory modules and then to recreate it, but that doesn't help!!
When I do 'locate myfile.pm' the result is something like this:
/usr/local/www/data/myfile
But the thing is, the file is really placed here:
/usr/local/www/data/module
What's going on?
I have tried to remove the directory modules and then to recreate it, but that doesn't help!!
It sounds like your locate database hasn't been rebuilt lately and still contains information that says the file is in /usr/local/www/data. Normally (on my 4.2 STABLE boxes) the locate database would be rebuilt by /etc/periodic/weekly/310.l ocate, which executes the script /usr/libexec.locate.update db. If you want to update the database manually, simply execute /etc/periodic/weekly/310.l ocate.
erikg:
This old question needs to be finalized -- accept an answer, split points, or get a refund. For information on your options, please click here-> http:/help/closing.jsp#1
EXPERTS:
Post your closing recommendations! No comment means you don't care.
This old question needs to be finalized -- accept an answer, split points, or get a refund. For information on your options, please click here-> http:/help/closing.jsp#1
EXPERTS:
Post your closing recommendations! No comment means you don't care.
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area for this question to:
Accept jlevie's comment as an answer
Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
Brabard
EE Cleanup Volunteer
I will leave a recommendation in the Cleanup topic area for this question to:
Accept jlevie's comment as an answer
Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
Brabard
EE Cleanup Volunteer
ASKER
I am sorry to say, that it was not the locate database that was the problem.
OK , erikg , the jlevie's comment gave right information about one of the most common reasons .
Tell how you solve the problem and the question will be finished with refunding your points .
Tell how you solve the problem and the question will be finished with refunding your points .
ASKER
We have gone from Free BSD to Linux :-)
Yeah , that's the SOLUTION :))
Joke .
What is your view at the closing of that question ? If you want to get your points back you can post a question in CS .
Joke .
What is your view at the closing of that question ? If you want to get your points back you can post a question in CS .
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
erikg,
Can you tell us what was the problem so it can be saved for future searches? jlevie's answer was a good answer to a common problem, but you said that wasn't it. Can you post here what was the solution?
majorwoo
EE Page Editor
Can you tell us what was the problem so it can be saved for future searches? jlevie's answer was a good answer to a common problem, but you said that wasn't it. Can you post here what was the solution?
majorwoo
EE Page Editor
ASKER
We never found out of how to solve the problem, and as we decided to go from FreeBSD to Linux we solved our problem, even though we could not build our knowledge base.
/ Erik
/ Erik
Ahh ok, and you tried jlevie's answer and that didn't work for you right? (If that is the case we might want to take this question out of the PAQ as there is no answer here)
majorwoo
EE Page Editor
majorwoo
EE Page Editor