Bug 24519

Summary: slocate cron job error
Product: [Retired] Red Hat Linux Reporter: Jeremy Katz <katzj>
Component: slocateAssignee: Bill Nottingham <notting>
Status: CLOSED RAWHIDE QA Contact: Brock Organ <borgan>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.1CC: rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-01-30 02:36:10 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jeremy Katz 2001-01-21 21:47:54 UTC
/etc/cron.daily/slocate.cron:

fatal error: updatedb: create_db(): rename: No such file or directory


I think this may have begun happening only after updating to slocate-2.5-1,
but it seems I've got a couple messages about it sitting in the local
mailspool.

Comment 1 Helge Deller 2001-01-22 19:51:11 UTC
I couldn't reproduce your problem here. After updating to slocate-2.5-1 no
errors occured, but when I removed /var/lib/slocate/slocate.db I got:
warning: updatedb: could not open database: /var/lib/slocate/slocate.db: No such
file or directory,
but afterwards it worked everytime without problems.

Please, check:
1. the existance of the /var/lib/slocate directory
2. remove all slocate.*-files there,
3. and try again by directly starting /etc/cron.daily/slocate.cron 
You should get one error, but after that it should work cleanly again.


Comment 2 Jeremy Katz 2001-01-22 20:06:42 UTC
Even if only generated on the initial install on the slocate package, it still
shouldn't generate an error that gets mailed to root due to the confusion this
causes to users.  See bugs 13611 and 14222 for previous reports and resolutions
of this on older versions of slocate

Comment 3 Jeremy Katz 2001-01-30 02:36:07 UTC
*** Bug 25252 has been marked as a duplicate of this bug. ***

Comment 4 Bill Nottingham 2001-01-31 18:21:16 UTC
Fixed in 2.5-2; slocate-2.5-info patch was broken.