Problemas com Squid [RESOLVIDO]

1. Problemas com Squid [RESOLVIDO]

Jonathan Rodrigues
john_master12

(usa Ubuntu)

Enviado em 01/09/2010 - 09:53h

e awe... galerinha do mau... to com um b.o to com problema no squid e não sei o que é
abaixo:

Quando eu vou dar o restart

sudo /etc/init.d/squid restart

da essa mensagem

since the script you are attempting to invoke has been converted to an upsstart job,you may also use the restart (8) utility, e.g restart squid
start: Job Failed to start

#_________________tradução______________#

uma vez que o script que você está tentando invocar foi convertido para um trabalho upsstart, você também pode usar o reinício (8) de utilidade, por exemplo, reiniciar o squid
start: Falha ao iniciar o trabalho

eu não sei o que é

abaixo a configuração do squid.conf
#/etc/squid/squid.conf______________Arquivo de Diretorio_
#_____________________Configuração Squid_________________
#_____________________Por Jonathan Rodrigues______________
#_____________________john_master12@hotmail.com___________

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

#_______Otimização do sistema________

maximum_object_size 1024 MB
minimum_object_size 0 KB
cache_swap_low 50
cache_swap_high 90
cache_access_log /var/log/squid/access.log

#____________________ACLS Normais_________
acl all src 192.168.1.0/255.255.255.0
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 127.0.0.1/255.255.255.255
acl SSL_ports port 443 563
acl SSL_ports port 873
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

#_______________Aplicação da ACL____________
http_access allow manager localhost
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 deny administracao PornoURLs
http_access deny producao PornoURLs
http_access deny castigo PornoURLs
http_access deny Diretoria PornoURLs
http_access deny administracao AdministracaoURLs !almoco
http_access deny producao ProducaoURLs !almoco
http_access deny castigo AdministracaoURLs
http_access deny administracao executaveis
http_access deny producao executaveis
http_access allow Diretoria
http_access allow producao
http_access allow administracao
http_access allow castigo
http_access deny all
http_reply_access allow all

#_____________fim____________________




  


2. Re: Problemas com Squid [RESOLVIDO]

irado furioso com tudo
irado

(usa XUbuntu)

Enviado em 01/09/2010 - 10:07h

vc leu, traduziu, mas acabou não entendendo a mensagem.

apenas faça:

# restart squid

e pronto.

dica: se quiser saber o que anda acontecendo leia as mensagens do cache.log


3. Re: Problemas com Squid [RESOLVIDO]

Jonathan Rodrigues
john_master12

(usa Ubuntu)

Enviado em 01/09/2010 - 10:09h

veio num deu
unknown instance
Instancia desconhecida


4. Re: Problemas com Squid [RESOLVIDO]

Rafael
rrafael

(usa Debian)

Enviado em 01/09/2010 - 10:20h

Qual SO voce esta usando?


5. Re: Problemas com Squid [RESOLVIDO]

Perfil removido
removido

(usa Nenhuma)

Enviado em 01/09/2010 - 10:20h


É meu veio, é como o irado disse: leu/traduziu/não entendeu

'you may also use the restart (8) utility, e.g restart squid'

tente um desses abaixo, ou troque restart por um desses: {start|stop|reload|force-reload|restart|status}.

$ sudo service squid restart
$ sudo /etc/init.d/squid restart
$ sudo invoke-rc.d squid restart

É Debian mesmo que você tá usando ou é Ubuntu/similares, porque no Debian funciona.



6. Re: Problemas com Squid [RESOLVIDO]

Jonathan Rodrigues
john_master12

(usa Ubuntu)

Enviado em 01/09/2010 - 10:22h

amigo me desculpa sou iniciante na parada o que seria SO se for Sistema Operacional
Seria Ubuntu server 10.04.01


7. Re: Problemas com Squid [RESOLVIDO]

Jonathan Rodrigues
john_master12

(usa Ubuntu)

Enviado em 01/09/2010 - 10:25h

edps nada feito...
nenhum dos comando deu


8. Re: Problemas com Squid [RESOLVIDO]

Jonathan Rodrigues
john_master12

(usa Ubuntu)

Enviado em 01/09/2010 - 10:36h

cache.log


2010/08/31 12:32:38| Starting Squid Cache version 2.7.STABLE7 for i386-debian-linux-gnu...
2010/08/31 12:32:38| Process ID 721
2010/08/31 12:32:38| With 1024 file descriptors available
2010/08/31 12:32:38| Using epoll for the IO loop
2010/08/31 12:32:38| Performing DNS Tests...
2010/08/31 12:32:38| Successful DNS name lookup tests...
2010/08/31 12:32:38| DNS Socket created at 0.0.0.0, port 57210, FD 5
2010/08/31 12:32:38| Adding domain Grupo_Coesa from /etc/resolv.conf
2010/08/31 12:32:38| Adding nameserver 192.168.0.1 from /etc/resolv.conf
2010/08/31 12:32:38| User-Agent logging is disabled.
2010/08/31 12:32:38| Referer logging is disabled.
2010/08/31 12:32:38| logfileOpen: opening log /var/log/squid/access.log
2010/08/31 12:32:38| Unlinkd pipe opened on FD 11
2010/08/31 12:32:38| Swap maxSize 102400 + 8192 KB, estimated 8507 objects
2010/08/31 12:32:38| Target number of buckets: 425
2010/08/31 12:32:38| Using 8192 Store buckets
2010/08/31 12:32:38| Max Mem size: 8192 KB
2010/08/31 12:32:38| Max Swap size: 102400 KB
2010/08/31 12:32:38| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2010/08/31 12:32:38| logfileOpen: opening log /var/log/squid/store.log
2010/08/31 12:32:38| Rebuilding storage in /var/spool/squid (DIRTY)
2010/08/31 12:32:38| Using Least Load store dir selection
2010/08/31 12:32:38| Set Current Directory to /var/spool/squid
2010/08/31 12:32:38| Loaded Icons.
2010/08/31 12:32:39| Accepting proxy HTTP connections at 0.0.0.0, port 3128, FD 12.
2010/08/31 12:32:39| Accepting ICP messages at 0.0.0.0, port 3130, FD 13.
2010/08/31 12:32:39| HTCP Disabled.
2010/08/31 12:32:39| WCCP Disabled.
2010/08/31 12:32:39| Ready to serve requests.
2010/08/31 12:32:43| Done scanning /var/spool/squid (0 entries)
2010/08/31 12:32:43| Finished rebuilding storage from disk.
2010/08/31 12:32:43| 0 Entries scanned
2010/08/31 12:32:43| 0 Invalid entries.
2010/08/31 12:32:43| 0 With invalid flags.
2010/08/31 12:32:43| 0 Objects loaded.
2010/08/31 12:32:43| 0 Objects expired.
2010/08/31 12:32:43| 0 Objects cancelled.
2010/08/31 12:32:43| 0 Duplicate URLs purged.
2010/08/31 12:32:43| 0 Swapfile clashes avoided.
2010/08/31 12:32:43| Took 4.4 seconds ( 0.0 objects/sec).
2010/08/31 12:32:43| Beginning Validation Procedure
2010/08/31 12:32:43| Completed Validation Procedure
2010/08/31 12:32:43| Validated 0 Entries
2010/08/31 12:32:43| store_swap_size = 0k
2010/08/31 12:32:44| storeLateRelease: released 0 objects
2010/08/31 14:54:53| Preparing for shutdown after 0 requests
2010/08/31 14:54:53| Waiting 30 seconds for active connections to finish
2010/08/31 14:54:53| FD 12 Closing HTTP connection
2010/08/31 14:54:53| Shutting down...
2010/08/31 14:54:53| FD 13 Closing ICP connection
2010/08/31 14:54:53| Closing unlinkd pipe on FD 11
2010/08/31 14:54:53| storeDirWriteCleanLogs: Starting...
2010/08/31 14:54:53| Finished. Wrote 0 entries.
2010/08/31 14:54:53| Took 0.0 seconds ( 0.0 entries/sec).
CPU Usage: 0.532 seconds = 0.040 user + 0.492 sys
Maximum Resident Size: 19168 KB
Page faults with physical i/o: 0
Memory usage for squid via mallinfo():

<------>total space in arena: 2112 KB
<------>Ordinary blocks: 2040 KB 6 blks
<------>Small blocks: 0 KB 5 blks
<------>Holding blocks: 280 KB 1 blks
<------>Free Small blocks: 0 KB
<------>Free Ordinary blocks: 71 KB
<------>Total in use: 2320 KB 97%
<------>Total free: 71 KB 3%
2010/08/31 14:54:53| logfileClose: closing log /var/log/squid/store.log
2010/08/31 14:54:53| logfileClose: closing log /var/log/squid/access.log
2010/08/31 14:54:53| Squid Cache (Version 2.7.STABLE7): Exiting normally.


9. Re: Problemas com Squid [RESOLVIDO]

Perfil removido
removido

(usa Nenhuma)

Enviado em 01/09/2010 - 10:37h


Ele está rodando? faça:

$ sudo service squid status

se aparecer isso: squid is running. OK.

Vendo seu .conf, vc não acha que está faltando o diretório para o cache? parecido a linha abaixo:

cache_dir ufs /var/spool/squid 2048 16 256


Daí:

$ sudo squid -z
$ sudo service squid start



10. Re: Problemas com Squid [RESOLVIDO]

Jonathan Rodrigues
john_master12

(usa Ubuntu)

Enviado em 01/09/2010 - 10:43h

# sudo squid -z
2010/09/01 09:43:18| parseConfigFile: squid.conf:15 unrecognized: 'maximun_object_size'
2010/09/01 09:43:18| parseConfigFile: squid.conf:16 unrecognized: 'minimun_object_size'
2010/09/01 09:43:18| parseConfigFile: squid.conf:25 unrecognized: 'delay'
2010/09/01 09:43:18| parseConfigFile: squid.conf:26 unrecognized: 'delay'
2010/09/01 09:43:18| parseConfigFile: squid.conf:27 unrecognized: 'delay'
2010/09/01 09:43:18| parseConfigFile: squid.conf:28 unrecognized: 'delay'
2010/09/01 09:43:18| ACL name 'localhost' not defined!
FATAL: Bungled squid.conf line 51: http_access allow manager localhost
Squid Cache (Version 2.7.STABLE7): Terminated abnormally.


11. Re: Problemas com Squid [RESOLVIDO]

Jonathan Rodrigues
john_master12

(usa Ubuntu)

Enviado em 01/09/2010 - 10:44h

realmente tava faltando o arquivo cache^^


12. Re: Problemas com Squid [RESOLVIDO]

Perfil removido
removido

(usa Nenhuma)

Enviado em 01/09/2010 - 10:52h


hã, resolveu?

se positivo, marca como resolvido.



01 02



Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts