Sabtu, 24 Nopember 2012
catatan Siang:
Saat Trafik tinggi Listrik mendadak (UPS Tidak Kuat Menampung 2 Server). akhirnya ditunggu 15 menit kemudian hidup lagi. tapi client tidak bisa internet, berpikir takutnya rusak nih hardisk. tapi setelah cek komputer proxynya ternyata ndak jalan service squidnya.
catatan Siang:
Saat Trafik tinggi Listrik mendadak (UPS Tidak Kuat Menampung 2 Server). akhirnya ditunggu 15 menit kemudian hidup lagi. tapi client tidak bisa internet, berpikir takutnya rusak nih hardisk. tapi setelah cek komputer proxynya ternyata ndak jalan service squidnya.
root@tx:/# squid -k reconfigure
squid: ERROR: No running copy
Coba start services squid
root@tx:/# squid start
tidak Muncul erorr
kemudian lihat Log
root@tx:/# tail -f /var/log/messages
Nov 24 11:28:19 tx squid[1108]: Squid Parent: child process 1147 started
Nov 24 11:28:19 tx squid[1108]: Squid Parent: child process 1147 exited due to signal 6
oh ternyata Squid tidak jalan, cek syslog
root@tx:/# tail /var/log/syslog
Nov 24 11:28:13 tx squid[1108]: Squid Parent: child process 1129 started
Nov 24 11:28:13 tx squid[1129]: #011Failed to verify one of the swap directories, Check c ache.log#012#011for details. Run 'squid -z' to create swap directories#012#011if needed, or if running Squid for the first time.
Nov 24 11:28:13 tx squid[1108]: Squid Parent: child process 1129 exited due to signal 6
Nov 24 11:28:16 tx squid[1108]: Squid Parent: child process 1138 started
Nov 24 11:28:16 tx squid[1138]: #011Failed to verify one of the swap directories, Check c ache.log#012#011for details. Run 'squid -z' to create swap directories#012#011if needed, or if running Squid for the first time.
Nov 24 11:28:16 tx squid[1108]: Squid Parent: child process 1138 exited due to signal 6
Nov 24 11:28:19 tx squid[1108]: Squid Parent: child process 1147 started
Nov 24 11:28:19 tx squid[1147]: #011Failed to verify one of the swap directories, Check c ache.log#012#011for details. Run 'squid -z' to create swap directories#012#011if needed, or if running Squid for the first time.
Nov 24 11:28:19 tx squid[1108]: Squid Parent: child process 1147 exited due to signal 6
Nov 24 11:28:19 tx squid[1108]: Exiting due to repeated, frequent failures
melihat syslog, muncul peringatan untuk menjalan membuat swap direktori squid, karena belum percaya saya coba debug squid
root@tx:/# squid -NC -d1
2012/11/24 11:30:20| Starting Squid Cache version 2.7.STABLE9 for i386-debian-linux-gnu.. .
2012/11/24 11:30:20| Process ID 1158
2012/11/24 11:30:20| With 65536 file descriptors available
2012/11/24 11:30:20| Using epoll for the IO loop
2012/11/24 11:30:20| Performing DNS Tests...
2012/11/24 11:30:20| Successful DNS name lookup tests...
2012/11/24 11:30:20| DNS Socket created at 0.0.0.0, port 48764, FD 6
2012/11/24 11:30:20| Adding domain tx.net from /etc/resolv.conf
2012/11/24 11:30:20| Adding nameserver 10.10.10.1 from /etc/resolv.conf
2012/11/24 11:30:20| helperOpenServers: Starting 7 'storeurl.pl' processes
2012/11/24 11:30:21| User-Agent logging is disabled.
2012/11/24 11:30:21| Referer logging is disabled.
2012/11/24 11:30:21| logfileOpen: opening log /var/log/squid/access.log
2012/11/24 11:30:21| Swap maxSize 102400000 + 8192 KB, estimated 7877553 objects
2012/11/24 11:30:21| Target number of buckets: 393877
2012/11/24 11:30:21| Using 524288 Store buckets
2012/11/24 11:30:21| Max Mem size: 8192 KB
2012/11/24 11:30:21| Max Swap size: 102400000 KB
2012/11/24 11:30:21| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2012/11/24 11:30:21| logfileOpen: opening log /var/log/squid/store.log
2012/11/24 11:30:21| /cache1/10: (2) No such file or directory
FATAL: Failed to verify one of the swap directories, Check cache.log
for details. Run 'squid -z' to create swap directories
if needed, or if running Squid for the first time.
Aborted
ok dah ketahuan maka bikin swap direktory dulu dan lansung cek lognya
root@tx:/# squid -z
2012/11/24 11:30:36| Creating Swap Directories
root@tx:/# squid start
root@tx:/# tail /var/log/messages
Nov 24 11:28:07 tx squid[1108]: Squid Parent: child process 1110 exited due to signal 6
Nov 24 11:28:10 tx squid[1108]: Squid Parent: child process 1120 started
oke selesai..
referensi : wiki.squid
Comments
Post a Comment