Johnny Cyon

Member
Mar 20, 2016
6
0
1
Hertzlich
cPanel Access Level
Root Administrator
im on digital ocean server using cpanel and all my sites are down showing

Error establishing a database connection

(about 10) and i can see that all the disk space is full (all of the 80GB) i tried restarting the mysql restart services and still dont work i am sure there are many stuff in there that is unuseful and dont know how to get to where i delete the files i tried from SQL Services »Manage Databases and still dont work i get this message >>

Code:
Sorry for the inconvenience!
The filesystem mounted at / on this server is running out of disk space. cPanel operations have been temporarily suspended to prevent something bad from happening. Please ask your system admin to remove any files not in use on that partition.
i got them warnings via mail and didnt know what to do with them since the sites kept working and now its a mess

so am in need of desperate help to save my sites whoever can help shall be blessed from the skys
 

Attachments

Last edited by a moderator:

Jcats

Well-Known Member
PartnerNOC
May 25, 2011
807
160
168
New Jersey
cPanel Access Level
DataCenter Provider
Log into SSH and narrow down the usage. I usually do something like this, then go into the largest folders and keep using that command to narrow it down.

Code:
#  du -sh /* --exclude proc --exclude virtfs |grep [0-9]G
There are some pretty common files you can remove as well which may be the issue or at least clear up enough space to get you back online for now.

Code:
PHP error_log

# find /home/*/public_html/ -type f -name error_log -exec rm {} \;

cPanel Backups

# find /home/* -type f -iname 'backup-*.tar.gz' -exec rm {} \;

Crap mail in default account

# rm -rf /home/*/mail/new
 

SysSachin

Well-Known Member
Aug 23, 2015
604
48
28
India
cPanel Access Level
Root Administrator
Twitter
Hello,
If you have configured backup on your server then you can remove old backups file and restart the services.
Also,Login to server through ssh and run below command
Code:
cd /
du -sch *
the above command will show the all folders and files size which are under / partition.