Skip to content

Instantly share code, notes, and snippets.

@tinbotu
Created September 10, 2012 21:34
Show Gist options
  • Save tinbotu/3694056 to your computer and use it in GitHub Desktop.
Save tinbotu/3694056 to your computer and use it in GitHub Desktop.
Squid's external acl problem
squid の external acl を perl で書いてたんだけどあるときから exteranal acl daemon 自体が起動しなくなった
2012/09/11 05:33:15| externalAclLookup: 'authed_ext' queue overload (ch=0x2300e300)
とか出る。Overload もなにも、1個のURLにアクセスしただけでコイツが発生するので、何それと思ってちょっとまえのログ見たら
2012/09/11 06:04:23| helperOpenServers: Starting 1/1 'perl' processes
2012/09/11 06:04:23| commBind: Cannot bind socket FD 7 to [::1]: (99) Cannot assign requested address
2012/09/11 06:04:23| commBind: Cannot bind socket FD 8 to [::1]: (99) Cannot assign requested address
2012/09/11 06:04:23| ipcCreate: Failed to create child FD.
2012/09/11 06:04:23| WARNING: Cannot run '/usr/bin/perl' process.
なんか変更したっけと思ってがんばって思い出したらそういえば IPv6 無効にしてた。
でも external acl はそもそも IP 経由で通信したりしないので、何それと思ったら
http://www.squid-cache.org/mail-archive/squid-users/201112/0342.html
そういうことらしい
squid.conf
# ipv4 / ipv6 IP-mode used to communicate to this helper.
# For compatability with older configurations and helpers
# the default is currently 'ipv4'.
なんだけど実は the default is currently 'ipv4'. ってのはウソで、ipv4 って明示的に書いてやらないと死ぬんだと。
ipv4 って書いたら解決しました。
3.1.19-1ubuntu3.12.04.1 です
酔っぱらってるから内容めちゃくちゃかもしれない。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment