Squid não carrega depois da máquina ser desligada incorretam
existe alguma forma de eu arrumar este problema...pois eu to achando que quando o squid é desligado incorretamente ele realemente não consegue ler suas pastas de cache...tem como eu incluir alguma linha em algum lugar forçando ele a reconstruir caso haja algum erro, pois fica dificil eu reconstruir porque ele fica em um cliente que tem uma lan house.Como nosso colega comendou ai em cima mas eu nao achei onde posso adicionar isso no runcache...
Squid não carrega depois da máquina ser desligada incorretam
Não quero ser ipertinente, mas pessoal eu preciso de ajuda mesmo não acho nada na net...estou na seguinte situação
Quando desligo e ligo novamente o servidor o squid inicia mas não navega...para funcionar tenho que acessar o servidor via putty (SSH) e executar
service squid stop
squid -z
service squid start
pronto ai ele funciona, mas até onde eu sei esse "squid -z" apaga o cache tambem não é? como posso resolver esse problema?
Squid não carrega depois da máquina ser desligada incorretam
Mais uma pra vcs analizarem...vejam que eu limpei o cache.log reinciei o pc...como era de se esperar ele nao funcionou o proxy...ai eu executei os comando e vejam as diferenças no log
ANTES DOS CÓDIGOS
2005/11/14 16:33:31| Starting Squid Cache version 2.5.STABLE9 for i386-debian-linux-gnu...
2005/11/14 16:33:31| Process ID 3320
2005/11/14 16:33:31| With 1024 file descriptors available
2005/11/14 16:33:31| DNS Socket created at 0.0.0.0, port 1024, FD 6
2005/11/14 16:33:31| Adding nameserver 200.204.0.10 from /etc/resolv.conf
2005/11/14 16:33:31| Adding nameserver 200.205.125.58 from /etc/resolv.conf
2005/11/14 16:33:31| User-Agent logging is disabled.
2005/11/14 16:33:31| Referer logging is disabled.
2005/11/14 16:33:31| Unlinkd pipe opened on FD 11
2005/11/14 16:33:31| Swap maxSize 20971520 KB, estimated 1613193 objects
2005/11/14 16:33:31| Target number of buckets: 80659
2005/11/14 16:33:31| Using 131072 Store buckets
2005/11/14 16:33:31| Max Mem size: 407552 KB
2005/11/14 16:33:31| Max Swap size: 20971520 KB
2005/11/14 16:33:31| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2005/11/14 16:33:31| Rebuilding storage in /var/spool/squid (CLEAN)
2005/11/14 16:33:31| Using Least Load store dir selection
2005/11/14 16:33:31| Current Directory is /
2005/11/14 16:33:31| Loaded Icons.
2005/11/14 16:33:31| Accepting HTTP connections at 0.0.0.0, port 3128, FD 13.
2005/11/14 16:33:31| Accepting ICP messages at 0.0.0.0, port 3130, FD 14.
2005/11/14 16:33:31| HTCP Disabled.
2005/11/14 16:33:31| WCCP Disabled.
2005/11/14 16:33:31| Ready to serve requests.
2005/11/14 16:33:31| Store rebuilding is 12.2% complete
2005/11/14 16:33:32| Done reading /var/spool/squid swaplog (33537 entries)
2005/11/14 16:33:32| Finished rebuilding storage from disk.
2005/11/14 16:33:32| 33537 Entries scanned
2005/11/14 16:33:32| 0 Invalid entries.
2005/11/14 16:33:32| 0 With invalid flags.
2005/11/14 16:33:32| 33537 Objects loaded.
2005/11/14 16:33:32| 0 Objects expired.
2005/11/14 16:33:32| 0 Objects cancelled.
2005/11/14 16:33:32| 0 Duplicate URLs purged.
2005/11/14 16:33:32| 0 Swapfile clashes avoided.
2005/11/14 16:33:32| Took 1.3 seconds (26354.2 objects/sec).
2005/11/14 16:33:32| Beginning Validation Procedure
2005/11/14 16:33:32| Completed Validation Procedure
2005/11/14 16:33:32| Validated 33537 Entries
2005/11/14 16:33:32| store_swap_size = 345580k
2005/11/14 16:33:33| storeLateRelease: released 0 objects
2005/11/14 16:41:29| Preparing for shutdown after 2 requests
2005/11/14 16:41:29| Waiting 30 seconds for active connections to finish
2005/11/14 16:41:29| FD 13 Closing HTTP connection
2005/11/14 16:42:00| Shutting down...
2005/11/14 16:42:00| FD 14 Closing ICP connection
2005/11/14 16:42:00| Closing unlinkd pipe on FD 11
2005/11/14 16:42:00| storeDirWriteCleanLogs: Starting...
2005/11/14 16:42:01| Finished. Wrote 33537 entries.
2005/11/14 16:42:01| Took 0.0 seconds (1298524.8 entries/sec).
CPU Usage: 0.694 seconds = 0.349 user + 0.345 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 2
Memory usage for squid via mallinfo():
total space in arena: 21644 KB
Ordinary blocks: 21609 KB 9 blks
Small blocks: 0 KB 0 blks
Holding blocks: 720 KB 2 blks
Free Small blocks: 0 KB
Free Ordinary blocks: 34 KB
Total in use: 22329 KB 103%
Total free: 34 KB 0%
2005/11/14 16:42:01| Squid Cache (Version 2.5.STABLE9): Exiting normally.
DEPOIS DO COMANDO SQUID OK
2005/11/14 16:42:57| Starting Squid Cache version 2.5.STABLE9 for i386-debian-linux-gnu...
2005/11/14 16:42:57| Process ID 3786
2005/11/14 16:42:57| With 1024 file descriptors available
2005/11/14 16:42:57| DNS Socket created at 0.0.0.0, port 1025, FD 6
2005/11/14 16:42:57| Adding nameserver 200.204.0.10 from /etc/resolv.conf
2005/11/14 16:42:57| Adding nameserver 200.205.125.58 from /etc/resolv.conf
2005/11/14 16:42:57| User-Agent logging is disabled.
2005/11/14 16:42:57| Referer logging is disabled.
2005/11/14 16:42:57| Unlinkd pipe opened on FD 11
2005/11/14 16:42:57| Swap maxSize 20971520 KB, estimated 1613193 objects
2005/11/14 16:42:57| Target number of buckets: 80659
2005/11/14 16:42:57| Using 131072 Store buckets
2005/11/14 16:42:57| Max Mem size: 407552 KB
2005/11/14 16:42:57| Max Swap size: 20971520 KB
2005/11/14 16:42:57| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2005/11/14 16:42:57| Rebuilding storage in /var/spool/squid (CLEAN)
2005/11/14 16:42:57| Using Least Load store dir selection
2005/11/14 16:42:57| Current Directory is /
2005/11/14 16:42:57| Loaded Icons.
2005/11/14 16:42:57| Accepting HTTP connections at 0.0.0.0, port 3128, FD 13.
2005/11/14 16:42:57| Accepting ICP messages at 0.0.0.0, port 3130, FD 14.
2005/11/14 16:42:57| HTCP Disabled.
2005/11/14 16:42:57| WCCP Disabled.
2005/11/14 16:42:57| Ready to serve requests.
2005/11/14 16:42:57| Store rebuilding is 12.2% complete
2005/11/14 16:42:58| Done reading /var/spool/squid swaplog (33537 entries)
2005/11/14 16:42:58| Finished rebuilding storage from disk.
2005/11/14 16:42:58| 33537 Entries scanned
2005/11/14 16:42:58| 0 Invalid entries.
2005/11/14 16:42:58| 0 With invalid flags.
2005/11/14 16:42:58| 33537 Objects loaded.
2005/11/14 16:42:58| 0 Objects expired.
2005/11/14 16:42:58| 0 Objects cancelled.
2005/11/14 16:42:58| 0 Duplicate URLs purged.
2005/11/14 16:42:58| 0 Swapfile clashes avoided.
2005/11/14 16:42:58| Took 0.8 seconds (40017.9 objects/sec).
2005/11/14 16:42:58| Beginning Validation Procedure
2005/11/14 16:42:58| Completed Validation Procedure
2005/11/14 16:42:58| Validated 33537 Entries
2005/11/14 16:42:58| store_swap_size = 345580k
2005/11/14 16:42:58| storeLateRelease: released 0 objects
Squid não carrega depois da máquina ser desligada incorretam
cara, nas máquinas que a gente tem rodando com o squid, antes dele iniciar a gente remove o cache do squid (apagando literalmente o cache) e depois roda o squid -z para refaze-lo. Sempre funciona, e refazer o cache não é algo tão ruim assim, afinal de contas, boa parte das páginas que os usuários vão acessar já não vao estar atualizadas, (como e-mail, jornais on line) e não vai fazer uma diferenca perceptivel no desempenho pro usuário final.
Squid não carrega depois da máquina ser desligada incorretam
pois então...o meu problema é que uma vez desligado errado ele para de funcionar...por exemplo na ultima vez que eu formatei ele ficou 1 dia funcionando...fiz outro teste...
service squid stop
squid -N
funciona
service squid stop
squid -D
tambem funciona, só que eu tenho que digitar os comando via SSH
então é inviavel eu tenho que manter esse prozy funcionando sem intervenção do usuário