The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]

форумы  помощь  поиск  регистрация  майллист  вход/выход  слежка  RSS
"Падает Squid"
Вариант для распечатки  
Пред. тема | След. тема 
Форум Настройка Squid и других прокси серверов (Squid)
Изначальное сообщение [ Отслеживать ]

"Падает Squid"  +/
Сообщение от Сергей email(??) on 03-Авг-11, 12:05 
Всем доброго времени суток. Помогите решить проблему: после долголетней безупречной работы начал падать squid без всяких объяснений причин (по крайней мере непонятных для меня).
Повторный старт  squid приводит к его остановке через минуту.
На следующее утро (6:00) squid запускается с полуоборота.
Как лечить проблему? Как узнать почему падает squid ?
Кусок cache.log:
2011/08/02 18:25:47| Starting Squid Cache version 2.6.STABLE5 for i686-pc-linux-gnu...
2011/08/02 18:25:47| Process ID 14909
2011/08/02 18:25:47| With 4096 file descriptors available
2011/08/02 18:25:47| Using epoll for the IO loop
2011/08/02 18:25:47| DNS Socket created at 0.0.0.0, port 44209, FD 6
2011/08/02 18:25:47| Adding nameserver х.х.х.х from /etc/resolv.conf
2011/08/02 18:25:47| Adding nameserver х.х.х.х from /etc/resolv.conf
2011/08/02 18:25:47| Adding nameserver х.х.х.х from /etc/resolv.conf
2011/08/02 18:25:47| Adding nameserver х.х.х.х from /etc/resolv.conf
2011/08/02 18:25:47| Adding domain x.x from /etc/resolv.conf
2011/08/02 18:25:47| User-Agent logging is disabled.
2011/08/02 18:25:47| Referer logging is disabled.
2011/08/02 18:25:47| Unlinkd pipe opened on FD 11
2011/08/02 18:25:47| Swap maxSize 0 KB, estimated 0 objects
2011/08/02 18:25:47| Target number of buckets: 0
2011/08/02 18:25:47| Using 8192 Store buckets
2011/08/02 18:25:47| Max Mem  size: 8192 KB
2011/08/02 18:25:47| Max Swap size: 0 KB
2011/08/02 18:25:47| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2011/08/02 18:25:47| Using Least Load store dir selection
2011/08/02 18:25:47| Set Current Directory to /var/cache/squid
2011/08/02 18:25:47| Loaded Icons.
2011/08/02 18:25:47| Accepting proxy HTTP connections at 0.0.0.0, port 3128, FD 10.
2011/08/02 18:25:47| Accepting ICP messages at 0.0.0.0, port 3130, FD 12.
2011/08/02 18:25:47| HTCP Disabled.
2011/08/02 18:25:47| Accepting SNMP messages on port 3401, FD 13.
2011/08/02 18:25:47| WCCP Disabled.
2011/08/02 18:25:47| Pinger socket opened on FD 14
2011/08/02 18:25:47| Ready to serve requests.
2011/08/02 18:25:47| Finished rebuilding storage from disk.
2011/08/02 18:25:47|         0 Entries scanned
2011/08/02 18:25:47|         0 Invalid entries.
2011/08/02 18:25:47|         0 With invalid flags.
2011/08/02 18:25:47|         0 Objects loaded.
2011/08/02 18:25:47|         0 Objects expired.
2011/08/02 18:25:47|         0 Objects cancelled.
2011/08/02 18:25:47|         0 Duplicate URLs purged.
2011/08/02 18:25:47|         0 Swapfile clashes avoided.
2011/08/02 18:25:47|   Took 0.3 seconds (   0.0 objects/sec).
2011/08/02 18:25:47| Beginning Validation Procedure
2011/08/02 18:25:47|   Completed Validation Procedure
2011/08/02 18:25:47|   Validated 0 Entries
2011/08/02 18:25:47|   store_swap_size = 0k
2011/08/02 18:25:48| storeLateRelease: released 0 objects
2011/08/02 18:25:48| icmpSend: send: (111) Connection refused
2011/08/02 18:25:48| Closing Pinger socket on FD 14
конец лога
Ответить | Правка | Cообщить модератору

Оглавление

Сообщения по теме [Сортировка по времени | RSS]


1. "Падает Squid"  +/
Сообщение от Golub Mikhail (ok) on 03-Авг-11, 13:26 
> Всем доброго времени суток. Помогите решить проблему: после долголетней безупречной работы
> начал падать squid без всяких объяснений причин (по крайней мере непонятных
> для меня).
> Повторный старт  squid приводит к его остановке через минуту.
> На следующее утро (6:00) squid запускается с полуоборота.
> Как лечить проблему? Как узнать почему падает squid ?
> Кусок cache.log:
> 2011/08/02 18:25:47| Starting Squid Cache version 2.6.STABLE5 for i686-pc-linux-gnu...
> 2011/08/02 18:25:47| Process ID 14909
> 2011/08/02 18:25:47| With 4096 file descriptors available

А что в логе до "Starting Squid"? Т.е. когда он упал.
Что в это время в messages?


Ответить | Правка | ^ к родителю #0 | Наверх | Cообщить модератору

2. "Падает Squid"  +/
Сообщение от lyova email(ok) on 03-Авг-11, 15:58 
> А что в логе до "Starting Squid"? Т.е. когда он упал.

2011/08/02 15:47:57| Failed to parse request headers: http://activate2.pdfcreator-toolbar.org/toolbar/activate.php
POST http://activate2.pdfcreator-toolbar.org/toolbar/activate.php HTTP/1.0
Accept: */*
Content-Type: application/x-www-form-urlencoded
2011/08/02 15:58:11| urlParse: Illegal hostname '.radar.imgsmail.ru'
2011/08/02 15:58:12| urlParse: Illegal hostname '.radar.imgsmail.ru'
2011/08/02 15:59:36| httpReadReply: Excess data from "HEAD http://prom.ua/"
2011/08/02 16:00:50| parseHttpRequest: Requestheader contains NULL characters
2011/08/02 16:00:50| Failed to parse request headers: http://activate.pdfcreator-toolbar.org/toolbar/activate.php
POST http://activate.pdfcreator-toolbar.org/toolbar/activate.php HTTP/1.0
Accept: */*
Content-Type: application/x-www-form-urlencoded
2011/08/02 16:00:50| parseHttpRequest: Requestheader contains NULL characters
2011/08/02 16:00:50| Failed to parse request headers: http://activate2.pdfcreator-toolbar.org/toolbar/activate.php
POST http://activate2.pdfcreator-toolbar.org/toolbar/activate.php HTTP/1.0
Accept: */*
Content-Type: application/x-www-form-urlencoded
2011/08/02 16:05:32| parseHttpRequest: Requestheader contains NULL characters
2011/08/02 16:05:32| Failed to parse request headers: http://activate.alcohol52-toolbar.com/toolbar/activate.php
POST http://activate.alcohol52-toolbar.com/toolbar/activate.php HTTP/1.0
Accept: */*
Content-Type: application/x-www-form-urlencoded
2011/08/02 16:05:32| parseHttpRequest: Requestheader contains NULL characters
2011/08/02 16:05:32| Failed to parse request headers: http://activate.alcohol52-toolbar.com/toolbar/activate.php
POST http://activate.alcohol52-toolbar.com/toolbar/activate.php HTTP/1.0
Accept: */*
Content-Type: application/x-www-form-urlencoded
2011/08/02 16:05:32| parseHttpRequest: Requestheader contains NULL characters
2011/08/02 16:05:32| Failed to parse request headers: http://activate2.alcohol52-toolbar.com/toolbar/activate.php
POST http://activate2.alcohol52-toolbar.com/toolbar/activate.php HTTP/1.0
Accept: */*
Content-Type: application/x-www-form-urlencoded
2011/08/02 16:08:02| httpReadReply: Excess data from "GET http://www.galopom.com.ua/"
2011/08/02 16:08:11| httpReadReply: Excess data from "GET http://www.galopom.com.ua/Tour/Egipet/"
2011/08/02 16:08:15| ctx: enter level  0: 'http://93.78.195.91/din.aspx?s=10000134&m=fast&id=795785935&...'
2011/08/02 16:08:15| WARNING: unparseable HTTP header field {HTTP/1.0 400 Bad Request}
2011/08/02 16:08:15| ctx: exit level  0
2011/08/02 16:08:15| WARNING: unparseable HTTP header field {HTTP/1.0 400 Bad Request}
2011/08/02 16:08:17| httpReadReply: Excess data from "GET http://www.galopom.com.ua/Tour/Egipet/Sharm_El_Shejh/?"
2011/08/02 16:20:23| Reconfiguring Squid Cache (version 2.6.STABLE5)...
2011/08/02 16:20:23| FD 10 Closing HTTP connection
2011/08/02 16:20:23| FD 12 Closing ICP connection
2011/08/02 16:20:23| FD 13 Closing SNMP socket
2011/08/02 16:20:23| Initialising SSL.
2011/08/02 16:20:23| User-Agent logging is disabled.
2011/08/02 16:20:23| Referer logging is disabled.
2011/08/02 16:20:23| DNS Socket created at 0.0.0.0, port 39889, FD 9
2011/08/02 16:20:23| Adding nameserver х.х.х.х from /etc/resolv.conf
2011/08/02 16:20:23| Adding nameserver х.х.х.х from /etc/resolv.conf
2011/08/02 16:20:23| Adding nameserver х.х.х.х from /etc/resolv.conf
2011/08/02 16:20:23| Adding nameserver х.х.х.х from /etc/resolv.conf
2011/08/02 16:20:23| Adding domain ххх from /etc/resolv.conf
2011/08/02 16:20:23| Accepting proxy HTTP connections at 0.0.0.0, port 3128, FD 10.
2011/08/02 16:20:23| Accepting ICP messages at 0.0.0.0, port 3130, FD 12.
2011/08/02 16:20:23| HTCP Disabled.
2011/08/02 16:20:23| Accepting SNMP messages on port 3401, FD 13.
2011/08/02 16:20:23| WCCP Disabled.
2011/08/02 16:20:23| Pinger socket opened on FD 115
2011/08/02 16:20:23| Loaded Icons.
2011/08/02 16:20:23| Ready to serve requests.
2011/08/02 16:20:24| icmpSend: send: (111) Connection refused
2011/08/02 16:20:24| Closing Pinger socket on FD 115
2011/08/02 16:27:13| storeLocateVary: Not our vary marker object, F564C9DFBAF28A21B14CC4C4760CD35D = 'http://www.pesiki.com/main.css', 'host="www.pesiki.com"
'/'-'
2011/08/02 16:27:17| storeLocateVary: Not our vary marker object, F564C9DFBAF28A21B14CC4C4760CD35D = 'http://www.pesiki.com/main.css', 'host="www.pesiki.com"
'/'-'
2011/08/02 16:29:02| parseHttpRequest: Requestheader contains NULL characters
2011/08/02 16:29:02| Failed to parse request headers: http://activate.pdfcreator-toolbar.org/toolbar/activate.php
POST http://activate.pdfcreator-toolbar.org/toolbar/activate.php HTTP/1.0
Accept: */*
Content-Type: application/x-www-form-urlencoded
2011/08/02 16:29:02| parseHttpRequest: Requestheader contains NULL characters
2011/08/02 16:29:02| Failed to parse request headers: http://activate2.pdfcreator-toolbar.org/toolbar/activate.php
POST http://activate2.pdfcreator-toolbar.org/toolbar/activate.php HTTP/1.0
Accept: */*
Content-Type: application/x-www-form-urlencoded
2011/08/02 16:29:23| Reconfiguring Squid Cache (version 2.6.STABLE5)...
2011/08/02 16:29:23| FD 10 Closing HTTP connection
2011/08/02 16:29:23| FD 12 Closing ICP connection
2011/08/02 16:29:23| FD 13 Closing SNMP socket
2011/08/02 16:29:23| Initialising SSL.
2011/08/02 16:29:23| User-Agent logging is disabled.
2011/08/02 16:29:23| Referer logging is disabled.
2011/08/02 16:29:23| DNS Socket created at 0.0.0.0, port 40235, FD 9
2011/08/02 16:29:23| Adding nameserver х.х.х.х from /etc/resolv.conf
2011/08/02 16:29:23| Adding nameserver х.х.х.х from /etc/resolv.conf
2011/08/02 16:29:23| Adding nameserver х.х.х.х from /etc/resolv.conf
2011/08/02 16:29:23| Adding nameserver х.х.х.х from /etc/resolv.conf
2011/08/02 16:29:23| Adding domain xxx from /etc/resolv.conf
2011/08/02 16:29:23| Accepting proxy HTTP connections at 0.0.0.0, port 3128, FD 10.
2011/08/02 16:29:23| Accepting ICP messages at 0.0.0.0, port 3130, FD 12.
2011/08/02 16:29:23| HTCP Disabled.
2011/08/02 16:29:23| Accepting SNMP messages on port 3401, FD 13.
2011/08/02 16:29:23| WCCP Disabled.
2011/08/02 16:29:23| Pinger socket opened on FD 213
2011/08/02 16:29:23| Loaded Icons.
2011/08/02 16:29:23| Ready to serve requests.
2011/08/02 16:29:23| icmpSend: send: (111) Connection refused
2011/08/02 16:29:23| Closing Pinger socket on FD 213
2011/08/02 16:37:44| httpReadReply: Excess data from "HEAD http://prom.ua/"
2011/08/02 16:44:07| parseHttpRequest: Requestheader contains NULL characters
2011/08/02 16:44:07| Failed to parse request headers: http://img.readme.ru/news/90/d1/bf/a21fa8fc97e93b1a24497f204...
GET http://img.readme.ru/news/90/d1/bf/a21fa8fc97e93b1a24497f204... HTTP/1.1
302
2011/08/02 16:46:04| storeDirWriteCleanLogs: Starting...
2011/08/02 16:46:04|   Finished.  Wrote 0 entries.
2011/08/02 16:46:04|   Took 0.0 seconds (   0.0 entries/sec).
FATAL: logfileWrite: /var/log/squid/store.log: (0) Success

Squid Cache (Version 2.6.STABLE5): Terminated abnormally.
(squid)[0x800aaaa5]
(squid)(fatal+0x2b)[0x800aaf6b]
(squid)(fatalf+0x56)[0x800ab376]
(squid)[0x80074c41]
(squid)(logfilePrintf+0x72)[0x80074e22]
(squid)(storeLog+0x165)[0x800a6c55]
(squid)(storeSwapOut+0x7fa)[0x800a8cfa]
(squid)(storeAppend+0x1cb)[0x8009ef7b]
(squid)[0x8006533c]
(squid)(comm_select+0x6b7)[0x80042d57]
(squid)(main+0x808)[0x80076ed8]
/lib/libc.so.6(__libc_start_main+0xdc)[0xb7c5bf9c]
(squid)[0x80013181]
CPU Usage: 2365.552 seconds = 859.122 user + 1506.430 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 4
Memory usage for squid via mallinfo():
        total space in arena:   56744 KB
        Ordinary blocks:        28101 KB   2726 blks
        Small blocks:               0 KB      0 blks
        Holding blocks:           948 KB      1 blks
        Free Small blocks:          0 KB
        Free Ordinary blocks:   28642 KB
        Total in use:           29049 KB 50%
        Total free:             28642 KB 50%

> Что в это время в messages?

Aug  2 18:25:42 shark arpwatch: bogon 172.31.17.1 0:30:da:0:11:1
Aug  2 18:25:43 shark squid[14832]: storeLateRelease: released 0 objects
Aug  2 18:25:43 shark squid[14832]: icmpSend: send: (111) Connection refused
Aug  2 18:25:43 shark squid[14832]: Closing Pinger socket on FD 14
Aug  2 18:25:44 shark squid[14650]: Squid Parent: child process 14832 exited due to signal 25
Aug  2 18:25:47 shark squid[14650]: Squid Parent: child process 14909 started
Aug  2 18:25:47 shark squid[14909]: Starting Squid Cache version 2.6.STABLE5 for i686-pc-linux-gnu...
Aug  2 18:25:47 shark squid[14909]: Process ID 14909
Aug  2 18:25:47 shark squid[14909]: With 4096 file descriptors available
Aug  2 18:25:47 shark squid[14909]: Using epoll for the IO loop
Aug  2 18:25:47 shark squid[14909]: DNS Socket created at 0.0.0.0, port 44209, FD 6
Aug  2 18:25:47 shark squid[14909]: Adding nameserver x.x.x.x from /etc/resolv.conf
Aug  2 18:25:47 shark squid[14909]: Adding nameserver x.x.x.x from /etc/resolv.conf
Aug  2 18:25:47 shark squid[14909]: Adding nameserver x.x.x.x from /etc/resolv.conf
Aug  2 18:25:47 shark squid[14909]: Adding nameserver x.x.x.x from /etc/resolv.conf
Aug  2 18:25:47 shark squid[14909]: Adding domain x.x.x.x from /etc/resolv.conf
Aug  2 18:25:47 shark squid[14909]: User-Agent logging is disabled.
Aug  2 18:25:47 shark squid[14909]: Referer logging is disabled.
Aug  2 18:25:47 shark squid[14909]: Unlinkd pipe opened on FD 11
Aug  2 18:25:47 shark squid[14909]: Swap maxSize 0 KB, estimated 0 objects
Aug  2 18:25:47 shark squid[14909]: Target number of buckets: 0
Aug  2 18:25:47 shark squid[14909]: Using 8192 Store buckets
Aug  2 18:25:47 shark squid[14909]: Max Mem  size: 8192 KB
Aug  2 18:25:47 shark squid[14909]: Max Swap size: 0 KB
Aug  2 18:25:47 shark squid[14909]: Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
Aug  2 18:25:47 shark squid[14909]: Using Least Load store dir selection
Aug  2 18:25:47 shark squid[14909]: Set Current Directory to /var/cache/squid
Aug  2 18:25:47 shark squid[14909]: Loaded Icons.
Aug  2 18:25:47 shark squid[14909]: Accepting proxy HTTP connections at 0.0.0.0, port 3128, FD 10.
Aug  2 18:25:47 shark squid[14909]: Accepting ICP messages at 0.0.0.0, port 3130, FD 12.
Aug  2 18:25:47 shark squid[14909]: HTCP Disabled.
Aug  2 18:25:47 shark squid[14909]: Accepting SNMP messages on port 3401, FD 13.
Aug  2 18:25:47 shark squid[14909]: WCCP Disabled.
Aug  2 18:25:47 shark squid[14909]: Pinger socket opened on FD 14
Aug  2 18:25:47 shark squid[14909]: Ready to serve requests.
Aug  2 18:25:47 shark squid[14909]: Finished rebuilding storage from disk.
Aug  2 18:25:47 shark squid[14909]:         0 Entries scanned
Aug  2 18:25:47 shark squid[14909]:         0 Invalid entries.
Aug  2 18:25:47 shark squid[14909]:         0 With invalid flags.
Aug  2 18:25:47 shark squid[14909]:         0 Objects loaded.
Aug  2 18:25:47 shark squid[14909]:         0 Objects expired.
Aug  2 18:25:47 shark squid[14909]:         0 Objects cancelled.
Aug  2 18:25:47 shark squid[14909]:         0 Duplicate URLs purged.
Aug  2 18:25:47 shark squid[14909]:         0 Swapfile clashes avoided.
Aug  2 18:25:47 shark squid[14909]:   Took 0.3 seconds (   0.0 objects/sec).
Aug  2 18:25:47 shark squid[14909]: Beginning Validation Procedure
Aug  2 18:25:47 shark squid[14909]:   Completed Validation Procedure
Aug  2 18:25:47 shark squid[14909]:   Validated 0 Entries
Aug  2 18:25:47 shark squid[14909]:   store_swap_size = 0k
Aug  2 18:25:48 shark squid[14909]: storeLateRelease: released 0 objects
Aug  2 18:25:48 shark squid[14909]: icmpSend: send: (111) Connection refused
Aug  2 18:25:48 shark squid[14909]: Closing Pinger socket on FD 14
Aug  2 18:25:48 shark squid[14650]: Squid Parent: child process 14909 exited due to signal 25
Aug  2 18:25:48 shark squid[14650]: Exiting due to repeated, frequent failures
Aug  2 18:25:51 shark arpwatch: bogon 172.31.17.1 0:30:da:0:11:1
Aug  2 18:26:08 shark named[2327]: unexpected RCODE (SERVFAIL) resolving '115.12.165.113.in-addr.arpa/PTR/IN': 203.162.4.1#53
Aug  2 18:26:12 shark arpwatch: bogon 172.31.17.1 0:30:da:0:11:1
Aug  2 18:26:21 shark arpwatch: bogon 172.31.17.1 0:30:da:0:11:1

Ответить | Правка | ^ к родителю #1 | Наверх | Cообщить модератору

3. "Падает Squid"  +/
Сообщение от reader (ok) on 03-Авг-11, 21:25 
squid без кэша работает?
что с местом на разделе с логами?
Ответить | Правка | ^ к родителю #2 | Наверх | Cообщить модератору

4. "Падает Squid"  +/
Сообщение от lyova email(ok) on 04-Авг-11, 09:11 
> squid без кэша работает?

работает без кэша
> что с местом на разделе с логами?

хватает, свободно 30% раздела
правда load average пляшет от 1 до 30

Ответить | Правка | ^ к родителю #3 | Наверх | Cообщить модератору

5. "Падает Squid"  +/
Сообщение от Golub Mikhail (ok) on 04-Авг-11, 13:40 
>> А что в логе до "Starting Squid"? Т.е. когда он упал.

"FATAL: logfileWrite: /var/log/squid/store.log: (0) Success" - почему FATAL, не разбирались?
Вам вообще store.log нужен?

Ответить | Правка | ^ к родителю #2 | Наверх | Cообщить модератору

6. "Падает Squid"  +/
Сообщение от lyova email(ok) on 04-Авг-11, 16:47 
>>> А что в логе до "Starting Squid"? Т.е. когда он упал.
> "FATAL: logfileWrite: /var/log/squid/store.log: (0) Success" - почему FATAL, не разбирались?

нет не разбирались. а как разобраться ?

> Вам вообще store.log нужен?

нет не нужен

Ответить | Правка | ^ к родителю #5 | Наверх | Cообщить модератору

7. "Падает Squid"  +/
Сообщение от Golub Mikhail (ok) on 04-Авг-11, 18:57 
>>>> А что в логе до "Starting Squid"? Т.е. когда он упал.
>> "FATAL: logfileWrite: /var/log/squid/store.log: (0) Success" - почему FATAL, не разбирались?
> нет не разбирались. а как разобраться ?

Google, например.

>> Вам вообще store.log нужен?
> нет не нужен

Так отключите.

Ответить | Правка | ^ к родителю #6 | Наверх | Cообщить модератору

Архив | Удалить

Рекомендовать для помещения в FAQ | Индекс форумов | Темы | Пред. тема | След. тема




Партнёры:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2024 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру