Squid

1. Squid

vivaldi nobela
mucataze

(usa Outra)

Enviado em 06/11/2018 - 08:02h

Bom dia caros estou a ter problemas com o meu squid peco ajuda

roxy:/var/spool# squid -NCd1
2018/11/06 12:02:27| WARNING: '.download.windowsupdate.com' is a subdomain of '.download.windowsupdate.com'
2018/11/06 12:02:27| WARNING: because of this '.download.windowsupdate.com' is ignored to keep splay tree searching predictable
2018/11/06 12:02:27| WARNING: You should probably remove '.download.windowsupdate.com' from the ACL named 'blockeddomain'
2018/11/06 12:02:27| WARNING: '.download.windowsupdate.com' is a subdomain of '.download.windowsupdate.com'
2018/11/06 12:02:27| WARNING: because of this '.download.windowsupdate.com' is ignored to keep splay tree searching predictable
2018/11/06 12:02:27| WARNING: You should probably remove '.download.windowsupdate.com' from the ACL named 'blockeddomain'
2018/11/06 12:02:27| WARNING: '.www.download.windowsupdate.com' is a subdomain of '.download.windowsupdate.com'
2018/11/06 12:02:27| WARNING: because of this '.www.download.windowsupdate.com' is ignored to keep splay tree searching predictable
2018/11/06 12:02:27| WARNING: You should probably remove '.www.download.windowsupdate.com' from the ACL named 'blockeddomain'
2018/11/06 12:02:27| WARNING: '.miragens.abola.pt' is a subdomain of '.abola.pt'
2018/11/06 12:02:27| WARNING: because of this '.miragens.abola.pt' is ignored to keep splay tree searching predictable
2018/11/06 12:02:27| WARNING: You should probably remove '.miragens.abola.pt' from the ACL named 'blockeddomain'
2018/11/06 12:02:27| WARNING: '.update.microsoft.com' is a subdomain of '.update.microsoft.com'
2018/11/06 12:02:27| WARNING: because of this '.update.microsoft.com' is ignored to keep splay tree searching predictable
2018/11/06 12:02:27| WARNING: You should probably remove '.update.microsoft.com' from the ACL named 'blockeddomain'
2018/11/06 12:02:27| WARNING: '.update.microsoft.com' is a subdomain of '.update.microsoft.com'
2018/11/06 12:02:27| WARNING: because of this '.update.microsoft.com' is ignored to keep splay tree searching predictable
2018/11/06 12:02:27| WARNING: You should probably remove '.update.microsoft.com' from the ACL named 'blockeddomain'
2018/11/06 12:02:27| WARNING: '.armdl.adobe.com' is a subdomain of '.adobe.com'
2018/11/06 12:02:27| WARNING: because of this '.adobe.com' is ignored to keep splay tree searching predictable
2018/11/06 12:02:27| WARNING: You should probably remove '.armdl.adobe.com' from the ACL named 'blockeddomain'
2018/11/06 12:02:27| WARNING: '.update.microsoft.com' is a subdomain of '.update.microsoft.com'
2018/11/06 12:02:27| WARNING: because of this '.update.microsoft.com' is ignored to keep splay tree searching predictable
2018/11/06 12:02:27| WARNING: You should probably remove '.update.microsoft.com' from the ACL named 'blockeddomain'
2018/11/06 12:02:27| WARNING: '.update.microsoft.com' is a subdomain of '.update.microsoft.com'
2018/11/06 12:02:27| WARNING: because of this '.update.microsoft.com' is ignored to keep splay tree searching predictable
2018/11/06 12:02:27| WARNING: You should probably remove '.update.microsoft.com' from the ACL named 'blockeddomain'
2018/11/06 12:02:27| Starting Squid Cache version 2.7.STABLE3 for amd64-debian-linux-gnu...
2018/11/06 12:02:27| Process ID 27893
2018/11/06 12:02:27| With 1024 file descriptors available
2018/11/06 12:02:27| Using epoll for the IO loop
2018/11/06 12:02:27| Performing DNS Tests...
2018/11/06 12:02:27| Successful DNS name lookup tests...
2018/11/06 12:02:27| DNS Socket created at 0.0.0.0, port 54029, FD 6
2018/11/06 12:02:27| Adding domain fmanhica.local from /etc/resolv.conf
2018/11/06 12:02:27| Adding nameserver 172.16.234.241 from /etc/resolv.conf
2018/11/06 12:02:27| Adding nameserver 172.16.236.251 from /etc/resolv.conf
2018/11/06 12:02:27| User-Agent logging is disabled.
2018/11/06 12:02:27| Referer logging is disabled.
2018/11/06 12:02:27| logfileOpen: opening log /var/log/squid/access.log
2018/11/06 12:02:27| Unlinkd pipe opened on FD 11
2018/11/06 12:02:27| Swap maxSize 102400 KB, estimated 7876 objects
2018/11/06 12:02:27| Target number of buckets: 393
2018/11/06 12:02:27| Using 8192 Store buckets
2018/11/06 12:02:27| Max Mem size: 8192 KB
2018/11/06 12:02:27| Max Swap size: 102400 KB
2018/11/06 12:02:27| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2018/11/06 12:02:27| logfileOpen: opening log /var/log/squid/store.log
2018/11/06 12:02:27| /var/spool/squid/swap.state.new: (28) No space left on device
FATAL: storeDirOpenTmpSwapLog: Failed to open swap log.
Aborted



  


2. Re: Squid

Paulo Bonfanti
pbonfanti

(usa Debian)

Enviado em 07/11/2018 - 09:35h

mucataze escreveu:

Bom dia caros estou a ter problemas com o meu squid peco ajuda

roxy:/var/spool# squid -NCd1
2018/11/06 12:02:27| WARNING: '.download.windowsupdate.com' is a subdomain of '.download.windowsupdate.com'
2018/11/06 12:02:27| WARNING: because of this '.download.windowsupdate.com' is ignored to keep splay tree searching predictable
2018/11/06 12:02:27| WARNING: You should probably remove '.download.windowsupdate.com' from the ACL named 'blockeddomain'
2018/11/06 12:02:27| WARNING: '.download.windowsupdate.com' is a subdomain of '.download.windowsupdate.com'
2018/11/06 12:02:27| WARNING: because of this '.download.windowsupdate.com' is ignored to keep splay tree searching predictable
2018/11/06 12:02:27| WARNING: You should probably remove '.download.windowsupdate.com' from the ACL named 'blockeddomain'
2018/11/06 12:02:27| WARNING: '.www.download.windowsupdate.com' is a subdomain of '.download.windowsupdate.com'
2018/11/06 12:02:27| WARNING: because of this '.www.download.windowsupdate.com' is ignored to keep splay tree searching predictable
2018/11/06 12:02:27| WARNING: You should probably remove '.www.download.windowsupdate.com' from the ACL named 'blockeddomain'
2018/11/06 12:02:27| WARNING: '.miragens.abola.pt' is a subdomain of '.abola.pt'
2018/11/06 12:02:27| WARNING: because of this '.miragens.abola.pt' is ignored to keep splay tree searching predictable
2018/11/06 12:02:27| WARNING: You should probably remove '.miragens.abola.pt' from the ACL named 'blockeddomain'
2018/11/06 12:02:27| WARNING: '.update.microsoft.com' is a subdomain of '.update.microsoft.com'
2018/11/06 12:02:27| WARNING: because of this '.update.microsoft.com' is ignored to keep splay tree searching predictable
2018/11/06 12:02:27| WARNING: You should probably remove '.update.microsoft.com' from the ACL named 'blockeddomain'
2018/11/06 12:02:27| WARNING: '.update.microsoft.com' is a subdomain of '.update.microsoft.com'
2018/11/06 12:02:27| WARNING: because of this '.update.microsoft.com' is ignored to keep splay tree searching predictable
2018/11/06 12:02:27| WARNING: You should probably remove '.update.microsoft.com' from the ACL named 'blockeddomain'
2018/11/06 12:02:27| WARNING: '.armdl.adobe.com' is a subdomain of '.adobe.com'
2018/11/06 12:02:27| WARNING: because of this '.adobe.com' is ignored to keep splay tree searching predictable
2018/11/06 12:02:27| WARNING: You should probably remove '.armdl.adobe.com' from the ACL named 'blockeddomain'
2018/11/06 12:02:27| WARNING: '.update.microsoft.com' is a subdomain of '.update.microsoft.com'
2018/11/06 12:02:27| WARNING: because of this '.update.microsoft.com' is ignored to keep splay tree searching predictable
2018/11/06 12:02:27| WARNING: You should probably remove '.update.microsoft.com' from the ACL named 'blockeddomain'
2018/11/06 12:02:27| WARNING: '.update.microsoft.com' is a subdomain of '.update.microsoft.com'
2018/11/06 12:02:27| WARNING: because of this '.update.microsoft.com' is ignored to keep splay tree searching predictable
2018/11/06 12:02:27| WARNING: You should probably remove '.update.microsoft.com' from the ACL named 'blockeddomain'
2018/11/06 12:02:27| Starting Squid Cache version 2.7.STABLE3 for amd64-debian-linux-gnu...
2018/11/06 12:02:27| Process ID 27893
2018/11/06 12:02:27| With 1024 file descriptors available
2018/11/06 12:02:27| Using epoll for the IO loop
2018/11/06 12:02:27| Performing DNS Tests...
2018/11/06 12:02:27| Successful DNS name lookup tests...
2018/11/06 12:02:27| DNS Socket created at 0.0.0.0, port 54029, FD 6
2018/11/06 12:02:27| Adding domain fmanhica.local from /etc/resolv.conf
2018/11/06 12:02:27| Adding nameserver 172.16.234.241 from /etc/resolv.conf
2018/11/06 12:02:27| Adding nameserver 172.16.236.251 from /etc/resolv.conf
2018/11/06 12:02:27| User-Agent logging is disabled.
2018/11/06 12:02:27| Referer logging is disabled.
2018/11/06 12:02:27| logfileOpen: opening log /var/log/squid/access.log
2018/11/06 12:02:27| Unlinkd pipe opened on FD 11
2018/11/06 12:02:27| Swap maxSize 102400 KB, estimated 7876 objects
2018/11/06 12:02:27| Target number of buckets: 393
2018/11/06 12:02:27| Using 8192 Store buckets
2018/11/06 12:02:27| Max Mem size: 8192 KB
2018/11/06 12:02:27| Max Swap size: 102400 KB
2018/11/06 12:02:27| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2018/11/06 12:02:27| logfileOpen: opening log /var/log/squid/store.log
2018/11/06 12:02:27| /var/spool/squid/swap.state.new: (28) No space left on device
FATAL: storeDirOpenTmpSwapLog: Failed to open swap log.
Aborted


Você tem mais de um problema por exemplo:

2018/11/06 12:02:27| WARNING: '.www.download.windowsupdate.com' is a subdomain of '.download.windowsupdate.com'
2018/11/06 12:02:27| WARNING: because of this '.www.download.windowsupdate.com' is ignored to keep splay tree searching predictable
2018/11/06 12:02:27| WARNING: You should probably remove '.www.download.windowsupdate.com' from the ACL named 'blockeddomain'

Indica que você tem entradas duplicadas na lista de sites proibidos, e o algoritmo do squid não permite isso, em versões mais antigas ele só te dá uma aviso, em versões mais modernas do squid ele pode gerar um erro fatal e não inicializar.
O seu segundo problema é que o seu diretorio de cache está cheio e não tem espaço pra gravar, o seu parametro de tamanho na linha "cache_dir" pode estar muito grande para o dispositivo você pode reduzir esse valor para dar alguma folga de espaço em disco, ele é expresso em Megabytes, segundo a documentação oficial.
Depois da alteração esvazie seu diretorio de spool e recrie o cache com o comando squid -Z.









Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts