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.

Core Files Plague

Discussion in 'General Discussion' started by ukhost, Aug 29, 2003.

  1. ukhost

    ukhost Well-Known Member

    Joined:
    Jan 8, 2002
    Messages:
    222
    Likes Received:
    0
    Trophy Points:
    16
    Hi,

    We have been moving some accounts around and have noticed that every accounts webalizer directory had filled up with core.* files.

    Is there an easier way than going through each accounts directories to remove all these files?

    cPanel.net Support Ticket Number:
     
  2. clook

    clook Well-Known Member
    PartnerNOC

    Joined:
    Jun 9, 2002
    Messages:
    61
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Preston, UK
    PROCEED WITH CAUTION:

    How about something like: rm -f /home/*/tmp/webalizer/core.*

    cPanel.net Support Ticket Number:
     
  3. TerraSpeed

    TerraSpeed Member

    Joined:
    Jul 21, 2003
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    Do NOT do this. There are vaild files that contain the word core. Pipeing that to rm would really mess up alot of things.
     
  4. RandyO

    RandyO Well-Known Member

    Joined:
    Jun 17, 2003
    Messages:
    173
    Likes Received:
    0
    Trophy Points:
    16
    CORE FILE REMOVAL

    I have removed GIGABYTES of these files. They are loading client accounts and shutting down e-mail and causing all kinds of problems. This is really a major problem.

    Seems as though no one can fix this POS webalizer so here are a couple scripts we made and run as a cron job. I have them set to run twice a day. Run chkcore first, Average is about 1000 files per run. Nice job to cPanel and Webalizer pppPPPppPPPppPPpP

    EDIT: These will only remove the core files with a [0-9] ext. So not to worry about your other files with "core"
     

    Attached Files:

    #4 RandyO, Oct 23, 2003
    Last edited: Oct 23, 2003
  5. Planet_Master

    Planet_Master Well-Known Member

    Joined:
    Apr 18, 2002
    Messages:
    233
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    New Yorker
    Re: CORE FILE REMOVAL

    I really could use this, I have hundreds of accounts with these files and they are sucking up mucho disk space. I am going to run in shell to test them before I set up a cron.
     
    #5 Planet_Master, Dec 19, 2003
    Last edited: Dec 19, 2003
  6. cretu

    cretu Well-Known Member

    Joined:
    Jul 21, 2002
    Messages:
    208
    Likes Received:
    0
    Trophy Points:
    16
    I am having a problem with this too. I remember that cPanel staff repaired WebAlizer for me on one machine but I have it again on another. Anyone care to paste techniques on how to eliminate them (except removing command like above).

    Cretu
     
  7. Planet_Master

    Planet_Master Well-Known Member

    Joined:
    Apr 18, 2002
    Messages:
    233
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    New Yorker
    Re: Re: CORE FILE REMOVAL

    Excellent!, I just ran the scripts in shell and deleted an unbelievable 50,000 core files releasing untold gigs on 2 servers. Actually now the space looks more like it should and make sure to run /scripts/fixquotas afterwards to update all accounts on server.
    Also modified the scripts to clean /home2 as well.

    One account had nearly 200MB of core files, sheesh!:p

    THX RandyO
     
    #7 Planet_Master, Dec 19, 2003
    Last edited: Dec 19, 2003
  8. Website Rob

    Website Rob Well-Known Member

    Joined:
    Mar 23, 2002
    Messages:
    1,506
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    Alberta, Canada
    cPanel Access Level:
    Root Administrator
    This is an interesting thread. I wonder how many with this core problem are using SpamAssassin and/or phpsuexec? Reason being is that I do not use either of those two and found only two sites with core files in Webalizer. These two were recent transfers from another Server.
     
  9. RandyO

    RandyO Well-Known Member

    Joined:
    Jun 17, 2003
    Messages:
    173
    Likes Received:
    0
    Trophy Points:
    16
    No problem and you are welcome.

    Rebuilding webalizer did fix mine. Interesting that spam assassin would have anything to do with the problem.

    Now what does one need to peer into the core files to see exactly what is in them?
     
  10. dgbaker

    dgbaker Well-Known Member
    PartnerNOC

    Joined:
    Sep 20, 2002
    Messages:
    2,578
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Toronto, Ontario Canada
    cPanel Access Level:
    DataCenter Provider
    Getting info from the core files is not an easy task, BUT you can usually gleen some information by using the strings command like so;

    strings corefilename |more

    Sometimes you may get ideas of what application generated them.
     
  11. pguy

    pguy Well-Known Member

    Joined:
    Feb 21, 2003
    Messages:
    73
    Likes Received:
    0
    Trophy Points:
    6
    Rebuilding Webalizer ? That means reinstalling or allowing a stats run ? I too would be interested in getting the issue over with. Loads of core files abound on the server !
     
  12. RandyO

    RandyO Well-Known Member

    Joined:
    Jun 17, 2003
    Messages:
    173
    Likes Received:
    0
    Trophy Points:
    16
    Just submit a ticket to cpanel. Or perhaps they can post exactly what he did to my install.
     
  13. Planet_Master

    Planet_Master Well-Known Member

    Joined:
    Apr 18, 2002
    Messages:
    233
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    New Yorker
    Well once I ran the scripts in shell and deleted all the core files I noticed so far that they havent been generated again even when stats run. I have my fingers crossed that this is the end of core dumps, for now at least.
     
  14. gemby

    gemby Well-Known Member
    PartnerNOC

    Joined:
    Feb 16, 2002
    Messages:
    182
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Pula, Croatia
    cPanel Access Level:
    DataCenter Provider
    Did anyone find solution for webalizer core.* files? I deleting it allmost every day, and they are apearing on and on.....

    Any tips how to rebild webalizer?
     
  15. pfmartin

    pfmartin Well-Known Member

    Joined:
    Aug 18, 2001
    Messages:
    167
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Earth
  16. UnitHosting

    UnitHosting Member

    Joined:
    Sep 16, 2003
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    Any fix yet? :rolleyes:
     
  17. RandyO

    RandyO Well-Known Member

    Joined:
    Jun 17, 2003
    Messages:
    173
    Likes Received:
    0
    Trophy Points:
    16
    You can rebuild Webalizer or submit a ticket and they will do it for you
     
  18. cretu

    cretu Well-Known Member

    Joined:
    Jul 21, 2002
    Messages:
    208
    Likes Received:
    0
    Trophy Points:
    16
    Hi,

    Can anyone provide details on how to correct this problem?

    cretu
     
  19. pfmartin

    pfmartin Well-Known Member

    Joined:
    Aug 18, 2001
    Messages:
    167
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Earth
  20. cPanelNick

    cPanelNick Administrator
    Staff Member

    Joined:
    Mar 9, 2015
    Messages:
    3,426
    Likes Received:
    2
    Trophy Points:
    38
    cPanel Access Level:
    DataCenter Provider
    If you are having problems with core files, please post what version of Linux/FreeBSD you are running.
     
Loading...

Share This Page