Problemas com squid [RESOLVIDO]

1. Problemas com squid [RESOLVIDO]

Jonathan Rodrigues
john_master12

(usa Ubuntu)

Enviado em 31/01/2011 - 12:08h

pessoal seguinte to com uns probleminhas no squid
seguinte quando dou squid -k reconfigure diz a seguinte mensagem

squid: ERROR: No running copy

quando dou squid -z

root@Proxy:~# squid -z
2011/01/31 12:05:03| Creating Swap Directories
o que pode ser...

meu squid conf

#_____________________Configuracao squid________________
#_____________________Por Jonathan Rodrigues_______________
#_____________________john_master12@hotmail.com__________


http_port 3140 transparent
visible_hostname proxycoesa
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
cache_mem 1024 MB

#____________Otimizacao do sistema_________________

maximum_object_size 1024 MB
minimum_object_size 0 KB
cache_swap_low 90
cache_swap_high 95
cache_access_log /var/log/squid/access.log
cache_dir ufs /var/spool/squid 2048 256 512
refresh_pattern ^ftp: 15 20% 4560
refresh_pattern ^gopher: 15 0% 4560
refresh_pattern . 15 20% 4560

#_______________ACLS Normais________________________
acl all src 192.168.0.0/255.255.255.0
acl liberado url_regex -i "/etc/squid/liberado"
acl bloqueado url_regex -i "/etc/squid/bloqueado"
delay_pools 1
delay_class 1 2
delay_parameters 1 114688/114688 32768/32768
delay_access 1 allow all
acl manager proto cache_object
acl localhost src 192.168.0.200/255.255.255.255
acl SSL_ports port 4433
acl SSL_ports port 873
acl Safe_ports port 110
acl Safe_ports port 25
acl Safe_ports port 80
acl Safe_ports port 21
acl Safe_ports port 443 563
acl Safe_ports port 70
acl Safe_ports port 210
acl Safe_ports port 1025-65535
acl Safe_ports port 280
acl Safe_ports port 488
acl Safe_ports port 591
acl Safe_ports port 777
acl Safe_ports port 631
acl Safe_ports port 873
acl Safe_ports port 901
acl purge method PURGE
acl CONNECT method CONNECT
no_cache deny QUERY
#_________________________Aplicacao da ACL______________
http_access allow manager localhost
http_access allow liberado
http_access deny bloqueado
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow purge localhost
http_access deny purge
http_access allow localhost
http_access allow all
http_reply_access allow all
#______________________Fim______________________________


vlw


  


2. Re: Problemas com squid [RESOLVIDO]

Renato Carneiro Pacheco
renato_pacheco

(usa Debian)

Enviado em 31/01/2011 - 13:45h

E ae, blz?

Tente com esse comando ae:

# squid -NCd1

E coloque a saída dele aqui.


3. Re: Problemas com squid [RESOLVIDO]

Isaque Vieira de Sousa Alves
isaque_alves

(usa Fedora)

Enviado em 31/01/2011 - 13:58h

Rpz,
"No running copy" é sinal de problemas...

O SQuid não está em execução... Verifica os logs do sistema para ver se encontra algum indício...

Só posso dizer isso no momento. Mas realmente, o squid não está rodando...



4. Re: Problemas com squid [RESOLVIDO]

Jonathan Rodrigues
john_master12

(usa Ubuntu)

Enviado em 31/01/2011 - 14:01h

# squid -NCd1
2011/01/31 14:02:49| Starting Squid Cache version 2.7.STABLE9 for i386-debian-l inux-gnu...
2011/01/31 14:02:49| Process ID 18749
2011/01/31 14:02:49| With 1024 file descriptors available
2011/01/31 14:02:49| Using epoll for the IO loop
2011/01/31 14:02:49| Performing DNS Tests...
2011/01/31 14:02:49| Successful DNS name lookup tests...
2011/01/31 14:02:49| DNS Socket created at 0.0.0.0, port 58307, FD 6
2011/01/31 14:02:49| Adding domain Coesa from /etc/resolv.conf
2011/01/31 14:02:49| Adding nameserver 200.204.0.10 from /etc/resolv.conf
2011/01/31 14:02:49| Adding nameserver 200.204.0.138 from /etc/resolv.conf
2011/01/31 14:02:49| User-Agent logging is disabled.
2011/01/31 14:02:49| Referer logging is disabled.
2011/01/31 14:02:49| logfileOpen: opening log /var/log/squid/access.log
2011/01/31 14:02:49| Unlinkd pipe opened on FD 11
2011/01/31 14:02:49| Swap maxSize 2097152 + 1048576 KB, estimated 241979 object s
2011/01/31 14:02:49| Target number of buckets: 12098
2011/01/31 14:02:49| Using 16384 Store buckets
2011/01/31 14:02:49| Max Mem size: 1048576 KB
2011/01/31 14:02:49| Max Swap size: 2097152 KB
2011/01/31 14:02:49| Local cache digest enabled; rebuild/rewrite every 3600/360 0 sec
2011/01/31 14:02:49| logfileOpen: opening log /var/log/squid/store.log
2011/01/31 14:02:49| Rebuilding storage in /var/spool/squid (DIRTY)
2011/01/31 14:02:49| Using Least Load store dir selection
2011/01/31 14:02:49| Current Directory is /root
2011/01/31 14:02:49| Loaded Icons.
2011/01/31 14:02:49| commBind: Cannot bind socket FD 13 to *:3140: (98) Address already in use
FATAL: Cannot open HTTP Port
Abortado



5. Re: Problemas com squid [RESOLVIDO]

Renato Carneiro Pacheco
renato_pacheco

(usa Debian)

Enviado em 31/01/2011 - 14:04h

Kra, a porta 3140 está sendo utilizada. Modifique essa porta pra outra qq (6128, 3128, 8080...). Caso queira saber quais portas ocupadas, digite:

# netstat -antp


6. Re: Problemas com squid [RESOLVIDO]

Jonathan Rodrigues
john_master12

(usa Ubuntu)

Enviado em 31/01/2011 - 14:11h

netstat -antp
Conexões Internet Ativas (servidores e estabelecidas)
Proto Recv-Q Send-Q Endereço Local Endereço Remoto Estad o PID/Program name
tcp 0 0 192.168.0.253:3140 0.0.0.0:* OUÃA 2879/sshd
tcp 0 0 127.0.0.1:3306 0.0.0.0:* OUÃA 795/mysqld
tcp 0 0 0.0.0.0:80 0.0.0.0:* OUÃA 839/apache2
tcp 0 0 192.168.0.253:3140 192.168.0.55:50994 ESTABEL ECIDA 18487/0



7. Re: Problemas com squid [RESOLVIDO]

Jonathan Rodrigues
john_master12

(usa Ubuntu)

Enviado em 31/01/2011 - 14:14h

REalmente tava sendo usada :P


8. Re: Problemas com squid [RESOLVIDO]

Renato Carneiro Pacheco
renato_pacheco

(usa Debian)

Enviado em 31/01/2011 - 14:14h

Olhe a linha abaixo:

tcp 0 0 192.168.0.253:3140 0.0.0.0:* OUÃA 2879/sshd

Nota-se q ele (SSH) está utilizando a porta 3140, a msm q vc utilizou no squid, por isso q ele num subiu. Troque a porta (ou do squid ou do ssh) pra não conflitar mais.


9. Re: Problemas com squid [RESOLVIDO]

Jonathan Rodrigues
john_master12

(usa Ubuntu)

Enviado em 31/01/2011 - 14:27h

Vlw renatera.. jah tah no jeito e rodando ...







Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts