-
1. Re: Problems when upgrade version 1.2.0 to 1.2.6
jfclere Jun 13, 2014 1:45 AM (in response to arturoth)Where did you get mod_cluster libraries?
-
2. Re: Problems when upgrade version 1.2.0 to 1.2.6
arturoth Jun 13, 2014 10:29 AM (in response to jfclere)Man,
I get libraries from http://downloads.jboss.org/mod_cluster/1.2.6.Final/linux-x86_64/mod_cluster-1.2.6.Final-linux2-x64-ssl.tar.gz and make clean install and replace conf files with the other ones.
New scenery:
In version 1.2.0-Final i get the same error:
httpd[7474]: segfault at 18 ip 00007fb65bc4592e sp 00007fb65aef7cc8 error 4 in mod_manager.so[7fb65bc3c000+e000]
:/ Please help us.
-
3. Re: Problems when upgrade version 1.2.0 to 1.2.6
mbabacek Jun 13, 2014 4:02 PM (in response to arturoth)Hi Arturo, the most crucial thing here is the version of your Apache HTTP Server. The libraries you downloaded work well only with httpd 2.2.2x.
If you tell us the version of the httpd you need to run, we will be able to help you i.e. by guiding you through compiling your own binaries, preferably of mod_cluster 1.2.9.Final or 1.3.x., because mod_cluster 1.2.6.Final contains an unpleasant performance bug.
K.
-
4. Re: Problems when upgrade version 1.2.0 to 1.2.6
arturoth Jun 15, 2014 12:25 AM (in response to mbabacek)Michael.
We had Apache/2.2.21 and jboss-eap-6.0 for apps. If you could help me to solve this fix, would be very greatful.
Thanks for all and I wait 'ur answer.
Best regards,
-
5. Re: Problems when upgrade version 1.2.0 to 1.2.6
jfclere Jun 16, 2014 2:09 AM (in response to arturoth)So you use the httpd from /opt/jboss/httpd/sbin/httpd of the mod_cluster-1.2.6.Final-linux2-x64-ssl.tar.gz and you have a core, correct?
What I did download and install (opt/jboss/httpd/sbin/installhome.sh) in my fedora20:
+++
[jfclere@jfcpc TMP]$ /home/jfclere/TMP/TMP/opt/jboss/httpd/sbin/apachectl -V
Server version: Apache/2.2.21 (Unix)
Server built: Oct 1 2013 10:20:37
Server's Module Magic Number: 20051115:30
Server loaded: APR 1.4.5, APR-Util 1.3.12
Compiled using: APR 1.4.5, APR-Util 1.3.12
Architecture: 64-bit
Server MPM: Worker
threaded: yes (fixed thread count)
forked: yes (variable process count)+++
Basic tests are OK. You are probably mixing httpd from centos and modules from the bundle or new httpd and old httpd. you should clean your box and make a fresh installation of the bundle.
If that still doesn't help try to debug httpd (LogLevel debug) in httpd.conf
-
6. Re: Problems when upgrade version 1.2.0 to 1.2.6
rhusar Jun 16, 2014 8:50 AM (in response to arturoth)In case you want to build your own modules as suggested by Michal, see instructions here: mod_cluster Documentation. Don't worry, it's easy.
-
7. Re: Problems when upgrade version 1.2.0 to 1.2.6
arturoth Jun 16, 2014 9:59 AM (in response to arturoth)Man,
There is the specifications of MC :
/opt/jboss/httpd/sbin/apachectl -V
Server version: Apache/2.2.21 (Unix)
Server built: Oct 1 2013 10:20:37
Server's Module Magic Number: 20051115:30
Server loaded: APR 1.4.5, APR-Util 1.3.12
Compiled using: APR 1.4.5, APR-Util 1.3.12
Architecture: 64-bit
Server MPM: Worker
threaded: yes (fixed thread count)
forked: yes (variable process count)
Server compiled with....
-D APACHE_MPM_DIR="server/mpm/worker"
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_SYSVSEM_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=128
-D HTTPD_ROOT="/opt/jboss/httpd/httpd"
-D SUEXEC_BIN="/opt/jboss/httpd/sbin/suexec"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="conf/mime.types"
-D SERVER_CONFIG_FILE="conf/httpd.conf"
Another thing, the install was clean and i had new error:
httpd[24802]: segfault at 64696e6f91 ip 00007f7cfe40429e sp 00007f7cfd7c0c88 error 4 in mod_slotmem.so[7f7cfe402000+3000]
In this moment, i will try with new release (1.3.0) and advise you if all is OK.
Best regards,
-
8. Re: Problems when upgrade version 1.2.0 to 1.2.6
arturoth Jun 16, 2014 12:03 PM (in response to arturoth)Guys.
When i tried to compile the last version (modcluster/mod_cluster · GitHub) with mod_cluster Documentation I get this error :
[Mon Jun 16 11:32:17 2014] [emerg] ap_lookup_provider mod_cluster_slotmem failed Configuration Failed
And my settings in "httpd.conf" are.LoadModule manager_module /opt/jboss/httpd/lib/httpd/modules/mod_manager.so
LoadModule slotmem_module /opt/jboss/httpd/lib/httpd/modules/mod_slotmem.so
LoadModule proxy_cluster_module /opt/jboss/httpd/lib/httpd/modules/mod_proxy_cluster.so
LoadModule advertise_module /opt/jboss/httpd/lib/httpd/modules/mod_advertise.so
Help please!!! Or somebody have the kindness to send me a compile version.
-
9. Re: Problems when upgrade version 1.2.0 to 1.2.6
arturoth Jun 16, 2014 4:38 PM (in response to arturoth)At the end, finally i repair the problem with this step .
:::::::::::::::::::::::::::::::::::
dw repo
:::::::::::::::::::::::::::::::::::
/tmp/mod_cluster
git clone https://github.com/modcluster/mod_cluster.git
git checkout -b 1.3.0.Final
git checkout 1.3.0.Final
:::::::::::::::::::::::::::::::::::
Repeat this steps
:::::::::::::::::::::::::::::::::::
sh buildconf
./configure --with-apxs=/opt/jboss/httpd/sbin/apxs
make
cp *.so /opt/jboss/httpd/lib/httpd/modules
::::::::::::::::::::::::::::::::::
in 4 paths
::::::::::::::::::::::::::::::::::
/tmp/mod_cluster/native/advertise/
/tmp/mod_cluster/native/mod_cluster_slotmem/
/tmp/mod_cluster/native/mod_manager/
/tmp/mod_cluster/native/mod_proxy_cluster/
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Finally in /opt/jboss/httpd/httpd/conf/httpd.conf
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
#LoadModule slotmem_module /opt/jboss/httpd/lib/httpd/modules/mod_slotmem.so
LoadModule cluster_slotmem_module /opt/jboss/httpd/lib/httpd/modules/mod_cluster_slotmem.so
:::::::::::::::::::::::::::::::::::
Restart apachectl service
:::::::::::::::::::::::::::::::::::
When i pass this steps to productive servers, i comment this.
-
10. Re: Problems when upgrade version 1.2.0 to 1.2.6
jfclere Jun 17, 2014 2:56 AM (in response to arturoth)#LoadModule slotmem_module /opt/jboss/httpd/lib/httpd/modules/mod_slotmem.so
LoadModule cluster_slotmem_module /opt/jboss/httpd/lib/httpd/modules/mod_cluster_slotmem.so
That change is need for httpd-2.4.x which brings a different mod_slotmem.so than the one mod_cluster is using.
-
11. Re: Problems when upgrade version 1.2.0 to 1.2.6
rhusar Jun 20, 2014 3:48 AM (in response to jfclere)There is also Jira to use slotmem from httpd:
[MODCLUSTER-54] Use slotmems from httpd-trunk - JBoss Issue Tracker
(if anyone want to pick that work up from the community).
For the 2.4.x i have created Jira to update the documentation:
[MODCLUSTER-421] Document LoadModule mod_cluster_slotmem.so change - JBoss Issue Tracker
so that we dont forget.