[FUG-BR] Squid 2.5 Erro. storeDiskdDirOpenSwapLog: Failed to open swap

Giovanni P. Tirloni gpt em tirloni.org
Domingo Outubro 15 23:04:43 BRST 2006


Anailson Gomes wrote:
> Salve lista..
> Bem pessoal meu squid sempre operou certinho sem erros, a exatamente a
> 3 dias comecei a ter esses problema, o squid diz que nao consegui
> abrir o SwapLog, ja revirei o squid no server instalei novamente a
> ultimo stable do 2.5 em outro diretorio e nada de resolver. Ja
> verifiquei as permiçoes de leitura e escrita e tudo ok.
> 
> Alguem poderia de dá uma luz?
> 
> 5.2.1-RELEASE FreeBSD 5.2.1-RELEASE
> 
> 
> #Mensagem de erro
> Oct 15 14:00:01 servidor squid[33861]: Squid Parent: child process 33865 started
> Oct 15 14:00:01 servidor (squid): storeDiskdDirOpenSwapLog: Failed to
> open swap log.
> Oct 15 14:00:01 servidor kernel: pid 33865 (squid), uid 11: exited on signal 6
> Oct 15 14:00:01 servidor squid[33861]: Squid Parent: child process
> 33865 exited due to signal 6
> Oct 15 14:00:04 servidor squid[33861]: Squid Parent: child process 33874 started
> 
> 
> 
> 
> #Squid Version
> Squid Cache: Version 2.5.STABLE14
> configure options:  --prefix=/dados/squid25 '--enable-storeio=ufs
> diskd' --enable-default-err-language=Portuguese
> 
> #Squid.Conf
> 
> http_port 3128
> icp_port 3130
> 
> #---------------------------------------
> # OPTIONS WHICH AFFECT THE CACHE SIZE
> # --------------------------------------
> visible_hostname proxy.server.com..br
> cache_mem 256 MB
> cache_swap_low 20
> cache_swap_high 50
> maximum_object_size 2 MB
> maximum_object_size_in_memory 20 KB
> fqdncache_size 1024
> 
> #---------------------------------------
> # DIRETORIOS DE LOG
> # --------------------------------------
> 
> cache_dir diskd /dados/squid25/var/cache 256 16 256 Q1=72 Q2=64
> cache_access_log /dados/squid25/var/logs/access.log
> cache_store_log /dados/squid25/var/logs/store.log
> pid_filename /dados/squid25/var/logs/squid.pid
> 
> 
> #-------------------------------------------------------------------------------
> 
> #Permicoes
> -bash-2.05b# ls -la /dados/squid25/var/logs/
> drwxrwxrwx  2 squid  squid       512 Oct 14 21:27 .
> drwxrwxrwx  4 squid  squid       512 Oct 14 21:14 ..
> -rwxrwxrwx  1 squid  squid  10116691 Oct 15 14:08 access.log
> -rwxrwxrwx  1 squid  squid     69826 Oct 15 13:48 cache.log
> -rw-r--r--  1 root   squid         6 Oct 14 21:27 squid.pid
> -rwxrwxrwx  1 squid  squid  13807926 Oct 15 14:08 store.log

Olá,

 Verifique as permissões em /dados/squid25/var/cache. O squid não está
conseguindo criar o arquivo swap.state. Tente remover tudo, definir
squid:squid como owner (chown -R) e squid -z novamente.

Boa sorte,

-- 
Giovanni P. Tirloni
http://www.tirloni.org



Mais detalhes sobre a lista de discussão freebsd