Не стартует squid 2.6010/01/14 15:01:15| ALERT: setgid: (1) Operation not permitted
WARNING: Cannot write log file: /usr/local/squid/var/logs/cache.log
/usr/local/squid/var/logs/cache.log: Permission denied
messages will be sent to 'stderr'.
2010/01/14 15:01:15| WARNING: Closing open FD 2
2010/01/14 15:01:15| Starting Squid Cache version 2.6.STABLE9 for i386-unknown-freebsd6.2...
2010/01/14 15:01:15| Process ID 1228
2010/01/14 15:01:15| With 2240 file descriptors available
2010/01/14 15:01:15| Using kqueue for the IO loop
2010/01/14 15:01:15| Performing DNS Tests...
2010/01/14 15:01:15| Successful DNS name lookup tests...
2010/01/14 15:01:15| DNS Socket created at 0.0.0.0, port 56707, FD 5
2010/01/14 15:01:15| Adding nameserver xxx.xxx.xxx.xxx from squid.conf
FATAL: Cannot open '/usr/local/squid/var/logs/access.log' for writing.
The parent directory must be writeable by the
user 'squid', which is the cache_effective_user
set in squid.conf.cat /etc/group /etc/passwd | grep squid
squid:*:10:
squid:*:10:10:Squid Cache pseudo-user:/usr/local/squid:/sbin/nologincat /usr/local/squid/etc/squid.conf | grep effective
cache_effective_user squid
cache_effective_group squidи собственно
ls -lR /usr/local/squid/var/
total 12
drwxr-xr-x 3 squid squid 512 Aug 1 12:37 ./
drwxr-xr-x 10 squid squid 512 Aug 1 12:21 ../
drwxr-xr-x 2 squid squid 512 Jan 14 13:40 logs/
-rw-r--r-- 1 squid squid 5168 Jan 14 15:06 squid.out/usr/local/squid/var/logs:
total 30
drwxr-xr-x 2 squid squid 512 Jan 14 13:40 ./
drwxr-xr-x 3 squid squid 512 Aug 1 12:37 ../
-rw-r----- 1 squid squid 0 Jan 14 13:40 access.log
-rw-r----- 1 squid squid 25094 Jan 14 15:06 cache.log
-rw-r----- 1 squid squid 0 Jan 14 13:40 store.logтак вопрос , почему ?
>[оверквотинг удален]
>drwxr-xr-x 3 squid squid 512 Aug
>1 12:37 ../
>-rw-r----- 1 squid squid 0
>Jan 14 13:40 access.log
>-rw-r----- 1 squid squid 25094 Jan 14 15:06 cache.log
>
>-rw-r----- 1 squid squid 0
>Jan 14 13:40 store.log
>
>так вопрос , почему ?==============================================================
Чегой-то тут нехватат
должно быть так
total 8
drwxr-x--- 18 squid squid 512 Jan 9 00:00 cache
drwxr-x--- 2 squid squid 512 Jan 9 00:00 logs
==============================================================
нехватат папки cache
ты делал
#squid -z
>[оверквотинг удален]
>должно быть так
>total 8
>drwxr-x--- 18 squid squid 512 Jan 9 00:00
>cache
>drwxr-x--- 2 squid squid 512 Jan 9
>00:00 logs
>==============================================================
>нехватат папки cache
>ты делал
>#squid -zcache повыже лежит
ls -l /usr/local/squid/
total 20
drwxr-xr-x 10 squid squid 512 Aug 1 12:21 ./
drwxr-xr-x 15 root wheel 512 Aug 1 11:46 ../
drwxr-xr-x 2 squid squid 512 Aug 1 10:59 bin/
drwxr-x--- 18 squid squid 512 Jan 14 13:41 cache/
drwxr-xr-x 2 squid squid 512 Aug 1 12:20 etc/
drwxr-xr-x 2 squid squid 512 Aug 1 10:59 libexec/
drwxr-xr-x 3 squid squid 512 Aug 1 10:59 man/
drwxr-xr-x 2 squid squid 512 Aug 1 10:58 sbin/
drwxr-xr-x 4 squid squid 512 Aug 1 10:58 share/
drwxr-xr-x 3 squid squid 512 Aug 1 12:37 var/
>[оверквотинг удален]
>drwxr-xr-x 2 squid squid 512 Aug 1
>10:59 libexec/
>drwxr-xr-x 3 squid squid 512 Aug 1
>10:59 man/
>drwxr-xr-x 2 squid squid 512 Aug 1
>10:58 sbin/
>drwxr-xr-x 4 squid squid 512 Aug 1
>10:58 share/
>drwxr-xr-x 3 squid squid 512 Aug 1
>12:37 var/=============================================================
попробуй дать полные права
chmod 777 *.log
Далее /usr/local/etc/rc.d/squid start
Если стартанет при работающем сквиде
/xxx/xxx/sbin/squid -k rotate (или где у тя там лежит)
=============================================================
могет помогет
>=============================================================
>попробуй дать полные права
>chmod 777 *.log
>Далее /usr/local/etc/rc.d/squid start
>Если стартанет при работающем сквиде
>/xxx/xxx/sbin/squid -k rotate (или где у тя там лежит)
>=============================================================
>могет помогетне помогло :(
ошибки те же
>[оверквотинг удален]
>>попробуй дать полные права
>>chmod 777 *.log
>>Далее /usr/local/etc/rc.d/squid start
>>Если стартанет при работающем сквиде
>>/xxx/xxx/sbin/squid -k rotate (или где у тя там лежит)
>>=============================================================
>>могет помогет
>
>не помогло :(
>ошибки те же=========================================
squid to хоть стартанул после установки прав в 777
>[оверквотинг удален]
>>>Если стартанет при работающем сквиде
>>>/xxx/xxx/sbin/squid -k rotate (или где у тя там лежит)
>>>=============================================================
>>>могет помогет
>>
>>не помогло :(
>>ошибки те же
>
>=========================================
>squid to хоть стартанул после установки прав в 777Закоментируй effective user and group
и пробуй стартовать
>squid to хоть стартанул после установки прав в 777rm -r /usr/local/squid/cache
/usr/local/squid/sbin/squid -z
/usr/local/squid/sbin/squid -NsY
Abort trap: 6
tail /var/log/messages
Jan 14 16:28:54 nsw4 squid[1480]: Starting Squid Cache version 2.6.STABLE9 for i386-unknown-freebsd6.2...
Jan 14 16:28:54 nsw4 squid[1480]: Process ID 1480
Jan 14 16:28:54 nsw4 squid[1480]: With 2240 file descriptors available
Jan 14 16:28:54 nsw4 squid[1480]: Using kqueue for the IO loop
Jan 14 16:28:54 nsw4 squid[1480]: Performing DNS Tests...
Jan 14 16:28:55 nsw4 kernel: pid 1480 (squid), uid 10: exited on signal 6
Jan 14 16:28:55 nsw4 squid[1480]: ipcache_init: DNS name lookup tests failed.
>[оверквотинг удален]
>tail /var/log/messages
>Jan 14 16:28:54 nsw4 squid[1480]: Starting Squid Cache version 2.6.STABLE9 for i386-unknown-freebsd6.2...
>
>Jan 14 16:28:54 nsw4 squid[1480]: Process ID 1480
>Jan 14 16:28:54 nsw4 squid[1480]: With 2240 file descriptors available
>Jan 14 16:28:54 nsw4 squid[1480]: Using kqueue for the IO loop
>Jan 14 16:28:54 nsw4 squid[1480]: Performing DNS Tests...
>Jan 14 16:28:55 nsw4 kernel: pid 1480 (squid), uid 10: exited on
>signal 6
>Jan 14 16:28:55 nsw4 squid[1480]: ipcache_init: DNS name lookup tests failed.=================================================
resolv.conf в студию, проверь что у тя с DNS
>[оверквотинг удален]
>>Jan 14 16:28:54 nsw4 squid[1480]: Process ID 1480
>>Jan 14 16:28:54 nsw4 squid[1480]: With 2240 file descriptors available
>>Jan 14 16:28:54 nsw4 squid[1480]: Using kqueue for the IO loop
>>Jan 14 16:28:54 nsw4 squid[1480]: Performing DNS Tests...
>>Jan 14 16:28:55 nsw4 kernel: pid 1480 (squid), uid 10: exited on
>>signal 6
>>Jan 14 16:28:55 nsw4 squid[1480]: ipcache_init: DNS name lookup tests failed.
>
>=================================================
>resolv.conf в студию, проверь что у тя с DNSс днс потом разберусь , тут с правами какая-то беда
Jan 14 16:49:07 nsw4 squid[1121]: ALERT: setgid: (1) Operation not permitted
Jan 14 16:49:07 nsw4 squid[1120]: Unlinkd pipe opened on FD 11
Jan 14 16:49:07 nsw4 squid[1120]: Swap maxSize 1024000 KB, estimated 78769 objects
Jan 14 16:49:07 nsw4 squid[1120]: Target number of buckets: 3938
Jan 14 16:49:07 nsw4 squid[1120]: Using 8192 Store buckets
Jan 14 16:49:07 nsw4 squid[1120]: Max Mem size: 32768 KB
Jan 14 16:49:07 nsw4 squid[1120]: Max Swap size: 1024000 KB
Jan 14 16:49:07 nsw4 squid[1120]: /usr/local/squid/cache/00: (13) Permission denied
Jan 14 16:49:07 nsw4 squid[1120]: Failed to verify one of the swap directories, Check cache.log for details. Run 'squid -z' to create swap directories if needed, or if running Squid for the first time.
Jan 14 16:49:08 nsw4 kernel: pid 1120 (squid), uid 101: exited on signal 6 (core dumped)ls -l /usr/local/squid/cache/00 | less
total 512
drwxr-x--- 2 squid squid 512 Jan 14 16:18 00
drwxr-x--- 2 squid squid 512 Jan 14 16:18 01
drwxr-x--- 2 squid squid 512 Jan 14 16:18 02
drwxr-x--- 2 squid squid 512 Jan 14 16:18 03
drwxr-x--- 2 squid squid 512 Jan 14 16:18 04
drwxr-x--- 2 squid squid 512 Jan 14 16:18 05
drwxr-x--- 2 squid squid 512 Jan 14 16:18 06
>[оверквотинг удален]
>drwxr-x--- 2 squid squid 512 Jan 14 16:18 02
>
>drwxr-x--- 2 squid squid 512 Jan 14 16:18 03
>
>drwxr-x--- 2 squid squid 512 Jan 14 16:18 04
>
>drwxr-x--- 2 squid squid 512 Jan 14 16:18 05
>
>drwxr-x--- 2 squid squid 512 Jan 14 16:18 06
>===========================================================
Пробуй
Удали директорию кеша и пересоздай вновь
squid -z