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

Squid перестает обрабатывать запросы и падает

Добавлено: Вт авг 06, 2013 13:27
stemtj
Добрый день.
У меня проблемка возникла с кальмаром+rejik. Перерыл все, что возможно, ничего нормального так и не нашел. Надеюсь на вашу помощь.
Стоит Squid 3.2.13 из портов FreeBSD, rejik 3.2.10
Во первых никак не могу избавиться вот от этого в логах:

Код: Выделить всё

2013/08/06 13:28:49 kid1| Starting new redirector helpers...
2013/08/06 13:28:49 kid1| helperOpenServers: Starting 1/10 'redirector' processes
2013/08/06 13:28:49 kid1| WARNING: no_suid: setuid(0): (1) Operation not permitted
Второе,

Код: Выделить всё

2013/08/06 14:11:26 kid1|  FD 16, 192.168.111.3 [Stopped, reason:Listener socket closed job1]: (53)
2013/08/06 14:11:28 kid1|  FD 16, 192.168.111.3 [Stopped, reason:Listener socket closed job1]: (53)
2013/08/06 14:11:32 kid1|  FD 16, 192.168.111.3 [Stopped, reason:Listener socket closed job1]: (53)
2013/08/06 14:11:34 kid1|  FD 16, 192.168.111.3 [Stopped, reason:Listener socket closed job1]: (53)
2013/08/06 14:11:38 kid1|  FD 16, 192.168.111.3 [Stopped, reason:Listener socket closed job1]: (53)
2013/08/06 14:11:41 kid1|  FD 16, 192.168.111.3 [Stopped, reason:Listener socket closed job1]: (53)
2013/08/06 14:11:44 kid1|  FD 16, 192.168.111.3 [Stopped, reason:Listener socket closed job1]: (53)
после чего squid умирает.

Re: Squid перестает обрабатывать запросы и падает

Добавлено: Вт авг 06, 2013 13:44
Slava
Покажите вывод команд:
1. cat squid.conf |grep cache_effective_user
2. ls -la /usr/local/rejik3/*

Re: Squid перестает обрабатывать запросы и падает

Добавлено: Вт авг 06, 2013 13:56
stemtj

Код: Выделить всё

mail# cat squid.conf | grep cache_effective_user
cache_effective_user squid

Код: Выделить всё

mail# ls -la /usr/local/rejik3/*
-rwxr-xr-x  1 squid  squid     37509 Apr 18 09:06 /usr/local/rejik3/make-cache
-rwxr-xr-x  1 squid  squid     42844 Apr 18 09:06 /usr/local/rejik3/redirector
-rw-r--r--  1 squid  squid      4327 Jul 25 08:55 /usr/local/rejik3/redirector.conf
-rw-r--r--  1 squid  squid      3227 Apr 18 09:06 /usr/local/rejik3/redirector.conf.dist
-rw-rw-rw-  1 squid  squid   5052125 Aug  6 14:48 /usr/local/rejik3/redirector.err
-rw-rw-rw-  1 squid  squid  83149104 Aug  6 14:50 /usr/local/rejik3/redirector.log

/usr/local/rejik3/acl:
total 24
drwxr-xr-x  2 squid  squid  512 Jul 25 08:54 .
drwxrwx---  6 squid  squid  512 Jul 25 08:55 ..
-rw-r--r--  1 squid  squid  264 May 14 13:13 agent.txt
-rw-r--r--  1 squid  squid  104 Jul 25 08:54 it.dep
-rw-r--r--  1 squid  squid  131 Apr 26 11:37 sites.txt
-rw-r--r--  1 squid  squid  201 Jul 25 08:54 vip.txt

/usr/local/rejik3/banlists:
total 44
drwxr-xr-x  11 squid  squid  512 Apr 19 16:18 .
drwxrwx---   6 squid  squid  512 Jul 25 08:55 ..
drwxr-xr-x   2 squid  squid  512 Jul 24 15:03 anonimyzer
drwxr-xr-x   2 squid  squid  512 Apr 19 16:01 banners
drwxr-xr-x   2 squid  squid  512 May 23 08:51 dating
drwxr-xr-x   2 squid  squid  512 Apr 19 13:53 icq
drwxr-xr-x   2 squid  squid  512 Apr 18 17:28 js
drwxr-xr-x   2 squid  squid  512 Apr 19 16:12 mp3
drwxr-xr-x   2 squid  squid  512 Jul 24 15:00 onlinegames
drwxr-xr-x   2 squid  squid  512 Apr 18 17:28 porno
drwxr-xr-x   2 squid  squid  512 Jul 25 13:52 torrents

/usr/local/rejik3/dbl:
total 9972
drwxr-xr-x  4 squid  squid       512 Apr 18 10:06 .
drwxrwx---  6 squid  squid       512 Jul 25 08:55 ..
-rwxr-xr-x  1 squid  squid       134 Mar  4  2005 FAST
-rwxr-xr-x  1 squid  squid       129 Mar  4  2005 FULL
drwxr-xr-x  2 squid  squid       512 Apr 18 10:04 NEW
-rwxr-xr-x  1 squid  squid      4025 Apr 18 09:30 Update
-rwxr-xr-x  1 squid  squid      1326 Feb  1  2005 Update.Fast
-rw-r--r--  1 squid  squid         5 Apr 18 10:04 VERSION
-rwxr-xr-x  1 squid  squid      5116 Apr 18 10:06 dbl_expand
-rwxr-xr-x  1 squid  squid       987 Jan 27  2005 dbl_stat
-rw-r--r--  1 squid  squid  10102499 Apr 18 10:04 list.dbl
drwxr-xr-x  2 squid  squid      1536 Apr 25 13:25 lists
-rw-r--r--  1 squid  squid       665 Apr 18 10:04 update.log

/usr/local/rejik3/tools:
total 40
drwxr-xr-x  2 squid  squid    512 Apr 18 09:06 .
drwxrwx---  6 squid  squid    512 Jul 25 08:55 ..
-rw-r--r--  1 squid  squid  14684 Apr 18 09:06 IN.gz
-rwxr-xr-x  1 squid  squid    574 Apr 18 09:06 benchmark
-rwxr-xr-x  1 squid  squid    131 Apr 18 09:06 check-redirector
-rwxr-xr-x  1 squid  squid    134 Apr 18 09:06 kill-cache
-rwxr-xr-x  1 squid  squid     49 Apr 18 09:06 set-permissions

Re: Squid перестает обрабатывать запросы и падает

Добавлено: Вт авг 06, 2013 14:15
Slava
1. Удалите /usr/local/rejik3/redirector.err и /usr/local/rejik3/redirector.log
2. Запустите check-redirector (http://rejik.ru/index_ru_3_0.html пункт 14) и покажите его вывод.
3. Покажите содержимое redirector.err
4. Запустите сквид, покажите логи сквида и redirector.err

Re: Squid перестает обрабатывать запросы и падает

Добавлено: Вт авг 06, 2013 15:03
stemtj
Запуск check-redirector

Код: Выделить всё

mail# ./check-redirector
http://sex.ru 127.0.0.1/- - GET
redirector.err

Код: Выделить всё

2013-08-06 15:52:19 [26259] Run make-cache (3.2.10)
2013-08-06 15:52:19 [26259] Make-cache finished
2013-08-06 15:52:19 [26259] Load 11 rules from /usr/local/rejik3/banlists/banners/allow_urls.cache
2013-08-06 15:52:19 [26259] Load 4124 rules from /usr/local/rejik3/banlists/banners/urls.cache
2013-08-06 15:52:19 [26259] Load 81 pattern from BANNER pcre
2013-08-06 15:52:19 [26259] Load 324914 rules from /usr/local/rejik3/banlists/porno/urls.cache
2013-08-06 15:52:19 [26259] Load 25 pattern from MP3 pcre
2013-08-06 15:52:19 [26259] Load 1 rules from /usr/local/rejik3/banlists/js/urls.cache
2013-08-06 15:52:19 [26259] Load 53858 rules from /usr/local/rejik3/banlists/anonimyzer/urls.cache
2013-08-06 15:52:19 [26259] Load 6392 rules from /usr/local/rejik3/banlists/dating/urls.cache
2013-08-06 15:52:19 [26259] Load 1486 rules from /usr/local/rejik3/banlists/torrents/urls.cache
2013-08-06 15:52:19 [26259] Load 4381 rules from /usr/local/rejik3/banlists/onlinegames/urls.cache
2013-08-06 15:52:19 [26259] Load 122 rules from /usr/local/rejik3/banlists/icq/urls.cache
2013-08-06 15:52:19 [26259] Load 3 pattern from ICQ pcre
2013-08-06 15:52:19 [26259] Redirector start and working (3.2.10)
cache.log после запуска squid:

Код: Выделить всё

mail# cat cache.log
2013/08/06 15:54:54 kid1| Starting Squid Cache version 3.2.13 for i386-portbld-freebsd9.0...
2013/08/06 15:54:54 kid1| Process ID 26352
2013/08/06 15:54:54 kid1| Process Roles: worker
2013/08/06 15:54:54 kid1| With 18000 file descriptors available
2013/08/06 15:54:54 kid1| Initializing IP Cache...
2013/08/06 15:54:54 kid1| DNS Socket created at [::], FD 7
2013/08/06 15:54:54 kid1| DNS Socket created at 0.0.0.0, FD 8
2013/08/06 15:54:54 kid1| Adding nameserver 193.111.11.2 from /etc/resolv.conf
2013/08/06 15:54:54 kid1| Adding nameserver 217.11.190.2 from /etc/resolv.conf
2013/08/06 15:54:54 kid1| helperOpenServers: Starting 0/20 'redirector' processes
2013/08/06 15:54:54 kid1| helperOpenServers: No 'redirector' processes needed.
2013/08/06 15:54:54 kid1| Logfile: opening log stdio:/var/log/squid/access.log
2013/08/06 15:54:54 kid1| WARNING: no_suid: setuid(0): (1) Operation not permitted
2013/08/06 15:54:55 kid1| Unlinkd pipe opened on FD 13
2013/08/06 15:54:55 kid1| Store logging disabled
2013/08/06 15:54:55 kid1| Swap maxSize 4194304 + 262144 KB, estimated 342803 objects
2013/08/06 15:54:55 kid1| Target number of buckets: 17140
2013/08/06 15:54:55 kid1| Using 32768 Store buckets
2013/08/06 15:54:55 kid1| Max Mem  size: 262144 KB
2013/08/06 15:54:55 kid1| Max Swap size: 4194304 KB
2013/08/06 15:54:55 kid1| Rebuilding storage in /var/squid/cache/squid (dirty log)
2013/08/06 15:54:55 kid1| Using Least Load store dir selection
2013/08/06 15:54:55 kid1| Set Current Directory to /var/squid/cache/squid
2013/08/06 15:54:55 kid1| Loaded Icons.
2013/08/06 15:54:55 kid1| HTCP Disabled.
2013/08/06 15:54:55 kid1| Squid plugin modules loaded: 0
2013/08/06 15:54:55 kid1| Accepting HTTP Socket connections at local=192.168.111.3:3128 remote=[::] FD 16 flags=9
2013/08/06 15:54:55 kid1| Accepting NAT intercepted HTTP Socket connections at local=192.168.111.3:3129 remote=[::] FD 17 flags=41
2013/08/06 15:54:55 kid1| Store rebuilding is 18.80% complete
2013/08/06 15:54:55 kid1| Done reading /var/squid/cache/squid swaplog (21276 entries)
2013/08/06 15:54:55 kid1| Finished rebuilding storage from disk.
2013/08/06 15:54:55 kid1|     19625 Entries scanned
2013/08/06 15:54:55 kid1|        19 Invalid entries.
2013/08/06 15:54:55 kid1|         0 With invalid flags.
2013/08/06 15:54:55 kid1|     17993 Objects loaded.
2013/08/06 15:54:55 kid1|         0 Objects expired.
2013/08/06 15:54:55 kid1|      1632 Objects cancelled.
2013/08/06 15:54:55 kid1|         0 Duplicate URLs purged.
2013/08/06 15:54:55 kid1|         0 Swapfile clashes avoided.
2013/08/06 15:54:55 kid1|   Took 0.06 seconds (302383.03 objects/sec).
2013/08/06 15:54:55 kid1| Beginning Validation Procedure
2013/08/06 15:54:55 kid1|   Completed Validation Procedure
2013/08/06 15:54:55 kid1|   Validated 17991 Entries
2013/08/06 15:54:55 kid1|   store_swap_size = 581692.00 KB
2013/08/06 15:54:55 kid1| Starting new redirector helpers...
2013/08/06 15:54:55 kid1| helperOpenServers: Starting 1/20 'redirector' processes
2013/08/06 15:54:55 kid1| WARNING: no_suid: setuid(0): (1) Operation not permitted
2013/08/06 15:54:56 kid1| storeLateRelease: released 0 objects
2013/08/06 15:55:00 kid1| Starting new redirector helpers...
2013/08/06 15:55:00 kid1| helperOpenServers: Starting 1/20 'redirector' processes
2013/08/06 15:55:00 kid1| WARNING: no_suid: setuid(0): (1) Operation not permitted
redirector.err после запуска squid

Код: Выделить всё

mail# mcedit /etc/ipfw.conf

mail# sh /etc/ipfw.conf
mail# cd /usr/local/rejik3/
mail# mc

mail# cd tools/
mail# check-redirector
check-redirector: Command not found.
mail# ./check-redirector
This account is currently not available.
mail# mcedit /etc/ipfw.conf

mail# mcedit /etc/passwd

mail# ./check-redirector
This account is currently not available.
mail# ./check-redirector
This account is currently not available.
mail# trafshow
usbus0: datalink type 186 is not supported
usbus1: datalink type 186 is not supported
Interface          Address                                                 Description
───────────────────────────────────────────────────────────────────────────────────────────────────
re0                50:e5:49:ee:7c:d 94.199.17.66                           Ethernet
rl0                6c:fd:b9:2:a4:6e 192.168.111.3                          Ethernet
ipfw0                                                                      Ethernet
lo0                127.0.0.1                                               Loopback


















───────────────────────────────────────────────────────────────────────────────────────────────────
mail# su -m squid
mail# ./check-redirector
This account is currently not available.
mail# su -m check-redirector
su: Sorry
mail# login
Not a login shell.
mail# su squid
This account is currently not available.
mail# pw usermod squid -s /bin/sh
pw: you must be root to run this program
mail# su
su: Sorry
mail# exit
mail# su
mail# pw usermod squid -s /bin/sh
mail# mcedit /etc/passwd

mail# exit
mail# exit
$ su
Password:
mail# cd /usr/local/rejik3/tools/
mail# ./check-redirector
http://sex.ru 127.0.0.1/- - GET
mail# exit
$ su
Password:
mail# mc

mail# cd /usr/local/rejik3/
mail# mc

mail# top
last pid: 26335;  load averages:  0.01,  0.02,  0.03                       up 1+03:53:06  15:54:33
72 processes:  1 running, 71 sleeping
CPU:     % user,     % nice,     % system,     % interrupt,     % idle
Mem: 386M Active, 878M Inact, 265M Wired, 316K Cache, 112M Buf, 1644M Free
Swap: 4096M Total, 4096M Free

  PID USERNAME  THR PRI NICE   SIZE    RES STATE   C   TIME   WCPU COMMAND
 1156 root        1  20    0  9776K  2268K select  4   6:12  0.29% natd
24940 squid       1  20    0   121M   101M kqread  2   1:20  0.00% squid
 1561 clamav      3  20    0   188M   153M uwait   0   0:14  0.00% clamd
 1666 mysql      35  20    0   427M   119M select  1   0:13  0.00% mysqld
24942 squid       1  20    0 18244K  9920K sbwait  0   0:03  0.00% redirector
 1537 root        2  20    0  9812K  1744K nanslp  0   0:02  0.00% sshguard
 1714 clamav      1  20    0 76504K  4828K accept  0   0:02  0.00% clamsmtpd
 1526 root        1  20    0 25980K 16188K select  2   0:01  0.00% perl
 1728 root        1  20    0 82284K 14936K select  4   0:01  0.00% httpd
 1693 root        1  20    0  9572K  1380K select  4   0:01  0.00% couriertcpd
15700 stemtj      1  20    0 15788K  4860K select  0   0:01  0.00% sshd
 1298 bind       11  20    0 65600K 24940K kqread  7   0:01  0.00% named
 1211 root        1  20    0  9612K  1424K select  2   0:01  0.00% syslogd
 1692 root        1  20    0  9532K   992K piperd  6   0:01  0.00% courierlogger
 1837 root        1  20    0 15144K  3508K kqread  2   0:00  0.00% master
 1862 postfix     1  20    0 15144K  3604K kqread  4   0:00  0.00% qmgr
 1705 root        1  20    0 14656K  3536K select  7   0:00  0.00% authdaemond
 1704 root        1  20    0 14656K  3536K select  3   0:00  0.00% authdaemond
mail# killall squid
mail# killall squid
mail# killall squid
No matching processes were found
mail# cd /var/log/squid/
mail# mc

mail# squid start
2013/08/06 15:54:54| Warning: empty ACL: acl otdelenie src
2013/08/06 15:54:54| Warning: empty ACL: acl prostie src
mail# mc

mail# pwd
/var/log/squid
mail# cat cache.log
2013/08/06 15:54:54 kid1| Starting Squid Cache version 3.2.13 for i386-portbld-freebsd9.0...
2013/08/06 15:54:54 kid1| Process ID 26352
2013/08/06 15:54:54 kid1| Process Roles: worker
2013/08/06 15:54:54 kid1| With 18000 file descriptors available
2013/08/06 15:54:54 kid1| Initializing IP Cache...
2013/08/06 15:54:54 kid1| DNS Socket created at [::], FD 7
2013/08/06 15:54:54 kid1| DNS Socket created at 0.0.0.0, FD 8
2013/08/06 15:54:54 kid1| Adding nameserver 193.111.11.2 from /etc/resolv.conf
2013/08/06 15:54:54 kid1| Adding nameserver 217.11.190.2 from /etc/resolv.conf
2013/08/06 15:54:54 kid1| helperOpenServers: Starting 0/20 'redirector' processes
2013/08/06 15:54:54 kid1| helperOpenServers: No 'redirector' processes needed.
2013/08/06 15:54:54 kid1| Logfile: opening log stdio:/var/log/squid/access.log
2013/08/06 15:54:54 kid1| WARNING: no_suid: setuid(0): (1) Operation not permitted
2013/08/06 15:54:55 kid1| Unlinkd pipe opened on FD 13
2013/08/06 15:54:55 kid1| Store logging disabled
2013/08/06 15:54:55 kid1| Swap maxSize 4194304 + 262144 KB, estimated 342803 objects
2013/08/06 15:54:55 kid1| Target number of buckets: 17140
2013/08/06 15:54:55 kid1| Using 32768 Store buckets
2013/08/06 15:54:55 kid1| Max Mem  size: 262144 KB
2013/08/06 15:54:55 kid1| Max Swap size: 4194304 KB
2013/08/06 15:54:55 kid1| Rebuilding storage in /var/squid/cache/squid (dirty log)
2013/08/06 15:54:55 kid1| Using Least Load store dir selection
2013/08/06 15:54:55 kid1| Set Current Directory to /var/squid/cache/squid
2013/08/06 15:54:55 kid1| Loaded Icons.
2013/08/06 15:54:55 kid1| HTCP Disabled.
2013/08/06 15:54:55 kid1| Squid plugin modules loaded: 0
2013/08/06 15:54:55 kid1| Accepting HTTP Socket connections at local=192.168.111.3:3128 remote=[::] FD 16 flags=9
2013/08/06 15:54:55 kid1| Accepting NAT intercepted HTTP Socket connections at local=192.168.111.3:3129 remote=[::] FD 17 flags=41
2013/08/06 15:54:55 kid1| Store rebuilding is 18.80% complete
2013/08/06 15:54:55 kid1| Done reading /var/squid/cache/squid swaplog (21276 entries)
2013/08/06 15:54:55 kid1| Finished rebuilding storage from disk.
2013/08/06 15:54:55 kid1|     19625 Entries scanned
2013/08/06 15:54:55 kid1|        19 Invalid entries.
2013/08/06 15:54:55 kid1|         0 With invalid flags.
2013/08/06 15:54:55 kid1|     17993 Objects loaded.
2013/08/06 15:54:55 kid1|         0 Objects expired.
2013/08/06 15:54:55 kid1|      1632 Objects cancelled.
2013/08/06 15:54:55 kid1|         0 Duplicate URLs purged.
2013/08/06 15:54:55 kid1|         0 Swapfile clashes avoided.
2013/08/06 15:54:55 kid1|   Took 0.06 seconds (302383.03 objects/sec).
2013/08/06 15:54:55 kid1| Beginning Validation Procedure
2013/08/06 15:54:55 kid1|   Completed Validation Procedure
2013/08/06 15:54:55 kid1|   Validated 17991 Entries
2013/08/06 15:54:55 kid1|   store_swap_size = 581692.00 KB
2013/08/06 15:54:55 kid1| Starting new redirector helpers...
2013/08/06 15:54:55 kid1| helperOpenServers: Starting 1/20 'redirector' processes
2013/08/06 15:54:55 kid1| WARNING: no_suid: setuid(0): (1) Operation not permitted
2013/08/06 15:54:56 kid1| storeLateRelease: released 0 objects
2013/08/06 15:55:00 kid1| Starting new redirector helpers...
2013/08/06 15:55:00 kid1| helperOpenServers: Starting 1/20 'redirector' processes
2013/08/06 15:55:00 kid1| WARNING: no_suid: setuid(0): (1) Operation not permitted
mail# mc

mail# cd /usr/local/rejik3/
mail# mc

mail# cat redirector.err
2013-08-06 15:52:19 [26259] Run make-cache (3.2.10)
2013-08-06 15:52:19 [26259] Make-cache finished
2013-08-06 15:52:19 [26259] Load 11 rules from /usr/local/rejik3/banlists/banners/allow_urls.cache
2013-08-06 15:52:19 [26259] Load 4124 rules from /usr/local/rejik3/banlists/banners/urls.cache
2013-08-06 15:52:19 [26259] Load 81 pattern from BANNER pcre
2013-08-06 15:52:19 [26259] Load 324914 rules from /usr/local/rejik3/banlists/porno/urls.cache
2013-08-06 15:52:19 [26259] Load 25 pattern from MP3 pcre
2013-08-06 15:52:19 [26259] Load 1 rules from /usr/local/rejik3/banlists/js/urls.cache
2013-08-06 15:52:19 [26259] Load 53858 rules from /usr/local/rejik3/banlists/anonimyzer/urls.cache
2013-08-06 15:52:19 [26259] Load 6392 rules from /usr/local/rejik3/banlists/dating/urls.cache
2013-08-06 15:52:19 [26259] Load 1486 rules from /usr/local/rejik3/banlists/torrents/urls.cache
2013-08-06 15:52:19 [26259] Load 4381 rules from /usr/local/rejik3/banlists/onlinegames/urls.cache
2013-08-06 15:52:19 [26259] Load 122 rules from /usr/local/rejik3/banlists/icq/urls.cache
2013-08-06 15:52:19 [26259] Load 3 pattern from ICQ pcre
2013-08-06 15:52:19 [26259] Redirector start and working (3.2.10)
2013-08-06 15:54:55 [26355] Run make-cache (3.2.10)
2013-08-06 15:54:55 [26355] Make-cache finished
2013-08-06 15:54:55 [26355] Load 11 rules from /usr/local/rejik3/banlists/banners/allow_urls.cache
2013-08-06 15:54:55 [26355] Load 4124 rules from /usr/local/rejik3/banlists/banners/urls.cache
2013-08-06 15:54:55 [26355] Load 81 pattern from BANNER pcre
2013-08-06 15:54:55 [26355] Load 324914 rules from /usr/local/rejik3/banlists/porno/urls.cache
2013-08-06 15:54:55 [26355] Load 25 pattern from MP3 pcre
2013-08-06 15:54:55 [26355] Load 1 rules from /usr/local/rejik3/banlists/js/urls.cache
2013-08-06 15:54:55 [26355] Load 53858 rules from /usr/local/rejik3/banlists/anonimyzer/urls.cache
2013-08-06 15:54:55 [26355] Load 6392 rules from /usr/local/rejik3/banlists/dating/urls.cache
2013-08-06 15:54:55 [26355] Load 1486 rules from /usr/local/rejik3/banlists/torrents/urls.cache
2013-08-06 15:54:55 [26355] Load 4381 rules from /usr/local/rejik3/banlists/onlinegames/urls.cache
2013-08-06 15:54:55 [26355] Load 122 rules from /usr/local/rejik3/banlists/icq/urls.cache
2013-08-06 15:54:55 [26355] Load 3 pattern from ICQ pcre
2013-08-06 15:54:55 [26355] Redirector start and working (3.2.10)
2013-08-06 15:55:00 [26365] Run make-cache (3.2.10)
2013-08-06 15:55:00 [26365] Make-cache finished
2013-08-06 15:55:00 [26365] Load 11 rules from /usr/local/rejik3/banlists/banners/allow_urls.cache
2013-08-06 15:55:00 [26365] Load 4124 rules from /usr/local/rejik3/banlists/banners/urls.cache
2013-08-06 15:55:00 [26365] Load 81 pattern from BANNER pcre
2013-08-06 15:55:00 [26365] Load 324914 rules from /usr/local/rejik3/banlists/porno/urls.cache
2013-08-06 15:55:00 [26365] Load 25 pattern from MP3 pcre
2013-08-06 15:55:00 [26365] Load 1 rules from /usr/local/rejik3/banlists/js/urls.cache
2013-08-06 15:55:00 [26365] Load 53858 rules from /usr/local/rejik3/banlists/anonimyzer/urls.cache
2013-08-06 15:55:00 [26365] Load 6392 rules from /usr/local/rejik3/banlists/dating/urls.cache
2013-08-06 15:55:00 [26365] Load 1486 rules from /usr/local/rejik3/banlists/torrents/urls.cache
2013-08-06 15:55:00 [26365] Load 4381 rules from /usr/local/rejik3/banlists/onlinegames/urls.cache
2013-08-06 15:55:00 [26365] Load 122 rules from /usr/local/rejik3/banlists/icq/urls.cache
2013-08-06 15:55:00 [26365] Load 3 pattern from ICQ pcre
2013-08-06 15:55:00 [26365] Redirector start and working (3.2.10)
mail#

Re: Squid перестает обрабатывать запросы и падает

Добавлено: Вт авг 06, 2013 16:08
Slava
Исходя из Ваших ответов:
1. Сам по себе редиректор работает (check-redirector) и ошибок не выдает.
2. Из под сквида редиректор стартует и судя по его логам запускается, после чего возникает ошибка.

Возможно в системе установлен некий дополнительный механизм безопасности, типа selinux, который не разрешает сквиду делать лишние действия?

Так же Вы можете провести дополнительный тест, подключив вместо режика простейший логер:
Для этого создайте файл со следующим содержанием:

Код: Выделить всё

#!/usr/bin/perl

$| = 1 ;

open (LOG,">/tmp/test_redirector_log") or die "Can't open /tmp/test_redirector_log: $!\n";
select LOG ; $| = 1 ; select STDOUT ;
while(<>)
{
 print LOG $_;
 print $_;
}
 close(LOG);
Дайте ему права на исполнение, протестируйте из консоли пользователя сквида.
В /tmp/test_redirector_log должен писаться лог введенных данных.
И подключите его к сквиду вместо режика.
Останется ли проблема?

Re: Squid перестает обрабатывать запросы и падает

Добавлено: Вт авг 06, 2013 16:30
stemtj
Спс. Завтра испробую. Просто проблема не сразу вылазит, может в течении часа, а может и двух. Завтра отпишу

Re: Squid перестает обрабатывать запросы и падает

Добавлено: Пт авг 09, 2013 7:42
stemtj
Прикрутил test_redirector, сквид вроде пол-дня стабильно работал, только прдупреждение так и осталось. WARNING: no_suid: setuid(0): (1) Operation not permitted
Буду запускать в дебаг режиме сегодня и посмотрю из за чего при работе с режиком так вылетает, а потом отпишусь.

Re: Squid перестает обрабатывать запросы и падает

Добавлено: Пт авг 09, 2013 8:18
Slava
Попробуйте отключить редиректор от сквида, останется ли сообщение об ошибке?