# Scheduler NEW\_CRON command not found

**URL:** <https://forum.pydio.com/t/scheduler-new-cron-command-not-found/45>\
**Category:** Pydio 8\
**Created:** [November 8, 2017, 1:19pm UTC](https://forum.pydio.com/t/scheduler-new-cron-command-not-found/45 "2017-11-08T13:19:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Niels2570](https://avatars.discourse-cdn.com/v4/letter/n/2bfe46/32.png) [@Niels2570](https://forum.pydio.com/u/Niels2570)\
**Post date:** [November 8, 2017, 1:19pm UTC](https://forum.pydio.com/t/scheduler-new-cron-command-not-found/45/1 "2017-11-08T13:19:36Z")

</div>

Hello,

I’m running Pydio 8.0.1 on RHEL 7 with PHP 7.0

The www-data user (owner of the /var/ww/html/pydio files) receives every minute the following error :

/bin/sh: NEW\_CRON: command not found

Any idea on how to solve this ?

Regards,  
Niels

---

<div class="post-metadata">

**Author:** ![charles](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.pydio.com/charles/32/3_2.png) [@charles](https://forum.pydio.com/u/charles)\
**Post date:** [November 8, 2017, 1:25pm UTC](https://forum.pydio.com/t/scheduler-new-cron-command-not-found/45/2 "2017-11-08T13:25:47Z")

</div>

@c12simple do you have any idea?

---

<div class="post-metadata">

**Author:** ![c12simple](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.pydio.com/c12simple/32/90_2.png) [@c12simple](https://forum.pydio.com/u/c12simple)\
**Post date:** [November 8, 2017, 2:43pm UTC](https://forum.pydio.com/t/scheduler-new-cron-command-not-found/45/3 "2017-11-08T14:43:37Z")

</div>

Hi,

Do you have any cron task for php/pydio ? Just look for it in /etc/cron\* (all files in this location)

---

<div class="post-metadata">

**Author:** ![Niels2570](https://avatars.discourse-cdn.com/v4/letter/n/2bfe46/32.png) [@Niels2570](https://forum.pydio.com/u/Niels2570)\
**Post date:** [November 8, 2017, 2:48pm UTC](https://forum.pydio.com/t/scheduler-new-cron-command-not-found/45/4 "2017-11-08T14:48:35Z")

</div>

I found this

cat /var/spool/cron/www-data

- 
  - 
    - 
      - 
        - NEW\_CRON

- 
  - 
    - 
      - 
        - NEW\_CRON

- 
  - 
    - 
      - 
        - NEW\_CRON

- 
  - 
    - 
      - 
        - NEW\_CRON

- 
  - 
    - 
      - 
        - NEW\_CRON

- 
  - 
    - 
      - 
        - NEW\_CRON

- 
  - 
    - 
      - 
        - NEW\_CRON

- 
  - 
    - 
      - 
        - NEW\_CRON

- 
  - 
    - 
      - 
        - NEW\_CRON

I guess Pydio is unable to create entries in there ?

In order to run jobs from the scheduler do I need to have this in /etc/crontab ?

\*/5 \* \* \* \* /usr/local/bin/php /var/www/html/pydio/cmd.php -r=ajxp\_conf -u=admin -p= -a=scheduler\_runAll \>\> /var/www/pydio/data/cache/cmd\_outputs/cron\_commands.log

This gives the following error in the crontab :

Nov 8 16:35:01 [localhost] crond[1213]: (/usr/local/bin/php) ERROR (getpwnam() failed)

---

<div class="post-metadata">

**Author:** ![c12simple](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.pydio.com/c12simple/32/90_2.png) [@c12simple](https://forum.pydio.com/u/c12simple)\
**Post date:** [November 10, 2017, 9:08am UTC](https://forum.pydio.com/t/scheduler-new-cron-command-not-found/45/5 "2017-11-10T09:08:18Z")

</div>

In order to run jobs from the scheduler do I need to have this in /etc/crontab ?

\*/5 \* \* \* \* /usr/local/bin/php /var/www/html/pydio/cmd.php -r=ajxp\_conf -u=admin -p= -a=scheduler\_runAll \>\> /var/www/pydio/data/cache/cmd\_outputs/cron\_commands.log

Yes but it requires to specify username

`*/5 * * * * www-data /usr/local/bin/php /var/www/html/pydio/cmd.php -r=ajxp_conf -u=admin -p= -a=scheduler_runAll >> /var/www/pydio/data/cache/cmd_outputs/cron_commands.log`

And try to emty /var/spool/cron/www-data
