Jump to content

Error when running stock cron command


PatrickRQ
Go to solution Solved by Marc,

Recommended Posts

I get the following, so cron never runs properly

 

root:/etc/cron.d# /usr/local/lsws/lsphp7/bin/php -d memory_limit=-1 -d max_execution_time=0 /srv/www/public_html/applications/core/interface/task/task.php MD5HASH 2>&1 /tmp/testlog2.log

Deprecated: Directive 'track_errors' is deprecated in Unknown on line 0

Exception:
OutOfRangeException Object
(
    [message:protected] =>
    [string:Exception:private] =>
    [code:protected] => 0
    [file:protected] => /srv/www/public_html/system/Patterns/ActiveRecord.php
    [line:protected] => 142
    [trace:Exception:private] => Array
        (
            [0] => Array
                (
                    [file] => /srv/www/public_html/applications/core/interface/task/task.php
                    [line] => 45
                    [function] => load
                    [class] => IPS\Patterns\_ActiveRecord
                    [type] => ::
                )

        )

    [previous:Exception:private] =>
)

Any advice please? No core files were modified.

Edited by PatrickRQ
Link to comment
Share on other sites

I think you're outputting to the error log file incorrectly.

I took your output above and ran it based on my instance and saw a different OutOfRange issue.  So I double checked the cron format for saving error logs and noticed it was supposed to be different:

Try:

* * * * * /path/to/php -d memory_limit=-1 -d max_execution_time=0 /path/to/ipb/applications/core/interface/task/task.php MD5HASH >> /path/to/error.log 2>&1

 

Edited by Randy Calvert
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...