Косяк squid-а
Гость 4 апреля, 2007 - 10:08
народ подскажите что со squid-oм?
/etc/init.d/squid restart
* Stopping squid ...
squid: ERROR: No running copy [ ok ]
* Initializing cache directories ... [ ok ]
* Starting squid ... [ ok ]
стояла версия 2.6.5 тоже была ерунда поставил 2.6.12 тот же баг
»
- Для комментирования войдите или зарегистрируйтесь
Логи + конфиг - в
Логи + конфиг - в студию
config acl LocalNet src
config
acl LocalNet src 192.168.105.0/24
http_port 192.168.105.4:3128
icp_port 0
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
cache_mem 128 MB
maximum_object_size 8092 KB
maximum_object_size_in_memory 512 KB
cache_dir ufs /usr/local/squid/cache 2048 64 256
cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log /var/log/squid/store.log
tcp_outgoing_address 195.210.168.83
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
acl all src 0.0.0.0/0.0.0.0
#acl allowed_sites dstdomain /usr/local/my_doc_smb/squid/allowed_sites.conf
#acl limited_IP src /usr/local/my_doc_smb/squid/limited_IP.conf
acl localhost src 127.0.0.0/8
acl our_networks src 192.168.105.0/24
#acl denied_sites dstdomain /usr/local/my_doc_smb/squid/denied_ext.conf
#http_access deny denied_sites
#http_access allow allowed_sites
#http_access deny limited_IP
#http_access allow our_networks
http_access allow localhost
http_access deny all
acl acer src 192.168.105.100
acl server src 192.168.105.5
acl samba src 192.168.105.4
http_access allow samba
http_access allow acer
http_access allow server
#httpd_accel_host virtual
#httpd_accel_port 80
#httpd_accel_uses_host_header on
coredump_dir /usr/local/squid/cache
pid_filename /usr/local/squid/log/squid.pid
cache_mgr
visible_hostname mail.my_domain.ru
а логи что то пустые
Startup: Tue Apr 3 17:08:53
Startup: Tue Apr 3 17:08:53 GMT 2007
WARNING: Cannot write log file: /var/log/squid/cache.log
/var/log/squid/cache.log: Permission denied
messages will be sent to 'stderr'.
2007/04/03 17:08:53| WARNING: Closing open FD 2
2007/04/03 17:08:53| Starting Squid Cache version 2.6.STABLE12-20070329 for i686-pc-linux-gnu...
2007/04/03 17:08:53| Process ID 21677
2007/04/03 17:08:53| With 1024 file descriptors available
2007/04/03 17:08:53| Using epoll for the IO loop
2007/04/03 17:08:53| Performing DNS Tests...
2007/04/03 17:08:53| Successful DNS name lookup tests...
2007/04/03 17:08:53| DNS Socket created at 0.0.0.0, port 32773, FD 6
2007/04/03 17:08:53| Adding nameserver 192.168.105.1 from /etc/resolv.conf
2007/04/03 17:08:53| Adding nameserver 212.248.0.1 from /etc/resolv.conf
FATAL: Cannot open '/var/log/squid/access.log' for writing.
The parent directory must be writeable by the
user 'nobody', which is the cache_effective_user
set in squid.conf.
Squid Cache (Version 2.6.STABLE12-20070329): Terminated abnormally.
CPU Usage: 0.010 seconds = 0.000 user + 0.010 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0
Всё же
Всё же написано.
файлы логов
файлы логов созданы а тока бесталку
cache_effective_user
cache_effective_user squid
cache_effective_group squid
в конф кальмара
после, для подстраховки
/etc/init.d/squid stop
/etc/init.d squid zap
killall -9 squid
chown -R squid:squid /var/log/squid
squid -z
/etc/init.d/squid start
_________________
Core2Duo ~x86 4gb ram kde
2007/04/04 11:23:42|
2007/04/04 11:23:42| Starting Squid Cache version 2.6.STABLE12-20070329 for i686-pc-linux-gnu...
2007/04/04 11:23:42| Process ID 13072
2007/04/04 11:23:42| With 1024 file descriptors available
2007/04/04 11:23:42| Using epoll for the IO loop
2007/04/04 11:23:42| Performing DNS Tests...
2007/04/04 11:23:42| Successful DNS name lookup tests...
2007/04/04 11:23:42| DNS Socket created at 0.0.0.0, port 32822, FD 5
2007/04/04 11:23:42| Adding nameserver 192.168.105.1 from /etc/resolv.conf
2007/04/04 11:23:42| Adding nameserver 212.248.0.1 from /etc/resolv.conf
2007/04/04 11:23:42| Unlinkd pipe opened on FD 10
2007/04/04 11:23:42| Swap maxSize 2097152 KB, estimated 161319 objects
2007/04/04 11:23:42| Target number of buckets: 8065
2007/04/04 11:23:42| Using 8192 Store buckets
2007/04/04 11:23:42| Max Mem size: 131072 KB
2007/04/04 11:23:42| Max Swap size: 2097152 KB
2007/04/04 11:23:42| /usr/local/squid/cache/swap.state: (13) Permission denied
FATAL: storeUfsDirOpenSwapLog: Failed to open swap log.
Squid Cache (Version 2.6.STABLE12-20070329): Terminated abnormally.
CPU Usage: 0.010 seconds = 0.000 user + 0.010 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0
все разобрался
все разобрался