Erro no squid [RESOLVIDO]

1. Erro no squid [RESOLVIDO]

manuela
mn2192

(usa Outra)

Enviado em 22/07/2010 - 16:02h

Quando vou executar o squid aparece esse erro. Estou configurando pela primeira vez nesse pc. Alguém pode me ajudar??!!
root@SafetySystem:/etc/squid/arquivos# RunCache&
[1] 3666
root@SafetySystem:/etc/squid/arquivos# Running: squid -sY >> /var/lib/squid/squid.out 2>&1
/usr/bin/RunCache: line 35: 3669 Aborted squid -NsY $conf >>$logdir/squid.out 2>&1
Running: squid -sY >> /var/lib/squid/squid.out 2>&1
/usr/bin/RunCache: line 35: 3677 Aborted squid -NsY $conf >>$logdir/squid.out 2>&1


  


2. Re: Erro no squid [RESOLVIDO]

Ciro Souza
cirofsouza

(usa Slackware)

Enviado em 28/07/2010 - 16:47h

Colega,
Faz o post do teu arquivo /etc/squid.conf pra gente dar uma olhada!


3. Configuração do squid

manuela
mn2192

(usa Outra)

Enviado em 31/07/2010 - 10:39h

http_port 3128
cache_dir ufs /var/lib/squid/cache 100 256 256
cache_mem 16 mb
cache_swap_low 90
cache_swap_high 95
client_netmask 255.255.255.0
visible_hostname Safety

## PARAMETROS DE CONFIGURACAO
auth_param basic program /usr/libexec/ncsa_auth /etc/squid/arquivos/passwd
auth_param basic children 5
auth_param basic realm Cliente
auth_param basic credentialsttl 10 hours
auth_param basic casesensitive off

hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
hosts_file /etc/hosts
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
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 110
acl SSL_ports port 21
acl SSL_ports port 20001
acl SSL_ports port 1080
acl SSL_ports port 443 563 # https, snews
acl SSL_ports port 873 # rsync
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # https, snews
acl Safe_ports port 8080 # Tomcat
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 Safe_ports port 631 # cups
acl Safe_ports port 873 # rsync
acl Safe_ports port 901 # SWAT
acl Safe_ports port 110
acl purge method PURGE
acl CONNECT method CONNECT

## CONFIGURACAO DAS ACLs

acl gdiretoria proxy_auth "/etc/squid/arquivos/grupos/gdiretoria" REQUIRED
acl gproducao proxy_auth "/etc/squid/arquivos/grupos/gproducao" REQUIRED


acl rede_local src 192.168.2.0/255.255.255.0


acl db_geral dstdomain "/etc/squid/arquivos/bloqueados/db_geral"
acl proxys dstdomain "/etc/squid/arquivos/bloqueados/proxys"
acl dl_gproducao dstdomain "/etc/squid/arquivos/liberados/dl_gproducao"
acl dl_geral dstdomain "/etc/squid/arquivos/liberados/dl_geral"
acl db_gproducao dstdomain "/etc/squid/arquivos/bloqueados/db_gproducao"



http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access deny !Safe_ports
http_access allow CONNECT SSL_ports
http_access allow localhost

http_access deny !rede_local
http_access deny proxys
http_access deny db_geral
http_access deny gproducao db_gproducao
http_access allow dl_geral
http_access allow gproducao dl_gproducao
http_access allow gdiretoria


http_reply_access allow all
icp_access allow all
coredump_dir /var/spool/squid
http_access deny all

Agora está dando esse erro

root@SafetySystem:/etc/squid/arquivos/liberados# squid -z
2010/08/01 10:50:57| Creating Swap Directories
root@SafetySystem:/etc/squid/arquivos/liberados# RunCache&
[1] 1643
root@SafetySystem:/etc/squid/arquivos/liberados# Running: squid -sY >> /var/lib/squid/squid.out 2>&1
/usr/bin/RunCache: line 35: 1646 Aborted squid -NsY $conf >>$logdir/squid.out 2>&1
Running: squid -sY >> /var/lib/squid/squid.out 2>&1
/usr/bin/RunCache: line 35: 1653 Aborted squid -NsY $conf >>$logdir/squid.out 2>&1
Running: squid -sY >> /var/lib/squid/squid.out 2>&1
/usr/bin/RunCache: line 35: 1660 Aborted squid -NsY $conf >>$logdir/squid.out 2>&1
Running: squid -sY >> /var/lib/squid/squid.out 2>&1
/usr/bin/RunCache: line 35: 1667 Aborted squid -NsY $conf >>$logdir/squid.out 2>&1
Running: squid -sY >> /var/lib/squid/squid.out 2>&1
/usr/bin/RunCache: line 35: 1674 Aborted squid -NsY $conf >>$logdir/squid.out 2>&1


4. Re: Erro no squid [RESOLVIDO]

Osama Jr.
/bin/laden

(usa Void Linux)

Enviado em 31/07/2010 - 17:47h

Você ao menos tentou checar os logs gerados pelo squid??


5. Re: Erro no squid [RESOLVIDO]

manuela
mn2192

(usa Outra)

Enviado em 02/08/2010 - 08:59h

O squid.out apresenta as linhas:
Startup: Tue Aug 3 08:38:32 BRT 2010
Startup: Tue Aug 3 08:38:42 BRT 2010
Startup: Tue Aug 3 08:38:52 BRT 2010
Startup: Tue Aug 3 08:39:02 BRT 2010
Startup: Tue Aug 3 08:39:12 BRT 2010
Startup: Tue Aug 3 08:39:22 BRT 2010


6. Re: Erro no squid [RESOLVIDO]

manuela
mn2192

(usa Outra)

Enviado em 02/08/2010 - 15:12h

root@SafetySystem:/etc/squid# RunCache&
[1] 3525
root@SafetySystem:/etc/squid# Running: squid -sY >> /var/lib/squid/squid.out 2>&1
/usr/bin/RunCache: line 35: 3528 Aborted squid -NsY $conf >>$logdir/squid.out 2>&1
Running: squid -sY >> /var/lib/squid/squid.out 2>&1
/usr/bin/RunCache: line 35: 3535 Aborted squid -NsY $conf >>$logdir/squid.out 2>&1
Running: squid -sY >> /var/lib/squid/squid.out 2>&1
/usr/bin/RunCache: line 35: 3542 Aborted squid -NsY $conf >>$logdir/squid.out 2>&1
Running: squid -sY >> /var/lib/squid/squid.out 2>&1
/usr/bin/RunCache: line 35: 3549 Aborted squid -NsY $conf >>$logdir/squid.out 2>&1
Running: squid -sY >> /var/lib/squid/squid.out 2>&1
/usr/bin/RunCache: line 35: 3556 Aborted squid -NsY $conf >>$logdir/squid.out 2>&1
Running: squid -sY >> /var/lib/squid/squid.out 2>&1
/usr/bin/RunCache: line 35: 3563 Aborted squid -NsY $conf >>$logdir/squid.out 2>&1
RunCache: EXITING DUE TO REPEATED, FREQUENT FAILURES


O processo (ncsa_auth) /etc/squid/arquivos/passwd não está ativo quando dou ps aux
Será que é isso? E como eu faço para ativar?


7. Re: Erro no squid [RESOLVIDO]

manuela
mn2192

(usa Outra)

Enviado em 03/08/2010 - 17:44h

Graças a meu amigo camarão, descobri que o squid não iniciava porque no arquivo resolve.conf coloquei o dns sem o nameserver na frente. Descobrimos que era esse erro pois ao dar o comando squid -NCd1 aparecia a mensagem de DNS falhou. Então, foi só da RunCache& e o squid funcionou.
Obrigada, Camarão, pela ajuda.






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts