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.

Strange directory inside /root/

Discussion in 'General Discussion' started by benito, Apr 15, 2012.

  1. benito

    benito Well-Known Member

    Joined:
    Jan 8, 2004
    Messages:
    301
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Mar del Plata - Argentina
    Anyone knows what is the comet directory inside /root/.cpanel ?


    root@myserver [~/.cpanel/comet]# ls -l
    total 20
    drwx------ 5 root root 4096 Apr 15 23:01 ./
    drwxr-xr-x 4 root root 4096 Apr 15 16:03 ../
    drwx------ 3 root root 4096 Apr 15 23:01 channels/
    drwx------ 4 root root 4096 Apr 15 23:01 subscriber_channel_positions/
    drwx------ 4 root root 4096 Apr 15 23:01 subscriptions/
     
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,622
    Likes Received:
    24
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    There appears to be comet scripting (likely related to what is discussed at Comet (programming) - Wikipedia, the free encyclopedia) for certain cPanel functions, mainly related to WHM email area functions. You can always try moving the directory temporarily, then visit WHM > Email > Mail Queue Manager to see if it reforms.

    Usually, if you check files inside folders, you'll get an idea what might be happening. Most the cases I read about this indicates that some areas such as mail delivery reports were going to be based on comet scripting (case 32322 is one example). I also see mention of Comet in case 50306 in our changelog at CPanelVersion1132 < AllDocumentation/ChangeLog < TWiki
     
  3. benito

    benito Well-Known Member

    Joined:
    Jan 8, 2004
    Messages:
    301
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Mar del Plata - Argentina
    Thanks Tristan, 640k + files located there filled up my inodes con / partition. I removed the files and everything looks ok now, the comet directory structore has been regenerated again but with a few files now.
     
  4. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,622
    Likes Received:
    24
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Certainly, although if you have this happen again, please check the files and let us know. We have a reported case (58692) where a very high number of emails in the mail queue manager caused /root/.cpanel/comet to be very large in size and overrun the disk space allotment.
     
  5. benito

    benito Well-Known Member

    Joined:
    Jan 8, 2004
    Messages:
    301
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Mar del Plata - Argentina
    yes that was what happened, after a spam attack, all files inside /root/.cpanel/comet are files from queue.
     
  6. hicom

    hicom Well-Known Member

    Joined:
    May 23, 2003
    Messages:
    273
    Likes Received:
    0
    Trophy Points:
    16
    We continue to see this happening after clearing the mail queue or lots of spam messages on the server. This is the content of the folder:

    1.1M %2fdeliver_messages_mail_queue%2fDldF1Z_e9BCJWze8
    1.8M %2fpurge_mail_queue%2fcR9MoXcx1WB5n1bi
    2.9M %2fpurge_mail_queue%2ffWYnc9oJ1BD6bX8g
    600K %2fpurge_mail_queue%2fjwnhk9Pq7EMGrWgB
    3.4M %2fpurge_mail_queue%2fKS53MR6o13ddTZaz
    40K %2fpurge_mail_queue%2flmbQl2xiD7NwpUUn
    13M %2fpurge_mail_queue%2frpovKScWhykEZoFv
    13M %2fpurge_mail_queue%2frvVlGjhHB6wpTWAE
    3.2M %2fpurge_mail_queue%2fuo44e542N3nvxvZm
    31M %2fpurge_mail_queue%2fWwgr1vYaTqAPfPV4
    384K %2fpurge_mail_queue%2fzvwrccsI7H3rYqC4
    1.3M %2fremove_messages_mail_queue%2f1jS5EFYNPNZTxatT
    76K %2fremove_messages_mail_queue%2fMJvKPoHW2N434kRh
    48K %2fremove_messages_mail_queue%2fYqNJkhVAGct5tg3Z

    inside: ~/.cpanel/comet/channels
     
  7. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,622
    Likes Received:
    24
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Did you also clear the folder itself? You cannot simply clear the mail queue, since the contents will form and cache for a time period, so just checking if you also cleared the folder contents.
     
  8. hicom

    hicom Well-Known Member

    Joined:
    May 23, 2003
    Messages:
    273
    Likes Received:
    0
    Trophy Points:
    16
    Yes, removing these files did recover the lost space.
     
  9. CitizenK

    CitizenK Well-Known Member

    Joined:
    Jun 5, 2012
    Messages:
    64
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    On The Road
    cPanel Access Level:
    Root Administrator
    You can safely clean up the comet directory by running the following command that will remove all files in this directory that have not been accessed in more than three days.

    Code:
    /usr/local/cpanel/bin/purge_dead_comet_files
     
Loading...

Share This Page