This service will be undergoing maintenance at 00:00 UTC, 2016-09-28. It is expected to last about 1 hours
Bug 223728 - psacct logrotate file looks for non existant directory.
psacct logrotate file looks for non existant directory.
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: psacct (Show other bugs)
6
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Ivana Varekova
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2007-01-21 19:33 EST by Jerry Williams
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2007-01-23 04:42:16 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description Jerry Williams 2007-01-21 19:33:19 EST
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 10:47:50 EST
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 12:16:58 EST
# 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-22 22:55:46 EST
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 01:30:24 EST
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 04:42:16 EST
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).

Note You need to log in before you can comment on or make changes to this bug.