[squid-users] Centos 7 squid 3.5.2 / kid2| commBind: Cannot bind socket FD 782 to [::]: (2) No such file or directory
--Ahmad--
ahmed.zaeem at netstream.ps
Fri Jun 10 08:54:16 UTC 2016
hi eliezer
=============================================
1- selinux is disabled
[root at localhost ~]# sestatus
SELinux status: disabled
[root at localhost ~]#
2-
i have the PID file with permission to squid
[root at localhost ~]# ls -l /var/run/squid.pid
-rw-r--r-- 1 squid squid 5 Jun 10 04:45 /var/run/squid.pid
[root at localhost ~]#
but here i don’t see the file /var/run/squid …….i used to see file called /var/run/squid not /var/run/squid.pid
i also tried to add directive to squid.conf ==> pid_filename /var/run/squid.pid
but i have the same errror
3-im using kernel default for Centos 7 and it do support IPV6 , i didn’t compile any kernel
agin the error that i have is :
kid2| commBind: Cannot bind socket FD 782 to [::]: (2) No such file or directory
not
kid2| commBind: Cannot bind socket FD 782 to [::]: permission denied
here is again compile options :
>> Squid Cache: Version 3.5.2
>> Service Name: squid
>> configure options: '--prefix=/usr' '--includedir=/include' '--mandir=/share/man' '--infodir=/share/info' '--sysconfdir=/etc' '--enable-cachemgr-hostname=Ahmad-Allzaeem' '--localstatedir=/var' '--libexecdir=/lib/squid' '--disable-maintainer-mode' '--disable-dependency-tracking' '--disable-silent-rules' '--srcdir=.' '--datadir=/usr/share/squid' '--sysconfdir=/etc/squid' '--mandir=/usr/share/man' '--enable-inline' '--enable-async-io=8' '--enable-storeio=ufs,aufs,diskd,rock' '--enable-removal-policies=lru,heap' '--enable-delay-pools' '--enable-cache-digests' '--enable-underscores' '--enable-icap-client' '--enable-follow-x-forwarded-for' '--enable-auth' '--enable-basic-auth-helpers=LDAP,MSNT,NCSA,PAM,SASL,SMB,YP,DB,POP3,getpwnam,squid_radius_auth,multi-domain-NTLM' '--enable-ntlm-auth-helpers=smb_lm' '--enable-digest-auth-helpers=ldap,password' '--enable-negotiate-auth-helpers=squid_kerb_auth' '--enable-esi' '--disable-translation' '--with-logdir=/var/log/squid' '--with-pidfile=/var/run/squid.pid' '' '--with-large-files' '--with-default-user=squid' --with-openssl' '--enable-snmp' '--with-included-ltdl' '--disable-arch-native'
>> [root at localhost ~]#
and here is squid.conf
[root at localhost ~]# cat /etc/squid/squid.conf | less
cache deny all
#################
#pid_filename /var/run/squid.pid
####################
visible_hostname squid
cache_effective_user squid
cache_effective_group squid
####################################
#workers 2
########################################################################
# Lockdown Procedures
auth_param basic program /lib/squid/basic_ncsa_auth /etc/squid/squid_user
acl ncsa_users proxy_auth REQUIRED
http_access allow ncsa_users
############################
f
####################################
#
# Recommended minimum configuration:
#
# 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
max_filedescriptors 131072
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
#
# Recommended minimum Access Permission configuration:
#
# 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
# Only allow cachemgr access from localhost
http_access allow localhost manager
http_access deny manager
# We strongly recommend the following be uncommented to protect innocent
# web applications running on the proxy server who think the only
# one who can access services on "localhost" is a local user
#http_access deny to_localhost
#
# INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS
#
# 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 deny all
# Squid normally listens to port 3128
http_port 1234
##############################
thank you
> On Jun 10, 2016, at 12:23 AM, Eliezer Croitoru <eliezer at ngtech.co.il> wrote:
>
> Hey Ahmad,
>
> I do not why you are suffering from the issue.
> The options are:
> - Selinux
> - Permission
> - Directory existence
> - Self compiled kernel withtou IPV6 support
> - And many more
> From my point of view I suggest first to try my RPMs as it works with many setups.
> Second try to simplify your squid.conf and share it.
> What addition to squid.conf make this issue appear?
> Also have you tried looking at the SMP FAQ at:
> http://wiki.squid-cache.org/Features/SmpScale#Cannot_bind_socket_FD_NN_to_.5B::.5D:_.2813.29_Permission_denied <http://wiki.squid-cache.org/Features/SmpScale#Cannot_bind_socket_FD_NN_to_.5B::.5D:_.2813.29_Permission_denied>
>
> If this and the RPMs do not help you to resolve the issue then share a very simplified squid.conf and we can try to see if there is some direction for help.
>
> Eliezer
>
> ----
> Eliezer Croitoru <http://ngtech.co.il/lmgtfy/>
> Linux System Administrator
> Mobile: +972-5-28704261
> Email: eliezer at ngtech.co.il <mailto:eliezer at ngtech.co.il>
> <image003.png>
>
> From: --Ahmad-- [mailto:ahmed.zaeem at netstream.ps]
> Sent: Thursday, June 9, 2016 10:55 AM
> To: Eliezer Croitoru
> Cc: Squid Users
> Subject: Re: [squid-users] Centos 7 squid 3.5.2 / kid2| commBind: Cannot bind socket FD 782 to [::]: (2) No such file or directory
>
> hi Mr elieizer
>
> i already check the mailing list before i post here , but no luck with me .
>
>
> i don’t think its a permissions issue
>
>
> i have the file /var/run/squid is missing
>
> and there is /var/run/squid.pid
>
> and it has the squid permissions
>
>
> kindly can you point to me if i figure it out using compile options ? or from the os side ?
>
>
> thank you
>> On Jun 9, 2016, at 3:14 AM, Eliezer Croitoru <eliezer at ngtech.co.il <mailto:eliezer at ngtech.co.il>> wrote:
>>
>> Hey Ahmed,
>>
>> Have you tried my RPMs for CentOS 7?
>> The latest version is 3.5.19 which is far more advanced then 3.5.2 and it works for me..
>> This issue you mentioned has lots of references in the mailing list history.
>> I assume it's a simple issue.
>> If you can try my RPMs and verify that you get the same error with them I will try to see if I can reproduce the issue.
>>
>> Eliezer
>>
>> ----
>> Eliezer Croitoru <http://ngtech.co.il/lmgtfy/>
>> Linux System Administrator
>> Mobile: +972-5-28704261
>> Email: eliezer at ngtech.co.il <mailto:eliezer at ngtech.co.il>
>> <image001.png>
>>
>> From: squid-users [mailto:squid-users-bounces at lists.squid-cache.org <mailto:squid-users-bounces at lists.squid-cache.org>] On Behalf Of --Ahmad--
>> Sent: Thursday, June 9, 2016 1:57 AM
>> To: Squid Users
>> Subject: [squid-users] Centos 7 squid 3.5.2 / kid2| commBind: Cannot bind socket FD 782 to [::]: (2) No such file or directory
>>
>> here is error when i run squid :
>> 2016/06/08 18:48:29 kid2| commBind: Cannot bind socket FD 782 to [::]: (2) No such file or directory
>> 2016/06/08 18:48:29 kid1| HTCP Disabled.
>> 2016/06/08 18:48:29 kid1| Squid plugin modules loaded: 0
>> 2016/06/08 18:48:29 kid1| Adaptation support is off.
>> 2016/06/08 18:48:29 kid1| commBind: Cannot bind socket FD 782 to [::]: (2) No such file or directory
>>
>>
>> I’m sure if i use it on centos 6 it work…...
>>
>> but on centos 7 with same compile options it don’t allow me to use workers SMP
>>
>> any help ?
>>
>>
>> Squid Cache: Version 3.5.2
>> Service Name: squid
>> configure options: '--prefix=/usr' '--includedir=/include' '--mandir=/share/man' '--infodir=/share/info' '--sysconfdir=/etc' '--enable-cachemgr-hostname=Ahmad-Allzaeem' '--localstatedir=/var' '--libexecdir=/lib/squid' '--disable-maintainer-mode' '--disable-dependency-tracking' '--disable-silent-rules' '--srcdir=.' '--datadir=/usr/share/squid' '--sysconfdir=/etc/squid' '--mandir=/usr/share/man' '--enable-inline' '--enable-async-io=8' '--enable-storeio=ufs,aufs,diskd,rock' '--enable-removal-policies=lru,heap' '--enable-delay-pools' '--enable-cache-digests' '--enable-underscores' '--enable-icap-client' '--enable-follow-x-forwarded-for' '--enable-auth' '--enable-basic-auth-helpers=LDAP,MSNT,NCSA,PAM,SASL,SMB,YP,DB,POP3,getpwnam,squid_radius_auth,multi-domain-NTLM' '--enable-ntlm-auth-helpers=smb_lm' '--enable-digest-auth-helpers=ldap,password' '--enable-negotiate-auth-helpers=squid_kerb_auth' '--enable-esi' '--disable-translation' '--with-logdir=/var/log/squid' '--with-pidfile=/var/run/squid.pid' '' '--with-large-files' '--with-default-user=squid' --with-openssl' '--enable-snmp' '--with-included-ltdl' '--disable-arch-native'
>> [root at localhost ~]#
>>
>>
>>
>>
>> thank you
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20160610/86b1d908/attachment-0001.html>
More information about the squid-users
mailing list