erro no squid3 [RESOLVIDO]

1. erro no squid3 [RESOLVIDO]

juliano
22nato

(usa Debian)

Enviado em 27/12/2012 - 20:25h

###############################################################################
# #
# Squid Proxy - 27/12/2012 #
# #
# #
###############################################################################

### Dados do Squid

http_port 3128 transparent
visible_hostname CRONOS

### Configuração do cache
cache_mem 32 MB
maximum_object_size_in_memory 64 KB
maximum_object_size 100 MB
minimum_object_size 0 KB
cache_swap_low 90
cache_swap_high 95
cache_dir ufs /var/cache/squid3 2048 16 256

### Mensagens de erro do Squid em Português
error_directory /usr/share/squid3/errors/Portuguese

### Localização do arquivo de log do Squid
access_log /var/log/squid3/access.log
cache_log /var/log/squid3/cache.log

### Atualização do Cache
refresh_pattern ^ftp: 15 20% 2280
refresh_pattern ^gopher: 15 20% 2280
refresh_pattern . 15 20% 22820

### Autenticaç no Active Directory
auth_param ntlm program /usr/lib/squid3/ntlm_smb_lm_auth -b empresa.local/fenix empresa/athena
auth_param basic credentialsttl 15 minute
auth_param ntlm children 20

### Solicitar Senha para autenticar
acl Senha proxy_auth REQUIRED

### Regras de bloqueio de site ***por palavras
acl palavra dstdom_regex "/etc/squid3/palavras_negadas"

### Regras de Bloqueio de Extensãde de Arquivos
acl FileNegados urlpath_regex -i \.asf$ \.asx$ \.avi$ \.au$ \.mid$ \.exe$ \.pif$ \.bat$ \.scr$ \.mp3$ \.avi$ \.swf$ \.wma$ \.ram$ \.mov$ \.divx$ \.cda$ \.midi$ \.iso$ \.pls$ \.midi$ \.mov$ \.mpeg$ \.mpg$ \.mp3$ \.mp2$ \.mp2v$ \.ogg$ \.pls$ \.ra$ \.ram$ \.rmi$ \.snd$ \.wav$ \.wma$ \.wmv$ \.wvx$

### Barrar streaming radio e video online
acl streaming rep_mime_type application/x-shockwave-flash application/x-futuresplash video/x-flv
http_reply_access deny streaming


### Bloqueio por download de arquivo
acl all src
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl SSL_ports port 443 563 20443
acl Safe_ports port 20 21 22 80 443 1041 1755 1863 3000 5000 5060 6060 6061 7000 7001 7002 7003 7004 7005 7006 7007 7250 7777 8000 8080 8888 9000 9998 9999 10000 10001 20443
#acl CONNECT method CONNECT
acl redelocal src 192.168.10.0/24



Estou com o erro ao dar o camando /etc/init.d/squid3 start
sai o seguinte erro Starting Squid HTTP Proxy 3.x: squid3 failed!

alguem por favor poderia me ajudar
meu squid3 esta com configurações simples para melhor visualizar o tal erro.


  


2. Re: erro no squid3 [RESOLVIDO]

Perfil removido
removido

(usa Nenhuma)

Enviado em 27/12/2012 - 23:13h

Testei seu conf aqui.

A unica coisa que fiz foi comentar a parte de autenticação, criar o diretório "/var/cache/squid3", e dar as devidas permissões.

# cd /var/cache
# mkdir squid3
# chown proxy.proxy squid3/

# /etc/init.d/squid3 start

# tail -100 /var/log/squid3/cache.log


CPU Usage: 0.392 seconds = 0.252 user + 0.140 sys
Maximum Resident Size: 64304 KB
Page faults with physical i/o: 0
Memory usage for squid via mallinfo():
total space in arena: 2388 KB
Ordinary blocks: 2363 KB 5 blks
Small blocks: 0 KB 7 blks
Holding blocks: 34588 KB 9 blks
Free Small blocks: 0 KB
Free Ordinary blocks: 24 KB
Total in use: 36951 KB 1547%
Total free: 24 KB 1%
2012/12/27 23:07:04| Open FD UNSTARTED 7 DNS Socket IPv6
2012/12/27 23:07:04| Open FD UNSTARTED 8 DNS Socket IPv4
2012/12/27 23:07:04| Squid Cache (Version 3.1.6): Exiting normally.
2012/12/27 23:07:12| Creating Swap Directories
2012/12/27 23:07:12| /var/cache/squid3 exists
2012/12/27 23:07:12| Making directories in /var/cache/squid3/00
2012/12/27 23:07:12| Making directories in /var/cache/squid3/01
2012/12/27 23:07:12| Making directories in /var/cache/squid3/02
2012/12/27 23:07:12| Making directories in /var/cache/squid3/03
2012/12/27 23:07:12| Making directories in /var/cache/squid3/04
2012/12/27 23:07:12| Making directories in /var/cache/squid3/05
2012/12/27 23:07:12| Making directories in /var/cache/squid3/06
2012/12/27 23:07:12| Making directories in /var/cache/squid3/07
2012/12/27 23:07:12| Making directories in /var/cache/squid3/08
2012/12/27 23:07:12| Making directories in /var/cache/squid3/09
2012/12/27 23:07:12| Making directories in /var/cache/squid3/0A
2012/12/27 23:07:12| Making directories in /var/cache/squid3/0B
2012/12/27 23:07:12| Making directories in /var/cache/squid3/0C
2012/12/27 23:07:12| Making directories in /var/cache/squid3/0D
2012/12/27 23:07:12| Making directories in /var/cache/squid3/0E
2012/12/27 23:07:12| Making directories in /var/cache/squid3/0F
2012/12/27 23:07:13| Starting Squid Cache version 3.1.6 for x86_64-pc-linux-gnu...
2012/12/27 23:07:13| Process ID 2293
2012/12/27 23:07:13| With 65535 file descriptors available
2012/12/27 23:07:13| Initializing IP Cache...
2012/12/27 23:07:13| DNS Socket created at [::], FD 7
2012/12/27 23:07:13| DNS Socket created at 0.0.0.0, FD 8
2012/12/27 23:07:13| Adding nameserver 189.6.0.137 from /etc/resolv.conf
2012/12/27 23:07:13| Adding nameserver 189.6.0.131 from /etc/resolv.conf
2012/12/27 23:07:13| Unlinkd pipe opened on FD 13
2012/12/27 23:07:13| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2012/12/27 23:07:13| Store logging disabled
2012/12/27 23:07:13| Swap maxSize 2097152 + 32768 KB, estimated 163840 objects
2012/12/27 23:07:13| Target number of buckets: 8192
2012/12/27 23:07:13| Using 8192 Store buckets
2012/12/27 23:07:13| Max Mem size: 32768 KB
2012/12/27 23:07:13| Max Swap size: 2097152 KB
2012/12/27 23:07:13| Rebuilding storage in /var/cache/squid3 (DIRTY)
2012/12/27 23:07:13| Using Least Load store dir selection
2012/12/27 23:07:13| Current Directory is /
2012/12/27 23:07:13| Loaded Icons.
2012/12/27 23:07:13| Accepting intercepted HTTP connections at 0.0.0.0:3128, FD 15.
2012/12/27 23:07:13| HTCP Disabled.
2012/12/27 23:07:13| Squid modules loaded: 0
2012/12/27 23:07:13| Adaptation support is off.
2012/12/27 23:07:13| Ready to serve requests.
2012/12/27 23:07:13| Done scanning /var/cache/squid3 swaplog (0 entries)
2012/12/27 23:07:13| Finished rebuilding storage from disk.
2012/12/27 23:07:13| 0 Entries scanned
2012/12/27 23:07:13| 0 Invalid entries.
2012/12/27 23:07:13| 0 With invalid flags.
2012/12/27 23:07:13| 0 Objects loaded.
2012/12/27 23:07:13| 0 Objects expired.
2012/12/27 23:07:13| 0 Objects cancelled.
2012/12/27 23:07:13| 0 Duplicate URLs purged.
2012/12/27 23:07:13| 0 Swapfile clashes avoided.
2012/12/27 23:07:13| Took 0.05 seconds ( 0.00 objects/sec).
2012/12/27 23:07:13| Beginning Validation Procedure
2012/12/27 23:07:13| Completed Validation Procedure
2012/12/27 23:07:13| Validated 25 Entries
2012/12/27 23:07:13| store_swap_size = 0
2012/12/27 23:07:14| storeLateRelease: released 0 objects


Sem erros! ;)


3. resposta

juliano
22nato

(usa Debian)

Enviado em 28/12/2012 - 08:27h

2012/12/27 23:37:32| Squid Cache (Version 3.1.6): Exiting normally.
fgets() failed! dying..... errno=0 (Success)
fgets() failed! dying..... errno=0 (Success)
fgets() failed! dying..... errno=0 (Success)
fgets() failed! dying..... errno=0 (Success)
fgets() failed! dying..... errno=0 (Success)
fgets() failed! dying..... errno=0 (Success)
fgets() failed! dying..... errno=0 (Success)
fgets() failed! dying..... errno=0 (Success)
fgets() failed! dying..... errno=0 (Success)
fgets() failed! dying..... errno=0 (Success)
fgets() failed! dying..... errno=0 (Success)
fgets() failed! dying..... errno=0 (Success)
fgets() failed! dying..... errno=0 (Success)
fgets() failed! dying..... errno=0 (Success)
fgets() failed! dying..... errno=0 (Success)
fgets() failed! dying..... errno=0 (Success)
fgets() failed! dying..... errno=0 (Success)
fgets() failed! dying..... errno=0 (Success)
fgets() failed! dying..... errno=0 (Success)
fgets() failed! dying..... errno=0 (Success)
2012/12/27 23:38:19| Creating Swap Directories
2012/12/27 23:38:19| /var/cache/squid3 exists
2012/12/27 23:38:19| /var/cache/squid3/00 exists
2012/12/27 23:38:19| Making directories in /var/cache/squid3/00
2012/12/27 23:38:19| /var/cache/squid3/01 exists
2012/12/27 23:38:19| Making directories in /var/cache/squid3/01
2012/12/27 23:38:19| /var/cache/squid3/02 exists
2012/12/27 23:38:19| Making directories in /var/cache/squid3/02
2012/12/27 23:38:19| /var/cache/squid3/03 exists
2012/12/27 23:38:19| Making directories in /var/cache/squid3/03
2012/12/27 23:38:19| /var/cache/squid3/04 exists
2012/12/27 23:38:19| Making directories in /var/cache/squid3/04
2012/12/27 23:38:19| /var/cache/squid3/05 exists
2012/12/27 23:38:19| Making directories in /var/cache/squid3/05
2012/12/27 23:38:19| /var/cache/squid3/06 exists
2012/12/27 23:38:19| Making directories in /var/cache/squid3/06
2012/12/27 23:38:19| /var/cache/squid3/07 exists
2012/12/27 23:38:19| Making directories in /var/cache/squid3/07
2012/12/27 23:38:19| /var/cache/squid3/08 exists
2012/12/27 23:38:19| Making directories in /var/cache/squid3/08
2012/12/27 23:38:19| /var/cache/squid3/09 exists
2012/12/27 23:38:19| Making directories in /var/cache/squid3/09
2012/12/27 23:38:19| /var/cache/squid3/0A exists
2012/12/27 23:38:19| Making directories in /var/cache/squid3/0A
2012/12/27 23:38:19| /var/cache/squid3/0B exists
2012/12/27 23:38:19| Making directories in /var/cache/squid3/0B
2012/12/27 23:38:19| /var/cache/squid3/0C exists
2012/12/27 23:38:19| Making directories in /var/cache/squid3/0C
2012/12/27 23:38:19| /var/cache/squid3/0D exists
2012/12/27 23:38:19| Making directories in /var/cache/squid3/0D
2012/12/27 23:38:19| /var/cache/squid3/0E exists
2012/12/27 23:38:19| Making directories in /var/cache/squid3/0E
2012/12/27 23:38:19| /var/cache/squid3/0F exists
2012/12/27 23:38:19| Making directories in /var/cache/squid3/0F
2012/12/28 08:21:32| Starting Squid Cache version 3.1.6 for i486-pc-linux-gnu...
2012/12/28 08:21:32| Process ID 8862
2012/12/28 08:21:32| With 65535 file descriptors available
2012/12/28 08:21:32| Initializing IP Cache...
2012/12/28 08:21:32| DNS Socket created at [::], FD 8
2012/12/28 08:21:32| DNS Socket created at 0.0.0.0, FD 9
2012/12/28 08:21:32| Adding nameserver 192.168.10.8 from /etc/resolv.conf
2012/12/28 08:21:32| Adding nameserver 172.16.1.1 from /etc/resolv.conf
2012/12/28 08:21:32| Adding nameserver 172.16.1.21 from /etc/resolv.conf
2012/12/28 08:21:32| helperOpenServers: Starting 20/20 'ntlm_smb_lm_auth' proces ses
2012/12/28 08:21:33| Unlinkd pipe opened on FD 54
2012/12/28 08:21:33| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2012/12/28 08:21:33| Store logging disabled
2012/12/28 08:21:33| Swap maxSize 2097152 + 32768 KB, estimated 163840 objects
2012/12/28 08:21:33| Target number of buckets: 8192
2012/12/28 08:21:33| Using 8192 Store buckets
2012/12/28 08:21:33| Max Mem size: 32768 KB
2012/12/28 08:21:33| Max Swap size: 2097152 KB
2012/12/28 08:21:33| Version 1 of swap file with LFS support detected...
2012/12/28 08:21:33| Rebuilding storage in /var/cache/squid3 (CLEAN)
2012/12/28 08:21:33| Using Least Load store dir selection
2012/12/28 08:21:33| Current Directory is /
2012/12/28 08:21:33| Loaded Icons.
2012/12/28 08:21:33| Accepting intercepted HTTP connections at 0.0.0.0:3128, FD 57.
2012/12/28 08:21:33| HTCP Disabled.
2012/12/28 08:21:33| Squid modules loaded: 0
2012/12/28 08:21:33| Adaptation support is off.
2012/12/28 08:21:33| Ready to serve requests.
2012/12/28 08:21:33| Done reading /var/cache/squid3 swaplog (2 entries)
2012/12/28 08:21:33| Finished rebuilding storage from disk.
2012/12/28 08:21:33| 2 Entries scanned
2012/12/28 08:21:33| 0 Invalid entries.
2012/12/28 08:21:33| 0 With invalid flags.
2012/12/28 08:21:33| 2 Objects loaded.
2012/12/28 08:21:33| 0 Objects expired.
2012/12/28 08:21:33| 0 Objects cancelled.
2012/12/28 08:21:33| 0 Duplicate URLs purged.
2012/12/28 08:21:33| 0 Swapfile clashes avoided.
2012/12/28 08:21:33| Took 0.01 seconds (305.44 objects/sec).
2012/12/28 08:21:33| Beginning Validation Procedure
2012/12/28 08:21:33| Completed Validation Procedure
2012/12/28 08:21:33| Validated 29 Entries
2012/12/28 08:21:33| store_swap_size = 56
2012/12/28 08:21:34| storeLateRelease: released 0 objects

como o comando tail -100 /var/log/squid3/cache.log
saiu as seguintes linhas acima.

sendo quando dou o comando /etc/init.d/start
Starting Squid HTTP Proxy 3.x: squid3 failed!

ai tenho que dar para o squid /etc/init.d/stop

dar o comando squid -z

novamente dou o camanco /etc/init.d/start
funciona mais depois de algun tempo o squid3 para do nada.


4. Re: erro no squid3 [RESOLVIDO]

Phillip Vieira
phrich

(usa Slackware)

Enviado em 28/12/2012 - 12:05h

Inicialize o squid com o comando:

squid3 -d 10 e poste a saída aqui


5. squid3

juliano
22nato

(usa Debian)

Enviado em 02/01/2013 - 09:14h

Bom dia instalei o squid3 do zero estava dando muito erro.
meu linux estava com muita coisa instalada, dando erro em vários repositórios.
comecei do zero e funcionou.
obrigado pela atenção.


6. Re: erro no squid3 [RESOLVIDO]

Phillip Vieira
phrich

(usa Slackware)

Enviado em 07/01/2013 - 16:33h

Então por gentileza depois marque como resolvido ok?


7. Re: erro no squid3 [RESOLVIDO]

juliano
22nato

(usa Debian)

Enviado em 07/01/2013 - 16:36h

obrigado pela atenção..






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts