Obsolete Releases > SME 8.x Contribs

Squid Fatal

(1/4) > >>

derekb:
Hi

We are having the below problem with i believe squid (HTTP Caching on our SME server below version)


--- Code: ---SME Server 8.1
Copyright 1999-2006 Mitel Corporation
All rights reserved.
Copyright (C) 2013 Koozali Foundation, Inc.
--- End code ---


--- Code: ---FATAL: logfileWrite: /var/log/squid/access.log: (5) Input/output error
Squid Cache (Version 2.6.STABLE21): Terminated abnormally.
CPU Usage: 0.123 seconds = 0.069 user + 0.054 sys
Maximum Resident Size: 25888 KB
Page faults with physical i/o: 10
Memory usage for squid via mallinfo():
total space in arena:    3168 KB
Ordinary blocks:         3150 KB      3 blks
Small blocks:               0 KB      0 blks
Holding blocks:           244 KB      1 blks
Free Small blocks:          0 KB
Free Ordinary blocks:      17 KB
Total in use:            3394 KB 99%
Total free:                17 KB 0%
2014/07/30 11:33:38| Starting Squid Cache version 2.6.STABLE21 for i686-redhat-linux-gnu...
2014/07/30 11:33:38| Process ID 4302
2014/07/30 11:33:38| With 1024 file descriptors available
2014/07/30 11:33:38| Using epoll for the IO loop
2014/07/30 11:33:38| DNS Socket created at 0.0.0.0, port 47682, FD 6
2014/07/30 11:33:38| Adding domain tagsa.co.za from /etc/resolv.conf
2014/07/30 11:33:38| Adding nameserver 10.0.0.1 from /etc/resolv.conf
2014/07/30 11:33:38| User-Agent logging is disabled.
2014/07/30 11:33:38| Referer logging is disabled.
2014/07/30 11:33:38| Unlinkd pipe opened on FD 11
2014/07/30 11:33:38| Swap maxSize 102400 + 8192 KB, estimated 0 objects
2014/07/30 11:33:38| Target number of buckets: 1843
2014/07/30 11:33:38| Using 8192 Store buckets
2014/07/30 11:33:38| Max Mem  size: 8192 KB
2014/07/30 11:33:38| Max Swap size: 102400 KB
2014/07/30 11:33:38| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2014/07/30 11:33:38| Rebuilding storage in /var/spool/squid (CLEAN)
2014/07/30 11:33:38| Using Least Load store dir selection
2014/07/30 11:33:38| Current Directory is /var/service/squid
2014/07/30 11:33:38| Loaded Icons.
2014/07/30 11:33:55| Accepting transparently proxied HTTP connections at 10.0.0.1, port 3128, FD 13.
2014/07/30 11:33:55| Accepting transparently proxied HTTP connections at 127.0.0.1, port 3128, FD 14.
2014/07/30 11:33:55| Accepting ICP messages at 10.0.0.1, port 3130, FD 15.
2014/07/30 11:33:55| Outgoing ICP messages on port 3130, FD 16.
2014/07/30 11:33:55| WCCP Disabled.
2014/07/30 11:33:55| Ready to serve requests.
2014/07/30 11:33:56| Store rebuilding is 83.3% complete
2014/07/30 11:33:57| Done reading /var/spool/squid swaplog (4917 entries)
2014/07/30 11:33:57| Finished rebuilding storage from disk.
2014/07/30 11:33:57|      4917 Entries scanned
2014/07/30 11:33:57|         0 Invalid entries.
2014/07/30 11:33:57|         0 With invalid flags.
2014/07/30 11:33:57|      4917 Objects loaded.
2014/07/30 11:33:57|         0 Objects expired.
2014/07/30 11:33:57|         0 Objects cancelled.
2014/07/30 11:33:57|         0 Duplicate URLs purged.
2014/07/30 11:33:57|         0 Swapfile clashes avoided.
2014/07/30 11:33:57|   Took 19.0 seconds ( 258.9 objects/sec).
2014/07/30 11:33:57| Beginning Validation Procedure
--- End code ---

The issue arose after the system was shutdown without a proper halt due to power failures and our UPS failing.

From this i have tried to reset the process using a few threads i found online "http://superuser.com/questions/589438/squid3-proxy-cannot-write-log-file" but the system is still having problems (to the measure that we loose our Local network as well as any http access.

Has anyone ever experienced something similar or has any advise to restore squid?


--- Code: ---[root@netkeeper squid]# ls -la
total 191944
drwxrwxr-x  2 squid squid     4096 Jul 31 13:59 .
drwxrwxrwx 53 root  root     20480 Jul 31 11:57 ..
-rwxrwxr-x  1 squid squid 24218466 Jul 31 14:24 access.log
-rwxrwxr-x  1 squid squid  7615853 Jul 27 04:02 access.log.1.gz
-rwxrwxr-x  1 squid squid  9180025 Jul 20 04:02 access.log.2.gz
-rwxrwxr-x  1 squid squid  8256428 Jul 13 04:02 access.log.3.gz
-rwxrwxr-x  1 squid squid  6477164 Jul  6 04:02 access.log.4.gz
-rwxrwxr-x  1 squid squid  5561742 Jun 29 04:02 access.log.5.gz
-rwxrwxr-x  1 squid squid  2824697 Jul 31 14:24 cache.log
-rwxrwxr-x  1 squid squid   122804 Jul 27 04:02 cache.log.1.gz
-rwxrwxr-x  1 squid squid    78990 Jul 20 04:02 cache.log.2.gz
-rwxrwxr-x  1 squid squid    64406 Jul 13 04:02 cache.log.3.gz
-rwxrwxr-x  1 squid squid    51292 Jul  6 04:02 cache.log.4.gz
-rwxrwxr-x  1 squid squid    40404 Jun 29 04:02 cache.log.5.gz
-rwxrwxr-x  1 squid squid        6 Jul 31 14:23 squid.pid
-rwxrwxr-x  1 squid squid 40925866 Jul 31 13:23 store.log
-rwxrwxr-x  1 squid squid 19276058 Jul 27 04:02 store.log.1.gz
-rwxrwxr-x  1 squid squid 22415101 Jul 20 04:02 store.log.2.gz
-rwxrwxr-x  1 squid squid 19589976 Jul 13 04:02 store.log.3.gz
-rwxrwxr-x  1 squid squid 15544897 Jul  6 04:02 store.log.4.gz
-rwxrwxr-x  1 squid squid 13966178 Jun 29 04:02 store.log.5.gz
[root@netkeeper squid]#

--- End code ---

Daniel B.:
You should check your disk isn't full, and run fsck to be sure your FS has no error

derekb:
Thanks Daniel

Regarding the disk i can confirm its not full (1.3Tb available).

we will try a forced fsck and revert any results.

Is there any other way to maybe fully reconfigured (take to default).

Am i right in that squid is controlling that specific feature (HTTP Caching - Server-manager panel)?

Kind regards

CharlieBrady:

--- Quote from: derekb on July 31, 2014, 05:01:05 PM ---
--- Code: ---FATAL: logfileWrite: /var/log/squid/access.log: (5) Input/output error

--- End code ---

--- End quote ---

That almost certainly means that you have a disk I/O error. Search for 'sda' in /var/log/messages.

Do you have only a single disk? It is very highly recommended that you always use a two disk RAID1 pair.

I'm surprised that you say that you are also losing your local network. A hard disk error would not usually cause any disruption in ethernet networking.

CharlieBrady:

--- Quote from: derekb on July 31, 2014, 06:27:30 PM ---Is there any other way to maybe fully reconfigured (take to default).

--- End quote ---

Fresh install and restore from backup. You would check your hardware before doing the fresh install.


--- Quote ---Am i right in that squid is controlling that specific feature (HTTP Caching - Server-manager panel)?

--- End quote ---

squid should not be involved in accesses to the server-manager.

Navigation

[0] Message Index

[#] Next page

Go to full version