[FUGSPBR] problemas com squid + cache em memória RAM ( só pra com pletar...) (ainda!)

Felipe Neuwald neuwald em rudah.com.br
Qua Jul 2 14:19:25 BRT 2003


Companheiros,

continuo tendo problemas com o squid. Deixei ele funcionando e em menos de 2
horas e ele parou. Espaço no disco virtual não é:

-bash-2.05b$ df -h
Filesystem    Size   Used  Avail Capacity  Mounted on
/dev/ad0s1a   252M    47M   185M    20%    /
/dev/ad0s1e   252M    30K   232M     0%    /tmp
/dev/ad0s1f   9.8G   2.4G   6.7G    26%    /usr
/dev/ad0s1g    24G   976M    21G     4%    /var
procfs        4.0K   4.0K     0B   100%    /proc
mfs:142       342M    95M   220M    30%    /mnt/mem/

Olhem os erros que eu tenho tido agora no cache.log:

2003/07/02 10:47:42| clientReadRequest: FD 97 Invalid Request
FATAL: Received Segment Violation...dying.
2003/07/02 11:20:09| storeDirWriteCleanLogs: Starting...
2003/07/02 11:20:09| WARNING: Closing open FD   10
2003/07/02 11:20:12| Starting Squid Cache version 2.5.STABLE2 for
i386-portbld-freebsd4.8...
2003/07/02 11:20:12| Process ID 940
2003/07/02 11:20:12| With 11095 file descriptors available
2003/07/02 11:20:12| Performing DNS Tests...
2003/07/02 11:20:12| Successful DNS name lookup tests...
2003/07/02 11:20:12| commBind: Cannot bind socket FD 4 to *:4: (13) Permission
denied
FATAL: Received Segment Violation...dying.
2003/07/02 11:20:12| Not currently OK to rewrite swap log.
2003/07/02 11:20:12| storeDirWriteCleanLogs: Operation aborted.
CPU Usage: 0.008 seconds = 0.008 user + 0.000 sys
Maximum Resident Size: 1332 KB
Page faults with physical i/o: 0
2003/07/02 11:20:15| Starting Squid Cache version 2.5.STABLE2 for
i386-portbld-freebsd4.8...
2003/07/02 11:20:15| Process ID 942
2003/07/02 11:20:15| With 11095 file descriptors available
2003/07/02 11:20:15| Performing DNS Tests...
2003/07/02 11:20:15| Successful DNS name lookup tests...
2003/07/02 11:20:15| commBind: Cannot bind socket FD 4 to *:4: (13) Permission
denied
FATAL: Received Segment Violation...dying.
2003/07/02 11:20:15| Not currently OK to rewrite swap log.
2003/07/02 11:20:15| storeDirWriteCleanLogs: Operation aborted.
CPU Usage: 0.008 seconds = 0.000 user + 0.008 sys
Maximum Resident Size: 1404 KB
Page faults with physical i/o: 0
2003/07/02 11:20:18| Starting Squid Cache version 2.5.STABLE2 for
i386-portbld-freebsd4.8...
2003/07/02 11:20:18| Process ID 944
2003/07/02 11:20:18| With 11095 file descriptors available
2003/07/02 11:20:18| Performing DNS Tests...
2003/07/02 11:20:18| Successful DNS name lookup tests...
2003/07/02 11:20:18| commBind: Cannot bind socket FD 4 to *:4: (13) Permission
denied
FATAL: Received Segment Violation...dying.
2003/07/02 11:20:18| Not currently OK to rewrite swap log.
2003/07/02 11:20:18| storeDirWriteCleanLogs: Operation aborted.
CPU Usage: 0.008 seconds = 0.008 user + 0.000 sys
Maximum Resident Size: 1416 KB
Page faults with physical i/o: 0
2003/07/02 11:20:21| Starting Squid Cache version 2.5.STABLE2 for
i386-portbld-freebsd4.8...
2003/07/02 11:20:21| Process ID 946
2003/07/02 11:20:21| With 11095 file descriptors available
2003/07/02 11:20:21| Performing DNS Tests...
2003/07/02 11:20:21| Successful DNS name lookup tests...
2003/07/02 11:20:21| commBind: Cannot bind socket FD 4 to *:4: (13) Permission
denied
FATAL: Received Segment Violation...dying.
2003/07/02 11:20:21| Not currently OK to rewrite swap log.
2003/07/02 11:20:21| storeDirWriteCleanLogs: Operation aborted.
CPU Usage: 0.008 seconds = 0.008 user + 0.000 sys
Maximum Resident Size: 1364 KB
Page faults with physical i/o: 0
2003/07/02 11:20:24| Starting Squid Cache version 2.5.STABLE2 for
i386-portbld-freebsd4.8...
2003/07/02 11:20:24| Process ID 948
2003/07/02 11:20:24| With 11095 file descriptors available
2003/07/02 11:20:24| Performing DNS Tests...
2003/07/02 11:20:24| Successful DNS name lookup tests...
2003/07/02 11:20:24| commBind: Cannot bind socket FD 4 to *:4: (13) Permission
denied
FATAL: Received Segment Violation...dying.
2003/07/02 11:20:24| Not currently OK to rewrite swap log.
2003/07/02 11:20:24| storeDirWriteCleanLogs: Operation aborted.
CPU Usage: 0.008 seconds = 0.000 user + 0.008 sys
Maximum Resident Size: 1404 KB
Page faults with physical i/o: 0

-bash-2.05b$ pwd
/var/log/squid
-bash-2.05b$ ls -laF
total 988662
drwxr-xr-x  2 nobody  wheel        512 Jul  2 10:34 ./
drwxr-xr-x  3 root    wheel       2048 Jul  2 11:00 ../
-rw-r--r--  1 nobody  wheel  450901948 Jul  2 11:20 access.log
-rw-r--r--  1 nobody  wheel     319842 Jul  2 11:20 cache.log
-rw-r--r--  1 root    wheel          4 Jul  2 10:34 squid.pid
-rw-r--r--  1 nobody  wheel  561252147 Jul  2 11:20 store.log

nobody é o usuário que meu squid roda...

-bash-2.05b$ pwd
/mnt/mem
-bash-2.05b$ ls -lah
total 531
drwxrwxrwt   18 root    wheel    512B Jul  2 11:20 .
drwxr-xr-x    6 root    wheel    512B Jun 13 08:52 ..
drwxr-xr-x  258 nobody  wheel      3K Jul  2 10:33 00
drwxr-xr-x  258 nobody  wheel      3K Jul  2 10:33 01
drwxr-xr-x  258 nobody  wheel      3K Jul  2 10:33 02
drwxr-xr-x  258 nobody  wheel      3K Jul  2 10:33 03
drwxr-xr-x  258 nobody  wheel      3K Jul  2 10:33 04
drwxr-xr-x  258 nobody  wheel      3K Jul  2 10:33 05
drwxr-xr-x  258 nobody  wheel      3K Jul  2 10:33 06
drwxr-xr-x  258 nobody  wheel      3K Jul  2 10:33 07
drwxr-xr-x  258 nobody  wheel      3K Jul  2 10:33 08
drwxr-xr-x  258 nobody  wheel      3K Jul  2 10:33 09
drwxr-xr-x  258 nobody  wheel      3K Jul  2 10:33 0A
drwxr-xr-x  258 nobody  wheel      3K Jul  2 10:33 0B
drwxr-xr-x  258 nobody  wheel      3K Jul  2 10:33 0C
drwxr-xr-x  258 nobody  wheel      3K Jul  2 10:33 0D
drwxr-xr-x  258 nobody  wheel      3K Jul  2 10:33 0E
drwxr-xr-x  258 nobody  wheel      3K Jul  2 10:33 0F
-rw-r--r--    1 nobody  wheel    453K Jul  2 11:20 swap.state
-rw-r--r--    1 nobody  wheel      0B Jul  2 11:20 swap.state.last-clean

O meu arquivo swap.state não está nem um pouco grande...

Então pesquisei na FAQ do squid...

11.37 commBind: Cannot bind socket FD 5 to 127.0.0.1:0: (49) Can't assign
requested address 


This likely means that your system does not have a loopback network device, or
that device is not properly configured. All Unix systems should have a network
device named lo0, and it should be configured with the address 127.0.0.1. If
not, you may get the above error message. To check your system, run: 

        % ifconfig lo0

 The result should look something like: 
        lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
                inet 127.0.0.1 netmask 0xff000000 

Mas...

-bash-2.05b$ ifconfig lo0
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
        inet 127.0.0.1 netmask 0xff000000

Mais ainda...

-bash-2.05b$ sudo ipfw -d l
Password:
00200 allow ip from any to any via lo0
00300 deny ip from any to 127.0.0.0/8
00400 deny ip from 127.0.0.0/8 to any


Hmm... alguma sugestão? :)

Abraços,

---
Felipe Neuwald
neuwald em rudah.com.br
Rudah On-Line SysAdm

On Tue, 01 Jul 2003 12:59:45 -0300, Luiz Gustavo wrote
> William David Armstrong <bio em bsd-unix.com.br> writes:
> 
> > eu  sempre  utilizei  o squid  compilado  a mão  nao via  a la' ports,
> > so'tivé problemas  1  vez   com  out of inodes.  nele  tente  fazer um
> > teste  baixe o tar.gz  e  compile na  mão. pra fazer  testes   como
> > nosso amigo ja comentou  a  inumeros  erros  na sua instalacão  do
> > squid. ele  mesmo não esta encontrando  os  arquivos.  compile  ele na
> > mão   e tente  compilar ele com estas opcoes.
> 
> > ./configure --prefix=/usr/local/squid --enable-carp --with-pthreads --with-dl
> > --with-aio --enable-storeio=diskd
> > --enable-removal-policies=heap --enable-icmp --enable-referer-log
> > --enable-useragent-log --enable-snmp
> > --enable-cachemgr-hostname=groundzero --with-openssl --enable-cache-digests
> > --enable-default-err-language=Portuguese
> > --enable-err-languages=Portuguese --disable-http-violations
> > --enable-ipf-transparent --enable-truncate
> > --enable-underscores --enable-x-accelerator-vary --enable-kill-parent-hack
> > --disable-ident-lookups
> > --enable-htcp --enable-delay-pools -enable-poll
> 
>  Se vc usa o squid como proxy em um freebsd com diskd, vc habilitou
>  opcoes em demasia.
> 
> -- 
> gustavo
> 
> _______________________________________________________________
> Sair da Lista: http://www2.fugspbr.org/mailman/listinfo/fugspbr
> Historico: http://www4.fugspbr.org/lista/html/FUG-BR/



_______________________________________________________________
Sair da Lista: http://www2.fugspbr.org/mailman/listinfo/fugspbr
Historico: http://www4.fugspbr.org/lista/html/FUG-BR/



Mais detalhes sobre a lista de discussão freebsd