• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

Fehlermeldung: FATAL: Bungled squid.conf

Wormi

Newbie
Hallo zusammen,

auf meinem Debian Squeeze läuft seit Monaten Squid 2.7 Problemlos. Fehlermeldungen lasse ich mir immer per Mail zusenden.

Neuerdings erreicht mich mehrfach stündlich folgende Fehlermeldung:
Code:
FATAL: Bungled squid.conf line 3: http_port xx.xxxxx.xx:xxxx
Squid Cache (Version 2.7.STABLE9): Terminated abnormally.

Eine connect ist trotzdem ohne weiteres möglich. Leider finde ich keinerlei Ansätze dieses Problem zu lösen und wäre über eure Hilfe dankbar!

Gruß Wormi
 

RME

Advanced Hacker
Hallo,

Wie sieht denn squid.conf aus? (insbesondere Zeile 3)

Gruss,
Roland
 
OP
W

Wormi

Newbie
http_port xx.xxxxx.xx:xxxx

Wird auch in der Fehlermeldung ausgegeben. Habe jedoch nur URL und Port durch xxx ersetzt.
 

RME

Advanced Hacker
Das hilft gar nichts.

Code:
FATAL: Bungled squid.conf ...
Bungled = verpfuscht

Zum Beispiel: Stimmt das Format? "1.2.3.4:port" (Du hast "1.2.3:port")

Wenn im squid.conf etwas nicht stimmt (und Du Hilfe möchtest) dann musst Du die Datei posten.
 
OP
W

Wormi

Newbie
Vielen dank für deine Antwort.
Das Format ist richtig, da es sich dort um eine Domain und nicht um eine IP handelt (IP erst in Zeile 5). Der Proxy funktioniert ja komischerweise trotzdem. Sollte er die conf nicht nur beim Start oder Restart anfassen und sonst garnicht?
Diese conf erzeugt bei einem identischen 2. Server keinerlei Probleme oder Fehlermeldungen.

Code:
# Squid normally listens to port 3128
#auth_param basic casesensitive on
http_port xx.xxxxx.de:5448 # Domain
http_port xx.xxxxx.de:5448 # Domain
http_port xxx.xxx.xx.xxx:5448 # IP

hierarchy_stoplist cgi-bin ?

acl QUERY urlpath_regex cgi-bin \?

acl apache rep_header Server ^Apache
broken_vary_encoding allow apache

cache_mem 8 MB

#  TAG: logformat

logformat neu %un %<st %>a %tl %ru

access_log /etc/squid/log/access.log neu

cache_log /etc/squid/log/cache.log

cache_store_log /etc/squid/log/store.log

# hosts_file /etc/hosts
hosts_file /etc/hosts

auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/.htpasswd
auth_param basic children 5
auth_param basic credentialsttl 2 minutes
auth_param basic realm Zugang

#Suggested default:
refresh_pattern ^ftp:		1440	20%	10080
refresh_pattern ^gopher:	1440	0%	1440
refresh_pattern .		0	20%	4320

# ACCESS CONTROLS

#Recommended minimum configuration:
acl all src 1.0.0.0-255.0.0.0/255.255.255.255
acl user proxy_auth REQUIRED
acl ports port 1-64000
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 443 # https
acl SSL_ports port 563 # snews
acl SSL_ports port 873 # rsync
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 Safe_ports port 631 # cups
acl Safe_ports port 873 # rsync
acl Safe_ports port 901 # SWAT
acl purge method PURGE
acl CONNECT method CONNECT
cache deny QUERY

#X-FORWARDED_FOR
forwarded_for delete

via off

http_access allow user
http_reply_access allow all

logfile_rotate 1

coredump_dir /var/spool/squid
dns_nameservers 208.67.222.222 208.67.220.220
cache_effective_user proxy
cache_effective_group proxy
 

RME

Advanced Hacker
Kannst Du mal
Code:
    #Recommended minimum configuration:
    acl all src 1.0.0.0-255.0.0.0/255.255.255.255
    acl user proxy_auth REQUIRED
    acl ports port 1-64000
    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 443 # https
    acl SSL_ports port 563 # snews
    acl SSL_ports port 873 # rsync
    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 Safe_ports port 631 # cups
    acl Safe_ports port 873 # rsync
    acl Safe_ports port 901 # SWAT
    acl purge method PURGE
    acl CONNECT method CONNECT
auf ganz zuoberst in der conf Datei verschieben.

...könnte ja sein... :???:
 

spoensche

Moderator
Teammitglied
Nur so zur Info du erlaubst mit deiner Konfiguration der ganzen Welt den Zugriff auf deinen Proxy.
Poste bitte das Logfile, damit man mal die genaue Fehlermeldung inkl. Zusammenhängen hat.
 
OP
W

Wormi

Newbie
Danke für die Info, ist in diesem Fall aber beabsichtigt das er für alle erreichbar ist.

Das Problem ist seit meinem letzten Posting nicht mehr aufgetaucht, bis vor kurzem ;-)
Unten ein Auszug aus der Log-Dateien, mehr ist nicht dokumentiert!

Hier ein Auszug aus der syslog
Code:
Aug  6 10:11:01 localhost /USR/SBIN/CRON[4126]: (root) CMD (/etc/myscripts/verwaltungfr.sh)
Aug  6 10:12:01 localhost /USR/SBIN/CRON[4175]: (root) CMD (/etc/myscripts/verwaltungfr.sh)
Aug  6 10:12:34 localhost squid[4204]: Bungled squid.conf line 3: http_port xxx.URL.de:PORT
Aug  6 10:13:01 localhost /USR/SBIN/CRON[4213]: (root) CMD (/etc/myscripts/verwaltungfr.sh)
Aug  6 10:14:01 localhost /USR/SBIN/CRON[4278]: (root) CMD (/etc/myscripts/verwaltungfr.sh)

Und hier aus der Cache Log
Code:
2012/08/06 10:10:56| helperOpenServers: Starting 5 'ncsa_auth' processes
2012/08/06 10:11:01| storeDirWriteCleanLogs: Starting...
2012/08/06 10:11:01|   Finished.  Wrote 122 entries.
2012/08/06 10:11:01|   Took 0.0 seconds (387301.6 entries/sec).
2012/08/06 10:11:01| logfileRotate: /etc/squid/log/store.log
2012/08/06 10:11:01| logfileRotate (stdio): /etc/squid/log/store.log
2012/08/06 10:11:01| logfileRotate: /etc/squid/log/access.log
2012/08/06 10:11:01| logfileRotate (stdio): /etc/squid/log/access.log
2012/08/06 10:11:01| helperOpenServers: Starting 5 'ncsa_auth' processes
2012/08/06 10:11:01| storeDirWriteCleanLogs: Starting...
2012/08/06 10:11:01|   Finished.  Wrote 122 entries.
2012/08/06 10:11:01|   Took 0.0 seconds (387301.6 entries/sec).
2012/08/06 10:11:01| logfileRotate: /etc/squid/log/store.log
2012/08/06 10:11:01| logfileRotate (stdio): /etc/squid/log/store.log
2012/08/06 10:11:01| logfileRotate: /etc/squid/log/access.log
2012/08/06 10:11:01| logfileRotate (stdio): /etc/squid/log/access.log
2012/08/06 10:11:01| helperOpenServers: Starting 5 'ncsa_auth' processes
2012/08/06 10:13:12| storeDirWriteCleanLogs: Starting...
2012/08/06 10:13:12|   Finished.  Wrote 122 entries.
2012/08/06 10:13:12|   Took 0.0 seconds (455223.9 entries/sec).
2012/08/06 10:13:12| logfileRotate: /etc/squid/log/store.log
2012/08/06 10:13:12| logfileRotate (stdio): /etc/squid/log/store.log
2012/08/06 10:13:12| logfileRotate: /etc/squid/log/access.log
2012/08/06 10:13:12| logfileRotate (stdio): /etc/squid/log/access.log
2012/08/06 10:13:12| helperOpenServers: Starting 5 'ncsa_auth' processes
2012/08/06 10:14:01| storeDirWriteCleanLogs: Starting...
2012/08/06 10:14:01|   Finished.  Wrote 122 entries.
2012/08/06 10:14:01|   Took 0.0 seconds (652406.4 entries/sec).
2012/08/06 10:14:01| logfileRotate: /etc/squid/log/store.log
2012/08/06 10:14:01| logfileRotate (stdio): /etc/squid/log/store.log
2012/08/06 10:14:01| logfileRotate: /etc/squid/log/access.log
2012/08/06 10:14:01| logfileRotate (stdio): /etc/squid/log/access.log
2012/08/06 10:14:01| helperOpenServers: Starting 5 'ncsa_auth' processes
2012/08/06 10:15:02| storeDirWriteCleanLogs: Starting...
2012/08/06 10:15:02|   Finished.  Wrote 122 entries.
2012/08/06 10:15:02|   Took 0.0 seconds (478431.4 entries/sec).
2012/08/06 10:15:02| logfileRotate: /etc/squid/log/store.log
2012/08/06 10:15:02| logfileRotate (stdio): /etc/squid/log/store.log
2012/08/06 10:15:02| logfileRotate: /etc/squid/log/access.log
2012/08/06 10:15:02| logfileRotate (stdio): /etc/squid/log/access.log
2012/08/06 10:15:02| helperOpenServers: Starting 5 'ncsa_auth' processes
2012/08/06 10:16:02| storeDirWriteCleanLogs: Starting...
 
Oben