# Added Cornjob but its not working

**URL:** <https://forum.hestiacp.com/t/added-cornjob-but-its-not-working/5220>\
**Category:** Cron Jobs\
**Created:** [December 23, 2021, 4:55am UTC](https://forum.hestiacp.com/t/added-cornjob-but-its-not-working/5220 "2021-12-23T04:55:36Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![GreenPeace](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/g/48db29/32.png) [@GreenPeace](https://forum.hestiacp.com/u/GreenPeace)\
**Post date:** [December 23, 2021, 4:55am UTC](https://forum.hestiacp.com/t/added-cornjob-but-its-not-working/5220/1 "2021-12-23T04:55:36Z")

</div>

Hello,

I am installing a CRM Project management built with Laravel which requires to run a cornjob every minute.

This is the command that I am trying to add to my Hestiacp.  
/usr/bin/php /home/Zeus/web/office.domain.com/public\_html/application/artisan schedule:run \>\> /dev/null 2\>&1

but when I add it to cornjob list in Hestiacp to run every minuite, looks like its not running.

If anyone faced same issue please let me know how did you fix it or what should I try. Thank you.

I am running the latest Hestia 1.5.2  
Operating System:Ubuntu 20.04 (x86\_64)

---

<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:** [December 23, 2021, 6:30am UTC](https://forum.hestiacp.com/t/added-cornjob-but-its-not-working/5220/2 "2021-12-23T06:30:52Z")

</div>

> [@GreenPeace](#):
>
> > > /dev/null 2\>&1

What happens when you remove it? Do you then get any output via mail

---

<div class="post-metadata">

**Author:** ![GreenPeace](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/g/48db29/32.png) [@GreenPeace](https://forum.hestiacp.com/u/GreenPeace)\
**Post date:** [December 23, 2021, 5:04pm UTC](https://forum.hestiacp.com/t/added-cornjob-but-its-not-working/5220/3 "2021-12-23T17:04:23Z")

</div>

Hello,  
Thank you for your quick response. So I tried removing this part “/dev/null 2\>&1” nothing happens, then I removed “schedule:run \>\> /dev/null 2\>&1” nothing is happening there either.  
Still I am getting this message " `Your Cron Job does not seem to be running. Email delivery will not work until this has been fixed.. [More Information](https://growcrm.io/documentation/cron-job-settings/)`"

The user account that I installed the CRM in my Hestia has admin rights and I also changed the SSH Acess to “Bash”, I don’t know if it makes any difference.

---

<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:** [December 23, 2021, 5:40pm UTC](https://forum.hestiacp.com/t/added-cornjob-but-its-not-working/5220/4 "2021-12-23T17:40:25Z")

</div>

> [@GreenPeace](#):
>
> /usr/bin/php /home/Zeus/web/office.domain.com/public\_html/application/artisan schedule:run

Login is as the user Zeus

And execute the command via SSH

/usr/bin/php /home/Zeus/web/office.domain.com/public\_html/application/artisan schedule:run  
If right you should see output

---

<div class="post-metadata">

**Author:** ![GreenPeace](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/g/48db29/32.png) [@GreenPeace](https://forum.hestiacp.com/u/GreenPeace)\
**Post date:** [December 23, 2021, 7:22pm UTC](https://forum.hestiacp.com/t/added-cornjob-but-its-not-working/5220/5 "2021-12-23T19:22:34Z")

</div>

I logged in as Zeus and excuted the Command and looks like it worked this time. I checked in the CRM app and the error message gone and now its showing \> Cron Job Status

> The Cron Job was last executed: (4 minutes ago)

So I have added the same line in my Hestia Cornjob list but without sudo. Looks like its running every minuite. Thank you so much for the support. 🙂

---

<div class="post-metadata">

**Author:** ![system](https://forum.hestiacp.com/uploads/default/original/1X/d9a5b68bf50ced83e880b56452e592b204761b19.png) [@system](https://forum.hestiacp.com/u/system)\
**Post date:** [January 22, 2022, 7:22pm UTC](https://forum.hestiacp.com/t/added-cornjob-but-its-not-working/5220/6 "2022-01-22T19:22:52Z")

</div>

Closed on January 22, 2022, 7:22pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
