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.

logs files please help

Discussion in 'General Discussion' started by stu181, Dec 12, 2011.

  1. stu181

    stu181 Member

    Joined:
    Dec 12, 2011
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi


    I have a really big problem and have spent todays and got no where. I am new to managing a server and really struggling.

    I have a vps server and all of a sudden the disc usage is maxed out, i was told it would be error logs, i have been through all the error logs i can find and i can only see one thats big

    The server has 50gb of logs somewhere that i cannot find and they have taken up all my usage, this is in 24 hours.

    cpanle is got auto rotate on at 300mb default.

    I have found one log file if i ftp to the site on the server theres a folder access-logs/ in the cpanel is writting 3gb to that access log per hour, i can not get cpanel to stop this at all and if i try and delete the file i get permission denied.

    thats the only log file i can find, so i do not know where the other 30gb is hidding,

    The server has about an hours disc space usage left then the server will crash or the site will become no functioning due to lack of space.


    any ideas?


    regards

    stuart
     
  2. quietFinn

    quietFinn Well-Known Member

    Joined:
    Feb 4, 2006
    Messages:
    998
    Likes Received:
    10
    Trophy Points:
    18
    Location:
    Finland
    cPanel Access Level:
    Root Administrator
    Check these directories:

    /var/log
    /usr/local/apache/logs
    /usr/local/apache/domlogs
    /usr/local/cpanel/logs

    If you are not familiar with SSH you should be able to see those directories in your VPS control panel.
     
  3. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Hello Stuart,

    Do you have separate partitions and have tracked it down to one partition? I'm just wondering how you know it is a log file if you haven't tracked down which log at this point.

    You can sort partitions into usage by running the following

    Code:
    du -sk .[!.]* *|sort -n
    If you don't know which partition has the usage, run this at / level first, then cd into the largest partition and run it again. Keep running it in each folder until you determine which folder has the highest usage and what file(s) it happens to be.

    Thanks!
     
  4. stu181

    stu181 Member

    Joined:
    Dec 12, 2011
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi

    I was told by the company that provide the server it would be a log file. the only one was a access log which i found, it would delete but i edit config to stop the update of access logs, as that increases 3gb per hour

    i can not find where this other 30gb is, it was there show how much free space i had then today i have none,


    as the access log wont delete the only thing i can think of is a rebuild
     
  5. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Please try to locate the file(s) using the steps I indicated. Otherwise, please have the company assisting you help with finding the file by using those steps. Without knowing exactly which file, it is difficult to be certain is it indeed a log file.
     
  6. stu181

    stu181 Member

    Joined:
    Dec 12, 2011
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi

    i have looked there are no error logs even amounting to anything in size like 30gb just a few kb

    the company have said its an unmanaged server sort it yourself
     
  7. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Have you done the steps I mentioned in my initial post to run the command at each level starting with / one? If you have, please post the output for that command at each level you ran it. I'm getting the impression the root SSH command might not have been issued yet, and I'm trying to ensure it is so we can get to the bottom of this properly. Thanks!
     
  8. stu181

    stu181 Member

    Joined:
    Dec 12, 2011
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi

    Very sorry for the delay. Yes i Checked all of those file.

    I rebuilt the server and after adding the site and 8 files totaling 200mb the whm panel said the vps was using 11gb of its disk space.

    now after a week its upto 21 gb of disk spaced used.

    I cannot copy the output here as not sure how to copy the pain from putty.

    /var/log/ says total is 3.2gb
    /user/local/apache says total is 72k
    /user/local/cpanel says total is 62m


    i have run /scripts/fixquotas and nothing has helped. i have deleted the database and just add the phpforum and still i am using 21gb of disk space.

    i disabled writting to the access logs, i did this in the config file but still the server disk space increases by about 2gb a day then i have to rebvuild the server and start all over again.

    I was told by the company who provided the server this would just be a log file. i dont think it is but thats why i need your help as the vps is unmanaged.

    if you want me to do anything is ssh please tell me the code to write as very very new to all of this.

    I await your response
     
  9. stu181

    stu181 Member

    Joined:
    Dec 12, 2011
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi

    I have just run this command du -hs /* and is says

    14g /usr
    5.7 /var

    but when i do ls -alh /usr/

    is says total 500mb total

    so i need to find what file or folder is taking up all the space then you will probably know why and what to do.

    regards
     
  10. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    At this point, please open up a ticket so we can run the commands as I cannot do so via the forums. You can submit a ticket using the link in my signature. Please post the ticket number here upon submitting one so we can track what was happening after the ticket has been opened.
     
  11. stu181

    stu181 Member

    Joined:
    Dec 12, 2011
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi

    I have opened a support request


    Your Request id is: 2090558


    thanks
     
Loading...

Share This Page