gmarko

Registered
Oct 2, 2019
1
0
1
Zapresic
cPanel Access Level
Root Administrator
Hi,

I'm fighting with low free disk space on my server and one of the things that uses allmost 3G of space are sqlite files in /var/cpanel/bandwidth and one of the files is 2.6G. I have deactivated all the stats tracking services (awstat and similiar) but this files keep on growing.

Since I don't and will never use bandwidth limiting on my server is there a way to purge those files?
I have tried searching trough the forum and trough the documentation but didn't manage to find anything.
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,304
363
Houston
The data in the logs in /var/cpanel/bandwidth is stored in sqlite databases and is pulled from the cPanel domain access logs at /etc/apache2/domlogs. You could most likely mv the sqlite database but it will be recreated. The only way to stop this from being collected would be to disable cpanellogd - this would disable the domain access logs as well as any bandwidth logs.

If you'd like to disable it you could run the following:

Code:
touch /etc/cpanellogddisable
Then stop the service:

Code:
/scripts/restartsrv_cpanellogd --stop
You can test to ensure it won't start again as well. You should get something similar to the following:

Code:
[root@server bandwidth]# /scripts/restartsrv_cpanellogd --start
(XID 3vm7r4) The “cpanellogd” service is disabled.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,267
463
I'm fighting with low free disk space on my server and one of the things that uses allmost 3G of space are sqlite files in /var/cpanel/bandwidth and one of the files is 2.6G.
Hello @gmarko,

Could you open a support ticket so we can take a closer look to see why that SQLite file is not pruned automatically? You can post the ticket number here and we'll link this thread to it.

Thank you.