Senin, 07 Mei 2012

Memperbaiki squid: ERROR: No running copy

[root@proxy squid]# squid -k reconfigure squid: ERROR: No running copy [root@proxy squid]# service squid start Starting squid: ……………….. [FAILED] liat di lognya #tail -f /var/log/message : Squid Parent: child process 13608 started : storeAufsDirOpenSwapLog: Failed to open swap log. : Squid Parent: child process 13608 exited due to signal menggunakan perintah berikut # squid -NC -d1 Starting Squid Cache version 2.6.STABLE4 for i686 -redhat-linux-gnu… Process ID 13675 With 1024 file descriptors available Using epoll for the IO loop Performing DNS Tests… Successful DNS name lookup tests… DNS Socket created at 0.0.0.0, port 32771, FD 5 Adding nameserver dns-local from squid.conf Adding nameserver dns-public 4 from squid.conf Adding nameserver dns-public from squid.conf helperOpenServers: Starting 5 ‘ncsa_auth’ process es User-Agent logging is disabled. Referer logging is disabled. Unlinkd pipe opened on FD 15 Swap maxSize 102400000 KB, estimated 7876923 obje cts Target number of buckets: 393846 Using 524288 Store buckets Max Mem size: 6144 KB Max Swap size: 102400000 KB Local cache digest enabled; rebuild/rewrite every 3600/3600 sec Store logging disabled | /var/spool/squid/swap.state: (13) Permission deni ed FATAL: storeAufsDirOpenSwapLog: Failed to open swap log. Aborted (core dumped) Telah terjadi perubahan di /var/spool/squid yang menyebabkan error diatas -rw-r—– 1 root squid 185401920 Nov 12 08:45 swap.state lalu di ubah kepemilikannya menjadi #chown squid swap.state dan hasilnya kembali menjadi -rw-r—– 1 squid squid 17358624 Nov 12 09:23 swap.state lakukan #service squid start Starting squid: . [ OK ] #squid -k reconfigure dan squid kembali normal Source : http://adimaulana.wordpress.com