-
Squid não inicia
Ola
A empresa em que trabalho tem um servidor rodando o mandriva 2006. Acontece que quando coloquei politicas de acesso a site dentro do squid e tentei iniciar o mesmo usando o comando:
service squid restart [FALHOU]
Então tentei usar:
/etc/rc.d/init.d/squid start [FALHOU]
O que fazer para que o squid volte a funcionar? ja pesquisei algum problema igual ao meu mas não econtrei nada.
Abaixo segue o arquivo squid.conf:
http_port 3128
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
cache_dir diskd /var/spool/squid 100 16 256
cache_store_log none
auth_param basic children 5
auth_param basic realm Squid proxy-caching web server
auth_param basic credentialsttl 2 hours
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
half_closed_clients off
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 563
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # https, snews
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl CONNECT method CONNECT
acl sitetaua url_regex -i Prefeitura Municipal de Tauá
no_cache deny sitetaua
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access deny to_localhost
acl mynetwork src 192.168.0.0/255.255.255.0
http_access allow mynetwork
http_access allow localhost
http_reply_access allow all
icp_access allow all
visible_hostname [email protected]
httpd_accel_host virtual
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
append_domain .cidadedigital.com.br
err_html_text [email protected]
deny_info ERR_CUSTOM_ACCESS_DENIED all
memory_pools off
coredump_dir /var/spool/squid
ie_refresh on
Agradecido
-
verifica no /var/log/squid/cache.log
o que o squid esta acusando de errado !!
-
esses são os erros:
2006/11/21 00:48:27| Preparing for shutdown after 8577 requests
2006/11/21 00:48:27| Waiting 30 seconds for active connections to finish
2006/11/21 00:48:27| FD 11 Closing HTTP connection
2006/11/21 00:48:27| Shutting down...
2006/11/21 00:48:27| FD 13 Closing ICP connection
2006/11/21 00:48:27| FD 14 Closing HTCP socket
2006/11/21 00:48:27| FD 15 Closing SNMP socket
2006/11/21 00:48:27| Closing unlinkd pipe on FD 10
2006/11/21 00:48:27| storeDirWriteCleanLogs: Starting...
2006/11/21 00:48:27| Finished. Wrote 28899 entries.
2006/11/21 00:48:27| Took 0.0 seconds (1913080.9 entries/sec).
CPU Usage: 13.459 seconds = 6.401 user + 7.058 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 2
Memory usage for squid via mallinfo():
total space in arena: 15068 KB
Ordinary blocks: 14901 KB 232 blks
Small blocks: 0 KB 9 blks
Holding blocks: 208 KB 1 blks
Free Small blocks: 0 KB
Free Ordinary blocks: 166 KB
Total in use: 15109 KB 100%
Total free: 166 KB 1%
2006/11/21 00:48:27| Open FD 12 squid -> diskd
2006/11/21 00:48:27| Squid Cache (Version 2.5.STABLE10): Exiting normally.
2006/11/21 07:11:47| Starting Squid Cache version 2.5.STABLE10 for i586-mandriva-linux-gnu...
2006/11/21 07:11:47| Process ID 5817
2006/11/21 07:11:47| With 1024 file descriptors available
2006/11/21 07:11:47| DNS Socket created at 0.0.0.0, port 32771, FD 5
2006/11/21 07:11:47| Adding nameserver 172.30.0.1 from /etc/resolv.conf
2006/11/21 07:11:47| User-Agent logging is disabled.
2006/11/21 07:11:47| Referer logging is disabled.
2006/11/21 07:11:47| Unlinkd pipe opened on FD 10
2006/11/21 07:11:47| Swap maxSize 307200 KB, estimated 23630 objects
2006/11/21 07:11:47| Target number of buckets: 1181
2006/11/21 07:11:47| Using 8192 Store buckets
2006/11/21 07:11:47| Max Mem size: 8192 KB
2006/11/21 07:11:47| Max Swap size: 307200 KB
2006/11/21 07:11:47| Store logging disabled
2006/11/21 07:11:47| Rebuilding storage in /var/spool/squid (CLEAN)
2006/11/21 07:11:47| Using Least Load store dir selection
2006/11/21 07:11:47| Set Current Directory to /var/spool/squid
2006/11/21 07:11:47| Loaded Icons.
2006/11/21 07:11:48| Accepting HTTP connections at 0.0.0.0, port 3128, FD 11.
2006/11/21 07:11:48| Accepting ICP messages at 0.0.0.0, port 3130, FD 13.
2006/11/21 07:11:48| Accepting HTCP messages on port 4827, FD 14.
2006/11/21 07:11:48| Accepting SNMP messages on port 3401, FD 15.
2006/11/21 07:11:48| WCCP Disabled.
2006/11/21 07:11:48| Ready to serve requests.
2006/11/21 07:11:50| Store rebuilding is 14.2% complete
2006/11/21 07:11:57| Done reading /var/spool/squid swaplog (28899 entries)
2006/11/21 07:11:57| Finished rebuilding storage from disk.
2006/11/21 07:11:57| 28899 Entries scanned
2006/11/21 07:11:57| 0 Invalid entries.
2006/11/21 07:11:57| 0 With invalid flags.
2006/11/21 07:11:57| 28899 Objects loaded.
2006/11/21 07:11:57| 0 Objects expired.
2006/11/21 07:11:57| 0 Objects cancelled.
2006/11/21 07:11:57| 0 Duplicate URLs purged.
2006/11/21 07:11:57| 0 Swapfile clashes avoided.
2006/11/21 07:11:57| Took 10.0 seconds (2877.7 objects/sec).
2006/11/21 07:11:57| Beginning Validation Procedure
2006/11/21 07:11:57| Completed Validation Procedure
2006/11/21 07:11:57| Validated 28899 Entries
2006/11/21 07:11:57| store_swap_size = 276476k
2006/11/21 07:11:57| storeLateRelease: released 0 objects
2006/11/21 08:03:01| WARNING: failed to unpack meta data
2006/11/21 08:05:01| WARNING: failed to unpack meta data
2006/11/21 08:08:43| WARNING: failed to unpack meta data
2006/11/21 08:46:43| WARNING: failed to unpack meta data
2006/11/21 08:46:46| WARNING: failed to unpack meta data
2006/11/21 08:46:47| WARNING: failed to unpack meta data
2006/11/21 08:46:49| WARNING: failed to unpack meta data
2006/11/21 08:46:49| WARNING: failed to unpack meta data
2006/11/21 08:46:49| WARNING: failed to unpack meta data
2006/11/21 08:46:52| WARNING: failed to unpack meta data
2006/11/21 08:49:54| httpReadReply: Excess data from "GET http://shopping.busca.uol.com.br/favicon.ico"
2006/11/21 08:49:58| httpReadReply: Excess data from "GET http://shopping.busca.uol.com.br/favicon.ico"
2006/11/21 08:50:16| httpReadReply: Excess data from "GET http://shopping.busca.uol.com.br/favicon.ico"
2006/11/21 08:50:18| httpReadReply: Excess data from "GET http://shopping.busca.uol.com.br/favicon.ico"
2006/11/21 08:50:21| httpReadReply: Excess data from "GET http://shopping.busca.uol.com.br/favicon.ico"
2006/11/21 08:50:44| httpReadReply: Excess data from "GET http://shopping.busca.uol.com.br/favicon.ico"
2006/11/21 08:51:26| httpReadReply: Excess data from "GET http://shopping.busca.uol.com.br/favicon.ico"
2006/11/21 10:06:39| httpReadReply: Excess data from "GET http://www.cbox.ws/box/jsv4_1.php?r=1"
2006/11/21 10:07:39| httpReadReply: Excess data from "GET http://www.cbox.ws/box/jsv4_1.php?r=1"
2006/11/21 10:18:40| WARNING: failed to unpack meta data
2006/11/21 10:37:56| httpReadReply: Excess data from "POST http://www.crackdb.org/x.php"
2006/11/21 19:23:40| httpReadReply: Excess data from "GET http://c.goclick.com/r?X=uEvgptEUnt2SjEFeptASmTATjENxsuq9mT2XjFeRpteRnDqRnd2Wota6nTIYmda6ot2RmCzfwfq9mcztsuq9mtuGue9tptaGuVa9mwiSytnCytrEnwfLjFvdptaOmtu"
2006/11/21 19:28:46| httpReadReply: Excess data from "GET http://c.goclick.com/r?X=uEvgptEUnt2SjEFeptASmTATjENxsuq9mT2XjFeRpteRnDqRnd2Zode6mtm6odiToD2XnCzfwfq9mcztsuq9mtuGue9tptaGuVa9mwiSytnCytrEnwfLjFvdptaOmtu"
2006/11/21 20:27:46| httpReadReply: Excess data from "GET http://prima.certifica.com/cert/hit.dll?sitio_id=200062&path=Proprio/Homepages/usuarios/fabriciofa.ubbihp.com.br&referer=http%3A//www.aonde.com/clique/clique.php%3Farquivo%3Dsexo/50066.htm%26id_site%3D44457%26url%3Dhttp%3A//www.fabriciofa.ubbihp.com.br&size=1024&colors=24&java=false&descr=Paginas%20de%20usuarios"
2006/11/21 21:11:13| parseHttpRequest: Unsupported method 'recipientid=99&sessionid=5189
'
2006/11/21 21:11:13| clientReadRequest: FD 48 Invalid Request
2006/11/21 21:11:13| parseHttpRequest: Unsupported method 'recipientid=99&sessionid=5189
'
2006/11/21 21:11:13| clientReadRequest: FD 54 Invalid Request
2006/11/21 21:56:46| httpReadReply: Excess data from "GET http://www.br.inter.net/bannermanager/adimage.php?filename=fidelidade.gif&contenttype=gif"
2006/11/21 21:57:42| httpReadReply: Excess data from "GET http://www.br.inter.net/bannermanager/adimage.php?filename=fidelidade.gif&contenttype=gif"
2006/11/21 21:58:40| httpReadReply: Excess data from "GET http://www.br.inter.net/bannermanager/adimage.php?filename=fidelidade.gif&contenttype=gif"
2006/11/21 21:59:54| httpReadReply: Excess data from "GET http://www.br.inter.net/bannermanager/adimage.php?filename=fidelidade.gif&contenttype=gif"
2006/11/21 22:01:15| httpReadReply: Excess data from "GET http://www.br.inter.net/bannermanager/adimage.php?filename=fidelidade.gif&contenttype=gif"
2006/11/22 00:43:55| Preparing for shutdown after 124024 requests
2006/11/22 00:43:55| Waiting 30 seconds for active connections to finish
2006/11/22 00:43:55| FD 11 Closing HTTP connection
-
Geralmente isso acontece quando o cache está zoado. Tente zerá-lo deletando as pastas de dentro de /var/spool/squid (Pode estar em outra localização) e recriando o cache com squid -z.
Outra: evite utilizar o tipo aufs de cache, optando ou por diskd ou por ufs.
Abraços!
-
B0a n0ite car0 Xstafan0x. Iss0 ac0nteceu c0mig0 na semana passada.
Tive que entrar na pasta d0 cache e deletar tud0. Recriei c0m squid -z e v0lt0u tud0 a0 n0rmal.
Valeus ................