The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WHM Shows an error occurred while processing this directive message when trying to create a hosting

Discussion in 'General Discussion' started by dpika23, Jun 2, 2014.

  1. dpika23

    dpika23 Active Member

    Joined:
    Oct 20, 2005
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6
    WHM gives error as
    I am getting the following error message on top of the package creation box in WHM. (WHM > Add packages)

    [an error occurred while processing this directive]

    I am using server:

    CLOUDLINUX 6.5 x86_64 standard
    WHM 11.42.1 (build 16)
    cPanel Version 11.42.1 (build 16)
    Apache version 2.2.27
    Kernel version 2.6.32-531.1.2.lve1.2.54.el6.x86_64

    Error log details are below:

    /usr/local/cpanel/logs/error_log
    Code:
    [2014-06-02 07:07:01 +0000] warn [Internal Warning while parsing [stdin] 748029] Failed to write lock file: /etc/ipaddrpool.lock:  at /usr/local/cpanel/Cpanel/SafeFileLock.pm line 17.
    Cpanel::SafeFileLock::new('Cpanel::SafeFileLock', '/etc/ipaddrpool.lock', 'GLOB(0x503a7c0)') called at /usr/local/cpanel/Cpanel/SafeFile.pm line 128
    Cpanel::SafeFile::safelock('/etc/ipaddrpool') called at /usr/local/cpanel/Cpanel/SafeFile.pm line 235
    Cpanel::SafeFile::_safe_open('GLOB(0x470b320)', '<', '/etc/ipaddrpool', 'CODE(0x29f33b0)', 'safeopen') called at /usr/local/cpanel/Cpanel/SafeFile.pm line 32
    
    Tried fixquotas command but that doesn't resolved my problem.

    Code:
    root@serverxx [/scripts]# ./fixquotas
    Installing Default Quota Databases......Done
    Quota Mode: Linux
    journaled quota support: kernel supports, user space tools supports (available)
    checking out /backup
    checking out /backup
    Failed to write lock file: /etc/fstab.lock: Bad file descriptor at /usr/local/cpanel/Cpanel/SafeFileLock.pm line 17.
    Failed to write lock file: /etc/fstab.lock: Bad file descriptor at /usr/local/cpanel/Cpanel/SafeFileLock.pm line 17.
    
    I had rebooted the server also. But doesn't resolved error.

    cPanel updation stopped with following error.

    [20140602.110148] [316535] Failed to write lock file: /etc/cpupdate.conf.lock: Bad file descriptor at /usr/local/cpanel/Cpanel/SafeFileLock.pm line 17.

    Is this related to inode full, if so, how can I remove it ?

    Code:
    root@serverxx [/]# df -i
    Filesystem     Inodes IUsed IFree IUse% Mounted on
    /dev/sda5        640K  640K     0  100% /
    tmpfs            979K     3  979K    1% /dev/shm
    /dev/sda1         26K    44   26K    1% /boot
    /dev/sda8         55M  3.6M   52M    7% /home
    /dev/sda7         64K  3.5K   61K    6% /tmp
    /dev/sda2        1.3M  181K  1.1M   15% /usr
    /dev/sda3        1.3M  449K  832K   36% /var
    /dev/sdb1         59M  4.2M   55M    8% /backup
    
    Code:
    root@serverxx [/etc]# df -h
    Filesystem      Size  Used Avail Use% Mounted on
    /dev/sda5       9.9G  8.1G  1.3G  87% /
    tmpfs           3.9G  4.0K  3.9G   1% /dev/shm
    /dev/sda1        99M   85M  9.1M  91% /boot
    /dev/sda8       863G  243G  577G  30% /home
    /dev/sda7      1008M   73M  884M   8% /tmp
    /dev/sda2        20G   14G  5.1G  73% /usr
    /dev/sda3        20G  8.4G   11G  45% /var
    /dev/sdb1       917G  310G  561G  36% /backup
    
    Please help me to resolve this issue.

    Thank you so much in advance.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,742
    Likes Received:
    662
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Re: WHM Shows an error occurred while processing this directive message when trying to create a host

    Hello :)

    The output you provided shows the primary "/" partition is at it's disk inodes limit. You will need to delete some files in this partition to free up inodes. Searching for "increase inodes limit linux" on a search engine will also yield some helpful results.

    Thank you.
     
  3. anniesteephan

    anniesteephan Member

    Joined:
    Oct 31, 2012
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Re: WHM Shows an error occurred while processing this directive message when trying to create a host

    Hi,

    It seems your server is out of inodes.

    /mnt/root/.cpanel/comet/channels may have large number of files.

    You can check this by ls -LR|wc -l

    You can safely clean up some files by running the following command.

    usr/local/cpanel/bin/purge_dead_comet_files

    Thanks!
     
Loading...

Share This Page