# Cron Error help

**URL:** <https://forum.hestiacp.com/t/cron-error-help/18136>\
**Category:** Uncategorized\
**Created:** [February 18, 2025, 5:32pm UTC](https://forum.hestiacp.com/t/cron-error-help/18136 "2025-02-18T17:32:43Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![vladimirb1](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/vladimirb1/32/3842_2.png) [@vladimirb1](https://forum.hestiacp.com/u/vladimirb1)\
**Post date:** [February 18, 2025, 5:32pm UTC](https://forum.hestiacp.com/t/cron-error-help/18136/1 "2025-02-18T17:32:44Z")

</div>

Hi guys! need help I need Cron for

```auto
* * * * * /usr/bin/php /home/wellesley/web/ads.wellesleystreeteast.com/public_html/artisan schedule:run >> /dev/null 2>&1
* * * * * /usr/bin/php /home/wellesley/web/ads.wellesleystreeteast.com/public_html/artisan queue:work --queue=mail,sms,thumbs,default >> /dev/null 2>&1

```

**bur get Error**

---

<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:** [February 18, 2025, 6:22pm UTC](https://forum.hestiacp.com/t/cron-error-help/18136/2 "2025-02-18T18:22:20Z")

</div>

> [@vladimirb1](#):
>
> `/usr/bin/php /home/wellesley/web/ads.wellesleystreeteast.com/public_html/artisan schedule:run `

What error?

```auto
cd /home/xxx/web/xxxx.nl/public_html/thumbnail/ && /usr/bin/php8.3 artisan schedule:run

```

Should work fine

---

<div class="post-metadata">

**Author:** ![vladimirb1](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/vladimirb1/32/3842_2.png) [@vladimirb1](https://forum.hestiacp.com/u/vladimirb1)\
**Post date:** [February 19, 2025, 5:53pm UTC](https://forum.hestiacp.com/t/cron-error-help/18136/3 "2025-02-19T17:53:11Z")

</div>

Th…you for hepl, see pics. it’s no work, vere I can see cropjob error log?

 ![2025-02-19_124803](https://forum.hestiacp.com/uploads/default/original/2X/0/0f9cf549920cea763f61e8aec2ac2fafbf6e0635.png)

or I NEED:  
`/usr/bin/php8.2 /home/wellesley/web/ads.wellesleystreeteast.com/public_html/artisan schedule:run >> /dev/null 2>&1 /usr/bin/php8.2 /home/wellesley/web/ads.wellesleystreeteast.com/public_html/artisan queue:work --queue=mail,sms,thumbs,default >> /dev/null 2>&1`

---

<div class="post-metadata">

**Author:** ![sahsanu](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/sahsanu/32/9318_2.png) [@sahsanu](https://forum.hestiacp.com/u/sahsanu)\
**Post date:** [February 19, 2025, 10:36pm UTC](https://forum.hestiacp.com/t/cron-error-help/18136/4 "2025-02-19T22:36:20Z")

</div>

> [@vladimirb1](#):
>
> vere I can see cropjob error log?

You can’t see any error because you are redirecting standard output and standard error output to `/dev/null`

First check whether those commands work, login via ssh with user `wellesley` and execute the command manually without redirections.

```t
/usr/bin/php8.2 /home/wellesley/web/ads.wellesleystreeteast.com/public_html/artisan schedule:run
/usr/bin/php8.2 /home/wellesley/web/ads.wellesleystreeteast.com/public_html/artisan queue:work --queue=mail,sms,thumbs,default

```

---

<div class="post-metadata">

**Author:** ![vladimirb1](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/vladimirb1/32/3842_2.png) [@vladimirb1](https://forum.hestiacp.com/u/vladimirb1)\
**Post date:** [February 19, 2025, 10:56pm UTC](https://forum.hestiacp.com/t/cron-error-help/18136/5 "2025-02-19T22:56:25Z")

</div>

Last login: Sun Feb 9 09:10:33 2025 from 66.220.205.43  
root@server:~# /usr/bin/php8.2 /home/wellesley/web/ads.wellesleystreeteast.com/public\_html/artisan schedule:run

INFO No scheduled commands are ready to run.

---

<div class="post-metadata">

**Author:** ![sahsanu](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/sahsanu/32/9318_2.png) [@sahsanu](https://forum.hestiacp.com/u/sahsanu)\
**Post date:** [February 19, 2025, 10:58pm UTC](https://forum.hestiacp.com/t/cron-error-help/18136/6 "2025-02-19T22:58:20Z")

</div>

You are executing it as root, you must execute it as your user.

---

<div class="post-metadata">

**Author:** ![vladimirb1](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/vladimirb1/32/3842_2.png) [@vladimirb1](https://forum.hestiacp.com/u/vladimirb1)\
**Post date:** [February 19, 2025, 10:59pm UTC](https://forum.hestiacp.com/t/cron-error-help/18136/7 "2025-02-19T22:59:20Z")

</div>

Last login: Wed Feb 19 17:54:24 2025 from 66.220.205.43  
root@server:~# /usr/bin/php8.2 /home/wellesley/web/ads.wellesleystreeteast.com/public\_html/artisan queue:work --queue=mail,sms,thumbs,default

INFO Processing jobs from the [mail,sms,thumbs,default] queues.

Error

Call to undefined function Illuminate\Queue\pcntl\_async\_signals()

at /home/wellesley/web/ads.wellesleystreeteast.com/public\_html/vendor/laravel/framework/src/Illuminate/Queue/Worker.php:725  
721▕ \* @return void  
722▕ \*/  
723▕ protected function listenForSignals()  
724▕ {  
➜ 725▕ pcntl\_async\_signals(true);  
726▕  
727▕ pcntl\_signal(SIGQUIT, fn () =\> $this-\>shouldQuit = true);  
728▕ pcntl\_signal(SIGTERM, fn () =\> $this-\>shouldQuit = true);  
729▕ pcntl\_signal(SIGUSR2, fn () =\> $this-\>paused = true);

```
  +16 vendor frames

```

17 /home/wellesley/web/ads.wellesleystreeteast.com/public\_html/artisan:13  
Illuminate\Foundation\Application::handleCommand()

root@server:

---

<div class="post-metadata">

**Author:** ![vladimirb1](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/vladimirb1/32/3842_2.png) [@vladimirb1](https://forum.hestiacp.com/u/vladimirb1)\
**Post date:** [February 19, 2025, 11:00pm UTC](https://forum.hestiacp.com/t/cron-error-help/18136/8 "2025-02-19T23:00:22Z")

</div>

I have VPS and root only

---

<div class="post-metadata">

**Author:** ![sahsanu](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/sahsanu/32/9318_2.png) [@sahsanu](https://forum.hestiacp.com/u/sahsanu)\
**Post date:** [February 19, 2025, 11:10pm UTC](https://forum.hestiacp.com/t/cron-error-help/18136/9 "2025-02-19T23:10:27Z")

</div>

> [@vladimirb1](#):
>
> and root only

You at least have the user `wellesley`

> [@vladimirb1](#):
>
> Call to undefined function Illuminate\Queue\pcntl\_async\_signals()

I can’t see the function `pcntl_async_signals` disabled by default but I see `pcntl_signal` and `pcntl_signal_dispatch` disabled for php cli.

Edit file `/etc/php/8.2/cli/php.ini` and remove those functions from `disable_functions` directive.

---

<div class="post-metadata">

**Author:** ![vladimirb1](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/vladimirb1/32/3842_2.png) [@vladimirb1](https://forum.hestiacp.com/u/vladimirb1)\
**Post date:** [February 20, 2025, 12:12am UTC](https://forum.hestiacp.com/t/cron-error-help/18136/10 "2025-02-20T00:12:21Z")

</div>

> [@vladimirb1](#):
>
> Illuminate\Queue\pcntl\_async\_signals()

you mean to install the pcntl extension to use the pcntl\_signal() function?

Open the terminal and run the following command to install the pcntl extension:  
sudo apt-get install php-pcntl  
Restart your web server to apply the changes:  
sudo service apache2 restart  
Verify that the pcntl extension is installed by running the following command:  
php -m | grep pcntl

---

<div class="post-metadata">

**Author:** ![sahsanu](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/sahsanu/32/9318_2.png) [@sahsanu](https://forum.hestiacp.com/u/sahsanu)\
**Post date:** [February 20, 2025, 1:04am UTC](https://forum.hestiacp.com/t/cron-error-help/18136/11 "2025-02-20T01:04:20Z")

</div>

> [@vladimirb1](#):
>
> you mean to install the pcntl extension to use the pcntl\_signal() function?

No, I meant what I said 😉

Edit file `/etc/php/8.2/cli/php.ini` and remove those functions (`pcntl_signal` and `pcntl_signal_dispatch`) from `disable_functions` directive.

To make it easier, execute these commands:

```t
cp /etc/php/8.2/cli/php.ini /root/backup_8.2_php.ini
sed -i -E 's/(^disable_functions.*),pcntl_signal(.*$)/\1\2/' /etc/php/8.2/cli/php.ini
sed -i -E 's/(^disable_functions.*),pcntl_signal_dispatch(.*$)/\1\2/' /etc/php/8.2/cli/php.ini

```

And try again.

---

<div class="post-metadata">

**Author:** ![vladimirb1](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/vladimirb1/32/3842_2.png) [@vladimirb1](https://forum.hestiacp.com/u/vladimirb1)\
**Post date:** [February 20, 2025, 1:24am UTC](https://forum.hestiacp.com/t/cron-error-help/18136/12 "2025-02-20T01:24:54Z")

</div>

> [@sahsanu](#):
>
> ```auto
> sed -i -E 's/(^disable_functions.*),pcntl_signal_dispatch(.*$)/\1\2/' /etc/php/8.2/cli/php.ini
> 
> ```

```auto
Last login: Wed Feb 19 17:57:56 2025 from 66.220.205.43
root@server:~# cp /etc/php/8.2/cli/php.ini /root/backup_8.2_php.ini
root@server:~# sed -i -E 's/(^disable_functions.*),pcntl_signal(.*$)/\1\2/' /etc/php/8.2/cli/php.ini
root@server:~# sed -i -E 's/(^disable_functions.*),pcntl_signal_dispatch(.*$)/\1\2/' /etc/php/8.2/cli/php.ini
root@server:~#

```

====================

```auto
Last login: Wed Feb 19 20:27:19 2025 from 66.220.205.43
root@server:~# /usr/bin/php8.2 /home/wellesley/web/ads.wellesleystreeteast.com/public_html/artisan schedule:run

   INFO No scheduled commands are ready to run.
=====================
root@server:~# /usr/bin/php8.2 /home/wellesley/web/ads.wellesleystreeteast.com/public_html/artisan queue:work --queue=mail,sms,thumbs,default

   INFO Processing jobs from the [mail,sms,thumbs,default] queues.

   Error

  Call to undefined function Illuminate\Queue\pcntl_async_signals()

  at /home/wellesley/web/ads.wellesleystreeteast.com/public_html/vendor/laravel/framework/src/Illuminate/Queue/Worker.php:725
    721▕ * @return void
    722▕ */
    723▕ protected function listenForSignals()
    724▕ {
  ➜ 725▕ pcntl_async_signals(true);
    726▕
    727▕ pcntl_signal(SIGQUIT, fn () => $this->shouldQuit = true);
    728▕ pcntl_signal(SIGTERM, fn () => $this->shouldQuit = true);
    729▕ pcntl_signal(SIGUSR2, fn () => $this->paused = true);

      +16 vendor frames

  17 /home/wellesley/web/ads.wellesleystreeteast.com/public_html/artisan:13
      Illuminate\Foundation\Application::handleCommand()

```

---

<div class="post-metadata">

**Author:** ![sahsanu](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/sahsanu/32/9318_2.png) [@sahsanu](https://forum.hestiacp.com/u/sahsanu)\
**Post date:** [February 20, 2025, 1:38am UTC](https://forum.hestiacp.com/t/cron-error-help/18136/14 "2025-02-20T01:38:07Z")

</div>

I would check it on Laravel forums to know what that app needs.

---

<div class="post-metadata">

**Author:** ![vladimirb1](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/vladimirb1/32/3842_2.png) [@vladimirb1](https://forum.hestiacp.com/u/vladimirb1)\
**Post date:** [February 20, 2025, 1:50am UTC](https://forum.hestiacp.com/t/cron-error-help/18136/15 "2025-02-20T01:50:20Z")

</div>

th…you very much for help

---

<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:** [March 22, 2025, 1:50am UTC](https://forum.hestiacp.com/t/cron-error-help/18136/16 "2025-03-22T01:50:57Z")

</div>

Closed on March 22, 2025, 1:50am UTC

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