Search squid archive

Re: Fw: [ERROR] commonUfsDirOpenSwapLog: Failed to open swap log

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Any updates please...!



----- Original Message -----
> From: Anonymous <eletters_mail@xxxxxxxxx>
> To: Amos Jeffries <squid3@xxxxxxxxxxxxx>; "squid-users@xxxxxxxxxxxxxxx" <squid-users@xxxxxxxxxxxxxxx>
> Cc: 
> Sent: Wednesday, July 18, 2012 12:16 PM
> Subject: Re:  Fw: [ERROR] commonUfsDirOpenSwapLog: Failed to open swap log
> 
> I have delete old configurations, download latest Beta version 
> "squid-3.2.0.18-20120717-r11615" build with very few parameters, but 
> same old error displaying on console. Here's updates:
> *****************************
> 1. [Error]
> commonUfsDirOpenSwapLog: Failed to open swap log.
> squid[1772]: Squid Parent: (squid-1) process 1800 exited with status 1
> squid[1772]: Squid Parent: (squid-1) process 1800 will not be restarted due to 
> repeated, frequent failures
> squid[1772]: Exiting due to repeated, frequent failures
> ***********************************
> 2. [Squid-./configure]
> # squid -v
> Squid Cache: Version 3.2.0.18-20120717-r11615
> configure options:  '--with-default-user=squid' 
> '--bindir=/usr/local/sbin' '--sbindir=/usr/local/sbin' 
> '--datadir=/usr/local/etc/squid' 
> '--libexecdir=/usr/local/libexec/squid' 
> '--localstatedir=/var/squid' '--sysconfdir=/usr/local/etc/squid' 
> '--with-logdir=/var/log/squid' 
> '--with-pidfile=/var/squid/squid.pid' 
> '--with-swapdir=/var/squid' '--with-large-files' 
> '--prefix=/usr/local' '--mandir=/usr/local/man' 
> '--infodir=/usr/local/info/' '--build=amd64-portbld-freebsd9.0' 
> 'build_alias=amd64-portbld-freebsd9.0' --enable-ltdl-convenience
> *********************************
> 3. [Configurations]
> Squid User: squid:*:100:100:Squid caching-proxy psuedo 
> user:/var/squid:/usr/sbin/nologin
> # mkdir /var/squid/
> # chown -R squid:squid /var/squid/
> # mkdir /var/log/squid/
> # chown -R squid:squid /var/log/squid/
> # touch /var/squid/squid.pid
> # chown -R squid:squid /var/squid/squid.pid
> # squid -z
> ************************************
> 4.  [Permissions, User etc]
> # ls -all /var/squid/cache/squid/swap.state
> -rw-r-----  1 squid  squid  72000 Jul 18 11:32 /var/squid/cache/squid/swap.state
> ************ More Details:
> ls -all /var/squid
> total 20
> drwxr-xr-x   4 squid  squid  512 Jul 18 10:53 .
> drwxr-xr-x  25 root   wheel  512 Jul 18 16:14 ..
> drwxr-xr-x   3 squid  squid  512 Jul 18 10:53 cache
> drwxr-xr-x   3 squid  squid  512 Jul 18 10:12 run
> -rw-r--r--   1 squid  squid    4 Jul 18 11:14 squid.pid
> ************************************************
> 5. [/usr/local/etc/squid/squid.conf]
> #
> acl localnet src 192.168.100.0/24 # 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
> #
> http_access allow localhost manager
> http_access deny manager
> http_access deny !Safe_ports
> http_access deny CONNECT !SSL_ports
> http_access allow localnet
> http_access allow localhost
> http_access deny all
> http_port 2351
> cache_dir ufs /var/squid/cache/squid 40000 16 256
> coredump_dir /var/squid/cache/squid
> refresh_pattern ^ftp:           1440    20%     10080
> refresh_pattern ^gopher:        1440    0%      1440
> refresh_pattern -i (/cgi-bin/|\?) 0     0%      0
> refresh_pattern .               0       20%     4320
> # Custom Options
> visible_hostname testsys@xxxxxxxxxxx
> cache_mgr admin@@testing.com
> connect_timeout 900 second
> read_timeout 15 minute
> dns_timeout 15 minutes
> dns_retransmit_interval 30 seconds
> dns_nameservers 127.0.0.1 8.8.8.8
> # ***********END********************
> 
> 
> 
> 
> ----- Original Message -----
> From: Amos Jeffries <squid3@xxxxxxxxxxxxx>
> To: squid-users@xxxxxxxxxxxxxxx
> Cc: 
> Sent: Tuesday, July 17, 2012 4:08 PM
> Subject: Re:  Fw: [ERROR] commonUfsDirOpenSwapLog: Failed to open 
> swap log
> 
> On 17/07/2012 7:51 p.m., Anonymous wrote:
>>  Sorry! I forget to paste the Error Log displaying continuously on the 
> console in my previous message. Here's error log:
>>  ******************************************************************
>>  [ERROR] commonUfsDirOpenSwapLog: Failed to open swap log
>>  ---------------------------------------------------------------------------
>>  Squid Parent: (squid-1) process 1870 exited with status 1
>>  Squid Parent: (squid-1) process 1874 started
>>  commonUfsDirOpenSwapLog: Failed to open swap log.
>>  Squid Parent: (squid-1) process 1874 exited with status 1
>>  Squid Parent: (squid-1) process 1879 started
>>  commonUfsDirOpenSwapLog: Failed to open swap log.
>>  Squid Parent: (squid-1) process 1879 exited with status 1
>>  Squid Parent: (squid-1) process 1879 will not be restarted due to repeated, 
> frequent failures
>>  squid[1850]: Exiting due to repeated, frequent failures
>>  -------------***********************************************
> 
> These are the kernel messages about it.
> The path to the failed fopen() is listed in cache.log at level 50,1 right before 
> the "commonUfsDirOpenSwapLog" message is written.
> 
>>  --- On Tue, 7/17/12, Anonymous wrote:
>> 
>>>  From: Anonymous
> 
>>>  1.     OS: FreeBSD
>>>  9.0-RELEASE-p3 amd64
>>>  2.     Squid User: squid:*:100:100:Squid
>>>  caching-proxy psuedo user:/var/squid:/usr/sbin/nologin
>>>  3.     # squid -v
>>>  Squid Cache: Version 3.2.0.18-20120711-r11610
> 
> 
>>>  configure options:  '--with-default-user=squid'
>>>  '--bindir=/usr/local/sbin' '--sbindir=/usr/local/sbin'
>>>  '--datadir=/usr/local/etc/squid'
>>>  '--libexecdir=/usr/local/libexec/squid'
>>>  '--localstatedir=/var/squid'
>>>  --sysconfdir=/usr/local/etc/squid'
>>>  '--with-logdir=/var/log/squid'
>>>  '--with-pidfile=/var/run/squid/squid.pid'
> Your PID file (/var/run/squid/squid.pid) is not inside the localstatedir 
> (/var/squid/). Does that work within BSD policy?
> 
>>>  '--with-large-files' '--enable-removal-policies=lru 
> heap'
>>>  '--enable-delay-pools' '--disable-linux-netfilter'
>>>  '--disable-linux-tproxy' '--disable-epoll'
>>>  '--disable-translation' '--enable-basic-auth-helpers=DB 
> NCSA
>>>  PAM MSNT SMB squid_radius_auth YP'
>>>  '--enable-digest-auth-helpers=password'
>>>  '--enable-external-acl-helpers=ip_user session unix_group
>>>  wbinfo_group' '--enable-ntlm-auth-helpers=smb_lm'
>>>  '--enable-negotiate-auth-helpers=squid_kerb_auth'
>>>  '--enable-storeio=ufs diskd aufs' '--enable-disk-io=AIO
>>>  Blocking DiskDaemon DiskThreads' '--disable-ecap'
>>>  '--disable-loadable-modules' '--enable-kqueue'
>>>  '--prefix=/usr/local' '--mandir=/usr/local/man'
>>>    '--infodir=/usr/local/info/'
>>>  '--build=amd64-portbld-freebsd9.0'
>>>  'build_alias=amd64-portbld-freebsd9.0' 'CC=cc' 
> 'CFLAGS=-O2
>>>  -pipe  -fno-strict-aliasing' 'LDFLAGS=' 'CPPFLAGS='
>>>  'CXX=c++' 'CXXFLAGS=-O2 -pipe -fno-strict-aliasing'
>>>  'CPP=cpp'
>>>  '--with-squid=/work/a/ports/www/squid31/work/squid-3.1.16'
>>>  '--enable-ltdl-convenience'
> 
> FYI: configure options went under the knife in 3.2 and a lot of them have some 
> form of change. Particularly the ones with parameters. See the squid-3.2 release 
> notes for details.
> 
>>> 
> --------------------------------------------------------------------------
>>>  4.    squid.conf >>
>>>  cache_effective_user squid
> 
> You built with "--with-default-user=squid" meaning the built-in value 
> for cache_effective_user is already "squid". You can omit that 
> directive from your config file.
> 
>>>  #    ls -all
>>>  /var/squid/cache/squid/swap.state
>>>  -rw-r-----  1 squid  squid  130536 Jul 17
>>>  08:35 /var/squid/cache/squid/swap.state
> 
> What version/release of Squid created this swap file?
> 
> What cache_dir lines does your squid config contain? there is no disk cache by 
> default in 3.2 series.
> 
> Amos
> 



[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux