CloudLinux - Fatal Error Unable to create lock file: Bad file descriptor (9)
Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2024
CloudLinux - Fatal Error Unable to create lock file: Bad file descriptor (9)
Ошибка:
Thu Mar 10 23:05:30 2016 (346206): Fatal Error Unable to create lock file: Bad file descriptor (9)
и на сайте 503 и ошибка:
[Thu Mar 10 23:06:00.372259 2016] [lsapi:error] [pid 337756:tid 140144333821696] [client :55867] mod_lsapi: [host site.ru] [req GET /i.php HTTP/1.0] Could not connect to lsphp backend: connect to lsphp refused: 111 (possibly memory limit for LVE ID 1030 too small)
или вот такая ошибка:
[:error] [pid 183003:tid 23994341183680] [client :51272] PHP Fatal error: xc_fcntl_create: open(/tmp/.xcache.692.201667.1.mutex, O_RDWR|O_CREAT, 0666) failed: in Unknown on line 0 [:error] [pid 183003:tid 23994341183680] [client :51272] PHP Fatal error: xc_fcntl_mutex failed errno:9 in Unknown on line 0
Решается командами:
# cagefsctl -u # cagefsctl --disable user_name # cagefsctl --enable user_name
Если стоит DirectAdmin - добавляем бинарники php и обновляем скелет CageFS:
# cat /etc/cagefs/conf.d/directadmin.cfg [directadmin] comment=directadmin configs users=admin, diradmin groups=admin, diradmin paths=/usr/local/php5/bin/php-cgi, /usr/local/etc/php5, /usr/local/safe-bin, /usr/local/php53, /usr/local/php54, /usr/local/php55, /usr/local/php56, /usr/local/php70 # cagefsctl -u