При добавлении нового правила в squid.conf и последующей команде service squid reload
он вылетает и пишет:[root@localhost squid]# service squid status
squid (pid 2183) выполняется...
squid: ERROR: Could not send signal 0 to process 3597: (3) No such processКогда убираю назад эти правила все нормально:
[root@localhost squid]# service squid status
squid (pid 3597 2183) выполняется...Два pid это так и должно быть? При чем pid 3597 существует в /var/run а 2183 нету. Я так понимаю при релоаде он один процесс убивает а второй неможет... так что ли?
До этого пытался поставить новую версию сквида но что то не получилось. Меня терзают смутные сомнения а не запущены ли два разных сквида?
А почему бы вам не делать ./squid -k reconfigure ? Зачем дергать сервис?
Выяснил что только при добавлении правил:acl test dstdom_regex sex
http_access deny testSquid и вылетает. При добавлении остальных url_regex и тд. все нормально.
Куда копать то хоть подскажите.
>Выяснил что только при добавлении правил:
>
>acl test dstdom_regex sex
>http_access deny test
>
>Squid и вылетает. При добавлении остальных url_regex и тд. все нормально.
>Куда копать то хоть подскажите.Что есть на этот счет в cache.log ? Какая версия сквида ?
>>Выяснил что только при добавлении правил:
>>
>>acl test dstdom_regex sex
>>http_access deny test
>>
>>Squid и вылетает. При добавлении остальных url_regex и тд. все нормально.
>>Куда копать то хоть подскажите.
>
>Что есть на этот счет в cache.log ? Какая версия сквида ?
>Версия squid/2.5.STABLE6
вот строки которые записываются когда правила эти записываю.
2007/10/31 11:02:32| Accepting HTTP connections at 0.0.0.0, port 3128, FD 11.
2007/10/31 11:02:32| Accepting ICP messages at 0.0.0.0, port 3130, FD 12.
2007/10/31 11:02:32| WCCP Disabled.
2007/10/31 11:02:32| Pinger socket opened on FD 14
2007/10/31 11:02:32| Ready to serve requests.
2007/10/31 11:02:32| Store rebuilding is 35.7% complete
2007/10/31 11:02:32| Done reading /var/spool/squid swaplog (11815 entries)
2007/10/31 11:02:32| Finished rebuilding storage from disk.
2007/10/31 11:02:32| 9381 Entries scanned
2007/10/31 11:02:32| 0 Invalid entries.
2007/10/31 11:02:32| 0 With invalid flags.
2007/10/31 11:02:32| 9177 Objects loaded.
2007/10/31 11:02:32| 0 Objects expired.
2007/10/31 11:02:32| 54 Objects cancelled.
2007/10/31 11:02:32| 41 Duplicate URLs purged.
2007/10/31 11:02:32| 146 Swapfile clashes avoided.
2007/10/31 11:02:32| Took 0.6 seconds (15241.9 objects/sec).
2007/10/31 11:02:32| Beginning Validation Procedure
2007/10/31 11:02:32| Completed Validation Procedure
2007/10/31 11:02:32| Validated 9140 Entries
2007/10/31 11:02:32| store_swap_size = 161572k
2007/10/31 11:02:32| icmpRecv: recv: (111) Connection refused
2007/10/31 11:02:32| Closing Pinger socket on FD 14
2007/10/31 11:02:32| storeLateRelease: released 0 objects
2007/10/31 11:02:33| WARNING: Disk space over limit: 160428 KB > 102400 KB
2007/10/31 11:02:41| Starting Squid Cache version 2.5.STABLE6 for i386-redhat-linux-gnu...
2007/10/31 11:02:41| Process ID 16775
2007/10/31 11:02:41| With 1024 file descriptors available
2007/10/31 11:02:41| DNS Socket created at 0.0.0.0, port 32870, FD 4
2007/10/31 11:02:41| Adding nameserver 192.168.0.253 from /etc/resolv.conf
2007/10/31 11:02:41| Adding nameserver 192.168.0.1 from /etc/resolv.conf
2007/10/31 11:02:41| User-Agent logging is disabled.
2007/10/31 11:02:41| Referer logging is disabled.
2007/10/31 11:02:41| Unlinkd pipe opened on FD 9
2007/10/31 11:02:41| Swap maxSize 102400 KB, estimated 7876 objects
2007/10/31 11:02:41| Target number of buckets: 393
2007/10/31 11:02:41| Using 8192 Store buckets
2007/10/31 11:02:41| Max Mem size: 8192 KB
2007/10/31 11:02:41| Max Swap size: 102400 KB
2007/10/31 11:02:41| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2007/10/31 11:02:41| Rebuilding storage in /var/spool/squid (DIRTY)
2007/10/31 11:02:41| Using Least Load store dir selection
2007/10/31 11:02:41| Set Current Directory to /var/spool/squid
2007/10/31 11:02:41| Loaded Icons.
2007/10/31 11:02:41| Accepting HTTP connections at 0.0.0.0, port 3128, FD 11.
2007/10/31 11:02:41| Accepting ICP messages at 0.0.0.0, port 3130, FD 12.
2007/10/31 11:02:41| WCCP Disabled.
2007/10/31 11:02:41| Pinger socket opened on FD 14
2007/10/31 11:02:41| Ready to serve requests.
2007/10/31 11:02:41| Store rebuilding is 41.8% complete
2007/10/31 11:02:41| Done reading /var/spool/squid swaplog (9802 entries)
2007/10/31 11:02:41| Finished rebuilding storage from disk.
2007/10/31 11:02:41| 9231 Entries scanned
2007/10/31 11:02:41| 0 Invalid entries.
2007/10/31 11:02:41| 0 With invalid flags.
2007/10/31 11:02:41| 9231 Objects loaded.
2007/10/31 11:02:41| 0 Objects expired.
2007/10/31 11:02:41| 0 Objects cancelled.
2007/10/31 11:02:41| 91 Duplicate URLs purged.
2007/10/31 11:02:41| 0 Swapfile clashes avoided.
2007/10/31 11:02:41| Took 0.4 seconds (23047.9 objects/sec).
2007/10/31 11:02:41| Beginning Validation Procedure
2007/10/31 11:02:41| Completed Validation Procedure
2007/10/31 11:02:41| Validated 9140 Entries
2007/10/31 11:02:41| store_swap_size = 161572k
2007/10/31 11:02:41| icmpRecv: recv: (111) Connection refused
2007/10/31 11:02:41| Closing Pinger socket on FD 14
2007/10/31 11:02:45| Starting Squid Cache version 2.5.STABLE6 for i386-redhat-linux-gnu...
2007/10/31 11:02:45| Process ID 16782
2007/10/31 11:02:45| With 1024 file descriptors available
2007/10/31 11:02:45| DNS Socket created at 0.0.0.0, port 32872, FD 4
2007/10/31 11:02:45| Adding nameserver 192.168.0.253 from /etc/resolv.conf
2007/10/31 11:02:45| Adding nameserver 192.168.0.1 from /etc/resolv.conf
2007/10/31 11:02:45| User-Agent logging is disabled.
2007/10/31 11:02:45| Referer logging is disabled.
2007/10/31 11:02:45| Unlinkd pipe opened on FD 9
2007/10/31 11:02:45| Swap maxSize 102400 KB, estimated 7876 objects
2007/10/31 11:02:45| Target number of buckets: 393
2007/10/31 11:02:45| Using 8192 Store buckets
2007/10/31 11:02:45| Max Mem size: 8192 KB
2007/10/31 11:02:45| Max Swap size: 102400 KB
2007/10/31 11:02:45| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2007/10/31 11:02:45| Rebuilding storage in /var/spool/squid (DIRTY)
2007/10/31 11:02:45| Using Least Load store dir selection
2007/10/31 11:02:45| Set Current Directory to /var/spool/squid
2007/10/31 11:02:45| Loaded Icons.
2007/10/31 11:02:45| Accepting HTTP connections at 0.0.0.0, port 3128, FD 11.
2007/10/31 11:02:45| Accepting ICP messages at 0.0.0.0, port 3130, FD 12.
2007/10/31 11:02:45| WCCP Disabled.
2007/10/31 11:02:45| Pinger socket opened on FD 14
2007/10/31 11:02:45| Ready to serve requests.
2007/10/31 11:02:45| Store rebuilding is 43.9% complete
2007/10/31 11:02:45| Done reading /var/spool/squid swaplog (9322 entries)
2007/10/31 11:02:45| Finished rebuilding storage from disk.
2007/10/31 11:02:45| 9231 Entries scanned
2007/10/31 11:02:45| 0 Invalid entries.
2007/10/31 11:02:45| 0 With invalid flags.
2007/10/31 11:02:45| 9231 Objects loaded.
2007/10/31 11:02:45| 0 Objects expired.
2007/10/31 11:02:45| 0 Objects cancelled.
2007/10/31 11:02:45| 91 Duplicate URLs purged.
2007/10/31 11:02:45| 0 Swapfile clashes avoided.
2007/10/31 11:02:45| Took 0.4 seconds (23200.6 objects/sec).
2007/10/31 11:02:45| Beginning Validation Procedure
2007/10/31 11:02:45| Completed Validation Procedure
2007/10/31 11:02:45| Validated 9140 Entries
2007/10/31 11:02:45| store_swap_size = 161572k
2007/10/31 11:02:46| storeLateRelease: released 0 objects
2007/10/31 11:02:46| WARNING: Disk space over limit: 160428 KB > 102400 KB
2007/10/31 11:02:49| icmpRecv: recv: (111) Connection refused
2007/10/31 11:02:49| Closing Pinger socket on FD 14
2007/10/31 11:02:50| Preparing for shutdown after 4 requests
2007/10/31 11:02:50| Waiting 30 seconds for active connections to finish
2007/10/31 11:02:50| FD 11 Closing HTTP connection
2007/10/31 11:02:57| WARNING: Disk space over limit: 138028 KB > 102400 KB
2007/10/31 11:03:08| WARNING: Disk space over limit: 110412 KB > 102400 KB
2007/10/31 11:03:16| Starting Squid Cache version 2.5.STABLE6 for i386-redhat-linux-gnu...
2007/10/31 11:03:16| Process ID 16862
2007/10/31 11:03:16| With 1024 file descriptors available
2007/10/31 11:03:16| DNS Socket created at 0.0.0.0, port 32874, FD 4
2007/10/31 11:03:16| Adding nameserver 192.168.0.253 from /etc/resolv.conf
2007/10/31 11:03:16| Adding nameserver 192.168.0.1 from /etc/resolv.conf
2007/10/31 11:03:16| User-Agent logging is disabled.
2007/10/31 11:03:16| Referer logging is disabled.
2007/10/31 11:03:16| Unlinkd pipe opened on FD 9
2007/10/31 11:03:16| Swap maxSize 102400 KB, estimated 7876 objects
2007/10/31 11:03:16| Target number of buckets: 393
2007/10/31 11:03:16| Using 8192 Store buckets
2007/10/31 11:03:16| Max Mem size: 8192 KB
2007/10/31 11:03:16| Max Swap size: 102400 KB
2007/10/31 11:03:16| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2007/10/31 11:03:16| Rebuilding storage in /var/spool/squid (DIRTY)
2007/10/31 11:03:16| Using Least Load store dir selection
2007/10/31 11:03:16| Set Current Directory to /var/spool/squid
2007/10/31 11:03:16| Loaded Icons.
2007/10/31 11:03:17| Accepting HTTP connections at 0.0.0.0, port 3128, FD 11.
2007/10/31 11:03:17| Accepting ICP messages at 0.0.0.0, port 3130, FD 12.
2007/10/31 11:03:17| WCCP Disabled.
2007/10/31 11:03:17| Pinger socket opened on FD 14
2007/10/31 11:03:17| Ready to serve requests.
2007/10/31 11:03:17| Store rebuilding is 36.4% complete
2007/10/31 11:03:17| icmpRecv: recv: (111) Connection refused
2007/10/31 11:03:17| Closing Pinger socket on FD 14
2007/10/31 11:03:17| Done reading /var/spool/squid swaplog (11242 entries)
2007/10/31 11:03:17| Finished rebuilding storage from disk.
2007/10/31 11:03:17| 9231 Entries scanned
2007/10/31 11:03:17| 0 Invalid entries.
2007/10/31 11:03:17| 0 With invalid flags.
2007/10/31 11:03:17| 9231 Objects loaded.
2007/10/31 11:03:17| 0 Objects expired.
2007/10/31 11:03:17| 0 Objects cancelled.
2007/10/31 11:03:17| 91 Duplicate URLs purged.
2007/10/31 11:03:17| 0 Swapfile clashes avoided.
2007/10/31 11:03:17| Took 0.4 seconds (22147.3 objects/sec).
2007/10/31 11:03:17| Beginning Validation Procedure
2007/10/31 11:03:17| Completed Validation Procedure
2007/10/31 11:03:17| Validated 9140 Entries
2007/10/31 11:03:17| store_swap_size = 161572k
2007/10/31 11:03:17| storeLateRelease: released 0 objects
2007/10/31 11:03:18| WARNING: Disk space over limit: 160428 KB > 102400 KB
2007/10/31 11:03:29| WARNING: Disk space over limit: 129296 KB > 102400 KB
2007/10/31 11:03:40| WARNING: Disk space over limit: 105588 KB > 102400 KB
>2007/10/31 11:02:45| Beginning Validation Procedure
>2007/10/31 11:02:45| Completed Validation Procedure
>2007/10/31 11:02:45| Validated 9140 Entries
>2007/10/31 11:02:45| store_swap_size = 161572k
>2007/10/31 11:02:46| storeLateRelease: released 0 objects
>2007/10/31 11:02:46| WARNING: Disk space over limit: 160428 KB > 102400 KB^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1 Вылетает он у тебя не от правил, а вот этого! См выше!
swap.state запорчен. Останови сквид, удали swap.state, запусти снова.
2 - Не маловат кэш в Max Swap size: 102400 KB? Советую увеличить. Может как раз из-за его малости и вылетает !? Типа объект размером в 160428 KB затесался,а весь кэш всего 102400 KB !
3 - Версия сквида старовата, обнови хотя бы до 2.5.STABLE14Короче теперь думай.
>[оверквотинг удален]
>1 Вылетает он у тебя не от правил, а вот этого! См
>выше!
>swap.state запорчен. Останови сквид, удали swap.state, запусти снова.
>2 - Не маловат кэш в Max Swap size: 102400 KB? Советую
>увеличить. Может как раз из-за его малости и вылетает !?
>Типа объект размером в 160428 KB затесался,а весь кэш всего 102400
>KB !
>3 - Версия сквида старовата, обнови хотя бы до 2.5.STABLE14
>
>Короче теперь думай.а где увеличить max swap файл? такая же проблема....