Page 1 of 1

Error when starting apache

Posted: Tue May 26, 2015 3:21 am
by mrezzonico
I all,

when I start apache I receive the following error:

# /etc/init.d/apache2 restart
[Tue May 26 09:06:32 2015] [warn] worker ajp://xxx.xxx.xx:8009/sac already used by another worker
[Tue May 26 09:06:32 2015] [warn] worker ajp://xxxx.xxx.xx:8009/sac already used by another worker
Syntax OK
Shutting down httpd2 (waiting for all children to terminate) done
Starting httpd2 (prefork) [Tue May 26 09:06:32 2015] [warn] worker ajp://xxxx.xxx.xx:8009/sac already used by another worker
[Tue May 26 09:06:32 2015] [warn] worker ajp://xxxx.xxx.xx:8009/sac already used by another worker


If in the file:
/etc/opt/scalix-tomcat/connector/ajp/app-xxxx.sacapi.conf

I comment the line:
# ProxyPass /sacapi ajp://xxxx.xxx.xx:8009/sacapi timeout=30 retry=1 ttl=5 ping=5

... the error disappears.

Any help to correctly solve the problem is appreciated.

Regards.
Miche

Re: Error when starting apache

Posted: Mon Jul 06, 2015 12:49 am
by fkienker
Not sure what version of Scalix or what operating system you are using. This would certainly make it easer to assist you. I've seen similar issues with both Scalix 12.5.0 and 12.1.0 running on CentOS 6 64 bit. I tried in another thread to get some assistance but no one really was able to give many useful suggestions. Your post has give me an idea where to look.

The httpd error_log has lots of these messages, one after another:

[Sun Jul 05 21:49:36 2015] [error] ajp_read_header: ajp_ilink_receive failed
[Sun Jul 05 21:49:36 2015] [error] (70007)The timeout specified has expired: proxy: read response failed from (null) ((xxx)-mail.(xxx).net)
[Sun Jul 05 21:50:29 2015] [error] (70007)The timeout specified has expired: ajp_ilink_receive() can't receive header
[Sun Jul 05 21:50:29 2015] [error] ajp_read_header: ajp_ilink_receive failed
[Sun Jul 05 21:50:29 2015] [error] (70007)The timeout specified has expired: proxy: read response failed from 192.168.11.10:8009 ((xxx)-mail.(xxx).net)

I will try what you did and see if it makes a difference.

Re: Error when starting apache

Posted: Tue Jul 07, 2015 12:55 am
by kanderson
What is the result if you restart scalix-tomcat?

/etc/init.d/scalix-tomcat restart

Also what is the result from

ps auwwx|grep java

Kev.

Re: Error when starting apache

Posted: Thu Jul 09, 2015 1:23 pm
by fkienker
The restart appears clean:

[root@mail ~]# /etc/init.d/scalix-tomcat restart
Instance (mail) is running
Stopping Tomcat service (mail): Using CATALINA_BASE: /var/opt/scalix/ml/tomcat
Using CATALINA_HOME: /opt/scalix-tomcat
Using CATALINA_TMPDIR: /var/opt/scalix/ml/tomcat/temp
Using JRE_HOME: /usr
Using CLASSPATH: /var/opt/scalix/ml/tomcat/bin/tomcat-juli.jar:/opt/scalix-tomcat/bin/bootstrap.jar
Using CATALINA_PID: /var/opt/scalix/ml/tomcat/tomcat.pid
[ OK ]
Starting Tomcat service (mail): Using CATALINA_BASE: /var/opt/scalix/ml/tomcat
Using CATALINA_HOME: /opt/scalix-tomcat
Using CATALINA_TMPDIR: /var/opt/scalix/ml/tomcat/temp
Using JRE_HOME: /usr
Using CLASSPATH: /var/opt/scalix/ml/tomcat/bin/tomcat-juli.jar:/opt/scalix-tomcat/bin/bootstrap.jar
Using CATALINA_PID: /var/opt/scalix/ml/tomcat/tomcat.pid
[ OK ]
The "ps auwwx|grep java" gives:

root 18422 108 2.4 6890616 407360 pts/0 Sl 13:08 0:17 /usr/bin/java -Djava.util.logging.config.file=/var/opt/scalix/ml/tomcat/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -server -Xms1024m -Xmx1024m -Dfile.encoding=UTF-8 -Djava.net.preferIPv4Stack=true -Dscalix.instance=/var/opt/scalix/ml -Djava.endorsed.dirs=/opt/scalix-tomcat/endorsed -classpath /var/opt/scalix/ml/tomcat/bin/tomcat-juli.jar:/opt/scalix-tomcat/bin/bootstrap.jar -Dcatalina.base=/var/opt/scalix/ml/tomcat -Dcatalina.home=/opt/scalix-tomcat -Djava.io.tmpdir=/var/opt/scalix/ml/tomcat/temp org.apache.catalina.startup.Bootstrap start

Re: Error when starting apache

Posted: Sat Dec 26, 2015 10:41 am
by ScalixSupport
Hello Mr. Miche,

Have your issue solved ? after instruction provided by the members if it is still pending could you please create support ticket ?

For this issue need apache tuning and tomcat tuning like timeout, connection limit, etc

Regards,
Scalix Support Team.