Ivanovo Linux Users Group -  
Форум Помощь Поиск Вход
Предыдущая Следующая Вверх Тема Администрирование / Работа с сетью / Squid (5299 хитов)
- Написал(а) James Дата 16.11.04 07:15
После запуска  Squid падает а причину найти немогу . 
Как можно проследить что происходит.
Можно запустить с параметром -s

Посылает отладочные сообщения (только уровня 0) к syslog.

и что получилось

Nov 16 10:22:30 KUI_GATE squid[433]: Cannot open '/usr/local/squid/logs/access.log' for writing. ^IThe parent directory must be writeable by the ^Iuser 'squid
', which is the cache_effective_user ^Iset in squid.conf.
Nov 16 10:22:34 KUI_GATE squid[435]: Starting Squid Cache version 2.5.STABLE3-20030723 for i586-pc-linux-gnu...
Nov 16 10:22:34 KUI_GATE squid[435]: Cannot open '/usr/local/squid/logs/access.log' for writing. ^IThe parent directory must be writeable by the ^Iuser 'squid
', which is the cache_effective_user ^Iset in squid.conf.
Nov 16 10:22:37 KUI_GATE squid[437]: Starting Squid Cache version 2.5.STABLE3-20030723 for i586-pc-linux-gnu...
Nov 16 10:22:37 KUI_GATE squid[437]: Cannot open '/usr/local/squid/logs/access.log' for writing. ^IThe parent directory must be writeable by the ^Iuser 'squid
', which is the cache_effective_user ^Iset in squid.conf.
Nov 16 10:22:40 KUI_GATE squid[439]: Starting Squid Cache version 2.5.STABLE3-20030723 for i586-pc-linux-gnu...
Nov 16 10:22:40 KUI_GATE squid[439]: Cannot open '/usr/local/squid/logs/access.log' for writing. ^IThe parent directory must be writeable by the ^Iuser 'squid
', which is the cache_effective_user ^Iset in squid.conf.
Nov 16 10:22:43 KUI_GATE squid[442]: Starting Squid Cache version 2.5.STABLE3-20030723 for i586-pc-linux-gnu...
Nov 16 10:22:43 KUI_GATE squid[442]: Cannot open '/usr/local/squid/logs/access.log' for writing. ^IThe parent directory must be writeable by the ^Iuser 'squid
', which is the cache_effective_user ^Iset in squid.conf.
Nov 16 10:22:43 KUI_GATE squid[431]: Exiting due to repeated, frequent failures

:-(
Parent - Написал(а) G0thic Дата 16.11.04 08:12
Черным по белому написано. Не могу открыть файл для записи. Прав не хватает.
Проверяй под каким пользователем работает сквид и меняй права на диры.
Когда кругозор человека сужается к минимуму, он называет это своей точкой зрения.
Parent Написал(а) LOE (Site/forum admin) Дата 16.11.04 08:13
Хех, одновременно ответили :-)
"No! Try not! Do. Or do not. There is no try." -- Yoda
Parent - Написал(а) LOE (Site/forum admin) Дата 16.11.04 08:12
Четко и ясно пишут:
Cannot open '/usr/local/squid/logs/access.log' for writing. ^IThe parent directory must be writeable by the ^Iuser 'squid'

Т.е. parent (родительский) каталог (видимо /usr/local/squid/logs) должен быть записываемым пользователем squid
Так что, проверяй права доступа и правь. (chown squid что-то-там)
"No! Try not! Do. Or do not. There is no try." -- Yoda
Parent Написал(а) James Дата 16.11.04 08:20
Решение было простое .
Удалил старые логи
Запустил squig и он создал новые логи и всё заработало.
:-)
Предыдущая Следующая Вверх Тема Администрирование / Работа с сетью / Squid (5299 хитов)

Powered by mwForum 2.12.0 © 1999-2007 Markus Wichitill

Page created in 0.083s with 10 database queries.