Falha na Segmentação do Squid?

1

Atualmente, estou corrigindo um problema com um dos nossos servidores de produção. O problema está relacionado ao squid não ser capaz de rodar corretamente.

Quando tento executar service squid start/stop , ele gera um erro:

2015/03/11 14:24:11| Processing Configuration File: /etc/squid/squid.conf (depth 0)

Fazendo service squid restart , gera esse tipo de erro:

Stopping squid: /etc/init.d/squid: line 99: 13665 Segmentation fault      (core dumped) $SQUID -k check -f $SQUID_CONF >> /var/log/squid/squid.out 2>&1
                                                           [FAILED]
Starting squid:                                            [FAILED]
2015/03/11 14:24:41| Processing Configuration File: /etc/squid/squid.conf (depth 0

Alguém experimentou o mesmo problema? Eu chequei os logs e nada foi escrito nele. Estou usando o CentOS 6.5 64.

Eu tenho esse /etc/squid/squid.conf

#
# Recommended minimum configuration:
#
acl manager proto cache_object
acl localhost src 127.0.0.1/32 ::1
acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1

# Example rule allowing access from your local networks.
# Adapt to list your (internal) IP networks from where browsing
# should be allowed
acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
acl localnet src 172.16.0.0/12  # RFC1918 possible internal network
acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
acl localnet src fc00::/7       # RFC 4193 local private network range
acl localnet src fe80::/10      # RFC 4291 link-local (directly plugged) machines

acl SSL_ports port 443
acl Safe_ports port 80    # http
acl Safe_ports port 21    # ftp
acl Safe_ports port 443   # https
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 CONNECT method CONNECT

acl PURGE method PURGE

#
# Recommended minimum Access Permission configuration:
#
# Only allow cachemgr access from localhost
http_access allow manager localhost
http_access deny manager

# Deny requests to certain unsafe ports
http_access deny !Safe_ports

# Deny CONNECT to other than secure SSL ports
http_access deny CONNECT !SSL_ports

# Example rule allowing access from your local networks.
# Adapt localnet in the ACL section to list your (internal) IP networks
# from where browsing should be allowed
http_access allow localnet
http_access allow localhost

# And finally deny all other access to this proxy
http_access allow all

http_access allow PURGE localhost
http_access deny PURGE

# Squid normally listens to port 3128
http_port 3128 accel defaultsite=thumbnails.digitalnz.org

# We recommend you to use at least the following line.
strip_query_terms off

# Uncomment and adjust the following to add a disk cache directory.
cache_dir aufs /ssd01/squid/data 50000 64 256

cache_replacement_policy heap LRU

# Leave coredumps in the first cache dir
coredump_dir /data/squid  

icp_hit_stale on

acl our_sites dstdomain <site-urls-here>
acl our_sites dstdomain <site-urls-here>
acl our_sites dstdomain <site-urls-here>
acl our_sites dstdomain <site-urls-here>
acl our_sites dstdomain <site-urls-here>
acl our_sites dstdomain <site-urls-here>
acl our_sites dstdomain <site-urls-here>
acl our_sites dstdomain <site-urls-here>
acl our_sites dstdomain <site-urls-here>
acl our_sites dstdomain <site-urls-here>
acl our_sites dstdomain <site-urls-here>
acl our_sites dstdomain <site-urls-here>
acl our_sites dstdomain <site-urls-here>
acl our_sites dstdomain <site-urls-here>
acl our_sites dstdomain <site-urls-here>
acl our_sites dstdomain <site-urls-here>
acl our_sites dstdomain <site-urls-here>
acl our_sites dstdomain <site-urls-here>
acl our_sites dstdomain <site-urls-here>
acl our_sites dstdomain <site-urls-here>
acl our_sites dstdomain <site-urls-here>
acl our_sites dstdomain <site-urls-here>
acl our_sites dstdomain <site-urls-here>
acl our_sites dstdomain <site-urls-here>
acl our_sites dstdomain <site-urls-here>
acl our_sites dstdomain <site-urls-here>
acl our_sites dstdomain <site-urls-here>
acl our_sites dstdomain <site-urls-here>
acl our_sites dstdomain <site-urls-here>
acl our_sites dstdomain <site-urls-here>
http_access allow our_sites

cache_peer 127.0.0.1 parent 3110 0 originserver no-query round-robin name=thin0
cache_peer_access thin0 allow our_sites
cache_peer_access thin0 deny all
cache_peer 127.0.0.1 parent 3111 0 originserver no-query round-robin name=thin1
cache_peer_access thin1 allow our_sites
cache_peer_access thin1 deny all
cache_peer 127.0.0.1 parent 3112 0 originserver no-query round-robin name=thin2
cache_peer_access thin2 allow our_sites
cache_peer_access thin2 deny all
cache_peer 127.0.0.1 parent 3113 0 originserver no-query round-robin name=thin3
cache_peer_access thin3 allow our_sites
cache_peer_access thin3 deny all

cache_peer dnz01.ourhostname.com sibling 3128 3132  name= allow-miss
cache_peer_access  allow our_sites
cache_peer_access  deny all
cache_peer dnz04.ourhostname.com sibling 3128 3132  name=dnz04 allow-miss
cache_peer_access dnz04 allow our_sites
cache_peer_access dnz04 deny all

udp_incoming_address <server's ip address>
icp_port 3132
icp_access allow all
    
por Ben 11.03.2015 / 02:25

1 resposta

2

Na linha que tem name= allow-miss , tente colocar name='' allow-miss , o analisador de configuração do squid está tentando atribuir [space]allow-miss a name .

    
por 12.03.2015 / 14:08