volkoff Опубликовано 28 января, 2006 Жалоба Опубликовано 28 января, 2006 Может быть кто-нибудь сталкивался с подобным. Помогите разобраться. Если судить по логам, то кальмар каждую минуту выдает какую-то ошибку и перезапускается. При этом, в промежутках между перезапусками работает и даже кэширует страницы. Почему это происходит? Что за ошибка? Обновил Squid до версии 2.5.STABLE12. Не помогло! Очистил и пересоздал кэш. Не помогло! Эта сволочь продолжает перезапускаться каждую минуту. Причем, запись в логе, после которой происходит перезапуск не изменилась: 2006/01/21 21:00:03| assertion failed: StatHist.c:120: "Dest->scale == Orig->scale" Куда же, все-таки, копать? Linux RedHat 8.0, ядро 2.4.29, прокси прозрачный. Вот лог: 2006/01/21 21:00:03| assertion failed: StatHist.c:120: "Dest->scale == Orig->scale" 2006/01/21 21:00:07| Starting Squid Cache version 2.5.STABLE12 for i686-pc-linux-gnu... 2006/01/21 21:00:07| Process ID 9695 2006/01/21 21:00:07| With 1024 file descriptors available 2006/01/21 21:00:07| Performing DNS Tests... 2006/01/21 21:00:07| Successful DNS name lookup tests... 2006/01/21 21:00:07| DNS Socket created at 0.0.0.0, port 34231, FD 6 2006/01/21 21:00:07| Adding nameserver 213.138.113.5 from squid.conf 2006/01/21 21:00:07| Adding nameserver 213.138.110.132 from squid.conf 2006/01/21 21:00:07| Unlinkd pipe opened on FD 13 2006/01/21 21:00:07| Swap maxSize 15360000 KB, estimated 960000 objects 2006/01/21 21:00:07| Target number of buckets: 13333 2006/01/21 21:00:07| Using 16384 Store buckets 2006/01/21 21:00:07| Max Mem size: 32768 KB 2006/01/21 21:00:07| Max Swap size: 15360000 KB 2006/01/21 21:00:07| Rebuilding storage in /var/spool/squid (DIRTY) 2006/01/21 21:00:07| Using Least Load store dir selection 2006/01/21 21:00:07| Current Directory is / 2006/01/21 21:00:07| Loaded Icons. 2006/01/21 21:00:07| Accepting HTTP connections at 0.0.0.0, port 3128, FD 15. 2006/01/21 21:00:07| Accepting ICP messages at 0.0.0.0, port 3130, FD 16. 2006/01/21 21:00:07| WCCP Disabled. 2006/01/21 21:00:07| Ready to serve requests. 2006/01/21 21:00:08| Done reading /var/spool/squid swaplog (65 entries) 2006/01/21 21:00:08| Finished rebuilding storage from disk. 2006/01/21 21:00:08| 65 Entries scanned 2006/01/21 21:00:08| 0 Invalid entries. 2006/01/21 21:00:08| 0 With invalid flags. 2006/01/21 21:00:08| 65 Objects loaded. 2006/01/21 21:00:08| 0 Objects expired. 2006/01/21 21:00:08| 0 Objects cancelled. 2006/01/21 21:00:08| 0 Duplicate URLs purged. 2006/01/21 21:00:08| 0 Swapfile clashes avoided. 2006/01/21 21:00:08| Took 0.6 seconds ( 114.3 objects/sec). 2006/01/21 21:00:08| Beginning Validation Procedure 2006/01/21 21:00:08| Completed Validation Procedure 2006/01/21 21:00:08| Validated 65 Entries 2006/01/21 21:00:08| store_swap_size = 556k 2006/01/21 21:00:08| storeLateRelease: released 0 objects 2006/01/21 21:01:07| assertion failed: StatHist.c:120: "Dest->scale == Orig->scale" 2006/01/21 21:01:11| Starting Squid Cache version 2.5.STABLE12 for i686-pc-linux-gnu... Вот файл конфигурации: # NETWORK OPTIONS http_port 3128 # ssl_unclean_shutdown off icp_port 3130 #htcp_port 4827 # udp_incoming_address 0.0.0.0 # udp_outgoing_address 255.255.255.255 # OPTIONS WHICH AFFECT THE NEIGHBOR SELECTION ALGORITHM #cache_peer hostname type http_port icp_port #cache_peer_domain cache-host domain [domain ...] # icp_query_timeout 0 # maximum_icp_query_timeout 2000 # mcast_icp_query_timeout 2000 # dead_peer_timeout 10 seconds hierarchy_stoplist cgi-bin ? acl QUERY urlpath_regex cgi-bin \? no_cache deny QUERY # OPTIONS WHICH AFFECT THE CACHE SIZE cache_mem 32 MB cache_swap_low 90 cache_swap_high 95 maximum_object_size 8192 KB minimum_object_size 0 KB maximum_object_size_in_memory 16 KB ipcache_size 1024 ipcache_low 90 ipcache_high 95 fqdncache_size 1024 cache_replacement_policy lru memory_replacement_policy lru # LOGFILE PATHNAMES AND CACHE DIRECTORIES cache_dir ufs /var/spool/squid 15000 16 256 # cache_access_log /var/log/squid/access.log cache_access_log /dev/null cache_log /var/log/squid/cache.log # cache_store_log /var/log/squid/store.log cache_store_log /dev/null # cache_swap_log.00 # cache_swap_log.01 # cache_swap_log.02 emulate_httpd_log off log_ip_on_direct on # mime_table /usr/local/squid/etc/mime.conf log_mime_hdrs off pid_filename /var/run/squid.pid debug_options ALL,1 log_fqdn off # client_netmask 255.255.255.255 # OPTIONS FOR EXTERNAL SUPPORT PROGRAMS # ftp_user Squid@ ftp_passive on ftp_sanitycheck on # ftp_telnet_protocol on # cache_dns_program /usr/local/squid/libexec/dnsserver # dns_children 5 dns_retransmit_interval 10 seconds dns_timeout 5 minutes # dns_defnames off dns_nameservers 213.138.113.5 213.138.110.132 hosts_file /etc/hosts # diskd_program /usr/local/squid/libexec/diskd unlinkd_program /usr/local/squid/libexec/unlinkd # pinger_program /usr/local/squid/libexec/pinger # redirect_children 5 # redirect_rewrites_host_header on auth_param basic children 5 auth_param basic realm Squid proxy-caching web server auth_param basic credentialsttl 2 hours auth_param basic casesensitive off # authenticate_cache_garbage_interval 1 hour # authenticate_ttl 1 hour # authenticate_ip_ttl 0 seconds # OPTIONS FOR TUNING THE CACHE # wais_relay_port 0 request_header_max_size 64 KB request_body_max_size 0 KB #Suggested default: refresh_pattern ^ftp: 1440 20% 10080 refresh_pattern ^gopher: 1440 0% 1440 refresh_pattern . 0 20% 4320 quick_abort_min 16 KB quick_abort_max 16 KB quick_abort_pct 95 negative_ttl 5 minutes positive_dns_ttl 5 hours negative_dns_ttl 5 minute range_offset_limit 0 KB # TIMEOUTS # forward_timeout 4 minutes connect_timeout 2 minutes peer_connect_timeout 30 seconds read_timeout 15 minutes request_timeout 5 minutes persistent_request_timeout 2 minutes client_lifetime 1 day half_closed_clients on pconn_timeout 120 seconds # ident_timeout 10 seconds shutdown_lifetime 30 seconds # ACCESS CONTROLS #acl allow src "/usr/local/squid/etc/acl/allow.acl" acl allow src 192.168.0.0/24 acl all src 0.0.0.0/0.0.0.0 acl our_networks src 192.168.0.0/24 acl manager proto cache_object acl localhost src 127.0.0.1/255.255.255.255 acl to_localhost dst 127.0.0.0/8 acl SSL_ports port 443 563 acl Safe_ports port 80 # http acl Safe_ports port 21 # ftp acl Safe_ports port 443 563 # https, snews acl Safe_ports port 70 # gopher acl Safe_ports port 210 # wais acl Safe_ports port 1025-65535 # unregistered ports acl Safe_ports port 280 # http-mgmt acl Safe_ports port 488 # gss-http acl Safe_ports port 591 # filemaker acl Safe_ports port 777 # multiling http acl CONNECT method CONNECT #acl FTP proto FTP #always_direct allow FTP http_access allow manager localhost http_access deny manager http_access deny !Safe_ports http_access deny CONNECT !SSL_ports http_access allow localhost http_access allow our_networks http_access allow allow http_access deny all icp_access allow allow icp_access deny all miss_access allow all miss_access deny !allow http_reply_access allow all # ident_lookup_access deny all # reply_header_max_size 20 KB reply_body_max_size 0 allow all # ADMINISTRATIVE PARAMETERS # cache_mgr webmaster # mail_program mail cache_effective_user squid cache_effective_group squid visible_hostname localhost.localdomain #unique_hostname HOST1.MYDOMAIN #hostname_aliases HOST2.MYDOMAIN # TRANSPARENT PROXY CONFIGURATION httpd_accel_host virtual httpd_accel_port 80 httpd_accel_with_proxy on httpd_accel_uses_host_header on # MISCELLANEOUS # dns_testnames MYDOMAIN logfile_rotate 10 #append_domain MYDOMAIN tcp_recv_bufsize 0 bytes memory_pools on # memory_pools_limit 5 MB forwarded_for on log_icp_queries on icp_hit_stale off # minimum_direct_hops 4 # minimum_direct_rtt 400 # cachemgr_passwd disable all store_avg_object_size 16 KB store_objects_per_bucket 72 # client_db on # netdb_low 900 # netdb_high 1000 # netdb_ping_period 5 minutes query_icmp on test_reachability off buffered_logs off reload_into_ims off # acl FTP proto FTP # always_direct allow FTP icon_directory /usr/local/squid/share/icons # global_internal_static on # short_icon_urls off error_directory /usr/local/squid/share/errors/English maximum_single_addr_tries 5 # retry_on_error off nonhierarchical_direct off prefer_direct off strip_query_terms on coredump_dir none # Leave coredumps in the first cache dir #coredump_dir /var/spool/squid # redirector_bypass off ignore_unknown_nameservers on client_persistent_connections on server_persistent_connections on # detect_broken_pconn off # balance_on_multiple_ip on pipeline_prefetch off request_entities off high_response_time_warning 0 high_page_fault_warning 0 high_memory_warning 0 store_dir_select_algorithm least-load ie_refresh off vary_ignore_expire off sleep_after_fork 0 Цитата
merlon Опубликовано 7 февраля, 2006 Жалоба Опубликовано 7 февраля, 2006 Если вам не нужны эти логи то лучше сделать так cache_store_log none cache_access_log none Цитата
Рекомендуемые сообщения
Присоединяйтесь к обсуждению
Вы можете написать сейчас и зарегистрироваться позже. Если у вас есть аккаунт, авторизуйтесь, чтобы опубликовать от имени своего аккаунта.