RRD graph not generated

Hello,
I freshly install hestiacp, and all graphs properly generated. But when its already run for a couple days, graphs seems not longer generated. What steps should I take to address this issue? Thank you.

RRD dir

/usr/local/hestia/web/rrd# ls -alh
total 36K
drwxr-xr-x  9 root root 4.0K May  7 10:35 .
drwxr-xr-x 34 root root 4.0K Mar 17 16:16 ..
-rw-r--r--  1 root root    0 Apr 21 11:02 daily.rrd
drwxr-xr-x  2 root root 4.0K Jan 20 11:03 db
drwxr-xr-x  2 root root 4.0K Jan 20 11:03 ftp
drwxr-xr-x  2 root root 4.0K Jan 20 11:03 la
drwxr-xr-x  2 root root 4.0K Jan 20 11:03 mem
-rw-r--r--  1 root root    0 Apr 21 11:02 monthly.rrd
drwxr-xr-x  2 root root 4.0K Jan 20 11:03 net
drwxr-xr-x  2 root root 4.0K Jan 20 11:03 ssh
drwxr-xr-x  2 root root 4.0K Jan 20 11:03 web
-rw-r--r--  1 root root    0 Apr 21 11:02 weekly.rrd
-rw-r--r--  1 root root    0 Apr 21 11:02 yearly.rrd

Cron for hestiaweb

/usr/local/hestia/web/rrd# crontab -u hestiaweb -l
MAILTO=""
CONTENT_TYPE="text/plain; charset=utf-8"
*/2 * * * * sudo /usr/local/hestia/bin/v-update-sys-queue restart
10 00 * * * sudo /usr/local/hestia/bin/v-update-sys-queue daily
15 02 * * * sudo /usr/local/hestia/bin/v-update-sys-queue disk
10 00 * * * sudo /usr/local/hestia/bin/v-update-sys-queue traffic
30 03 * * * sudo /usr/local/hestia/bin/v-update-sys-queue webstats
*/5 * * * * sudo /usr/local/hestia/bin/v-update-sys-queue backup
10 05 * * * sudo /usr/local/hestia/bin/v-backup-users
20 00 * * * sudo /usr/local/hestia/bin/v-update-user-stats
*/5 * * * * sudo /usr/local/hestia/bin/v-update-sys-rrd
21 1 * * * sudo /usr/local/hestia/bin/v-update-letsencrypt-ssl
44 1 * * * sudo /usr/local/hestia/bin/v-update-sys-hestia-all
40 6 * * sudo /usr/local/hestia/bin/v-update-sys-hestia-all

Hi @fazar

Show the output of these commands:

grep -a 'CRON.*v-update' /var/log/syslog | tail -n10
crontab -l -u hestiaweb | cat -A
ls -la /var/spool/cron/crontabs/

Hi @sahsanu
thanks for your reply.

root@mybox:~# grep -a 'CRON.*v-update' /var/log/syslog | tail -n10
root@mybox~#

no output here…

root@mybox:~# crontab -l -u hestiaweb | cat -A
MAILTO=""$
CONTENT_TYPE="text/plain; charset=utf-8"$
*/2 * * * * sudo /usr/local/hestia/bin/v-update-sys-queue restart$
10 00 * * * sudo /usr/local/hestia/bin/v-update-sys-queue daily$
15 02 * * * sudo /usr/local/hestia/bin/v-update-sys-queue disk$
10 00 * * * sudo /usr/local/hestia/bin/v-update-sys-queue traffic$
30 03 * * * sudo /usr/local/hestia/bin/v-update-sys-queue webstats$
*/5 * * * * sudo /usr/local/hestia/bin/v-update-sys-queue backup$
10 05 * * * sudo /usr/local/hestia/bin/v-backup-users$
20 00 * * * sudo /usr/local/hestia/bin/v-update-user-stats$
*/5 * * * * sudo /usr/local/hestia/bin/v-update-sys-rrd$
21 1 * * * sudo /usr/local/hestia/bin/v-update-letsencrypt-ssl$
44 1 * * * sudo /usr/local/hestia/bin/v-update-sys-hestia-all$
40 6 * * sudo /usr/local/hestia/bin/v-update-sys-hestia-all
root@mybox:~# ls -la /var/spool/cron/crontabs/
total 20
drwx-wx--T 2 root      crontab   4096 Feb  6 20:21 .
drwxr-xr-x 5 root      root      4096 Mar 17 16:13 ..
-rw------- 1 admin     admin       68 Feb  5 01:44 admin
-rw------- 1 hestiaweb hestiaweb  795 Feb  6 20:21 hestiaweb
-rw------- 1 root      root       736 Feb  6 20:21 hestiaweb.vst.back

That means the cron jobs for the hestiaweb user are not being executed.

Remove file hestiaweb.vst.back:

rm -f /var/spool/cron/crontabs/hestiaweb.vst.back

And edit crontab and save the file (there is no need to change anything, just edit it and save):

crontab -e -u hestiaweb

Wait 5 minutes and check again:

grep -a 'CRON.*v-update' /var/log/syslog | tail -n10

@sahsanu Thank you so much for your help. My problem has been resolved! :smiling_face:

1 Like