Skip to main content
  1. Posts/

File Usage atau Inode Tidak Update di cPanel

·2 mins·
cpanel cpanel
Table of Contents

Issue
#

Ketika melakukan audit menemukan beberapa website saat diakses tampil error 503 (Service Unavailable) pada salah satu akun cPanel. Setelah ditelusuri, Anda menemukan jika file usage / inodes pada akun tersebut telah melebihi batas.

Tetapi setelah mencoba mengurangi jumlah inodes dan memastikan sudah tidak overquota, informasi file usage di cPanel masih belum update sehingga akses website tetap muncul error 503

Solution
#

Kemungkinan terdapat file yang berada di luar folder home sehingga perlu dicoba scan.

SSH server sebagai root, lalu jalankan perintah berikut

cpaneluser=$username && find / -path /home/virtfs -prune -o -path /home/${cpaneluser}  -prune -o -user "${cpaneluser}" -type f -ls > files_outside_homedir.txt 2>/dev/null
Pastikan bagian username sudah diubah dengan username akun yang overquota.

Output dari perintah tersebut akan ditulis pada file files_outside_homedir.txt yang nantinya terdapat informasi file dengan owner user yang overquota.

# cat files_outside_homedir.txt
 30452419      0 -rw-r-----   1  user    mail            0 Jun 12 07:47 /etc/vdomainaliases/user.id.or.id
 25219550      4 -rw-r-----   1  user    mail            9 Jun 12 07:47 /etc/valiases/user.id.or.id
 33708615      0 -rw-r-----   1  user    mail            0 Jun 12 07:47 /etc/vfilters/user.id.or.id
...
Hati-hati ketika ingin menghapus file diluar folder home. Kesalahan dalam menghapus data dapat mengakibatkan kerusakan pada akun cpanel Anda.

Jika sudah menghapus file, cek kembali total inodes pada path /home/user dengan perintah.

echo "Detailed Inode usage for: $(pwd)" ; for d in `find -maxdepth 1 -type d |cut -d\/ -f2 |grep -xv . |sort`; do c=$(find $d |wc -l) ; printf "$c\t\t- $d\n" ; done ; printf "Total: \t\t$(find $(pwd) | wc -l)\n"

Jika informasi pada files_outside_homedir.txt tidak menemukan hal yang mengakibatkan overquota. Kemungkinan karena open files

lsof +L1 | awk '{if ($7 > 0) print}'

Related

Fix pureftpd service failed to start
·1 min
cpanel cpanel
Deploy Angular di cPanel
·1 min
cpanel nodejs cpanel angular
DNS Records Tidak Muncul di Zone Editor cPanel
·1 min
cpanel cpanel
Error Saat Validasi DKIM dan SPF di cPanel
·2 mins
cpanel cpanel
Disable Notif AutoSSL di cPanel
·1 min
cpanel cpanel
Enable LiteSpeed Cache Engine
·1 min
cpanel litespeed cpanel