Действия

Cpanel - Starting cPanel Log services: Failed to write lock file: /var/cpanel/cpanel.config.lock: Bad file descriptor

Материал из Wiki - Iphoster - 'the best ever support'

Ошибки:

Starting cPanel Log services: Failed to write lock file: /var/cpanel/cpanel.config.lock: Bad file descriptor at /usr/local/cpanel/Cpanel/SafeFileLock.pm line 17.

или

Internal Server Error
500
failed to open session lockfile: FILE=/var/cpanel/sessions/raw/:DHv1AKioT9TzXGJvo8qJdlSvmxO9ecE0D2mCeCrxVAP1libgnTtfPT5Y0U2zfClV.lock,  No such file or directory at /usr/local/cpanel/Cpanel/Session.pm line 238.

Решение - проверить место и количество инодов на разделах. Почистить мелкие файлы.

# df -i
Filesystem            Inodes   IUsed   IFree IUse% Mounted on
/dev/md2              983488  983488       0  100% /
# df -h

Определяем где мелкие файлы

# cd /var
# find . -xdev -type f | cut -d "/" -f 2 | sort | uniq -c | sort -nr
348891 spool
  5121 cpanel
   171 lib
   164 log
   118 named
    62 run
    42 cache
    23 lock
     8 profiles
     

Чистим очередь exim