Mantis - Resin
Viewing Issue Advanced Details
5747 major always 06-09-14 04:58 11-11-14 11:08
vicsanca  
ferg  
normal  
closed 4.0.40  
fixed  
none    
none 4.0.42  
0005747: mod_caucho breaks rotatelog on apache
Using rotatelogs and resin breaks rotatelogs with segmentation fault
Installing Resin 4.0.x on Centos 6.5 x64 with Apache

service iptables stop
chkconfig iptables off
yum update
yum install gcc httpd httpd-devel openssl-devel wget java-1.6.0-openjdk-devel
wget http://www.caucho.com/download/resin-4.0.40.tar.gz [^]
tar xvfz resin-4.0.40.tar.gz
mv resin-4.0.40 /usr/resin
cd /usr/resin
./configure --with-apache=/usr/sbin --with-apxs=/usr/sbin/apxs --with-apache-libexec=/usr/lib64/httpd/modules --with-apache-include=/usr/include/httpd --enable-64bit --prefix=/usr/resin
make
make install
chkconfig resin on
chkconfig httpd on
service resin start
service httpd start

vi /etc/httpd/conf/httpd.conf

Check Resin is working accessing http://[your_ip]/caucho-status [^]
Locate
    CustomLog logs/access_log combined
Change it by
    CustomLog "|rotatelogs /var/log/httpd/access_log 86400" common

You get this error:
[Mon Jun 09 11:55:52 2014] [notice] child pid 5211 exit signal Segmentation fault (11)
piped log program 'rotatelogs /var/log/httpd/access_log 86400' failed unexpectedly


rotatelogs works fine if resin module is not included.

Notes
(0006453)
vicsanca   
06-09-14 05:34   
Apache is not working if mod_caucho and rotatelogs. Not only rotatelogs fails.
(0006456)
vicsanca   
06-12-14 00:16   
Looks related with this:
http://bugs.caucho.com/view.php?id=5744 [^]

Version 4.0.35 works fine.
(0006457)
alex   
06-20-14 09:39   
rep by Kaarthiprakash R Jayabalan


ErrorLog "|/opt/apache2/bin/rotatelogs -l -f /opt/apache2/logs/error-%Y_%m_%d-%H_%M_%S.log 86400"
 
CustomLog "|/opt/apache2/bin/rotatelogs -l -f /opt/apache2/logs/access-%Y_%m_%d-%H_%M_%S.log 86400" common
 
Test Result:
1. Now with the above rotatelogs logger configuration in apache, mod_caucho fails to load and there occurs “Broken Pipe” error when apache is started.