Página 3 de 4 PrimeiroPrimeiro 1234 ÚltimoÚltimo
+ Responder ao Tópico



  1. #11
    frugoni
    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...

  2. #12
    frugoni
    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?



  3. #13
    frugoni
    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

  4. 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.



  5. #15
    frugoni
    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






Tópicos Similares

  1. Squid nao carrega Ubuntu 9.04
    Por alysson28 no fórum Servidores de Rede
    Respostas: 5
    Último Post: 15-10-2009, 08:37
  2. Respostas: 5
    Último Post: 31-05-2007, 19:29
  3. O squid não carrega ncsa_auth, ajudem-me ...
    Por Makaveli no fórum Servidores de Rede
    Respostas: 4
    Último Post: 07-12-2005, 16:42
  4. HD scsi IBM Xseries 225 nao carrega depois de recompilar ker
    Por Gera no fórum Servidores de Rede
    Respostas: 2
    Último Post: 05-12-2004, 07:15
  5. Respostas: 1
    Último Post: 17-11-2004, 07:26

Visite: BR-Linux ·  VivaOLinux ·  Dicas-L