Bug 223728

Summary: psacct logrotate file looks for non existant directory.
Product: [Fedora] Fedora Reporter: Jerry Williams <sa84120>
Component: psacctAssignee: Ivana Varekova <varekova>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6   
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: 2007-01-23 09:42:16 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Jerry Williams 2007-01-22 00:33:19 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; (R1 1.1); .NET CLR 1.1.4322; FDM; .NET CLR 2.0.50727)

Description of problem:
Running psacct-6.3.2-42.fc7 and logrotate-3.7.4-10.fc7.
Getting email Subject: Anacron job for 'localhost' cron.daily /etc/cron.daily/logrotate:

Error: stat of /var/account/pacct failed: No such file or directory

Looks like /etc/logrotate.d/psacct belongs to the psacct package.

So if /etc/logrotate.d/psacct is going to look for /var/account/pacct, them 
maybe the packages should create the directory.


Version-Release number of selected component (if applicable):
psacct-6.3.2-42.fc7

How reproducible:
Always


Steps to Reproduce:
1.installed new OS
2.receive email about the problem.
3.

Actual Results:
Receive email:
Subject: Anacron job for 'localhost' cron.daily /etc/cron.daily/logrotate:

Error: stat of /var/account/pacct failed: No such file or directory



Expected Results:
Either psacct needs to create the directory or not look for it.

Additional info:

Comment 1 Ivana Varekova 2007-01-22 15:47:50 UTC
I try to reproduce your problem but I was unsuccesfull - 
Could you please attach the output of command 
ls -la /var/account/

Comment 2 Jerry Williams 2007-01-22 17:16:58 UTC
# ls -la /var/account/
total 16
drwxr-xr-x  2 root root 4096 2007-01-02 04:01 .
drwxr-xr-x 22 root root 4096 2007-01-20 16:04 ..

# rpm -q psacct
psacct-6.3.2-42.fc7

Well I decided to remove psacct with rpm -e psacct and then I did a
yum install psacct and now the file is there.
# ls -la /var/account/
total 12
drwxr-xr-x  2 root root 4096 2007-01-22 10:13 .
drwxr-xr-x 22 root root 4096 2007-01-22 10:13 ..
-rw-r--r--  1 root root    0 2007-01-22 10:13 pacct
# rpm -q psacct
psacct-6.3.2-42.fc7

So it must be some kind of problem with a full install.

Comment 3 Jerry Williams 2007-01-23 03:55:46 UTC
Did another install on a different laptop.
Just let first box checked for office stuff and checked development tools
and did install and ls /var/account/ is empty.

Comment 4 Jerry Williams 2007-01-23 06:30:24 UTC
Found this in /root/install.log:
Installing psacct - 6.3.2-42.fc7.i386
/var/tmp/rpm-tmp.77045: line 10: touch: command not found
error: %post(psacct-6.3.2-42.fc7.i386) scriptlet failed, exit status 127


Comment 5 Ivana Varekova 2007-01-23 09:42:16 UTC
Thank you for your help. This problem is fixed in psacct-6.3.2-42.fc6 (and in
devel in psacct-6.3.2-43.fc7).