Erro squid Version 3.5.23

1. Erro squid Version 3.5.23

WILLIAN DOMICIANO MEDEIROS ROSA
willianrosa

(usa Debian)

Enviado em 15/08/2017 - 09:08h

Bom dia senhores.

Estou com um problema, tive que reinstalar o Debian 9, depois que instalei o squid o mesmo esta me reportando estas mensagens quando tento iniciar o squid.

"Job for squid.service failed because the control process exited with error code.
See "systemctl status squid.service" and "journalctl -xe" for details".

dou estes comandos que apresenta systemctl status squid.service" and "journalctl -xe.
Veja a resposta.
Comando inserido: systemctl status -| squid

Unit -.service could not be found.
2017/08/15 09:01:39| ERROR: '.js-agent.newrelic.com' is a subdomain of '.newrelic.com'
2017/08/15 09:01:39| ERROR: You need to remove '.js-agent.newrelic.com' from the ACL named 'SITES_PERMITIDOS'
FATAL: Bungled /etc/squid/squid.conf line 45: acl SITES_PERMITIDOS dstdomain "/etc/squid/regras/sites_permitidos"
Squid Cache (Version 3.5.23): Terminated abnormally.
CPU Usage: 0.012 seconds = 0.012 user + 0.000 sys
Maximum Resident Size: 44272 KB
Page faults with physical i/o: 0

Comando inserido: journalctl -xe

ago 15 09:06:34 fw-romafreicane systemd[1]: Starting LSB: Squid HTTP Proxy version 3.x...
-- Subject: Unidade squid.service sendo iniciado
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- A unidade squid.service está sendo iniciada.
ago 15 09:06:34 fw-romafreicane squid[5306]: Bungled /etc/squid/squid.conf line 45: acl SITES_PERMITIDOS dstdomain "/etc/squid/regras/sites_permitidos"
ago 15 09:06:34 fw-romafreicane squid[5311]: Bungled /etc/squid/squid.conf line 45: acl SITES_PERMITIDOS dstdomain "/etc/squid/regras/sites_permitidos"
ago 15 09:06:34 fw-romafreicane squid[5301]: FATAL: Bungled /etc/squid/squid.conf line 45: acl SITES_PERMITIDOS dstdomain "/etc/squid/regras/sites_permitidos" ... fail
ago 15 09:06:34 fw-romafreicane systemd[1]: squid.service: Control process exited, code=exited status=3
ago 15 09:06:34 fw-romafreicane systemd[1]: Failed to start LSB: Squid HTTP Proxy version 3.x.
-- Subject: A unidade squid.service falhou
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- A unidade squid.service falhou.
--
-- O resultado é failed.
ago 15 09:06:34 fw-romafreicane systemd[1]: squid.service: Unit entered failed state.
ago 15 09:06:34 fw-romafreicane systemd[1]: squid.service: Failed with result 'exit-code'.






  


2. Re: Erro squid Version 3.5.23

Augusto Ribeiro
AugustoRibeiro

(usa elementary OS)

Enviado em 15/08/2017 - 17:15h

willianrosa escreveu:

Bom dia senhores.

Estou com um problema, tive que reinstalar o Debian 9, depois que instalei o squid o mesmo esta me reportando estas mensagens quando tento iniciar o squid.

"Job for squid.service failed because the control process exited with error code.
See "systemctl status squid.service" and "journalctl -xe" for details".

dou estes comandos que apresenta systemctl status squid.service" and "journalctl -xe.
Veja a resposta.
Comando inserido: systemctl status -| squid

Unit -.service could not be found.
2017/08/15 09:01:39| ERROR: '.js-agent.newrelic.com' is a subdomain of '.newrelic.com'
2017/08/15 09:01:39| ERROR: You need to remove '.js-agent.newrelic.com' from the ACL named 'SITES_PERMITIDOS'
FATAL: Bungled /etc/squid/squid.conf line 45: acl SITES_PERMITIDOS dstdomain "/etc/squid/regras/sites_permitidos"
Squid Cache (Version 3.5.23): Terminated abnormally.
CPU Usage: 0.012 seconds = 0.012 user + 0.000 sys
Maximum Resident Size: 44272 KB
Page faults with physical i/o: 0

Comando inserido: journalctl -xe

ago 15 09:06:34 fw-romafreicane systemd[1]: Starting LSB: Squid HTTP Proxy version 3.x...
-- Subject: Unidade squid.service sendo iniciado
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- A unidade squid.service está sendo iniciada.
ago 15 09:06:34 fw-romafreicane squid[5306]: Bungled /etc/squid/squid.conf line 45: acl SITES_PERMITIDOS dstdomain "/etc/squid/regras/sites_permitidos"
ago 15 09:06:34 fw-romafreicane squid[5311]: Bungled /etc/squid/squid.conf line 45: acl SITES_PERMITIDOS dstdomain "/etc/squid/regras/sites_permitidos"
ago 15 09:06:34 fw-romafreicane squid[5301]: FATAL: Bungled /etc/squid/squid.conf line 45: acl SITES_PERMITIDOS dstdomain "/etc/squid/regras/sites_permitidos" ... fail
ago 15 09:06:34 fw-romafreicane systemd[1]: squid.service: Control process exited, code=exited status=3
ago 15 09:06:34 fw-romafreicane systemd[1]: Failed to start LSB: Squid HTTP Proxy version 3.x.
-- Subject: A unidade squid.service falhou
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- A unidade squid.service falhou.
--
-- O resultado é failed.
ago 15 09:06:34 fw-romafreicane systemd[1]: squid.service: Unit entered failed state.
ago 15 09:06:34 fw-romafreicane systemd[1]: squid.service: Failed with result 'exit-code'.





Boa tarde Mestre,

Você tentou remover o ".js-agent.newrelic.com" da ACL "SITES_PERMITIDOS" igual o erro te mostra?
2017/08/15 09:01:39| ERROR: You need to remove '.js-agent.newrelic.com' from the ACL named 'SITES_PERMITIDOS'


Att

Augusto Ribeiro
Analista DevOps


3. Re: Erro squid Version 3.5.23

WILLIAN DOMICIANO MEDEIROS ROSA
willianrosa

(usa Debian)

Enviado em 15/08/2017 - 17:53h


Boa tarde Mestre,

Você tentou remover o ".js-agent.newrelic.com" da ACL "SITES_PERMITIDOS" igual o erro te mostra?
2017/08/15 09:01:39| ERROR: You need to remove '.js-agent.newrelic.com' from the ACL named 'SITES_PERMITIDOS'


Att

Augusto Ribeiro
Analista DevOps[/quote]

Boa tarde Augusto.

Sim removi, e agora aparece esta mensagem.
"Unit -.service could not be found".





4. Re: Erro squid Version 3.5.23

Augusto Ribeiro
AugustoRibeiro

(usa elementary OS)

Enviado em 17/08/2017 - 14:59h

willianrosa escreveu:


Boa tarde Mestre,

Você tentou remover o ".js-agent.newrelic.com" da ACL "SITES_PERMITIDOS" igual o erro te mostra?
2017/08/15 09:01:39| ERROR: You need to remove '.js-agent.newrelic.com' from the ACL named 'SITES_PERMITIDOS'


Att

Augusto Ribeiro
Analista DevOps


Boa tarde Augusto.

Sim removi, e agora aparece esta mensagem.
"Unit -.service could not be found".


[/quote]

Boa tarde,

E o que aparece nos arquivos de log?

Att

Augusto Ribeiro
Analista DevOps


5. Re: Erro squid Version 3.5.23

WILLIAN DOMICIANO MEDEIROS ROSA
willianrosa

(usa Debian)

Enviado em 18/08/2017 - 12:06h

Boa tarde,

E o que aparece nos arquivos de log?

Att

Augusto Ribeiro
Analista DevOps[/quote]


Boa tarde,
veja o que aparece.

2017/08/18 12:03:49 kid1| Set Current Directory to /var/spool/squid
2017/08/18 12:03:49 kid1| Creating missing swap directories
FATAL: Failed to make swap directory /var/spoll/squid: (2) No such file or directory
2017/08/18 12:03:52 kid1| Set Current Directory to /var/spool/squid
2017/08/18 12:03:52 kid1| Creating missing swap directories
FATAL: Failed to make swap directory /var/spoll/squid: (2) No such file or directory



6. Re: Erro squid Version 3.5.23

WILLIAN DOMICIANO MEDEIROS ROSA
willianrosa

(usa Debian)

Enviado em 18/08/2017 - 12:12h

Boa tarde.
Inseri o comando squid -NCd1, veja o que ele retornou.

2017/08/18 12:10:44| cannot change current directory to /var/spoll/squid: (2) No such file or directory
2017/08/18 12:10:44| Current Directory is /etc/squid
2017/08/18 12:10:44| Starting Squid Cache version 3.5.23 for i686-pc-linux-gnu...
2017/08/18 12:10:44| Service Name: squid
2017/08/18 12:10:44| Process ID 1847
2017/08/18 12:10:44| Process Roles: master worker
2017/08/18 12:10:44| With 1024 file descriptors available
2017/08/18 12:10:44| Initializing IP Cache...
2017/08/18 12:10:44| DNS Socket created at [::], FD 8
2017/08/18 12:10:44| DNS Socket created at 0.0.0.0, FD 9
2017/08/18 12:10:44| Adding nameserver 200.218.248.2 from /etc/resolv.conf
2017/08/18 12:10:44| Adding nameserver 200.218.250.2 from /etc/resolv.conf
2017/08/18 12:10:44| Adding nameserver 8.8.8.8 from /etc/resolv.conf
2017/08/18 12:10:44| Adding nameserver 8.8.4.4 from /etc/resolv.conf
2017/08/18 12:10:44| Logfile: opening log /var/log/squid/access.log
2017/08/18 12:10:44| WARNING: log name now starts with a module name. Use 'stdio:/var/log/squid/access.log'
2017/08/18 12:10:44| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2017/08/18 12:10:44| Store logging disabled
2017/08/18 12:10:44| Swap maxSize 2379776 + 524288 KB, estimated 223389 objects
2017/08/18 12:10:44| Target number of buckets: 11169
2017/08/18 12:10:44| Using 16384 Store buckets
2017/08/18 12:10:44| Max Mem size: 524288 KB
2017/08/18 12:10:44| Max Swap size: 2379776 KB
2017/08/18 12:10:44| ERROR: /var/spoll/squid: (2) No such file or directory
FATAL: Failed to verify one of the swap directories, Check cache.log
for details. Run 'squid -z' to create swap directories
if needed, or if running Squid for the first time.


7. Re: Erro squid Version 3.5.23

Leandro Silva
LSSilva

(usa Outra)

Enviado em 18/08/2017 - 13:32h

willianrosa escreveu:

Boa tarde.
Inseri o comando squid -NCd1, veja o que ele retornou.

2017/08/18 12:10:44| cannot change current directory to /var/spoll/squid: (2) No such file or directory
2017/08/18 12:10:44| Current Directory is /etc/squid
2017/08/18 12:10:44| Starting Squid Cache version 3.5.23 for i686-pc-linux-gnu...
2017/08/18 12:10:44| Service Name: squid
2017/08/18 12:10:44| Process ID 1847
2017/08/18 12:10:44| Process Roles: master worker
2017/08/18 12:10:44| With 1024 file descriptors available
2017/08/18 12:10:44| Initializing IP Cache...
2017/08/18 12:10:44| DNS Socket created at [::], FD 8
2017/08/18 12:10:44| DNS Socket created at 0.0.0.0, FD 9
2017/08/18 12:10:44| Adding nameserver 200.218.248.2 from /etc/resolv.conf
2017/08/18 12:10:44| Adding nameserver 200.218.250.2 from /etc/resolv.conf
2017/08/18 12:10:44| Adding nameserver 8.8.8.8 from /etc/resolv.conf
2017/08/18 12:10:44| Adding nameserver 8.8.4.4 from /etc/resolv.conf
2017/08/18 12:10:44| Logfile: opening log /var/log/squid/access.log
2017/08/18 12:10:44| WARNING: log name now starts with a module name. Use 'stdio:/var/log/squid/access.log'
2017/08/18 12:10:44| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2017/08/18 12:10:44| Store logging disabled
2017/08/18 12:10:44| Swap maxSize 2379776 + 524288 KB, estimated 223389 objects
2017/08/18 12:10:44| Target number of buckets: 11169
2017/08/18 12:10:44| Using 16384 Store buckets
2017/08/18 12:10:44| Max Mem size: 524288 KB
2017/08/18 12:10:44| Max Swap size: 2379776 KB
2017/08/18 12:10:44| ERROR: /var/spoll/squid: (2) No such file or directory
FATAL: Failed to verify one of the swap directories, Check cache.log
for details. Run 'squid -z' to create swap directories
if needed, or if running Squid for the first time.


Aparentemente o que era pra ser "/var/spool/squid" se tornou "/var/spoll/squid", dê uma olhada nisso.


8. Re: Erro squid Version 3.5.23

Augusto Ribeiro
AugustoRibeiro

(usa elementary OS)

Enviado em 18/08/2017 - 13:45h

Boa tarde galera,

Concordo com o LSSilva, aparentemente é algo com o diretório /var/spoll/squid, verifique se ele realmente existe ou então tente rodar o
squid -z

e depois reiniciar o squid
Att

Augusto Ribeiro
Analista DevOps


9. Re: Erro squid Version 3.5.23

WILLIAN DOMICIANO MEDEIROS ROSA
willianrosa

(usa Debian)

Enviado em 18/08/2017 - 16:38h

AugustoRibeiro escreveu:

Boa tarde galera,

Concordo com o LSSilva, aparentemente é algo com o diretório /var/spoll/squid, verifique se ele realmente existe ou então tente rodar o
squid -z

e depois reiniciar o squid
Att

Augusto Ribeiro
Analista DevOps


Boa tarde rapaziada.

Alterei o spoll para spool, consegui iniciar o squid mas não esta funcionando quando dei o squid -z reporta esta mensgem.

2017/08/18 16:28:16 kid1| Set Current Directory to /var/spool/squid
2017/08/18 16:28:16 kid1| Creating missing swap directories
2017/08/18 16:28:16 kid1| /var/spool/squid exists
2017/08/18 16:28:16 kid1| /var/spool/squid/00 exists
2017/08/18 16:28:16 kid1| Making directories in /var/spool/squid/00
2017/08/18 16:28:16 kid1| /var/spool/squid/01 exists
2017/08/18 16:28:16 kid1| Making directories in /var/spool/squid/01
2017/08/18 16:28:17 kid1| /var/spool/squid/02 exists
2017/08/18 16:28:17 kid1| Making directories in /var/spool/squid/02
2017/08/18 16:28:17 kid1| /var/spool/squid/03 exists
2017/08/18 16:28:17 kid1| Making directories in /var/spool/squid/03
2017/08/18 16:28:17 kid1| /var/spool/squid/04 exists
2017/08/18 16:28:17 kid1| Making directories in /var/spool/squid/04



10. Re: Erro squid Version 3.5.23

WILLIAN DOMICIANO MEDEIROS ROSA
willianrosa

(usa Debian)

Enviado em 18/08/2017 - 16:53h

Pessoal o squid esta rodando vejam:

2017/08/18 16:47:56| Squid is already running! Process ID 1836
só que não esta bloqueando os sites.

vejam meu squid.conf

http_port 3128
visible_hostname ROMA_FREICANECA
cache_mem 512 MB
cache_dir aufs /var/spool/squid 2024 16 256
maximum_object_size_in_memory 500 MB
maximum_object_size 700 MB
minimum_object_size 0 KB
cache_swap_low 90
cache_swap_high 95
cache_dir aufs /dev/shm 300 20 512
cache_access_log /var/log/squid/access.log squid
refresh_pattern ^ftp: 15 20% 2280
refresh_pattern ^gopher: 15 0% 2280
refresh_pattern . 15 20% 2280
refresh_pattern (Release|Package(.gz)*)$ 0 20% 2880
refresh_pattern . 0 20% 4320

error_directory /usr/share/squid/errors/Portuguese
hosts_file /etc/hosts
coredump_dir /var/spool/squid

acl all src
acl manager proto cache_object
acl localnet src 10.12.53.0/24
acl SSL_ports port 443 563
acl Safe_ports port 21 80 443 563 70 210 280 488 59 777 901 1025-65535
acl purge method PURGE
acl CONNECT method CONNECT


http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports

acl ACESSO_FULL src "/etc/squid/regras/acesso-full"
acl ACESSO_MEDIO src "/etc/squid/regras/acesso-medio"

acl DOWNLOADS_PERMITIDOS url_regex -i "/etc/squid/regras/downloads_permitidos"
acl DOWNLOADS_PROIBIDOS urlpath_regex -i "/etc/squid/regras/downloads_proibidos"
acl SITES_PROIBIDOS dstdomain "/etc/squid/regras/sites_proibidos"
acl SITES_PERMITIDOS dstdomain "/etc/squid/regras/sites_permitidos"

http_access allow ACESSO_FULL
http_access allow DOWNLOADS_PERMITIDOS
http_access deny DOWNLOADS_PROIBIDOS
http_access deny SITES_PROIBIDOS
http_access allow SITES_PERMITIDOS
http_access deny ACESSO_MEDIO !SITES_PERMITIDOS

http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports

http_access deny all
http_access allow localhost



11. Re: Erro squid Version 3.5.23

Augusto Ribeiro
AugustoRibeiro

(usa elementary OS)

Enviado em 18/08/2017 - 16:56h

willianrosa escreveu:

AugustoRibeiro escreveu:

Boa tarde galera,

Concordo com o LSSilva, aparentemente é algo com o diretório /var/spoll/squid, verifique se ele realmente existe ou então tente rodar o
squid -z

e depois reiniciar o squid
Att

Augusto Ribeiro
Analista DevOps


Boa tarde rapaziada.

Alterei o spoll para spool, consegui iniciar o squid mas não esta funcionando quando dei o squid -z reporta esta mensgem.

2017/08/18 16:28:16 kid1| Set Current Directory to /var/spool/squid
2017/08/18 16:28:16 kid1| Creating missing swap directories
2017/08/18 16:28:16 kid1| /var/spool/squid exists
2017/08/18 16:28:16 kid1| /var/spool/squid/00 exists
2017/08/18 16:28:16 kid1| Making directories in /var/spool/squid/00
2017/08/18 16:28:16 kid1| /var/spool/squid/01 exists
2017/08/18 16:28:16 kid1| Making directories in /var/spool/squid/01
2017/08/18 16:28:17 kid1| /var/spool/squid/02 exists
2017/08/18 16:28:17 kid1| Making directories in /var/spool/squid/02
2017/08/18 16:28:17 kid1| /var/spool/squid/03 exists
2017/08/18 16:28:17 kid1| Making directories in /var/spool/squid/03
2017/08/18 16:28:17 kid1| /var/spool/squid/04 exists
2017/08/18 16:28:17 kid1| Making directories in /var/spool/squid/04


Boa tarde,

Legal cara, porém você consegue explicar melhor esse "não esta funcionando"? Apresenta algum erro ou algo assim?


Att

Augusto Ribeiro
Analista DevOps


12. Re: Erro squid Version 3.5.23

WILLIAN DOMICIANO MEDEIROS ROSA
willianrosa

(usa Debian)

Enviado em 18/08/2017 - 16:59h

AugustoRibeiro escreveu:

willianrosa escreveu:

AugustoRibeiro escreveu:

Boa tarde galera,

Concordo com o LSSilva, aparentemente é algo com o diretório /var/spoll/squid, verifique se ele realmente existe ou então tente rodar o
squid -z

e depois reiniciar o squid
Att

Augusto Ribeiro
Analista DevOps



Augusto

Os sites estão passando sem bloqueio.

Boa tarde rapaziada.

Alterei o spoll para spool, consegui iniciar o squid mas não esta funcionando quando dei o squid -z reporta esta mensgem.

2017/08/18 16:28:16 kid1| Set Current Directory to /var/spool/squid
2017/08/18 16:28:16 kid1| Creating missing swap directories
2017/08/18 16:28:16 kid1| /var/spool/squid exists
2017/08/18 16:28:16 kid1| /var/spool/squid/00 exists
2017/08/18 16:28:16 kid1| Making directories in /var/spool/squid/00
2017/08/18 16:28:16 kid1| /var/spool/squid/01 exists
2017/08/18 16:28:16 kid1| Making directories in /var/spool/squid/01
2017/08/18 16:28:17 kid1| /var/spool/squid/02 exists
2017/08/18 16:28:17 kid1| Making directories in /var/spool/squid/02
2017/08/18 16:28:17 kid1| /var/spool/squid/03 exists
2017/08/18 16:28:17 kid1| Making directories in /var/spool/squid/03
2017/08/18 16:28:17 kid1| /var/spool/squid/04 exists
2017/08/18 16:28:17 kid1| Making directories in /var/spool/squid/04


Boa tarde,

Legal cara, porém você consegue explicar melhor esse "não esta funcionando"? Apresenta algum erro ou algo assim?


Att

Augusto Ribeiro
Analista DevOps






01 02



Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts