Cron error

Discussion in 'General' started by Cecik, Apr 4, 2014.

  1. Cecik

    Cecik New Member

    Does not start cron .. Does anyone know a solution? Thank you so much for your advice.

    Apr 4 15:00:01 vm8842 /USR/SBIN/CRON[8129]: (web1) CMD (/var/www/clients/client0/web1/php -f /var/www/clients/client0/web1/web/importer/importer.php > /var/www/clients/client0/web1/web/importer/importer.log #nakupher.cz)

    Apr 4 15:00:01 vm8842 /USR/SBIN/CRON[8130]: (web1) CMD (/var/www/clients/client0/web1/php -f /var/www/clients/client0/web1/web/auth/data/mailing/mailing.cron.php > /var/www/clients/client0/web1/web/auth/data/mailing/mailing.cron.log #nakupher.cz)

    Apr 4 15:00:01 vm8842 /USR/SBIN/CRON[8122]: (CRON) error (grandchild #8129 failed with exit status 127)

    Apr 4 15:00:01 vm8842 /USR/SBIN/CRON[8123]: (CRON) error (grandchild #8130 failed with exit status 127)
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    1) ensure that you use full cron and not a jailed cron.
    2) specify the full path to php. e.g.:

    /usr/bin/php -f ....

    instead of php -f .....
     
    Last edited: Apr 4, 2014
  3. Cecik

    Cecik New Member

    I do not understand. Can you please tweak?

    php -f /var/www/clients/client0/web1/web/importer/importer.php > /var/www/clients/client0/web1/web/importer/importer.log

    console script runs. But ISPconfig not: (
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Thats not ispconfig specific. In Linux cronjobs, use the full paths to binaries and not just the binary name.

    /usr/bin/php -f /var/www/clients/client0/web1/web/importer/importer.php > /var/www/clients/client0/web1/web/importer/importer.log

    and ensure that this is a full and not a jailed cronjob!
     
  5. Cecik

    Cecik New Member

    Thank you! It's working.
     

Share This Page