Search squid archive

FATAL: logfileWrite: /var/log/squid/access.log: (32) Broken pipe

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

 



 

Hi community,

 

I need to disable Squid LogRotation function,  this option periodically kills squid (.

Traditional ways to disable log rotation do not help. I tried many ways.

Deleted squid - rm /etc/logrotate.d/squid,

added log_rotate 0 to squid.conf

All this does not help I cant disable squid log rotation procedure  :(

 

storeDirWriteCleanLogs: Starting...

FATAL: logfileWrite: /var/log/squid/access.log: (32) Broken pipe

 

Logs writing in /var/log/squid/access.log then TraffPro take it to MySQL and keeps clean access.log.

But the problem is, squid wants to clean logs as you see:

storeDirWriteCleanLogs: Starting...

Then he cant do it and falls down:

FATAL: logfileWrite: /var/log/squid/access.log: (32) Broken pipe

 

 

I need to disable logrotate in squid or cut rotate function from default build squid from src (if you had manual how to cut LogRotate function from src, and build default squid but without Log Rotate please show me how)

 

Attached squid conf and squid crush log

 

CentOS 6.4 x64

Traffpro 1.3.8 + squid 3.1.0

 

Thank you,

 

Best Regards , Tursunov Emir

 

relaxed_header_parser warn
#
# 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

#
# 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

# 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
#logformat traffpro %>a %<A %lp %st %ru
logformat traffpro %>a %<A %lp %<st %ru

access_log /var/log/squid/traffpro.log traffpro
logfile_rotate 0
http_port 3129
http_port 192.168.7.1:3128 intercept

dns_nameservers 127.0.0.1
tcp_outgoing_address 0.0.0.0
udp_outgoing_address 0.0.0.0

# We recommend you to use at least the following line.
hierarchy_stoplist cgi-bin ?

# Uncomment and adjust the following to add a disk cache directory.
maximum_object_size 8192 KB
maximum_object_size_in_memory 32 KB
cache_mem 512 MB
memory_pools off
cache_dir ufs /var/spool/squid 5120 64 256


httpd_suppress_version_string on
forwarded_for off
via off
half_closed_clients off

ipcache_size 4096
fqdncache_size 4096
icp_port 0

#cache_swap

# Leave coredumps in the first cache dir
coredump_dir /var/spool/squid

# Add any of your own refresh_pattern entries above these.
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
cache.log [----] 0 L:[3382+57 3439/3439] *(290134/290134b) <EOF>
2013/11/15 10:07:17| Squid plugin modules loaded: 0
2013/11/15 10:07:17| Adaptation support is off.
2013/11/15 10:07:17| Ready to serve requests.
2013/11/15 10:07:17| Store rebuilding is 1.98% complete
2013/11/15 10:07:18| Done reading /var/spool/squid swaplog (207299 entries)
2013/11/15 10:07:18| Finished rebuilding storage from disk.
2013/11/15 10:07:18| 207299 Entries scanned
2013/11/15 10:07:18| 0 Invalid entries.
2013/11/15 10:07:18| 0 With invalid flags.
2013/11/15 10:07:18| 207299 Objects loaded.
2013/11/15 10:07:18| 0 Objects expired.
2013/11/15 10:07:18| 0 Objects cancelled.
2013/11/15 10:07:18| 0 Duplicate URLs purged.
2013/11/15 10:07:18| 0 Swapfile clashes avoided.
2013/11/15 10:07:18| Took 0.48 seconds (430594.59 objects/sec).
2013/11/15 10:07:18| Beginning Validation Procedure
2013/11/15 10:07:18| Completed Validation Procedure
2013/11/15 10:07:18| Validated 414619 Entries
2013/11/15 10:07:18| store_swap_size = 4718372
2013/11/15 10:07:18| storeLateRelease: released 0 objects
2013/11/15 10:38:13| clientProcessRequest: Invalid Request
2013/11/15 10:40:53| clientProcessRequest: Invalid Request
2013/11/15 10:41:08| clientProcessRequest: Invalid Request
2013/11/15 10:42:00| clientProcessRequest: Invalid Request
2013/11/15 10:43:31| clientProcessRequest: Invalid Request
2013/11/15 10:54:43| storeDirWriteCleanLogs: Starting...
2013/11/15 10:54:43| WARNING: Closing open FD 16
2013/11/15 10:54:43| 65536 entries written so far.
2013/11/15 10:54:43| 131072 entries written so far.
2013/11/15 10:54:43| 196608 entries written so far.
2013/11/15 10:54:43| Finished. Wrote 210078 entries.
2013/11/15 10:54:43| Took 0.11 seconds (1928099.42 entries/sec).
FATAL: logfileWrite: /var/log/squid/access.log: (32) Broken pipe

Squid Cache (Version 3.1.10): Terminated abnormally.
CPU Usage: 32.499 seconds = 21.474 user + 11.025 sys
Maximum Resident Size: 508016 KB
Page faults with physical i/o: 0
Memory usage for squid via mallinfo():
<------>total space in arena: 119376 KB
<------>Ordinary blocks: 118337 KB 825 blks
<------>Small blocks: 0 KB 1 blks
<------>Holding blocks: 1356 KB 5 blks
<------>Free Small blocks: 0 KB
<------>Free Ordinary blocks: 1038 KB
<------>Total in use: 119693 KB 100%
<------>Total free: 1038 KB 1%
2013/11/15 10:54:46| Starting Squid Cache version 3.1.10 for x86_64-redhat-linux-gnu...
2013/11/15 10:54:46| Process ID 9388
2013/11/15 10:54:46| With 1024 file descriptors available
2013/11/15 10:54:46| Initializing IP Cache...
2013/11/15 10:54:46| DNS Socket created at 0.0.0.0, FD 8
2013/11/15 10:54:46| Adding nameserver 127.0.0.1 from squid.conf
2013/11/15 10:54:46| Adding nameserver 8.8.8.8 from squid.conf
2013/11/15 10:54:46| Adding nameserver 8.8.4.4 from squid.conf
2013/11/15 10:54:46| User-Agent logging is disabled.
2013/11/15 10:54:46| Referer logging is disabled.

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

  Powered by Linux