歡迎您光臨本站 註冊首頁

Squid 服務意外地終止

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

Squid 服務意外地終止

8:24:03  Squid 服務意外地終止,這種情況已經出現了 51 次。以下的修正操作將在 60000 毫秒內運行: 重新啟動服務。

我基本上是 一天 出現好幾回啊,  做反向代理用的.


1 對 Squid 不太熟,不知道怎麼查了.

2 cache.log 的時間, access.log的時間就不知道怎麼對應了, 我是windows下的

3 cache.log 有大量這種記錄

2009/04/15 08:51:31| statusIfComplete: Request not yet fully sent "POST http://www.ypyp.com/free_ad_save.asp"
2009/04/15 08:51:35| statusIfComplete: Request not yet fully sent "POST http://www.ypyp.com/free_ad_save.asp"
2009/04/15 08:51:59| statusIfComplete: Request not yet fully sent "POST http://www.ypyp.com/free_ad_save.asp"
2009/04/15 08:52:08| statusIfComplete: Request not yet fully sent "POST http://www.ypyp.com/free_ad_save.asp"
2009/04/15 08:52:24| statusIfComplete: Request not yet fully sent "POST http://www.ypyp.com/free_ad_save.asp"
2009/04/15 08:52:29| statusIfComplete: Request not yet fully sent "POST http://www.ypyp.com/free_ad_save.asp"
2009/04/15 08:52:57| statusIfComplete: Request not yet fully sent "POST http://www.ypyp.com/free_ad_save.asp"
2009/04/15 08:52:58| statusIfComplete: Request not yet fully sent "POST http://www.ypyp.com/free_ad_save.asp"
2009/04/15 08:52:59| statusIfComplete: Request not yet fully sent "POST http://www.ypyp.com/free_ad_save.asp"
2009/04/15 08:53:09| statusIfComplete: Request not yet fully sent "POST http://www.ypyp.com/free_ad_save.asp"
2009/04/15 08:53:21| statusIfComplete: Request not yet fully sent "POST http://www.ypyp.com/free_ad_save.asp"
2009/04/15 08:53:28| statusIfComplete: Request not yet fully sent "POST http://www.ypyp.com/free_ad_save.asp"
2009/04/15 08:53:43| statusIfComplete: Request not yet fully sent "POST http://www.ypyp.com/free_ad_save.asp"
2009/04/15 08:53:49| statusIfComplete: Request not yet fully sent "POST http://www.ypyp.com/free_ad_save.asp"
2009/04/15 08:53:55| statusIfComplete: Request not yet fully sent "POST http://www.ypyp.com/free_ad_save.asp"
2009/04/15 08:53:55| statusIfComplete: Request not yet fully sent "POST http://www.ypyp.com/free_ad_save.asp"
2009/04/15 08:54:00| statusIfComplete: Request not yet fully sent "POST http://www.ypyp.com/free_ad_save.asp"
2009/04/15 08:54:02| statusIfComplete: Request not yet fully sent "POST http://www.ypyp.com/free_ad_save.asp"
2009/04/15 08:54:03| statusIfComplete: Request not yet fully sent "POST http://www.ypyp.com/free_ad_save.asp"
2009/04/15 08:54:13| statusIfComplete: Request not yet fully sent "POST http://www.ypyp.com/free_ad_save.asp"
2009/04/15 08:54:25| statusIfComplete: Request not yet fully sent "POST http://www.ypyp.com/free_ad_save.asp"
2009/04/15 08:54:39| statusIfComplete: Request not yet fully sent "POST http://www.ypyp.com/free_ad_save.asp"
2009/04/15 08:55:19| statusIfComplete: Request not yet fully sent "POST http://www.ypyp.com/free_ad_save.asp"
2009/04/15 08:55:36| statusIfComplete: Request not yet fully sent "POST http://www.ypyp.com/free_ad_save.asp"
2009/04/15 08:56:11| statusIfComplete: Request not yet fully sent "POST http://www.ypyp.com/free_ad_save.asp"
2009/04/15 08:56:11| statusIfComplete: Request not yet fully sent "POST http://www.ypyp.com/free_ad_save.asp"
2009/04/15 08:56:15| statusIfComplete: Request not yet fully sent "POST http://www.ypyp.com/free_ad_save.asp"
2009/04/15 08:56:18| statusIfComplete: Request not yet fully sent "POST http://www.ypyp.com/free_ad_save.asp"
2009/04/15 08:56:22| statusIfComplete: Request not yet fully sent "POST http://www.ypyp.com/free_ad_save.asp"
2009/04/15 08:56:43| statusIfComplete: Request not yet fully sent "POST http://www.ypyp.com/free_ad_save.asp"
2009/04/15 08:57:14| statusIfComplete: Request not yet fully sent "POST http://www.ypyp.com/free_ad_save.asp"
2009/04/15 08:57:22| statusIfComplete: Request not yet fully sent "POST http://www.ypyp.com/free_ad_save.asp"
2009/04/15 08:57:23| statusIfComplete: Request not yet fully sent "POST http://www.ypyp.com/free_ad_save.asp"
2009/04/15 08:57:24| statusIfComplete: Request not yet fully sent "POST http://www.ypyp.com/free_ad_save.asp"
2009/04/15 08:57:53| statusIfComplete: Request not yet fully sent "POST http://www.ypyp.com/free_ad_save.asp"
2009/04/15 08:57:53| statusIfComplete: Request not yet fully sent "POST http://www.ypyp.com/free_ad_save.asp"
2009/04/15 08:57:57| statusIfComplete: Request not yet fully sent "POST http://www.ypyp.com/free_ad_save.asp"
2009/04/15 08:58:16| statusIfComplete: Request not yet fully sent "POST http://www.ypyp.com/free_ad_save.asp"
2009/04/15 08:58:28| statusIfComplete: Request not yet fully sent "POST http://www.ypyp.com/free_ad_save.asp"
2009/04/15 08:58:34| statusIfComplete: Request not yet fully sent "POST http://www.ypyp.com/free_ad_save.asp"
2009/04/15 08:58:41| statusIfComplete: Request not yet fully sent "POST http://www.ypyp.com/free_ad_save.asp"
2009/04/15 08:58:48| statusIfComplete: Request not yet fully sent "POST http://www.ypyp.com/reg_save.asp"
2009/04/15 08:59:06| statusIfComplete: Request not yet fully sent "POST http://www.ypyp.com/free_ad_save.asp"
2009/04/15 08:59:07| statusIfComplete: Request not yet fully sent "POST http://www.ypyp.com/free_ad_save.asp"
2009/04/15 08:59:28| statusIfComplete: Request not yet fully sent "POST http://www.ypyp.com/free_ad_save.asp"
2009/04/15 08:59:55| statusIfComplete: Request not yet fully sent "POST http://www.ypyp.com/free_ad_save.asp"
2009/04/15 09:00:02| statusIfComplete: Request not yet fully sent "POST http://www.ypyp.com/free_ad_save.asp"
2009/04/15 09:00:07| temporary disabling (Bad Request) digest from 78.190.216.122
2009/04/15 09:00:43| statusIfComplete: Request not yet fully sent "POST http://www.ypyp.com/free_ad_save.asp"
2009/04/15 09:00:47| statusIfComplete: Request not yet fully sent "POST http://www.ypyp.com/free_ad_save.asp"
2009/04/15 09:00:55| statusIfComplete: Request not yet fully sent "POST http://www.ypyp.com/free_ad_save.asp"
2009/04/15 09:00:55| statusIfComplete: Request not yet fully sent "POST http://www.ypyp.com/free_ad_save.asp"
2009/04/15 09:01:07| temporary disabling (Not Found) digest from 78.190.216.122
2009/04/15 09:01:37| statusIfComplete: Request not yet fully sent "POST http://www.ypyp.com/free_ad_save.asp"

設置了
acl durl url_regex free_ad_save.asp
acl durl url_regex reg_save.asp
acl durl url_regex free_ad.asp
http_access deny durl


看著像是這種鏈接post過來多了,有關係.
《解決方案》

光有這些還說明不了什麼
squid crash的時候的cachelog的內容貼出來看看
《解決方案》

13:15 掛了

2009/04/15 13:14:34| statusIfComplete: Request not yet fully sent "POST http://www.ypyp.com/free_ad_save.asp"
2009/04/15 13:14:40| statusIfComplete: Request not yet fully sent "POST http://www.ypyp.com/free_ad_save.asp"
2009/04/15 13:14:50| statusIfComplete: Request not yet fully sent "POST http://www.ypyp.com/free_ad_save.asp"
2009/04/15 13:14:56| statusIfComplete: Request not yet fully sent "POST http://www.ypyp.com/free_ad_save.asp"
2009/04/15 13:15:10| statusIfComplete: Request not yet fully sent "POST http://www.ypyp.com/free_ad_save.asp"
2009/04/15 13:15:30| statusIfComplete: Request not yet fully sent "POST http://www.ypyp.com/free_ad_save.asp"
2009/04/15 13:15:49| statusIfComplete: Request not yet fully sent "POST http://www.ypyp.com/free_ad_save.asp"
2009/04/15 13:15:49| statusIfComplete: Request not yet fully sent "POST http://www.ypyp.com/free_ad_save.asp"
2009/04/15 13:15:50| statusIfComplete: Request not yet fully sent "POST http://www.ypyp.com/free_ad_save.asp"
2009/04/15 13:15:50| assertion failed: store_swapout.cc:317: "mem->swapout.sio == self"
2009/04/15 13:16:50| setMaxFD: Cannot increase: setrlimit() not supported on this system
2009/04/15 13:16:50| Starting Squid Cache version 3.0.STABLE13-BZR for i686-pc-mingw32...
2009/04/15 13:16:50| Running as Squid Windows System Service on Windows Server 2003
2009/04/15 13:16:50| Service command line is:
2009/04/15 13:16:50| Process ID 4876
2009/04/15 13:16:50| With 2048 file descriptors available
2009/04/15 13:16:50| With 2048 CRT stdio descriptors available
2009/04/15 13:16:50| Windows sockets initialized
2009/04/15 13:16:50| Performing DNS Tests...
2009/04/15 13:16:51| Successful DNS name lookup tests...
2009/04/15 13:16:51| DNS Socket created at 0.0.0.0, port 1934, FD 5
2009/04/15 13:16:51| Adding nameserver 202.96.107.27 from Registry
2009/04/15 13:16:51| Adding nameserver 202.96.107.28 from Registry
2009/04/15 13:16:51| Adding domain  from Registry
2009/04/15 13:16:51| User-Agent logging is disabled.
2009/04/15 13:16:51| Referer logging is disabled.
2009/04/15 13:16:51| Unlinkd pipe opened on FD 8
2009/04/15 13:16:51| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2009/04/15 13:16:51| Store logging disabled
2009/04/15 13:16:51| Swap maxSize 102400 KB, estimated 7876 objects
2009/04/15 13:16:51| Target number of buckets: 393
2009/04/15 13:16:51| Using 8192 Store buckets
2009/04/15 13:16:51| Max Mem  size: 1048576 KB
2009/04/15 13:16:51| Max Swap size: 102400 KB
2009/04/15 13:16:51| Version 1 of swap file with LFS support detected...
2009/04/15 13:16:51| Rebuilding storage in c:/squid/var/cache (DIRTY)
2009/04/15 13:16:51| Using Least Load store dir selection
2009/04/15 13:16:51| Set Current Directory to c:/squid/var/cache
2009/04/15 13:16:52| Loaded Icons.
2009/04/15 13:16:52| Accepting accelerated HTTP connections at 0.0.0.0, port 80, FD 13.
2009/04/15 13:16:52| Accepting  HTTP connections at 0.0.0.0, port 3128, FD 14.
2009/04/15 13:16:52| Accepting ICP messages at 0.0.0.0, port 3130, FD 15.
2009/04/15 13:16:52| HTCP Disabled.
2009/04/15 13:16:52| Configuring Parent 75.190.216.122/70/0
2009/04/15 13:16:52| Configuring Parent 75.190.216.122/8282/0
2009/04/15 13:16:52| Configuring Parent 75.190.216.122/8181/0
2009/04/15 13:16:52| Ready to serve requests.
2009/04/15 13:16:52| Done reading c:/squid/var/cache swaplog (139 entries)
2009/04/15 13:16:52| Finished rebuilding storage from disk.
2009/04/15 13:16:52|        94 Entries scanned
2009/04/15 13:16:52|         0 Invalid entries.
2009/04/15 13:16:52|         0 With invalid flags.
2009/04/15 13:16:52|        49 Objects loaded.
2009/04/15 13:16:52|         0 Objects expired.
2009/04/15 13:16:52|        45 Objects cancelled.
2009/04/15 13:16:52|         0 Duplicate URLs purged.
2009/04/15 13:16:52|         0 Swapfile clashes avoided.
2009/04/15 13:16:52|   Took 0.06 seconds (784.00 objects/sec).
2009/04/15 13:16:52| Beginning Validation Procedure
2009/04/15 13:16:52|   Completed Validation Procedure
2009/04/15 13:16:52|   Validated 123 Entries
2009/04/15 13:16:52|   store_swap_size = 14384
2009/04/15 13:16:52| temporary disabling (Bad Request) digest from 75.190.216.122
2009/04/15 13:16:52| storeLateRelease: released 0 objects

[ 本帖最後由 JGAME 於 2009-4-15 13:42 編輯 ]
《解決方案》

2009/04/15 13:15:50| assertion failed: store_swapout.cc:317: "mem->swapout.sio == self"
2009/04/15 13:16:50| setMaxFD: Cannot increase: setrlimit() not supported on this system
沒有看到其他crash的東西
你的文件描述符只有2048嗎??
《解決方案》

是的,沒看到其他了.


是2048

[ 本帖最後由 JGAME 於 2009-4-16 14:25 編輯 ]
《解決方案》

你試著把文件描述符增加些,先試試吧
《解決方案》

#防止被人利用為HTTP代理,設置允許訪問的IP地址
acl myip dst 75.190.216.122
http_access deny !myip

增加了這項,有一點點改善. 還是一天要當幾次.

2009/04/24 06:01:36| assertion failed: store_swapout.cc:317: "mem->swapout.sio == self"
2009/04/24 06:02:36| setMaxFD: Cannot increase: setrlimit() not supported on this system



2009/04/24 06:02:36| With 2048 file descriptors available
2009/04/24 06:02:36| With 2048 CRT stdio descriptors available

改描述符大小是不是得重新編譯squdi ?
我嘗試去編譯一下.
《解決方案》

很明顯的,就是File Descriptor的問題,只有2048個不夠,再加上你的內網有人中了廣告木馬,所以你的squid撐不住了。

自己去搜索一下如何調高window底下的squid的File Descriptor的文章吧。

簽名
---
不過,根據樓主對squid及操作系統的知識掌握,我看很難

簽名
---
我看樓主還是改用linux來跑squid吧

簽名
---
這個版面上60%的問題都是File Descriptor不夠的問題,真厭倦
《解決方案》

嗯嗯..
《解決方案》

windows上跑開源軟體,會有好果子吃嗎?
而且大材小用了。
建議改linux

[火星人 ] Squid 服務意外地終止已經有853次圍觀

http://coctec.com/docs/service/show-post-22705.html