-
1. Re: Invalid command ManagerBalancerName - Erro ao inicializar apache
mauriciomag Apr 14, 2013 11:44 AM (in response to adrianoschmidt)Oi Adriano tudo bom?
Aparentemente o arquivo não está enxergando os módulos... por uma distração minha nesse tutorial esqueci de dizer que os módulos devem ser adicionados no /etc/httpd/conf/httpd.conf
LoadModule slotmem_module modules/mod_slotmem.so LoadModule manager_module modules/mod_manager.so LoadModule proxy_cluster_module modules/mod_proxy_cluster.so LoadModule advertise_module modules/mod_advertise.so
Desculpe eu vou consertar o tutorial agora rsrs
Testa e verifica se funcionou!
Grande Abraço
Mauricio Magnani Jr
-
2. Re: Invalid command ManagerBalancerName - Erro ao inicializar apache
mauriciomag Apr 14, 2013 11:46 AM (in response to adrianoschmidt)Eu acabei de simular aqui...
Starting httpd: Syntax error on line 15 of /etc/httpd/conf.d/mod_cluster.conf:
Invalid command 'ManagerBalancerName', perhaps misspelled or defined by a module not included in the server configuration
[]s
-
3. Re: Invalid command ManagerBalancerName - Erro ao inicializar apache
adrianoschmidt Apr 14, 2013 12:10 PM (in response to mauriciomag)Olá, muito obrigado!!
Fiz o que você falou e aparentemente resolveu o problema que eu tinha reportado.. mas agora está acontecendo esse erro:
[root@SERVER_JBOSS_235 work]# /etc/init.d/httpd start
Starting httpd: httpd: Syntax error on line 203 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/mod_proxy_cluster.so into server: /etc/httpd/modules/mod_proxy_cluster.so: undefined symbol: ap_get_server_banner
[FAILED]
Estou pesquisando agora e vi que algumas pessoas já passaram por isso:
http://www.virtualmin.com/node/12313
https://code.google.com/p/phusion-passenger/issues/detail?id=746
Att,
Adriano Schmidt
-
4. Re: Invalid command ManagerBalancerName - Erro ao inicializar apache
mauriciomag Apr 14, 2013 12:50 PM (in response to adrianoschmidt)1 of 1 people found this helpfulAlteriormente voce havia dito que está utilizando RHEL 5.
O seu ambiente:
- Mod Cluster 1.2.3
- JBoss EAP 6.0.1 ( JBoss AS 7.1.3 )
- RHEL 5
- Apache 2.2.3
Pequisando nos Kbases da Red Hat encontrei a seguinte afirmação:
Mod-cluster 1.2.3.Final is not compatible with the HTTPD version of 2.2.3 which is shipped with RHEL 5. It is supported to use mod_cluster 1.2.3.Final only with Apache HTTPD 2.2.22 (shipped with EWS 2.0) and EAP 6.0.1 combination.
Nesse caso o EWS 2.0 não é aplicável já que é um produto a parte o JBoss Enterprise Web Server.
A solução seria fazer um "downgrade" da versão do Apache para 2.2.22 ou abaixo conforme acima.
Espero que tenha ajudado.
Abraços.
-
5. Re: Invalid command ManagerBalancerName - Erro ao inicializar apache
mauriciomag Apr 14, 2013 12:35 PM (in response to adrianoschmidt)1 of 1 people found this helpfulSe seu ambiente for exatamente o que eu descrevi as configurações "suportadas" ( existe garantia de que funciona ) são as seguintes:
Web Server Version Operating Systems Connectors Application Platform 6.0.1 Apache Web Server
(based on Apache 2.2.22)6.0.1 Red Hat Enterprise Linux 6 (x86, x86_64)
Red Hat Enterprise Linux 5 (x86, x86_64)
Solaris 11 (x86, x86_64, SPARC64)
Solaris 10 (x86, x86_64, SPARC64)
Windows Server 2008 (x86, x86_64)
Windows Server 2008 R2 (x86_64)mod_cluster 1.2.3 Final
mod_jk 1.2.36[]s
-
6. Re: Invalid command ManagerBalancerName - Erro ao inicializar apache
adrianoschmidt Apr 14, 2013 3:25 PM (in response to mauriciomag)provavelmente é isso mesmo.. muito obrigado!
estou a tarde toda tentando instalar o 2.2.22 mas ainda não consegui..
eu já desistalei o 2.2.3 e baixei o arquivo httpd-2.2.22.tar.bz2, descompactei ele e ao rodar um ./configure dá o erro a abaixo:
[root@SERVER_JBOSS_235 httpd-2.2.22]# ./configure --prefix=/opt/work/apache2.2.22
checking for chosen layout... Apache
checking for working mkdir -p... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
Configuring Apache Portable Runtime library ...
checking for APR... reconfig
configuring package in srclib/apr now
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
Configuring APR library
Platform: x86_64-unknown-linux-gnu
checking for working mkdir -p... yes
APR Version: 1.4.5
checking for chosen layout... apr
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/opt/work/httpd-2.2.22/srclib/apr':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
configure failed for srclib/apr
[root@SERVER_JBOSS_235 httpd-2.2.22]#
tentei instalr o gcc (gcc-4.8.0-1.fc19.x86_64.rpm) porém faltaram mais dependências...
[root@SERVER_JBOSS_235 installers]# rpm -ivh gcc-4.8.0-1.fc19.x86_64.rpm
warning: gcc-4.8.0-1.fc19.x86_64.rpm: Header V3 RSA/SHA256 signature: NOKEY, key ID fb4b18e6
error: Failed dependencies:
binutils >= 2.20.51.0.2-12 is needed by gcc-4.8.0-1.fc19.x86_64
cpp = 4.8.0-1.fc19 is needed by gcc-4.8.0-1.fc19.x86_64
glibc-devel >= 2.2.90-12 is needed by gcc-4.8.0-1.fc19.x86_64
libc.so.6(GLIBC_2.11)(64bit) is needed by gcc-4.8.0-1.fc19.x86_64
libc.so.6(GLIBC_2.14)(64bit) is needed by gcc-4.8.0-1.fc19.x86_64
libc.so.6(GLIBC_2.7)(64bit) is needed by gcc-4.8.0-1.fc19.x86_64
libgcc >= 4.8.0-1.fc19 is needed by gcc-4.8.0-1.fc19.x86_64
libgmp.so.10()(64bit) is needed by gcc-4.8.0-1.fc19.x86_64
libgomp = 4.8.0-1.fc19 is needed by gcc-4.8.0-1.fc19.x86_64
libmpc.so.3()(64bit) is needed by gcc-4.8.0-1.fc19.x86_64
libmpfr.so.4()(64bit) is needed by gcc-4.8.0-1.fc19.x86_64
rpmlib(FileDigests) <= 4.6.0-1 is needed by gcc-4.8.0-1.fc19.x86_64
rpmlib(PayloadIsXz) <= 5.2-1 is needed by gcc-4.8.0-1.fc19.x86_64
Não sei se faltam muitas dependências aqui.. se tenho que configurar mais repositórios yum.. já tentei um monte de coisas e não consigo avançar..
Tem alguma ideia de para onde posso seguir?
Aguardo e desde já agradeço!!
Adriano Schmidt
-
7. Re: Invalid command ManagerBalancerName - Erro ao inicializar apache
mauriciomag Apr 14, 2013 7:30 PM (in response to adrianoschmidt)Oi Adriano,
Eu não sou a melhor pessoa para falar sobre build de pacotes no Linux rsrs pois sou desenvolvedor mas acredito que seja alguma coisa dependencia relacionada ao Apache Portable Runtime....
Dá uma olhada nesse tutorial --> http://ramblin-dude.blogspot.com.br/2013/04/compiling-rpm-for-httpd-on-rhel-57.html acredito que seja o que voce precisa!
Se não rolar amanha a noite vejo com um brother especialista em RHEL como pode ser feita essa instalação.
Abs
-
8. Re: Invalid command ManagerBalancerName - Erro ao inicializar apache
mauriciomag Apr 15, 2013 10:49 AM (in response to mauriciomag)Oi Adriano,
Apenas para esclarecer, caso você tente procurar soluções na base de conhecimento (kbase) da Red Hat até alguns meses atrás era possível criar uma conta "Pessoal" e acessar os articles e solutions por 1 mês de graça já que o portal access.redhat.com é apenas para clientes que pagam a subscriçao dos produtos "enteprise" (RHEL, EAP, EWS, etc).
Atualmente o portal da Red Hat para a galera "enterprise" sofreu uma atualização sendo possível acessar apenas parte de cada solution e alguns articles.
Sendo assim a melhor maneira de encontrar a solucão para essas incompatibilidades nos produtos Enterprise é consultando as páginas publicas dos mesmos ou pagando uma subscription.
Por exemplo esse é publico ----> https://access.redhat.com/site/articles/111663
-------
Esse não é ---> https://access.redhat.com/site/solutions/147513
Subscriber content preview.A subscription is required for full access to the Red Hat Knowledgebase. Learn more about the benefits of Red Hat Subscriptions.
-------
Grande Abraço
Mauricio Magnani Jr
-
9. Re: Invalid command ManagerBalancerName - Erro ao inicializar apache
adrianoschmidt Apr 18, 2013 4:32 PM (in response to mauriciomag)Muito obrigado por tudo até agora Mauricio!!
Sobre os problemas no RHEL não consegui avançar muito.. estavam acontecendo muitos erros de dependências faltantes entre outras coisas..
Mas por questões de licença, o servidor onde rodará o Apache não será mais RHEL e sim CentOS 6.4 assim como no seu tutorial.
Agora estou rodando o apache versão 2.2.15! Se for preciso atualizarei para o 2.2.22...
Mas enfim, ao rodar um "/etc/init.d/httpd status" recebo o erro "httpd dead but subsys locked"
Já fiz tudo que sugeriram fazer nos posts que achei sobre isso na internet:
http://egorgavrilov.blogspot.com.br/2012/06/howto-httpd-dead-but-subsys-locked.html
http://awaseroot.wordpress.com/2012/06/11/subsys-lock-problem-with-centos-6-2-and-apache/
http://nixcraft.com/web-servers/16640-httpd-dead-but-subsys-locked-but-pid-exists.html
algumas tentativas:
- ipcs -s | grep apache | perl -e 'while (<STDIN>) { @a=split(/\s+/); print `ipcrm sem $a[1]`}'
- cd /var/lock/subsys && rm httpd
- sudo rm -f /var/lock/subsys/httpd
- killall -9 httpd
- alterar httpd.conf e /etc/sysconfig/httpd para: PIDFILE=/var/run/httpd.pid
Mas nada funcionou, sempre dá o erro "httpd dead but subsys locked"
Tem alguma sugestão para me dar?
Desde já agradeço!
Adriano Schmidt
-
10. Re: Invalid command ManagerBalancerName - Erro ao inicializar apache
adrianoschmidt Apr 18, 2013 5:56 PM (in response to mauriciomag)Estou tentando atualizar para a versão 2.2.22 para ver se esse erro não acontece.. maaaaaas:
quando eu vou baixar o http 2.2.22 com o comando:
wget http://archive.apache.org/dist/httpd/httpd-2.2.22.tar.bz2
acontece erro
Resolving archive.apache.org... [IP1]. [IP2], xxxx:xxx:x:xxxx:[IP1]
Connecting to archive.apache.org|[IP1]|80... failed: Connection refused.
Connecting to archive.apache.org|[IP2]|80... failed: Connection refused.
quando dou um "yum search httpd" acontece "couldn't connect to host" e vai tentando outros mirros mas sempre dá o mesmo erro..
aparentemente a rede da minha vm CentOs está funcionando.. dei um "ping www.google.com" e deu certo.. todos os pacote enviados foram recebidos (0% packet lost)
estou em uma máquina windows 7 com a VM com CentOS e pensei em compartilhar uma pasta no windows com o httpd-2.2.22... porém para isso precisaria instalar o samba no centos.. mas não consegui tmb pelos mesmos erros :/
então ou terei q trabalhar com o 2.2.15 ou fazer funcionar o download...
qualquer ideia é bem-vinda!!
Abraço!
Adriano Schmidt
-
11. Re: Invalid command ManagerBalancerName - Erro ao inicializar apache
mauriciomag Apr 18, 2013 6:10 PM (in response to adrianoschmidt)Oi Adriano,
Já que está utilizando o CentOS 6.4 fica bem mais fácil... por padrão já vem com o Apache 2.2.15 que vai funcionar numa boa com o Mod cluster 1.3
Eu também uso CentOS 6.4 com VirtualBox / VMWare e nunca tive problemas similares ao seu.
O problema que estava ocorrendo do lock no PID isso já foi resolvido?
Abraços
-
12. Re: Invalid command ManagerBalancerName - Erro ao inicializar apache
adrianoschmidt Apr 18, 2013 6:13 PM (in response to mauriciomag)show!!
mas ainda está acontecendo o problema do lock no PID :/
ao rodar um "/etc/init.d/httpd status" recebo o erro "httpd dead but subsys locked"...
-
13. Re: Invalid command ManagerBalancerName - Erro ao inicializar apache
mauriciomag Apr 18, 2013 6:20 PM (in response to adrianoschmidt)Vamos ver as permissões dos arquivos criados em: /var/lock/subsys algo do tipo:
[jboss@localhost subsys]$ pwd
/var/lock/subsys
[jboss@localhost subsys]$ ll
total 0
-rw-r--r--. 1 root root 0 Apr 18 14:35 abrt-ccpp
-rw-r--r--. 1 root root 0 Apr 18 14:35 abrtd
-rw-r--r--. 1 root root 0 Apr 18 14:35 acpid
-rw-r--r--. 1 root root 0 Apr 18 14:35 atd
-rw-r--r--. 1 root root 0 Apr 18 14:35 auditd
-rw-r--r--. 1 root root 0 Apr 18 14:35 blk-availability
-rw-r--r--. 1 root root 0 Apr 18 14:35 crond
-rw-r--r--. 1 root root 0 Apr 18 14:35 haldaemon
-rw-r--r--. 1 root root 0 Apr 18 15:18 httpd
-rw-r--r--. 1 root root 0 Apr 18 11:35 ip6tables
-rw-r--r--. 1 root root 0 Apr 18 11:35 iptables
-rw-r--r--. 1 root root 0 Apr 18 14:35 local
-rw-r--r--. 1 root root 0 Apr 18 11:35 lvm2-monitor
-rw-r--r--. 1 root root 0 Apr 18 14:35 messagebus
-rw-r--r--. 1 root root 0 Apr 18 14:35 netfs
-rw-r--r--. 1 root root 0 Apr 18 14:35 network
-rw-r--r--. 1 root root 0 Apr 18 14:35 NetworkManager
-rw-r--r--. 1 root root 0 Apr 18 14:35 postfix
-rw-------. 1 root root 0 Apr 18 14:35 rsyslog
-rw-r--r--. 1 root root 0 Apr 18 14:35 sshd
-rw-r--r--. 1 root root 0 Apr 18 11:35 vmware-tools
Isso pode no ajudar a identificar alguma coisa.
Abs