# All cronjobs were gone! What must to be added

**URL:** <https://forum.hestiacp.com/t/all-cronjobs-were-gone-what-must-to-be-added/3001>\
**Category:** Cron Jobs\
**Created:** [March 15, 2021, 1:48am UTC](https://forum.hestiacp.com/t/all-cronjobs-were-gone-what-must-to-be-added/3001 "2021-03-15T01:48:10Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![aubrey](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/a/e0b2c6/32.png) [@aubrey](https://forum.hestiacp.com/u/aubrey)\
**Post date:** [March 15, 2021, 1:48am UTC](https://forum.hestiacp.com/t/all-cronjobs-were-gone-what-must-to-be-added/3001/1 "2021-03-15T01:48:10Z")

</div>

I have always had this issue of Lets Encrypt SSL certificates not getting renewed. Now I think I have found the root cause: I do not have any cronjob set up on the server. 0, zero cronjob.

I remember I had a few there. Now nothing there.

So the question is, what cronjobs I must have?

Another question is concerning lamav-daemon - once in whilte I find that it stops and I have to restart it manually. So how to set up a cronjob to restart it everyday in the morning?

---

<div class="post-metadata">

**Author:** ![eris](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/eris/32/1241_2.png) [@eris](https://forum.hestiacp.com/u/eris)\
**Post date:** [March 15, 2021, 3:39am UTC](https://forum.hestiacp.com/t/all-cronjobs-were-gone-what-must-to-be-added/3001/2 "2021-03-15T03:39:12Z")

</div>

```
JOB='1' MIN='*/2' HOUR='*' DAY='*' MONTH='*' WDAY='*' CMD='sudo /usr/local/hestia/bin/v-update-sys-queue restart' SUSPENDED='no' TIME='18:31:44' DATE='2021-03-14'

JOB='2' MIN='10' HOUR='00' DAY='*' MONTH='*' WDAY='*' CMD='sudo /usr/local/hestia/bin/v-update-sys-queue daily' SUSPENDED='no' TIME='18:31:44' DATE='2021-03-14'

JOB='3' MIN='15' HOUR='02' DAY='*' MONTH='*' WDAY='*' CMD='sudo /usr/local/hestia/bin/v-update-sys-queue disk' SUSPENDED='no' TIME='18:31:45' DATE='2021-03-14'

JOB='4' MIN='10' HOUR='00' DAY='*' MONTH='*' WDAY='*' CMD='sudo /usr/local/hestia/bin/v-update-sys-queue traffic' SUSPENDED='no' TIME='18:31:45' DATE='2021-03-14'

JOB='5' MIN='30' HOUR='03' DAY='*' MONTH='*' WDAY='*' CMD='sudo /usr/local/hestia/bin/v-update-sys-queue webstats' SUSPENDED='no' TIME='18:31:46' DATE='2021-03-14'

JOB='6' MIN='*/5' HOUR='*' DAY='*' MONTH='*' WDAY='*' CMD='sudo /usr/local/hestia/bin/v-update-sys-queue backup' SUSPENDED='no' TIME='18:31:46' DATE='2021-03-14'

JOB='7' MIN='10' HOUR='05' DAY='*' MONTH='*' WDAY='*' CMD='sudo /usr/local/hestia/bin/v-backup-users' SUSPENDED='no' TIME='18:31:47' DATE='2021-03-14'

JOB='8' MIN='20' HOUR='00' DAY='*' MONTH='*' WDAY='*' CMD='sudo /usr/local/hestia/bin/v-update-user-stats' SUSPENDED='no' TIME='18:31:48' DATE='2021-03-14'

JOB='9' MIN='*/5' HOUR='*' DAY='*' MONTH='*' WDAY='*' CMD='sudo /usr/local/hestia/bin/v-update-sys-rrd' SUSPENDED='no' TIME='18:31:49' DATE='2021-03-14'

JOB='10' MIN='02' HOUR='1' DAY='*' MONTH='*' WDAY='*' CMD='sudo /usr/local/hestia/bin/v-update-sys-hestia-all' SUSPENDED='no' TIME='18:31:49' DATE='2021-03-14'
```

---

<div class="post-metadata">

**Author:** ![aubrey](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/a/e0b2c6/32.png) [@aubrey](https://forum.hestiacp.com/u/aubrey)\
**Post date:** [March 15, 2021, 4:49am UTC](https://forum.hestiacp.com/t/all-cronjobs-were-gone-what-must-to-be-added/3001/3 "2021-03-15T04:49:43Z")

</div>

Eris, thank you so much! God bless you for your quick resonse!!!

---

<div class="post-metadata">

**Author:** ![aubrey](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/a/e0b2c6/32.png) [@aubrey](https://forum.hestiacp.com/u/aubrey)\
**Post date:** [March 15, 2021, 4:57am UTC](https://forum.hestiacp.com/t/all-cronjobs-were-gone-what-must-to-be-added/3001/4 "2021-03-15T04:57:31Z")

</div>

OK, after switching back to admin account, I do see all the cronjobs I have. I even have these two related to the SSL certificates:

sudo /usr/local/hestia/bin/v-update-letsencrypt-ssl  
sudo /usr/local/hestia/bin/v-update-sys-queue letsencrypt

---

<div class="post-metadata">

**Author:** ![falzo](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/falzo/32/10_2.png) [@falzo](https://forum.hestiacp.com/u/falzo)\
**Post date:** [March 15, 2021, 12:02pm UTC](https://forum.hestiacp.com/t/all-cronjobs-were-gone-what-must-to-be-added/3001/5 "2021-03-15T12:02:44Z")

</div>

maybe check if you cron service is running at all. it should pick up the admin cronjobs automatically.

also if your letsencrypt certs do not renewe automatically, you might want to check, if you have old aliases in between, that might not resolve to your server anymore and therefore break validation.

---

<div class="post-metadata">

**Author:** ![NickCoolAI](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/n/bcef8e/32.png) [@NickCoolAI](https://forum.hestiacp.com/u/NickCoolAI)\
**Post date:** [March 25, 2022, 5:23pm UTC](https://forum.hestiacp.com/t/all-cronjobs-were-gone-what-must-to-be-added/3001/6 "2022-03-25T17:23:08Z")

</div>

I have HestiaCP v1.5.11 installed.  
I had migrated my user with its things from another host with same version of HestiaCP.  
That user has websites with let’s encrypt domains.  
After migration of admin user had only 10 cron jobs and no one related to let’s encrypt.  
I disabled and enabled again “Use Lets Encrypt to obtain SSL certificate” option for one web domain.  
Only after that admin user get 11th cron job:  
`30 7 * * * sudo /usr/local/hestia/bin/v-update-letsencrypt-ssl`  
Is that how it was meant to be after import?  
P.S.: it was a bug and will be fixed.
