Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 316135 - app-admin/logrotate. Some preinstalled scripts produce many error messages to root mail
Summary: app-admin/logrotate. Some preinstalled scripts produce many error messages to...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Daniel Gryniewicz (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-19 16:54 UTC by Andrey Korobkov
Modified: 2011-08-10 11:41 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Korobkov 2010-04-19 16:54:32 UTC
1) app-admin/logrotate installs script /etc/logrotate.d/apache2
2) without installed www-servers/apache2 and dev-db/mysql root's mail (/root/dead.letter) contains tons of messages:

error: error accessing /var/log/apache2: No such file or directory                                                                            
error: apache2:4 glob failed for /var/log/apache2/*log                                                                                        
error: found error in /var/log/apache2/*log , skipping                                                                                        
error: mysql:7 unknown user 'mysql'                                                                                                           
error: found error in /var/log/mysql/mysql.err /var/log/mysql/mysql.log /var/log/mysql/mysqld.err , skipping                                  
error: stat of /var/log/mysql/mysqld.err failed: No such file or directory 

Reproducible: Always

Steps to Reproduce:
1. Install app-admin/logrotate.
2. Do not install www-servers/apache2 and dev-db/mysql.
Actual Results:  
3. After initiation of logrotate scripts (either by cron or by other means) you can see that messages in your /root/dead.letter.


Expected Results:  
Silent ignoring absent directories (or may be something more appropriate?)

It was tested on the latest logrotate (3.7.8).
Comment 1 Daniel Gryniewicz (RETIRED) gentoo-dev 2010-04-19 23:59:22 UTC
logrotate-3.7.8 does not install an apache2 here.  Indeed, I looked, and didn't find any apache2 (or mysql) anywhere in the ebuild or tarball for logrotate.  Are you sure logrotate installed it there?
Comment 2 Dirkjan Ochtman (RETIRED) gentoo-dev 2011-08-09 07:26:19 UTC
This can probably be closed as NEEDINFO?