Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Serviço HTTP reiniciando sozinho

Discussion in 'Discussões em Português' started by pootz, May 26, 2018.

  1. pootz

    pootz Member

    Joined:
    May 4, 2018
    Messages:
    14
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Brazil
    cPanel Access Level:
    Root Administrator
    Olá, estou tendo problemas com o serviço HTTPD (apache 2.4).

    Somente hoje, o WHM me enviou 10 e-mails (1 e-mail a cada 5 minutos) com o alerta:
    Notification The service “httpd” appears to be down.

    O log do apache tem as seguintes mensagens no exato momento em que os e-mails foram enviados:
    Code:
    [Sat May 26 22:19:31.870023 2018] [mpm_prefork:notice] [pid 20449] AH00171: Graceful restart requested, doing restart
    [Sat May 26 22:19:32.267631 2018] [ssl:warn] [pid 20449] AH01909: proxy-subdomains-ssl-default-vhost.localhost:443:0 server certificate does NOT include an ID which matches the server name
    [Sat May 26 22:19:32.402682 2018] [:notice] [pid 20449] mod_ruid2/0.9.8 enabled
    [Sat May 26 22:19:32.411509 2018] [mpm_prefork:notice] [pid 20449] AH00163: Apache/2.4.33 (cPanel) OpenSSL/1.0.2o mod_bwlimited/1.4 configured -- resuming normal operations
    [Sat May 26 22:19:32.411553 2018] [core:notice] [pid 20449] AH00094: Command line: '/usr/sbin/httpd'
    [Sat May 26 22:24:33.607178 2018] [mpm_prefork:notice] [pid 20449] AH00171: Graceful restart requested, doing restart
    Acredito que isso tenha alguma coisa a ver com a renovação dos certificados SSL, mas não tenho certeza e também não sei o que posso fazer para corrigir isso.

    O Apache só voltou ao normal depois que eu reiniciei ele manualmente via SSH.
     
  2. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    1,342
    Likes Received:
    89
    Trophy Points:
    103
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Olá,

    Você consegue mostrar os registros apenas antes das notificações? Estes apenas indicam que o apache foi reiniciado com sucesso:
    Code:
    [Sat May 26 22:19:31.870023 2018] [mpm_prefork:notice] [pid 20449] AH00171: Graceful restart requested, doing restart
    [Sat May 26 22:19:32.411509 2018] [mpm_prefork:notice] [pid 20449] AH00163: Apache/2.4.33 (cPanel) OpenSSL/1.0.2o mod_bwlimited/1.4 configured -- resuming normal operations
    Dentro de 1 segundo um do outro

    Obrigado!

    =======================================================================
    Hello,

    Are you able to show the logs for just prior to the notifications? These just indicate that apache was restarted successfully:
    Code:
    [Sat May 26 22:19:31.870023 2018] [mpm_prefork:notice] [pid 20449] AH00171: Graceful restart requested, doing restart
    [Sat May 26 22:19:32.411509 2018] [mpm_prefork:notice] [pid 20449] AH00163: Apache/2.4.33 (cPanel) OpenSSL/1.0.2o mod_bwlimited/1.4 configured -- resuming normal operations
    Within 1 second of each other

    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. pootz

    pootz Member

    Joined:
    May 4, 2018
    Messages:
    14
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Brazil
    cPanel Access Level:
    Root Administrator
    Olá, esse é o log que tenho a partir do momento em que começou a dar problemas:

    Code:
    [Sat May 26 21:49:50.535920 2018] [mpm_prefork:error] [pid 20449] AH00161: server reached MaxRequestWorkers setting, consider raising the MaxRequestWorkers setting
    [Sat May 26 21:56:49.071140 2018] [proxy_fcgi:error] [pid 18425] [client 168.195.175.41:52007] AH01071: Got error 'Primary script unknown\n', referer: http://domain.com.br/
    [Sat May 26 22:14:35.245114 2018] [mpm_prefork:notice] [pid 20449] AH00171: Graceful restart requested, doing restart
    [Sat May 26 22:14:35.787215 2018] [ssl:warn] [pid 20449] AH01909: proxy-subdomains-ssl-default-vhost.localhost:443:0 server certificate does NOT include an ID which matches the server name
    [Sat May 26 22:14:36.007197 2018] [:notice] [pid 20449] mod_ruid2/0.9.8 enabled
    [Sat May 26 22:14:36.018017 2018] [mpm_prefork:notice] [pid 20449] AH00163: Apache/2.4.33 (cPanel) OpenSSL/1.0.2o mod_bwlimited/1.4 configured -- resuming normal operations
    [Sat May 26 22:14:36.018052 2018] [core:notice] [pid 20449] AH00094: Command line: '/usr/sbin/httpd'
    [Sat May 26 22:19:31.870023 2018] [mpm_prefork:notice] [pid 20449] AH00171: Graceful restart requested, doing restart
    [Sat May 26 22:19:32.267631 2018] [ssl:warn] [pid 20449] AH01909: proxy-subdomains-ssl-default-vhost.localhost:443:0 server certificate does NOT include an ID which matches the server name
    [Sat May 26 22:19:32.402682 2018] [:notice] [pid 20449] mod_ruid2/0.9.8 enabled
    [Sat May 26 22:19:32.411509 2018] [mpm_prefork:notice] [pid 20449] AH00163: Apache/2.4.33 (cPanel) OpenSSL/1.0.2o mod_bwlimited/1.4 configured -- resuming normal operations
    [Sat May 26 22:19:32.411553 2018] [core:notice] [pid 20449] AH00094: Command line: '/usr/sbin/httpd'
    [Sat May 26 22:24:32.459799 2018] [mpm_prefork:notice] [pid 20449] AH00171: Graceful restart requested, doing restart
    [Sat May 26 22:24:32.877107 2018] [ssl:warn] [pid 20449] AH01909: proxy-subdomains-ssl-default-vhost.localhost:443:0 server certificate does NOT include an ID which matches the server name
    [Sat May 26 22:24:33.015791 2018] [:notice] [pid 20449] mod_ruid2/0.9.8 enabled
    [Sat May 26 22:24:33.019472 2018] [mpm_prefork:notice] [pid 20449] AH00163: Apache/2.4.33 (cPanel) OpenSSL/1.0.2o mod_bwlimited/1.4 configured -- resuming normal operations
    
     
  4. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    1,342
    Likes Received:
    89
    Trophy Points:
    103
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Olá,


    Este erro é provavelmente a causa do problema:

    Code:
    [Sat May 26 21:49:50.535920 2018] [mpm_prefork:error] [pid 20449] AH00161: server reached MaxRequestWorkers setting, consider raising the MaxRequestWorkers setting

    você pode executar o seguinte e deixe-me saber a saída?
    Code:
    grep "MaxRequest" /etc/apache/logs/error_log | wc -l
    Por fim, parece que você está atingindo o limite de MaxRequestWorkers. Se você quiser aumentar este limite, você pode fazê-lo em WHM >> Configuração de Serviço >> Configuração do Apache -> Configuração Global -> MaxRequestWorkers


    Obrigado!

    =======================================================================

    Hello,


    This error is most likely the cause of the issue:

    Code:
    [Sat May 26 21:49:50.535920 2018] [mpm_prefork:error] [pid 20449] AH00161: server reached MaxRequestWorkers setting, consider raising the MaxRequestWorkers setting

    can you run the following and let me know the output?
    Code:
    grep "MaxRequest" /etc/apache/logs/error_log | wc -l
    Ultimately it looks like you're reaching the limit for MaxRequestWorkers. If you want to increase this limit you can do so at WHM>>Service Configuration>>Apache Configuration -> Global Configuration -> MaxRequestWorkers


    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. pootz

    pootz Member

    Joined:
    May 4, 2018
    Messages:
    14
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Brazil
    cPanel Access Level:
    Root Administrator
    Olá, por algum motivo, no meu servidor os logs do apache ficam dentro de /var/log/apache2.

    Segue resultado do comando:
    [root@elysia ~]# grep "MaxRequest" /var/log/apache2/error_log | wc -l
    5

    Alterei o meu Max Request Workers, que estava em 500, para 1000, que é o mesmo valor do Server Limit (Maximum: 20,000);

    Acho que um limite de 1000 para Max Request Workers é grande, mas vou ficar monitorando o desempenho do servidor para ver o que acontece.
     
    #5 pootz, May 29, 2018
    Last edited: May 29, 2018
  6. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    1,342
    Likes Received:
    89
    Trophy Points:
    103
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Olá,


    Tudo bem, /etc/apache2/logs/error_log é um link simbólico para /var/log/apache2/error_log

    A saída sugere que você atingiu o limite de MaxRequest Workers 5 vezes desde a última rotação dos logs. Se isso puder ser um tráfego legítimo, você precisará aumentar o MaxRequestWorkers.

    Você também abriu o tópico aqui: In Progress - HTTP service restarting by itself

    Posso remover a duplicata?

    Obrigado!

    =======================================================================-

    Hello,


    That's ok, /etc/apache2/logs/error_log is symlinked to /var/log/apache2/error_log

    The output suggests that you've reached the limit for MaxRequest Workers 5 times since the last rotation of the logs. If this could be legitimate traffic you'll need to increase the MaxRequestWorkers.

    Did you also open the thread here: In Progress - HTTP service restarting by itself

    May I remove the duplicate?

    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. pootz

    pootz Member

    Joined:
    May 4, 2018
    Messages:
    14
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Brazil
    cPanel Access Level:
    Root Administrator
    Olá,

    Quanto ao post duplicado, sim pode apagar.

    A princípio não houve mais problemas com o servidor, vou continuar monitorando ele para ver se isso ocorre novamente.

    Sobre o alerta: proxy-subdomains-ssl-default-vhost.localhost:443:0 server certificate does NOT include an ID which matches the server name

    Existe alguma forma de fazer com que ele não ocorra mais?
     
  8. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    1,342
    Likes Received:
    89
    Trophy Points:
    103
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Olá,


    O certificado instalado nos certificados WHM >> Configuração de Serviço >> Gerenciar Serviço SSL corresponde ao nome do host do servidor?

    Em caso afirmativo, você pode instalá-lo para o nome do host no Apache, indo para WHM >> SSL / TLS >> Instalar um certificado em um domínio

    Obrigado!

    =======================================================================

    Hello,


    Does the certificate installed at WHM>>Service Configuration>>Manage Service SSL certificates match the hostname of the server?

    If so can you install it for the hostname on Apache by going to WHM>>SSL/TLS>>Install a Certificate on a domain

    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. pootz

    pootz Member

    Joined:
    May 4, 2018
    Messages:
    14
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Brazil
    cPanel Access Level:
    Root Administrator
    Sim, eu utilizo o SSL do próprio cPanel para todos os domínios cadastrados no meu servidor, inclusive para o domínio do próprio servidor.

    Mas não entendi o porque de o apache alertar que proxy-subdomains-ssl-default-vhost.localhost, que é um subdomínio de localhost, não tem certificado.

    Você falou para mim ir em WHM>>Service Configuration>>Manage Service SSL e ver se eu tenho um certificado que corresponde ao hosname do servidor. Sim, tenho.

    Após, pediu para mim instalar um certificado, mas como eu utilizo o certificado padrão do cPanel, não tenho as informações necessárias para inserir lá.
     
  10. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    1,342
    Likes Received:
    89
    Trophy Points:
    103
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Olá,

    O certificado deve estar disponível nos certificados da raiz. Portanto, você deve poder ir para WHM >> SSL / TLS >> Instalar um certificado em um domínio -> Procurar Certificados -> Selecionar Raiz e identificar o certificado atual instalado. Se não estiver presente, você pode obter as informações do certificado do WHM >> Configuração do serviço >> Gerenciar certificados SSL do serviço, clicando em "Aplicar certificado a outro serviço", copiando as peças do certificado e da chave privada e adicionando-as à interface do usuário em Instalar um certificado um domínio.

    Gostaria de ver se isso resolve o problema do subdomínio do proxy que você está enfrentando, uma vez que está referenciando a porta 443, que exigiria que o certificado fosse instalado no apache.

    Obrigado!

    =======================================================================

    Hello,

    The certificate should be available under root's certificates. So you should be able to go to WHM>>SSL/TLS>>Install a certificate on a domain -> Browse Certificates -> Select Root and identify the current certificate installed. If it's not present you can obtain the certificate information from WHM>>Service Configuration>>Manage Service SSL certificates by clicking "Apply Certificate to Another service" then copying the certificate and private key parts and adding them to the UI at Install a certificate on a domain.

    I'd like to see if this resolves the proxy subdomain issue you're experiencing since it's referencing port 443 which would require the certificate to be installed on apache.

    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. pootz

    pootz Member

    Joined:
    May 4, 2018
    Messages:
    14
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Brazil
    cPanel Access Level:
    Root Administrator
    Fiz exatamente o que você pediu e depois reiniciei o apache para verificar se o alerta continua lá. Infelizmente o alerta ainda é exibido nos logs. :/
     
  12. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    1,342
    Likes Received:
    89
    Trophy Points:
    103
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Olá,


    Obrigado por isso e pela atualização, você pode ir em frente e abrir um ticket usando o link na minha assinatura? Quando o ticket estiver aberto, responda aqui com o ID do ticket para que possamos atualizar este tópico com o resultado.

    Obrigado!

    =======================================================================

    Hello,


    Thank you for that and for the update, can you please go ahead and open a ticket using the link in my signature? Once the ticket is open please reply here with the Ticket ID so that we can update this thread with the outcome.

    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice