Após migrar de versão o Squid não funciona mais



  • Boa tarde prezados,

    Após atualizar minha versão de 22.5 para 2.3.1-RELEASE-p5 meu squid e squidGuard pararam de funcionar, testes muitas dicas diferentes mas sem sucesso.

    Nos LOGs recebo os seguintes erros ao tentar iniciar o squid manualmente:

    squid redirect_program /usr/pbi/squidguard-amd64/bin/squidGuard: (2) No such file or directory

    php-fpm 15974 /rc.start_packages: The command '/usr/local/sbin/squid -f /usr/local/etc/squid/squid.conf' returned exit code '1', the output was '2016/06/21 15:46:43| ERROR: redirect_program /usr/pbi/squidguard-amd64/bin/squidGuard: (2) No such file or directory FATAL: redirect_program /usr/pbi/squidguard-amd64/bin/squidGuard: (2) No such file or directory Squid Cache (Version 3.5.19): Terminated abnormally. CPU Usage: 0.013 seconds = 0.013 user + 0.000 sys Maximum Resident Size: 44240 KB Page faults with physical i/o: 0'

    Tenho regras de NAT e DHCP configuradas e o certificado atual do pfSense está instalado em todos os computadores do escritório, não seria interessante refazer todas as configurações novamente.



  • Desativa o squidGuard, isso deve remover a integração.
    Depois ative novamente, e nas opções avançadas do Squid veja se ajustou corretamente.



  • Não funcionou.

    Seguem os LOGs:

    Jun 21 16:25:07 php-fpm 73056 /rc.filter_configure_sync: [squid] Installed but not started. Not installing 'filter' rules.
    Jun 21 16:25:07 php-fpm 55655 /pkg_edit.php: [squid] Adding cronjobs …
    Jun 21 16:25:07 check_reload_status Syncing firewall
    Jun 21 16:25:07 check_reload_status Syncing firewall
    Jun 21 16:25:07 php-fpm 55655 /pkg_edit.php: [squid] Adding freshclam cronjob.
    Jun 21 16:25:08 php-fpm 55655 /pkg_edit.php: [squid] Creating 'clamd.sh' rc script.
    Jun 21 16:25:08 php-fpm 55655 /pkg_edit.php: [squid] Starting ClamAV…
    Jun 21 16:25:08 php-fpm 55655 /pkg_edit.php: [squid] Creating 'c-icap.sh' rc script.
    Jun 21 16:25:08 php-fpm 55655 /pkg_edit.php: [squid] Starting C-ICAP…
    Jun 21 16:25:09 php-fpm 55655 /pkg_edit.php: [squid] Creating cache dir '/var/squid/cache' …
    Jun 21 16:25:09 php-fpm 55655 /pkg_edit.php: [squid] Creating Squid cache subdirs in /var/squid/cache …
    Jun 21 16:25:09 squid redirect_program /usr/pbi/squidguard-amd64/bin/squidGuard: (2) No such file or directory
    Jun 21 16:25:09 php-fpm 55655 /pkg_edit.php: The command '/usr/local/sbin/squid -z -f /usr/local/etc/squid/squid.conf' returned exit code '1', the output was '2016/06/21 16:25:09| ERROR: redirect_program /usr/pbi/squidguard-amd64/bin/squidGuard: (2) No such file or directory FATAL: redirect_program /usr/pbi/squidguard-amd64/bin/squidGuard: (2) No such file or directory Squid Cache (Version 3.5.19): Terminated abnormally. CPU Usage: 0.012 seconds = 0.012 user + 0.000 sys Maximum Resident Size: 48704 KB Page faults with physical i/o: 0'
    Jun 21 16:25:10 php-fpm 55655 /pkg_edit.php: [squid] Starting service…
    Jun 21 16:25:10 squid redirect_program /usr/pbi/squidguard-amd64/bin/squidGuard: (2) No such file or directory
    Jun 21 16:25:10 php-fpm 55655 /pkg_edit.php: The command '/usr/local/sbin/squid -f /usr/local/etc/squid/squid.conf' returned exit code '1', the output was '2016/06/21 16:25:10| ERROR: redirect_program /usr/pbi/squidguard-amd64/bin/squidGuard: (2) No such file or directory FATAL: redirect_program /usr/pbi/squidguard-amd64/bin/squidGuard: (2) No such file or directory Squid Cache (Version 3.5.19): Terminated abnormally. CPU Usage: 0.009 seconds = 0.009 user + 0.000 sys Maximum Resident Size: 42512 KB Page faults with physical i/o: 0'



  • Está com lixo da versão anterior: redirect_program /usr/pbi/squidguard-amd64/bin/squidGuard:

    Faz assim, desativa de novo, depois no squid em advanced, veja se ficou alguma coisa lá em Integrations, remove tudo e salva.

    Volta no squidGuard e habilita de novo, deveria resolver.



  • Com certeza era isso, agora os serviços funcionam perfeitamente!

    Tomas Waldow, muito obrigado!