March 29, 2024, 12:05:01 PM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: problem squid die on restarting modem  (Read 7059 times)

Offline tomamodi

  • Linux Learner
  • ***
  • Posts: 78
problem squid die on restarting modem
« on: July 02, 2005, 06:11:47 AM »
some times when i disconected from isp or slow speed i restart my modm/router

and after that my squid cache didnt work

i can see and connect webmin
and there squid show it is running but no browsing from client side

i have to stop and restart squid

did u no any thing help full that squid never stop working on restart of modem or disconnected isp"

it stay and on  and start browsing when ever i get connected to isp

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
problem squid die on restarting modem
« Reply #1 on: July 02, 2005, 02:42:13 PM »
Umm. can you give m last few lines of cache.log ? then I will be able to suggest anything.

Offline tomamodi

  • Linux Learner
  • ***
  • Posts: 78
problem squid die on restarting modem
« Reply #2 on: July 03, 2005, 07:30:33 AM »
2004/10/20 13:57:40| Accepting HTTP connections at
0.0.0.0, port 8080, FD 10.
2004/10/20 13:57:40| Accepting ICP messages at
0.0.0.0, port 3130, FD 11.
2004/10/20 13:57:40| Accepting SNMP messages on port
3401, FD 12.
2004/10/20 13:57:40| WCCP Disabled.
2004/10/20 13:57:40| Configuring Parent
212.26.70.41/8080/0
2004/10/20 13:57:40| Configuring Parent
212.26.70.36/8080/0
2004/10/20 13:57:40| Configuring Parent
212.26.70.48/8080/0
2004/10/20 13:57:40| Ready to serve requests.
2004/10/20 13:57:40| Done reading /cache swaplog (3838
entries)
2004/10/20 13:57:40| Finished rebuilding storage from
disk.
2004/10/20 13:57:40|      3805 Entries scanned
2004/10/20 13:57:40|         0 Invalid entries.
2004/10/20 13:57:40|         0 With invalid flags.
2004/10/20 13:57:40|      3773 Objects loaded.
2004/10/20 13:57:40|         0 Objects expired.
2004/10/20 13:57:40|        32 Objects cancelled.
2004/10/20 13:57:40|         0 Duplicate URLs purged.
2004/10/20 13:57:40|         0 Swapfile clashes
avoided.
2004/10/20 13:57:40|   Took 3.6 seconds (1044.1
objects/sec).
2004/10/20 13:57:40| Beginning Validation Procedure
2004/10/20 13:57:40|   Completed Validation Procedure
2004/10/20 13:57:40|   Validated 3773 Entries
2004/10/20 13:57:40|   store_swap_size = 51312k
2004/10/20 13:57:42| storeLateRelease: released 0
objects

this is cache.log
it shows it is working even if i try restart it say squid proccess is running and id is so & so
but  no browsing until you stop and restart the squid
if restart i lose all ipcache

Offline tomamodi

  • Linux Learner
  • ***
  • Posts: 78
problem squid die on restarting modem
« Reply #3 on: July 04, 2005, 07:00:08 AM »
dear ricky see this this peer is down and if i didnt stop and restart squid for ten days it stay same but if i restart it will be UP
i want this  will be UP without restart squid
how it will reconnect automaticly
=======================
Parent     : 212.33.177.201/8080/0
Flags      :
Address[0] : 212.33.177.201
Status     : Down
AVG RTT    : 0 msec
LAST QUERY : 1120485220 seconds ago
LAST REPLY : 1120485220 seconds ago
PINGS SENT :        0
PINGS ACKED:        0   0%
FETCHES    :        0   0%
IGNORED    :        0   0%
Histogram of PINGS ACKED:
Last failed connect() at: 04/Jul/2005:08:56:20 -0400
keep-alive ratio: 0%
===============

Offline tomamodi

  • Linux Learner
  • ***
  • Posts: 78
problem squid die on restarting modem
« Reply #4 on: August 27, 2005, 06:43:38 PM »
Quote from: "tomamodi"
dear ricky see this this peer is down and if i didnt stop and restart squid for ten days it stay same but if i restart it will be UP
i want this  will be UP without restart squid
how it will reconnect automaticly
=======================
Parent     : 212.33.177.201/8080/0
Flags      :
Address[0] : 212.33.177.201
Status     : Down
AVG RTT    : 0 msec
LAST QUERY : 1120485220 seconds ago
LAST REPLY : 1120485220 seconds ago
PINGS SENT :        0
PINGS ACKED:        0   0%
FETCHES    :        0   0%
IGNORED    :        0   0%
Histogram of PINGS ACKED:
Last failed connect() at: 04/Jul/2005:08:56:20 -0400
keep-alive ratio: 0%
===============


still not  recived reply

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
problem squid die on restarting modem
« Reply #5 on: August 28, 2005, 08:59:02 AM »
Sorry...
Sometimes few topics just slips away and I don't even remember.
Here you can use
Code: [Select]
squid -k reconfigure
It will not restart the squid but will reconfigure and hence will also reconnect to peer. BTW.. I am not sure if it causes loss of ipcache or not.

Offline tomamodi

  • Linux Learner
  • ***
  • Posts: 78
problem squid die on restarting modem
« Reply #6 on: August 29, 2005, 09:59:57 AM »
Quote from: "Ricky"
Sorry...
Sometimes few topics just slips away and I don't even remember.
Here you can use
Code: [Select]
squid -k reconfigure
It will not restart the squid but will reconfigure and hence will also reconnect to peer. BTW.. I am not sure if it causes loss of ipcache or not.

dear RICKY
i think still you didnt understand my problem

it will start if i restart my squid box  same as reconfigure -k

but may be the isp parent will go down after five minutes and it come up after half houre
did i must restart my squid box again
or as u say reconfigure -k after every time my isp cache stop
it stop  ten times in 24 hours
and the squid try for the given time and declare it dead after declare dead the  isp cache start again but my squid is unable to connect it because it declare it dead
i have to restart my squid box -or squid/stop   squid/start
to connect my isp cache

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
problem squid die on restarting modem
« Reply #7 on: August 30, 2005, 03:45:28 AM »
can you tell me if "-k reconfigure" reset your ipcache or not !

Offline tomamodi

  • Linux Learner
  • ***
  • Posts: 78
problem squid die on restarting modem
« Reply #8 on: August 30, 2005, 04:30:10 AM »
yes it reset  and lost all cached