Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 92344

Summary: slocate missing nice path
Product: Gentoo Linux Reporter: Jesse <gentoobugzilla>
Component: [OLD] UnspecifiedAssignee: Cron Team <cron-bugs+disabled>
Status: RESOLVED NEEDINFO    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Jesse 2005-05-12 02:51:47 UTC
in the /etc/cron.daily/slocate
nice is used, but it's full path is not.
a PATH either needs to be specified in the file or nice needs to be referred to as /bin/nice

https://www.redhat.com/archives/fedora-list/2004-January/msg06598.html

I've noticed this problem with vcron. not sure if it's vcron only (since vcron has an empty PATH variable, meaning no /bin)

Reproducible: Always
Steps to Reproduce:

Actual Results:  

if left in it's current condition, whoever gets root's mail wil get an email
saying the following:

fatal error: updatedb: create_db(): rename: No such file or directory
Comment 1 Jesse 2005-05-12 02:53:59 UTC
Whoops- shoulda tested to make sure that woulda fixed the bug- I guess that's what I get for getting help from a mandrake user :)

We're trying to isolate the cause of the email now- it seems sporatic at best, so it might take a while to track down.

so I guess it's not nice that's the problem.
Comment 2 Jesse 2005-05-12 02:59:05 UTC
or it could be that trixy path again:
<K_F> just add an additional comment, problem is a missing PATH, can't find "rename"

whereas nice is found at /bin/nice, rename is found at /usr/bin/rename

that's probably the cause, so a path should be added for rename I guess.
pretty silly I guess.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2005-05-12 03:02:56 UTC
The path to nice should be there anyway, AFAIK. But I can
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2005-05-12 03:02:56 UTC
The path to nice should be there anyway, AFAIK. But I canĀ“t see any reference to rename in that cron job.
Comment 5 Aaron Walker (RETIRED) gentoo-dev 2005-05-12 05:58:24 UTC
hmm... if you have an empty PATH variable then you are not using the system crontab installed by vixie-cron.

you didn't explicitly say you were using vixie-cron, so please do tell us what cron daemon you are using (and the version).  Also attaching your /etc/crontab would be nice.
Comment 6 Aaron Walker (RETIRED) gentoo-dev 2005-05-15 07:43:05 UTC
Reopen when you provide the information I talked about in comment #4.