Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Problemas com squid ( Parando o serviço )

    Scheduled Pinned Locked Moved Portuguese
    14 Posts 5 Posters 3.4k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R Offline
      redhaqi
      last edited by

      Bom dia !!

      Caros colegas estou tendo um problema com o serviço do squid … do nada é para e tenho que restart manual .... estou usando

      SQUID-DEV com filtro https
      PF 2.1.5 64bits .....

      Alguem está com esse problema ?

      1 Reply Last reply Reply Quote 0
      • V Offline
        victorfmaraujo
        last edited by

        @redhaqi:

        Bom dia !!

        Caros colegas estou tendo um problema com o serviço do squid … do nada é para e tenho que restart manual .... estou usando

        SQUID-DEV com filtro https
        PF 2.1.5 64bits .....

        Alguem está com esse problema ?

        Redhaqi, bom dia

        O Squid3-dev roda sob demanda!  Eventualmente ele estará parado mesmo.  Em outros tópicos aqui no fórum isso é falado.

        1 Reply Last reply Reply Quote 0
        • T Offline
          tomaswaldow
          last edited by

          O Squid não roda por demanda.
          O Squidguard sim, desde a versão 3 do squid.

          Tem algum Log com algum erro para identificar o problema?
          Pode estar com muitas conexões simultâneas, etc…

          Tomas @ 2W Consultoria

          1 Reply Last reply Reply Quote 0
          • R Offline
            redhaqi
            last edited by

            @Tomas:

            O Squid não roda por demanda.
            O Squidguard sim, desde a versão 3 do squid.

            Tem algum Log com algum erro para identificar o problema?
            Pode estar com muitas conexões simultâneas, etc…

            Pois é amigo ! simplesmente para o serviço sem nenhum log de erro  …

            1 Reply Last reply Reply Quote 0
            • T Offline
              tomaswaldow
              last edited by

              Quando estiver parado o Squid veja na Dashboard como estão os valores de State table e MBUF Usage;
              Se estiverem altos pode ser que seja necessario aumentar;

              Tomas @ 2W Consultoria

              1 Reply Last reply Reply Quote 0
              • marcellocM Offline
                marcelloc
                last edited by

                Os logs estão habilitados? Se sim, veja o /var/squid/logs/cache.log

                Treinamentos de Elite: http://sys-squad.com

                Help a community developer! ;D

                1 Reply Last reply Reply Quote 0
                • R Offline
                  redhaqi
                  last edited by

                  @marcelloc:

                  Os logs estão habilitados? Se sim, veja o /var/squid/logs/cache.log

                  Bom dia !

                  Marcelo o log é esse apos eu reiniciar o squid
                  2015/01/04 00:00:03| pinger: Initialising ICMP pinger …
                  2015/01/04 00:00:06 kid1| Creating missing swap directories
                  2015/01/05 00:00:05 kid1| Creating missing swap directories
                  2015/01/05 06:28:09 kid1| Starting Squid Cache version 3.3.10 for amd64-portbld-freebsd8.3...
                  2015/01/05 06:28:09 kid1|  parse error while reading template file: /usr/pbi/squid-amd64/etc/squid/errors/pt-br/error-details.txt
                  2015/01/05 06:28:09 kid1| Unable to load default error language files. Reset to backups.
                  2015/01/05 06:28:09 kid1|  parse error while reading template file: /usr/pbi/squid-amd64/etc/squid/errors/templates/error-details.txt
                  2015/01/05 06:28:09 kid1| WARNING: failed to find or read error text file error-details.txt
                  2015/01/05 06:28:09| pinger: Initialising ICMP pinger ...

                  1 Reply Last reply Reply Quote 0
                  • R Offline
                    redhaqi
                    last edited by

                    @Tomas:

                    Quando estiver parado o Squid veja na Dashboard como estão os valores de State table e MBUF Usage;
                    Se estiverem altos pode ser que seja necessario aumentar;

                    Fiz algumas alterações a respeito disso mesmo .. inclusive diminuiu bastante o percentual de MBUF usage … mais mesmo assim o serviço continua parando ...

                    1 Reply Last reply Reply Quote 0
                    • T Offline
                      tomaswaldow
                      last edited by

                      E os erros no arquivo: /usr/pbi/squid-amd64/etc/squid/errors/pt-br/error-details.txt

                      Quais são?

                      Tomas @ 2W Consultoria

                      1 Reply Last reply Reply Quote 0
                      • R Offline
                        redhaqi
                        last edited by

                        @Tomas:

                        E os erros no arquivo: /usr/pbi/squid-amd64/etc/squid/errors/pt-br/error-details.txt

                        Quais são?

                        Bom dia !

                        então …de um olhadinha aqui :

                        name: SQUID_ERR_SSL_HANDSHAKE
                        detail: "%ssl_error_descr: %ssl_lib_error"
                        descr: "Handshake with SSL server failed"

                        name: SQUID_X509_V_ERR_DOMAIN_MISMATCH
                        detail: "%ssl_error_descr: %ssl_subject"
                        descr: "Certificate does not match domainname"

                        name: X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT
                        detail: "SSL Certficate error: certificate issuer (CA) not known: %ssl_ca_name"
                        descr: "Unable to get issuer certificate"

                        name: X509_V_ERR_UNABLE_TO_GET_CRL
                        detail: "%ssl_error_descr: %ssl_subject"
                        descr: "Unable to get certificate CRL"

                        name: X509_V_ERR_UNABLE_TO_DECRYPT_CERT_SIGNATURE
                        detail: "%ssl_error_descr: %ssl_subject"
                        descr: "Unable to decrypt certificate's signature"

                        name: X509_V_ERR_UNABLE_TO_DECRYPT_CRL_SIGNATURE
                        detail: "%ssl_error_descr: %ssl_subject"
                        descr: "Unable to decrypt CRL's signature"

                        name: X509_V_ERR_UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY
                        detail: "Unable to decode issuer (CA) public key: %ssl_ca_name"
                        descr: "Unable to decode issuer public key"

                        name: X509_V_ERR_CERT_SIGNATURE_FAILURE
                        detail: "%ssl_error_descr: %ssl_subject"
                        descr: "Certificate signature failure"

                        name: X509_V_ERR_CRL_SIGNATURE_FAILURE
                        detail: "%ssl_error_descr: %ssl_subject"
                        descr: "CRL signature failure"

                        name: X509_V_ERR_CERT_NOT_YET_VALID
                        detail: "SSL Certficate is not valid before: %ssl_notbefore"
                        descr: "Certificate is not yet valid"

                        name: X509_V_ERR_CERT_HAS_EXPIRED
                        detail: "SSL Certificate expired on: %ssl_notafter"
                        descr: "Certificate has expired"

                        name: X509_V_ERR_CRL_NOT_YET_VALID
                        detail: "%ssl_error_descr: %ssl_subject"
                        descr: "CRL is not yet valid"

                        name: X509_V_ERR_CRL_HAS_EXPIRED
                        detail: "%ssl_error_descr: %ssl_subject"
                        descr: "CRL has expired"

                        name: X509_V_ERR_ERROR_IN_CERT_NOT_BEFORE_FIELD
                        detail: "SSL Certificate has invalid start date (the 'not before' field): %ssl_subject"
                        descr: "Format error in certificate's notBefore field"

                        name: X509_V_ERR_ERROR_IN_CERT_NOT_AFTER_FIELD
                        detail: "SSL Certificate has invalid expiration date (the 'not after' field): %ssl_subject"
                        descr: "Format error in certificate's notAfter field"

                        name: X509_V_ERR_ERROR_IN_CRL_LAST_UPDATE_FIELD
                        detail: "%ssl_error_descr: %ssl_subject"
                        descr: "Format error in CRL's lastUpdate field"

                        name: X509_V_ERR_ERROR_IN_CRL_NEXT_UPDATE_FIELD
                        detail: "%ssl_error_descr: %ssl_subject"
                        descr: "Format error in CRL's nextUpdate field"

                        name: X509_V_ERR_OUT_OF_MEM
                        detail: "%ssl_error_descr"
                        descr: "Out of memory"

                        name: X509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT
                        detail: "Self-signed SSL Certificate: %ssl_subject"
                        descr: "Self signed certificate"

                        name: X509_V_ERR_SELF_SIGNED_CERT_IN_CHAIN
                        detail: "Self-signed SSL Certificate in chain: %ssl_subject"
                        descr: "Self signed certificate in certificate chain"

                        name: X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY
                        detail: "SSL Certficate error: certificate issuer (CA) not known: %ssl_ca_name"
                        descr: "Unable to get local issuer certificate"

                        name: X509_V_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE
                        detail: "%ssl_error_descr: %ssl_subject"
                        descr: "Unable to verify the first certificate"

                        name: X509_V_ERR_CERT_CHAIN_TOO_LONG
                        detail: "%ssl_error_descr: %ssl_subject"
                        descr: "Certificate chain too long"

                        name: X509_V_ERR_CERT_REVOKED
                        detail: "%ssl_error_descr: %ssl_subject"
                        descr: "Certificate revoked"

                        name: X509_V_ERR_INVALID_CA
                        detail: "%ssl_error_descr: %ssl_ca_name"
                        descr: "Invalid CA certificate"

                        name: X509_V_ERR_PATH_LENGTH_EXCEEDED
                        detail: "%ssl_error_descr: %ssl_subject"
                        descr: "Path length constraint exceeded"

                        name: X509_V_ERR_INVALID_PURPOSE
                        detail: "%ssl_error_descr: %ssl_subject"
                        descr: "Unsupported certificate purpose"

                        name: X509_V_ERR_CERT_UNTRUSTED
                        detail: "%ssl_error_descr: %ssl_subject"
                        descr: "Certificate not trusted"

                        name: X509_V_ERR_CERT_REJECTED
                        detail: "%ssl_error_descr: %ssl_subject"
                        descr: "Certificate rejected"

                        name: X509_V_ERR_SUBJECT_ISSUER_MISMATCH
                        detail: "%ssl_error_descr: %ssl_ca_name"
                        descr: "Subject issuer mismatch"

                        name: X509_V_ERR_AKID_SKID_MISMATCH
                        detail: "%ssl_error_descr: %ssl_subject"
                        descr: "Authority and subject key identifier mismatch"

                        name: X509_V_ERR_AKID_ISSUER_SERIAL_MISMATCH
                        detail: "%ssl_error_descr: %ssl_ca_name"
                        descr: "Authority and issuer serial number mismatch"

                        name: X509_V_ERR_KEYUSAGE_NO_CERTSIGN
                        detail: "%ssl_error_descr: %ssl_subject"
                        descr: "Key usage does not include certificate signing"

                        name: X509_V_ERR_UNABLE_TO_GET_CRL_ISSUER
                        detail: "%ssl_error_descr: %ssl_subject"
                        descr: "unable to get CRL issuer certificate"

                        name: X509_V_ERR_UNHANDLED_CRITICAL_EXTENSION
                        detail: "%ssl_error_descr: %ssl_subject"
                        descr: "unhandled critical extension"

                        name: X509_V_ERR_KEYUSAGE_NO_CRL_SIGN
                        detail: "%ssl_error_descr: %ssl_subject"
                        descr: "key usage does not include CRL signing"

                        name: X509_V_ERR_UNHANDLED_CRITICAL_CRL_EXTENSION
                        detail: "%ssl_error_descr: %ssl_subject"
                        descr: "unhandled critical CRL extension"

                        name: X509_V_ERR_INVALID_NON_CA
                        detail: "%ssl_error_descr: %ssl_subject"
                        descr: "invalid non-CA certificate (has CA markings)"

                        name: X509_V_ERR_PROXY_PATH_LENGTH_EXCEEDED
                        detail: "%ssl_error_descr: %ssl_subject"
                        descr: "proxy path length constraint exceeded"

                        name: X509_V_ERR_KEYUSAGE_NO_DIGITAL_SIGNATURE
                        detail: "%ssl_error_descr: %ssl_subject"
                        descr: "key usage does not include digital signature"

                        name: X509_V_ERR_PROXY_CERTIFICATES_NOT_ALLOWED
                        detail: "%ssl_error_descr: %ssl_subject"
                        descr: "proxy certificates not allowed, please set the appropriate flag"

                        name: X509_V_ERR_INVALID_EXTENSION
                        detail: "%ssl_error_descr: %ssl_subject"
                        descr: "invalid or inconsistent certificate extension"

                        name: X509_V_ERR_INVALID_POLICY_EXTENSION
                        detail: "%ssl_error_descr: %ssl_subject"
                        descr: "invalid or inconsistent certificate policy extension"

                        name: X509_V_ERR_NO_EXPLICIT_POLICY
                        detail: "%ssl_error_descr: %ssl_subject"
                        descr: "no explicit policy"

                        name: X509_V_ERR_DIFFERENT_CRL_SCOPE
                        detail: "%ssl_error_descr: %ssl_subject"
                        descr: "Different CRL scope"

                        name: X509_V_ERR_UNSUPPORTED_EXTENSION_FEATURE
                        detail: "%ssl_error_descr: %ssl_subject"
                        descr: "Unsupported extension feature"

                        name: X509_V_ERR_UNNESTED_RESOURCE
                        detail: "%ssl_error_descr: %ssl_subject"
                        descr: "RFC 3779 resource not subset of parent's resources"

                        name: X509_V_ERR_PERMITTED_VIOLATION
                        detail: "%ssl_error_descr: %ssl_subject"
                        descr: "permitted subtree violation"

                        name: X509_V_ERR_EXCLUDED_VIOLATION
                        detail: "%ssl_error_descr: %ssl_subject"
                        descr: "excluded subtree violation"

                        name: X509_V_ERR_SUBTREE_MINMAX
                        detail: "%ssl_error_descr: %ssl_subject"
                        descr: "name constraints minimum and maximum not supported"

                        name: X509_V_ERR_UNSUPPORTED_CONSTRAINT_TYPE
                        detail: "%ssl_error_descr: %ssl_subject"
                        descr: "unsupported name constraint type"

                        name: X509_V_ERR_UNSUPPORTED_CONSTRAINT_SYNTAX
                        detail: "%ssl_error_descr: %ssl_subject"
                        descr: "unsupported or invalid name constraint syntax"

                        name: X509_V_ERR_UNSUPPORTED_NAME_SYNTAX
                        detail: "%ssl_error_descr: %ssl_subject"
                        descr: "unsupported or invalid name syntax"

                        name: X509_V_ERR_CRL_PATH_VALIDATION_ERROR
                        detail: "%ssl_error_descr: %ssl_subject"
                        descr: "CRL path validation error"

                        name: X509_V_ERR_APPLICATION_VERIFICATION
                        detail: "%ssl_error_descr: %ssl_subject"
                        descr: "Application verification failure"

                        1 Reply Last reply Reply Quote 0
                        • T Offline
                          tomaswaldow
                          last edited by

                          Me parece tudo relacionado ao certificado SSL.
                          Eu não uso interceptação SSL no Squid, então não sou a pessoa mais indicada para te ajudar,
                          mas acho que você precisa revisar as configurações, pelos erros tem problema no seu certificado,
                          principalmente este: "Certificate does not match domainname"

                          Tomas @ 2W Consultoria

                          1 Reply Last reply Reply Quote 0
                          • marcellocM Offline
                            marcelloc
                            last edited by

                            Pode ser bug da versão do squid.  Esse erro não quer dizer que o ssl esta errado.  A mensagem do cache.log parece reclamar da existência dessas entradas no arquivo de log.  Tente reduzir a pesquisa do erro,  tenho quase certeza que já vi sobre isso no fórum internacional e/ou Internet.

                            Treinamentos de Elite: http://sys-squad.com

                            Help a community developer! ;D

                            1 Reply Last reply Reply Quote 0
                            • T Offline
                              thiago.informc
                              last edited by

                              Estou com o mesmo problema, já é o 2º servidor que acontece isso, está tudo funcionando e o serviço para e não sobe mais.
                              alguem com o mesmo problema?

                              05.01.2015 12:33:14 squidGuard stopped (1420468394.996)
                              05.01.2015 12:33:14 db update done
                              05.01.2015 12:33:14 squidGuard 1.4 started (1420468394.996)

                              1 Reply Last reply Reply Quote 0
                              • T Offline
                                thiago.informc
                                last edited by

                                Resolvi o meu aqui pelo topico que achei aqui no forum. Agora o serviço fica online, só preciso resolver um problema com windows update, pois a lista(windowsupdate.com; download.microsoft.com; download.windowsupdate.com; update.microsoft.com; 200.187.85.138; 200.187.85.138) se eu libero ela, libera toda a navegação.

                                baixe o system patches que fica logo abaixo do squidGuard-squid3

                                use esses comandos e siga a imagem…

                                --- squidguard_configurator.inc.orig
                                +++ squidguard_configurator.inc
                                @@ -94,3 +94,3 @@
                                -define('REDIRECTOR_OPTIONS_REM',  '# squidGuard options');
                                -define('REDIRECTOR_PROGRAM_OPT',  'redirect_program');
                                -define('REDIRECT_BYPASS_OPT',      'redirector_bypass');
                                +define('REDIRECTOR_OPTIONS_REM',  '# squidGuard options');
                                +define('REDIRECTOR_PROGRAM_OPT',  'url_rewrite_program');
                                +define('REDIRECT_BYPASS_OPT',      'url_rewrite_bypass');
                                @@ -98,1 +98,1 @@
                                -define('REDIRECTOR_PROCESS_COUNT', '5'); # redirector processes count will started
                                +define('REDIRECTOR_PROCESS_COUNT', '16 startup=8 idle=4 concurrency=0'); # redirector processes count will started

                                1 Reply Last reply Reply Quote 0
                                • First post
                                  Last post
                                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.