Страница 1 из 1

Почему не работает режик?

Добавлено: Сб окт 23, 2004 14:55
BigHarry
Почему может не работать редиректор?
Вот что пишет в логи умирающий от режика сквид:
============= cache.log =====================
2004/10/23 14:41:21| Starting Squid Cache version 2.5.STABLE7 for i386-unknown-freebsd4.10...
2004/10/23 14:41:21| helperOpenServers: Starting 5 'redirector' processes
2004/10/23 14:41:22| storeLateRelease: released 0 objects
2004/10/23 14:41:26| helperHandleRead: FD 6 read: (54) Connection reset by peer
2004/10/23 14:41:26| WARNING: redirector #1 (FD 6) exited
2004/10/23 14:41:26| helperHandleRead: FD 7 read: (54) Connection reset by peer
2004/10/23 14:41:26| WARNING: redirector #2 (FD 7) exited
2004/10/23 14:41:26| helperHandleRead: FD 8 read: (54) Connection reset by peer
2004/10/23 14:41:26| WARNING: redirector #3 (FD 8) exited
2004/10/23 14:41:26| Too few redirector processes are running2004/10/23 14:41:26| storeDirWriteCleanLogs: Starting...
2004/10/23 14:41:26| WARNING: Closing open FD 16
2004/10/23 14:41:27| Finished. Wrote 6 entries.
2004/10/23 14:41:27| Took 0.1 seconds ( 54.3 entries/sec).
FATAL: The redirector helpers are crashing too rapidly, need help!
==========================================
При этом редиректор логов никаких не создает !
Если его запустить через check-redirector, то логи создаются и вроде
все нормально:
============ redirector.err =======================
2004-10-23 14:30:34 [5012] Run make-cache
2004-10-23 14:30:34 [5012] Make-cache finished
2004-10-23 14:30:34 [5012] Load 662 rules from /usr/squid/rejik3/banlists/ban/urls.cache
2004-10-23 14:30:34 [5012] Load 11 pattern from BANNER pcre
2004-10-23 14:30:34 [5012] Load 22283 rules from /usr/squid/rejik3/banlists/porno/urls.cache
2004-10-23 14:30:34 [5012] Load 2 rules from /usr/squid/rejik3/banlists/badfile/urls.cache
2004-10-23 14:30:34 [5012] Load 16 pattern from BADFILE pcre
2004-10-23 14:30:34 [5012] Redirector start and working
=============================================
============ redirector.log ========================
2004-10-23 14:30:34 PORNO: 127.0.0.1 - http://sex.ru (urls rule: sex.ru)
=============================================
Версия редиректора - последняя бэта - только вчера выкачал и установил.
set-permissions - тоже делал - все права установлены правильно.
В чем может быть причина?

Добавлено: Пн окт 25, 2004 7:43
Slava
Попробуйте запустить сквид в дебаг режиме и посмотреть, что происходит.

Добавлено: Пн окт 25, 2004 11:04
BigHarry
Запускаю сквид так:
squid -sDXN
В текущую консоль он выводит кучу сообщений - как он там парсит конфиг, тестит DNS-ы (хм...) - и все.
Потом кады попадается страница с вражескими банерами - то в консоль пишется Abort - и все - сквид умирает.
В сислог пишет следующее:
========================================
helperHandleRead: FD 6 read: (54) Connection reset by peer
Oct 25 10:48:52 alpha squid[14000]: WARNING: redirector #2 (FD 6) exited
Oct 25 10:48:54 alpha squid[14000]: helperHandleRead: FD 7 read: (54) Connection reset by peer
Oct 25 10:48:54 alpha squid[14000]: WARNING: redirector #3 (FD 7) exited
Oct 25 10:48:54 alpha squid[14000]: Too few redirector processes are running
Oct 25 10:48:54 alpha squid[14000]: Starting new helpers
Oct 25 10:48:54 alpha squid[14000]: helperOpenServers: Starting 5 'redirector' processes
Oct 25 10:49:05 alpha squid[14000]: helperHandleRead: FD 8 read: (54) Connection reset by peer
Oct 25 10:49:05 alpha squid[14000]: WARNING: redirector #4 (FD 8) exited
Oct 25 10:49:06 alpha squid[14000]: helperHandleRead: FD 9 read: (54) Connection reset by peer
Oct 25 10:49:06 alpha squid[14000]: WARNING: redirector #5 (FD 9) exited
Oct 25 10:49:07 alpha squid[14000]: helperHandleRead: FD 18 read: (54) Connection reset by peer
Oct 25 10:49:07 alpha squid[14000]: WARNING: redirector #1 (FD 18) exited
Oct 25 10:49:07 alpha squid[14000]: helperHandleRead: FD 19 read: (54) Connection reset by peer
Oct 25 10:49:07 alpha squid[14000]: WARNING: redirector #2 (FD 19) exited
Oct 25 10:49:07 alpha squid[14000]: helperHandleRead: FD 20 read: (54) Connection reset by peer
Oct 25 10:49:07 alpha squid[14000]: WARNING: redirector #3 (FD 20) exited
Oct 25 10:49:07 alpha squid[14000]: Too few redirector processes are running
Oct 25 10:49:07 alpha squid[14000]: storeDirWriteCleanLogs: Starting...
Oct 25 10:49:07 alpha squid[14000]: WARNING: Closing open FD 14
Oct 25 10:49:07 alpha squid[14000]: Finished. Wrote 6 entries.
Oct 25 10:49:07 alpha squid[14000]: Took 0.0 seconds (1576.0 entries/sec).
Oct 25 10:49:07 alpha squid[14000]: The redirector helpers are crashing too rapidly, need help!
Oct 25 10:49:07 alpha /kernel: pid 14000 (squid), uid 1008: exited on signal 6
========================================
Логи редиректора не создаются. Создал вручную файлы логов - но режик их игнорирует, и ничего туда не добавляет.
Версия Сквида - 2.5 STABLE-7
Запускается под юзером squid:nogroup

Добавлено: Пн окт 25, 2004 11:09
Slava
Попробуйте запустить так squid -d 9

Добавлено: Пн окт 25, 2004 11:29
BigHarry
Запустил, вот что он выдал в cache log (я засылаю этот лог полностью):
============================================
2004/10/25 11:17:02| Starting Squid Cache version 2.5.STABLE7 for i386-unknown-freebsd4.10...
2004/10/25 11:17:02| Process ID 14346
2004/10/25 11:17:02| With 7296 file descriptors available
2004/10/25 11:17:02| Performing DNS Tests...
2004/10/25 11:17:02| Successful DNS name lookup tests...
2004/10/25 11:17:02| DNS Socket created at 192.168.0.115, port 1364, FD 4
2004/10/25 11:17:02| Adding nameserver 192.168.0.117 from squid.conf
2004/10/25 11:17:02| Adding nameserver 192.168.0.1 from squid.conf
2004/10/25 11:17:02| helperOpenServers: Starting 5 'redirector' processes
2004/10/25 11:17:02| WARNING: Cannot run '/usr/squid/rejik3/redirector' process.
2004/10/25 11:17:02| WARNING: Cannot run '/usr/squid/rejik3/redirector' process.
2004/10/25 11:17:02| WARNING: Cannot run '/usr/squid/rejik3/redirector' process.
2004/10/25 11:17:02| WARNING: Cannot run '/usr/squid/rejik3/redirector' process.
2004/10/25 11:17:02| WARNING: Cannot run '/usr/squid/rejik3/redirector' process.
2004/10/25 11:17:02| Unlinkd pipe opened on FD 9
2004/10/25 11:17:02| Swap maxSize 102400 KB, estimated 7876 objects
2004/10/25 11:17:02| Target number of buckets: 393
2004/10/25 11:17:02| Using 8192 Store buckets
2004/10/25 11:17:02| Max Mem size: 8192 KB
2004/10/25 11:17:02| Max Swap size: 102400 KB
2004/10/25 11:17:02| Rebuilding storage in /usr/squid/var/cache (CLEAN)
2004/10/25 11:17:02| Using Least Load store dir selection
2004/10/25 11:17:02| Set Current Directory to /usr/squid/var/logs
2004/10/25 11:17:02| Loaded Icons.
2004/10/25 11:17:03| Accepting HTTP connections at 192.168.0.115, port 3180, FD 11.
2004/10/25 11:17:03| Accepting HTTP connections at 192.168.1.100, port 3180, FD 12.
2004/10/25 11:17:03| WCCP Disabled.
2004/10/25 11:17:03| Ready to serve requests.
2004/10/25 11:17:03| Done reading /usr/squid/var/cache swaplog (6 entries)
2004/10/25 11:17:03| Finished rebuilding storage from disk.
2004/10/25 11:17:03| 6 Entries scanned
2004/10/25 11:17:03| 0 Invalid entries.
2004/10/25 11:17:03| 0 With invalid flags.
2004/10/25 11:17:03| 6 Objects loaded.
2004/10/25 11:17:03| 0 Objects expired.
2004/10/25 11:17:03| 0 Objects cancelled.
2004/10/25 11:17:03| 0 Duplicate URLs purged.
2004/10/25 11:17:03| 0 Swapfile clashes avoided.
2004/10/25 11:17:03| Took 0.3 seconds ( 19.6 objects/sec).
2004/10/25 11:17:03| Beginning Validation Procedure
2004/10/25 11:17:03| Completed Validation Procedure
2004/10/25 11:17:03| Validated 6 Entries
2004/10/25 11:17:03| store_swap_size = 56k
2004/10/25 11:17:03| storeLateRelease: released 0 objects
2004/10/25 11:17:29| WARNING: All redirector processes are busy.
2004/10/25 11:17:29| WARNING: up to 1 pending requests queued
2004/10/25 11:17:29| storeDirWriteCleanLogs: Starting...
2004/10/25 11:17:29| WARNING: Closing open FD 11
2004/10/25 11:17:29| Finished. Wrote 6 entries.
2004/10/25 11:17:29| Took 0.0 seconds ( 210.2 entries/sec).
FATAL: Too many queued redirector requests (1 on 0)
Squid Cache (Version 2.5.STABLE7): Terminated abnormally.
CPU Usage: 0.078 seconds = 0.063 user + 0.016 sys
Maximum Resident Size: 6440 KB
Page faults with physical i/o: 0
2004/10/25 11:17:32| Starting Squid Cache version 2.5.STABLE7 for i386-unknown-freebsd4.10...
2004/10/25 11:17:32| Process ID 14355
2004/10/25 11:17:32| With 7296 file descriptors available
2004/10/25 11:17:32| Performing DNS Tests...
2004/10/25 11:17:32| Successful DNS name lookup tests...
2004/10/25 11:17:32| DNS Socket created at 192.168.0.115, port 4802, FD 4
2004/10/25 11:17:32| Adding nameserver 192.168.0.117 from squid.conf
2004/10/25 11:17:32| Adding nameserver 192.168.0.1 from squid.conf
2004/10/25 11:17:32| helperOpenServers: Starting 5 'redirector' processes
2004/10/25 11:17:32| WARNING: Cannot run '/usr/squid/rejik3/redirector' process.
2004/10/25 11:17:32| WARNING: Cannot run '/usr/squid/rejik3/redirector' process.
2004/10/25 11:17:32| WARNING: Cannot run '/usr/squid/rejik3/redirector' process.
2004/10/25 11:17:32| WARNING: Cannot run '/usr/squid/rejik3/redirector' process.
2004/10/25 11:17:32| WARNING: Cannot run '/usr/squid/rejik3/redirector' process.
2004/10/25 11:17:32| Unlinkd pipe opened on FD 9
2004/10/25 11:17:32| Swap maxSize 102400 KB, estimated 7876 objects
2004/10/25 11:17:32| Target number of buckets: 393
2004/10/25 11:17:32| Using 8192 Store buckets
2004/10/25 11:17:32| Max Mem size: 8192 KB
2004/10/25 11:17:32| Max Swap size: 102400 KB
2004/10/25 11:17:32| Rebuilding storage in /usr/squid/var/cache (CLEAN)
2004/10/25 11:17:32| Using Least Load store dir selection
2004/10/25 11:17:32| Set Current Directory to /usr/squid/var/logs
2004/10/25 11:17:32| Loaded Icons.
2004/10/25 11:17:33| Accepting HTTP connections at 192.168.0.115, port 3180, FD 11.
2004/10/25 11:17:33| Accepting HTTP connections at 192.168.1.100, port 3180, FD 12.
2004/10/25 11:17:33| WCCP Disabled.
2004/10/25 11:17:33| Ready to serve requests.
2004/10/25 11:17:33| Done reading /usr/squid/var/cache swaplog (6 entries)
2004/10/25 11:17:33| Finished rebuilding storage from disk.
2004/10/25 11:17:33| 6 Entries scanned
2004/10/25 11:17:33| 0 Invalid entries.
2004/10/25 11:17:33| 0 With invalid flags.
2004/10/25 11:17:33| 6 Objects loaded.
2004/10/25 11:17:33| 0 Objects expired.
2004/10/25 11:17:33| 0 Objects cancelled.
2004/10/25 11:17:33| 0 Duplicate URLs purged.
2004/10/25 11:17:33| 0 Swapfile clashes avoided.
2004/10/25 11:17:33| Took 0.3 seconds ( 19.3 objects/sec).
2004/10/25 11:17:33| Beginning Validation Procedure
2004/10/25 11:17:33| Completed Validation Procedure
2004/10/25 11:17:33| Validated 6 Entries
2004/10/25 11:17:33| store_swap_size = 56k
2004/10/25 11:17:33| storeLateRelease: released 0 objects
2004/10/25 11:18:43| WARNING: All redirector processes are busy.
2004/10/25 11:18:43| WARNING: up to 1 pending requests queued
2004/10/25 11:18:43| storeDirWriteCleanLogs: Starting...
2004/10/25 11:18:43| WARNING: Closing open FD 11
2004/10/25 11:18:43| Finished. Wrote 6 entries.
2004/10/25 11:18:43| Took 0.0 seconds ( 329.4 entries/sec).
FATAL: Too many queued redirector requests (1 on 0)
Squid Cache (Version 2.5.STABLE7): Terminated abnormally.
CPU Usage: 0.080 seconds = 0.040 user + 0.040 sys
Maximum Resident Size: 5864 KB
Page faults with physical i/o: 0
2004/10/25 11:18:46| Starting Squid Cache version 2.5.STABLE7 for i386-unknown-freebsd4.10...
2004/10/25 11:18:46| Process ID 14368
2004/10/25 11:18:46| With 7296 file descriptors available
2004/10/25 11:18:46| Performing DNS Tests...
2004/10/25 11:18:46| Successful DNS name lookup tests...
2004/10/25 11:18:46| DNS Socket created at 192.168.0.115, port 4728, FD 4
2004/10/25 11:18:46| Adding nameserver 192.168.0.117 from squid.conf
2004/10/25 11:18:46| Adding nameserver 192.168.0.1 from squid.conf
2004/10/25 11:18:46| helperOpenServers: Starting 5 'redirector' processes
2004/10/25 11:18:46| Unlinkd pipe opened on FD 14
2004/10/25 11:18:46| Swap maxSize 102400 KB, estimated 7876 objects
2004/10/25 11:18:46| Target number of buckets: 393
2004/10/25 11:18:46| Using 8192 Store buckets
2004/10/25 11:18:46| Max Mem size: 8192 KB
2004/10/25 11:18:46| Max Swap size: 102400 KB
2004/10/25 11:18:46| Rebuilding storage in /usr/squid/var/cache (CLEAN)
2004/10/25 11:18:46| Using Least Load store dir selection
2004/10/25 11:18:46| Set Current Directory to /usr/squid/var/logs
2004/10/25 11:18:46| Loaded Icons.
2004/10/25 11:18:46| Accepting HTTP connections at 192.168.0.115, port 3180, FD 16.
2004/10/25 11:18:46| Accepting HTTP connections at 192.168.1.100, port 3180, FD 17.
2004/10/25 11:18:46| WCCP Disabled.
2004/10/25 11:18:46| Ready to serve requests.
2004/10/25 11:18:46| Done reading /usr/squid/var/cache swaplog (6 entries)
2004/10/25 11:18:46| Finished rebuilding storage from disk.
2004/10/25 11:18:46| 6 Entries scanned
2004/10/25 11:18:46| 0 Invalid entries.
2004/10/25 11:18:46| 0 With invalid flags.
2004/10/25 11:18:46| 6 Objects loaded.
2004/10/25 11:18:46| 0 Objects expired.
2004/10/25 11:18:46| 0 Objects cancelled.
2004/10/25 11:18:46| 0 Duplicate URLs purged.
2004/10/25 11:18:46| 0 Swapfile clashes avoided.
2004/10/25 11:18:46| Took 0.3 seconds ( 18.9 objects/sec).
2004/10/25 11:18:46| Beginning Validation Procedure
2004/10/25 11:18:46| Completed Validation Procedure
2004/10/25 11:18:46| Validated 6 Entries
2004/10/25 11:18:46| store_swap_size = 56k
2004/10/25 11:18:47| storeLateRelease: released 0 objects
2004/10/25 11:22:15| helperHandleRead: FD 6 read: (54) Connection reset by peer
2004/10/25 11:22:15| WARNING: redirector #1 (FD 6) exited
============================================

Добавлено: Пн окт 25, 2004 11:39
Slava
Похоже он его запустить не может.
Скопируйте строку запуска редиректора из squid.conf в буфер обмена, перейдите под пользователя сквиды (su - юзер) и вставьте из буфера

Добавлено: Пн окт 25, 2004 11:50
BigHarry
Тьфу на меня !!! Позор на мою голову !!!
вместо redirector.conf в конфиге сквида было написано redirector.confn!!!
Все запустилось. Спасибо, извиняйте за тормоза...
Есчо раз - тьфу на меня!!!
:oops: