Category Archives: Squid

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

Wassalam
Adi Maulana

The cache was not able to resolve the hostname presented in the URL. Check if the address is correct.

The requested URL could not be retrieved

While trying to retrieve the URL: http://www.google.com/

The following error was encountered:

Unable to determine IP address from host name for http://www.google.com

The dnsserver returned:

Timeout

This means that:

The cache was not able to resolve the hostname presented in the URL.
Check if the address is correct.

Your cache administrator is adi.maulana@xxxx.co.id.
Generated Wed, 26 Aug 2009 05:20:07 GMT by fw.xxxx.co.id (squid/2.6.STABLE4)

Error yang muncul pada waktu akses alamat situs internet, tentunya gateway diarahkan ke squid, sebagai transparant proxy.

Setelah di cek, ternyata masalahnya terdapat dalam DNS..

di /etc/resolve.conf tidak menunjukkan ip address dns provider.

dan setelah diluruskan dengan ip address dns provider, error diatas bisa diatasi.

nameserver 127.0.0.1
nameserver 202.134.0.155
nameserver 222.124.204.34
nameserver 202.134.2.5

Terima kasih

Adi Maulana

The cache was not able to resolve the hostname presented in the URL.
Check if the address is correct.