Apache httpd error "proxy: ap_get_scoreboard_lb" con ProxyPass


12

Configuré apache para proxy para tomcat pero recibo el siguiente error cuando apunto a la página. A veces recibo una página en blanco o un 503:

[Error]

[Mon Dec 03 04:58:16 2012] [error] proxy: ap_get_scoreboard_lb(2) failed in child 29611 for worker proxy:reverse
[Mon Dec 03 04:58:16 2012] [error] proxy: ap_get_scoreboard_lb(1) failed in child 29611 for worker https://localhost:8443/
[Mon Dec 03 04:58:16 2012] [error] proxy: ap_get_scoreboard_lb(0) failed in child 29611 for worker http://localhost:8080/

Tengo dos vhosts configurados en el vm de la siguiente manera:

[host http]

<VirtualHost *:80>
  ServerName www.mysite.net
  ServerAlias mysite.net

  ProxyRequests Off
  ProxyPreserveHost On

  <Proxy *>
    Order deny,allow
    Allow from all
  </Proxy>

  ProxyPass / http://localhost:8080/ retry=0
  ProxyPassReverse / http://localhost:8080/ retry=0
</VirtualHost>

[ssl vhost]

<VirtualHost *:443>
        ServerName www.mysite.net
        ServerAlias mysite.net

        ErrorLog /var/log/apache2/error.log

        LogLevel warn

        CustomLog /var/log/apache2/access.log combined
        ServerSignature On

        SSLEngine on
        SSLProxyEngine on
        SSLCertificateFile /etc/apache2/ssl/server.crt
        SSLCertificateKeyFile /etc/apache2/ssl/server.key

        ProxyRequests Off
        ProxyPreserveHost On
        ProxyPass / https://localhost:8443/ retry=0
        ProxyPassReverse / https://localhost:8443/ retry=0

</VirtualHost>

Los detalles de mi sistema son: Apache / 2.2.22 (Ubuntu) mod_jk / 1.2.32 mod_ssl / 2.2.22 OpenSSL / 1.0.1 mod proxy_http también está habilitado.

Respuestas:


10

Parece que hay una diferencia entre detener y luego iniciar apache y apachectl gracefulreiniciar (es decir, detener y comenzar en lugar de reiniciar apachectl ) como se encuentra en este sitio :

This is a bit of a guess, and probably wrong, but does stopping and 
starting the server rather than restarting (they're different, 
restarting (including gracefully) doesn't kill the master process) 
help? As I understand it, there are issues in mod_proxy regarding the 
scoreboard size when changes to the config are made between restarts.

1
FWIW, apachectl restarttampoco es suficiente; Tuve que hacer un apachectl stop; apachectl startpara evitar este error (también con Apache httpd 2.2.2).
— Nicholas Riley

@NicholasRiley por Sí. Eso es lo que quise decir al reiniciar. Quizás debería haber sido más claro sobre ese punto.
— Dark Star1

Gracias por esto. Recibía los mismos errores cuando estaba cambiando una configuración de proxy hacia adelante y luego reiniciaba el uso graceful.
— Anthony Geoghegan
Al usar nuestro sitio, usted reconoce que ha leído y comprende nuestra Política de Cookies y Política de Privacidad.
Licensed under cc by-sa 3.0 with attribution required.