Bug 437100 - rt3 unable to log into /var/log/rt3/rt.log
Summary: rt3 unable to log into /var/log/rt3/rt.log
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: rt3
Version: rawhide
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Ralf Corsepius
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-03-12 13:31 UTC by Xavier Bachelot
Modified: 2008-04-10 17:08 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-04-10 17:08:54 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Xavier Bachelot 2008-03-12 13:31:50 UTC
Description of problem:
rt3 is unable to log into its default log file.

Version-Release number of selected component (if applicable):
rt3-3.6.6

How reproducible:
always

Steps to Reproduce:
1. install rt3 
2. add Set($LogToFile      , 'error'); to RT-SiteConfig.pm
3. start apache
4. log into rt3
  
Actual results:
Internal server error 

Expected results:
rt3 works

Additional info:
/var/log/rt3 should be owned by apache or at least an empty /var/log/rt3/rt.log
owned by apache should be packaged.
This applies to F7 and F8 packages too.

Comment 1 Xavier Bachelot 2008-03-12 14:41:52 UTC
On a related matter, no logrotate conf is shipped.
Something like that should do :
/var/log/rt3/rt.log {
    compress
    missingok
    notifempty
    rotate 5
    size 100k
}

Comment 2 Fedora Update System 2008-03-17 10:53:21 UTC
rt3-3.6.5-2.fc8 has been submitted as an update for Fedora 8

Comment 3 Fedora Update System 2008-03-17 10:54:17 UTC
rt3-3.6.3-3.fc7 has been submitted as an update for Fedora 7

Comment 4 Fedora Update System 2008-03-21 22:19:08 UTC
rt3-3.6.3-3.fc7 has been pushed to the Fedora 7 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update rt3'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F7/FEDORA-2008-2644

Comment 5 Xavier Bachelot 2008-03-26 13:10:45 UTC
There's typo in the commit and thus the logrotate file is created as
rt3.logrotate in a rt3 subdir :

--- rt3.spec.orig       2008-03-26 14:05:39.000000000 +0100
+++ rt3.spec    2008-03-26 14:06:53.000000000 +0100
@@ -210,7 +210,7 @@
 install -d -m755 ${RPM_BUILD_ROOT}%{RT3_LOGDIR}

 # install log rotation stuff
-mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d/rt3
+mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d
 install -m 644 rt3.logrotate ${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d/rt3

 install -d -m755 ${RPM_BUILD_ROOT}%{RT3_LOCALSTATEDIR}

Comment 6 Xavier Bachelot 2008-04-09 10:25:02 UTC
What is currently in cvs works for me, thanks.


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