Kenny Lee wrote:
hi Amos,

please view below for my answer.

thank you

Regards,
Kenny

----- Original Message ----- From: "Amos Jeffries" <[EMAIL PROTECTED]>
To: "Kenny Lee" <[EMAIL PROTECTED]>
Cc: <squid-users@squid-cache.org>
Sent: Wednesday, May 07, 2008 12:26 PM
Subject: Re: [squid-users] Squid started but no function


hi all,

i am using squid 2.6 STABLE5-7, after set all the settings in squid.conf,
it
works very prefectly and no error message. But everytimes i restarted the
proxy server, i can see the squid service is ON there, but all my user
unable to surf net. i need to manually restart the squid service again,
then
all user only can access net. why? is it a bug?

Not much detail to base an answer on there.

Operating System?
SuSE open source 10.2

Self-build or a packaged squid?
packaged squid which came from SuSE

Is squid being run as root like it should?
Yes, squid run as root

Can you upgrade to a recent Squid (2.6 STABLE 20 is now out)?
havent tried, is it because of version?

Maybe, first reason to upgrade is to find that out.
Many other better reasons to upgrade too, stable5 is very old.
http://www.squid-cache.org/Advisories for two.


How is the automatic restart happening?
i set in "crontab -e" to restart the server weekly. the code is "5 1 * * 1 /sbin/shutdown -r now"

If you need to restart a linux/BSD server weekly you have much larger problems than squid...


What is your cache.log file saying about the running of squid?
2008/05/05 01:08:44| Starting Squid Cache version 2.6.STABLE5 for i686-pc-linux-gnu...
2008/05/05 01:08:44| Process ID 3801
2008/05/05 01:08:44| With 4096 file descriptors available
2008/05/05 01:08:44| Using epoll for the IO loop
2008/05/05 01:08:44| DNS Socket created at 0.0.0.0, port 32769, FD 6
2008/05/05 01:08:44| Adding nameserver 202.188.0.133 from /etc/resolv.conf
2008/05/05 01:08:44| Adding nameserver 202.188.1.5 from /etc/resolv.conf
2008/05/05 01:08:44| Adding domain com from /etc/resolv.conf
2008/05/05 01:08:44| User-Agent logging is disabled.
2008/05/05 01:08:44| Referer logging is disabled.
2008/05/05 01:08:44| Unlinkd pipe opened on FD 11
2008/05/05 01:08:44| Swap maxSize 102400 KB, estimated 7876 objects
2008/05/05 01:08:44| Target number of buckets: 393
2008/05/05 01:08:44| Using 8192 Store buckets
2008/05/05 01:08:44| Max Mem  size: 8192 KB
2008/05/05 01:08:44| Max Swap size: 102400 KB
2008/05/05 01:08:44| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2008/05/05 01:08:44| Rebuilding storage in /var/cache/squid (CLEAN)
2008/05/05 01:08:44| Using Least Load store dir selection
2008/05/05 01:08:44| Set Current Directory to /var/cache/squid
2008/05/05 01:08:44| Loaded Icons.
2008/05/05 01:08:45| Accepting proxy HTTP connections at 0.0.0.0, port 81, FD 13.
2008/05/05 01:08:45| Accepting ICP messages at 0.0.0.0, port 3130, FD 14.
2008/05/05 01:08:45| HTCP Disabled.
2008/05/05 01:08:45| Accepting SNMP messages on port 3401, FD 15.
2008/05/05 01:08:45| WCCP Disabled.
2008/05/05 01:08:45| Pinger socket opened on FD 16
2008/05/05 01:08:45| Ready to serve requests.
2008/05/05 01:08:45| Store rebuilding is 96.7% complete
2008/05/05 01:08:45| Done reading /var/cache/squid swaplog (4233 entries)
2008/05/05 01:08:45| Finished rebuilding storage from disk.
2008/05/05 01:08:45|      4233 Entries scanned
2008/05/05 01:08:45|         0 Invalid entries.
2008/05/05 01:08:45|         0 With invalid flags.
2008/05/05 01:08:45|      4233 Objects loaded.
2008/05/05 01:08:45|         0 Objects expired.
2008/05/05 01:08:45|         0 Objects cancelled.
2008/05/05 01:08:45|         0 Duplicate URLs purged.
2008/05/05 01:08:45|         0 Swapfile clashes avoided.
2008/05/05 01:08:45|   Took 0.8 seconds (5233.5 objects/sec).
2008/05/05 01:08:45| Beginning Validation Procedure
2008/05/05 01:08:45|   Completed Validation Procedure
2008/05/05 01:08:45|   Validated 4233 Entries
2008/05/05 01:08:45|   store_swap_size = 92060k
2008/05/05 01:08:45| storeLateRelease: released 0 objects


Looks like its working.

Maybe the startup script doing something weird (might be as quirky as starting before an auto-sensing FW on reboot)


Any other related setup not directly with the squid.conf? (ie transparent,
PAC, WCCP)
No.


Amos
--
Please use Squid 2.6.STABLE20 or 3.0.STABLE5

Reply via email to