URL: https://www.opennet.me/cgi-bin/openforum/vsluhboard.cgi
Форум: vsluhforumID12
Нить номер: 4464
[ Назад ]

Исходное сообщение
"squid не может открыть папку с логами????"

Отправлено ffoobbooss , 29-Окт-06 18:36 
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'.
2006/10/29 19:46:40| WARNING: Closing open FD    2
2006/10/29 19:46:40| Starting Squid Cache version 2.6.STABLE4 for i686-pc-linux-gnu...
2006/10/29 19:46:40| Process ID 642
2006/10/29 19:46:40| With 1024 file descriptors available
2006/10/29 19:46:40| Using epoll for the IO loop
2006/10/29 19:46:40| Performing DNS Tests...
2006/10/29 19:46:40| Successful DNS name lookup tests...
2006/10/29 19:46:40| DNS Socket created at 0.0.0.0, port 32808, FD 4
2006/10/29 19:46:40| Adding nameserver 10.10.0.2 from /etc/resolv.conf
FATAL: Cannot open '/usr/local/squid/var/logs/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.STABLE4): Terminated abnormally.
CPU Usage: 0.012 seconds = 0.004 user + 0.008 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0
Aborted (core dumped)


помогите запустить пожалуйста


Содержание

Сообщения в этом обсуждении
"squid не может открыть папку с логами????"
Отправлено Free , 29-Окт-06 21:18 
Изменить права доступа.

"squid не может открыть папку с логами????"
Отправлено germes1973 , 30-Окт-06 13:36 
>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'.
>2006/10/29 19:46:40| WARNING: Closing open FD    2
>2006/10/29 19:46:40| Starting Squid Cache version 2.6.STABLE4 for i686-pc-linux-gnu...
>2006/10/29 19:46:40| Process ID 642
>2006/10/29 19:46:40| With 1024 file descriptors available
>2006/10/29 19:46:40| Using epoll for the IO loop
>2006/10/29 19:46:40| Performing DNS Tests...
>2006/10/29 19:46:40| Successful DNS name lookup tests...
>2006/10/29 19:46:40| DNS Socket created at 0.0.0.0, port 32808, FD 4
>2006/10/29 19:46:40| Adding nameserver 10.10.0.2 from /etc/resolv.conf
>FATAL: Cannot open '/usr/local/squid/var/logs/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.STABLE4): Terminated abnormally.
>CPU Usage: 0.012 seconds = 0.004 user + 0.008 sys
>Maximum Resident Size: 0 KB
>Page faults with physical i/o: 0
>Aborted (core dumped)
>
>
>помогите запустить пожалуйста


Смотри, он пишет, не могу открыть для записи. В squid.conf найди
TAG cache_effective_user xxxx
TAG cache_effective_group xxxx
кто у тебя вместо иксов написан.
Потом руцями chmod xxxx /usr/local/squid/var/logs/access.log и все необходимые для работы сквида файлы, в том числе и файлы ошибок и папки с кэшем.