Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

cPhulkd Error Log takes too much space

Discussion in 'General Discussion' started by Tommy Pro, Jul 17, 2017.

Tags:
  1. Tommy Pro

    Tommy Pro Member

    Joined:
    Jul 17, 2017
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Indonesia
    cPanel Access Level:
    Root Administrator
    Hi guys, i need help on cphulkd_error.logs

    For some reason it takes too much space in my server ( please see screenshot )
    and i cannot delete it.

    Screen Shot 2017-07-18 at 12.37.18 PM.png

    Screen Shot 2017-07-18 at 12.37.27 PM.png
     
  2. rpvw

    rpvw Well-Known Member

    Joined:
    Jul 18, 2013
    Messages:
    735
    Likes Received:
    251
    Trophy Points:
    113
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    Do make sure you have cphulkd.log and cphulkd_errors.log checked as in rotation :
    Home » Service Configuration » cPanel Log Rotation Configuration

    Also check that your Tweak Settings >> Log Rotation Size Threshold is set to a size consistent with your available space. (The default is 300MB)

    See cPanel Log Rotation Configuration for more information.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #2 rpvw, Jul 18, 2017
    Last edited: Jul 18, 2017
    cPanelMichael likes this.
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,396
    Likes Received:
    1,857
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Could you also check the file attributes on that log file? EX:

    Code:
    lsattr /usr/local/cpanel/logs/cphulkd_errors.log
    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. Tommy Pro

    Tommy Pro Member

    Joined:
    Jul 17, 2017
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Indonesia
    cPanel Access Level:
    Root Administrator
    [root@server1 ~]# lasttr /usr/local/cpanel/logs/cphulkd_errors.log
    -bash: lasttr: command not found
     
  5. Tommy Pro

    Tommy Pro Member

    Joined:
    Jul 17, 2017
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Indonesia
    cPanel Access Level:
    Root Administrator
    Hi Rpvw, thanks for replying. I just untick log rotation for cphulkd.log and cphulkd_errors.log.

    Log rotation size threshold is on default ( 300MB ).

    Can i just delete that file now?
     
  6. rpvw

    rpvw Well-Known Member

    Joined:
    Jul 18, 2013
    Messages:
    735
    Likes Received:
    251
    Trophy Points:
    113
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    I do NOT recommend that you take the files out of rotation, nor that you attempt to delete them yet.

    I would recommend you first ascertain as to why the files are not being rotated.

    It is always possible that cPanel is not handling the rotation correctly.
    Personally, I cannot see any entry in my /etc/logrotate.conf nor in /etc/logrotate.d associated with cphulk.
    On this basis, I have to assume that cPanel is using some other totally distinct process (cpanellogd daemon ?) to handle the cphulk (and others) log rotation, OR that there is a fundamental issue with the log rotation scripting and integration with logrotate.d

    It is also possible that your log is growing unusually quickly for some reason. Since it seems to be rotated only once at the end of each month, it may have not been rotated yet. Have you checked to see if there are any older rotated log files in the /usr/local/cpanel/logs/archive/ directory ?

    Perhaps you should open a support ticket and get an opinion straight from developers.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #6 rpvw, Jul 19, 2017
    Last edited: Jul 19, 2017
  7. Tommy Pro

    Tommy Pro Member

    Joined:
    Jul 17, 2017
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Indonesia
    cPanel Access Level:
    Root Administrator
    The rotation was ticked in the first place, i manually untick those. Okay thanks Rpvw
     
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,396
    Likes Received:
    1,857
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    The command to use is:

    Code:
    lsattr /usr/local/cpanel/logs/cphulkd_errors.log
    You swapped the "s" and the "a" in "lsattr" in your command.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. Tommy Pro

    Tommy Pro Member

    Joined:
    Jul 17, 2017
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Indonesia
    cPanel Access Level:
    Root Administrator
    [root@server1 ~]# lsattr /usr/local/cpanel/logs/cphulkd_errors.log
    -----a-------e- /usr/local/cpanel/logs/cphulkd_errors.log

    whats next ? :D
     
  10. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,396
    Likes Received:
    1,857
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Could you open a support ticket using the link in my signature so we can take a closer look to see why that log isn't rotated?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. Tommy Pro

    Tommy Pro Member

    Joined:
    Jul 17, 2017
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Indonesia
    cPanel Access Level:
    Root Administrator
    Hi Michael, it was in the first place, as i said before i manually untick the rotation and at the end i return to its default setting which is ticked.

    The problem was not the rotation ( i think ).
    But the file size of the error logs, i already opened a support ticket and jack is currently on it.

    Thanks for replying!
     
  12. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,396
    Likes Received:
    1,857
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Could you post the ticket number here so we can update this thread with the outcome?

    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  13. Tommy Pro

    Tommy Pro Member

    Joined:
    Jul 17, 2017
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Indonesia
    cPanel Access Level:
    Root Administrator
    Hi Michael, is it safe to share ticket number here? cause there's some credentials inside the ticket. ( including server IP in the discussion ). Plus its not resolve yet.
     
  14. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,396
    Likes Received:
    1,857
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hi Tommy,

    It's safe to post the ticket number, but I was actually able to find the support ticket so it's no longer required. I'll monitor the ticket and update this thread with the outcome.

    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  15. abdelhost77

    abdelhost77 Well-Known Member

    Joined:
    Apr 25, 2012
    Messages:
    101
    Likes Received:
    2
    Trophy Points:
    68
    cPanel Access Level:
    Root Administrator
    Hi CpanelMichael ,

    what is the solution please to that pb? i have the same , log file more than 10G , and wont be deleted .

    [/usr/local/cpanel/logs]# lsattr /usr/local/cpanel/logs/cphulkd_errors.log
    -----a-------e- /usr/local/cpanel/logs/cphulkd_errors.log
     
  16. abdelhost77

    abdelhost77 Well-Known Member

    Joined:
    Apr 25, 2012
    Messages:
    101
    Likes Received:
    2
    Trophy Points:
    68
    cPanel Access Level:
    Root Administrator
    Is it safe to run as root ?

    # chattr -a cphulkd_errors.log
    # > cphulkd_errors.log
     
  17. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    2,266
    Likes Received:
    163
    Trophy Points:
    143
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @abdelhost77

    The attributes of that file are standard - looking at my own it's as follows:
    Code:
    # lsattr /usr/local/cpanel/logs/cphulkd_errors.log
    -----a-------e-- /usr/local/cpanel/logs/cphulkd_errors.log
    Can you tell me if cphulkd_errors.log is configured in WHM>>Service Configuration>>cPanel Log Rotation Configuration and what the Log Rotation Size Threshold is set to at WHM>>Server Configuration>>Tweak Settings

    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice