Monday, August 23, 2010

No such file or directory: Couldn’t initialize cross-process lock in child (FreeBSD 8.0+apache 2.2.15+prefork MPM)

Недавно наткнулся на баг апача в FreeBSD, который проявляется при graceful-рестарте (например, при ротации логов). Выглядит это примерно так:
[Mon Aug 23 00:00:04 2010] [notice] Graceful restart requested, doing restart
[Mon Aug 23 00:00:04 2010] [emerg] (2)No such file or directory: Couldn't initialize cross-process lock in child (/var/log/accept.lock.74025) (5)
[Mon Aug 23 00:00:04 2010] [emerg] (2)No such file or directory: Couldn't initialize cross-process lock in child (/var/log/accept.lock.74025) (5)
[Mon Aug 23 00:00:06 2010] [alert] Child 57481 returned a Fatal error... Apache is exiting!


Для решения проблемы надо изменить параметр AcceptMutex в конфиге апача:
AcceptMutex fcntl 

Ссылка по теме.

No comments:

Post a Comment