Ошибка при запуске скрипта по крону
Почему-то постоянно валится такая ошибка:
[2014-05-08 16:40:01] (ERROR @ /home/**/cron/gallery_check_shares.php) Could not cache context settings for web.
[2014-05-08 16:40:01] (ERROR @ /home/**/cron/gallery_check_shares.php) Could not cache context settings for web.
[2014-05-08 16:41:01] (ERROR @ /home/**/cron/gallery_check_shares.php) Could not cache context settings for web.
[2014-05-08 16:41:01] (ERROR @ /home/**/cron/gallery_check_shares.php) Could not cache context settings for web.
[2014-05-08 16:42:01] (ERROR @ /home/**/cron/gallery_check_shares.php) Could not cache context settings for web.
[2014-05-08 16:42:01] (ERROR @ /home/**/cron/gallery_check_shares.php) Could not cache context settings for web.
[2014-05-08 16:43:01] (ERROR @ /home/**/cron/gallery_check_shares.php) Could not cache context settings for web.
[2014-05-08 16:43:01] (ERROR @ /home/**/cron/gallery_check_shares.php) Could not cache context settings for web.
[2014-05-08 16:44:01] (ERROR @ /home/**/cron/gallery_check_shares.php) Could not cache context settings for web.
[2014-05-08 16:44:01] (ERROR @ /home/**/cron/gallery_check_shares.php) Could not cache context settings for web.
В скрипте вызов модыкс через MODX_API_MODE. Действия в скрипте отрабатывают нормально, только вот лог забивается постоянно. Папку с кешем чистил, права 777. Что еще может быть?
[2014-05-08 16:40:01] (ERROR @ /home/**/cron/gallery_check_shares.php) Could not cache context settings for web.
[2014-05-08 16:40:01] (ERROR @ /home/**/cron/gallery_check_shares.php) Could not cache context settings for web.
[2014-05-08 16:41:01] (ERROR @ /home/**/cron/gallery_check_shares.php) Could not cache context settings for web.
[2014-05-08 16:41:01] (ERROR @ /home/**/cron/gallery_check_shares.php) Could not cache context settings for web.
[2014-05-08 16:42:01] (ERROR @ /home/**/cron/gallery_check_shares.php) Could not cache context settings for web.
[2014-05-08 16:42:01] (ERROR @ /home/**/cron/gallery_check_shares.php) Could not cache context settings for web.
[2014-05-08 16:43:01] (ERROR @ /home/**/cron/gallery_check_shares.php) Could not cache context settings for web.
[2014-05-08 16:43:01] (ERROR @ /home/**/cron/gallery_check_shares.php) Could not cache context settings for web.
[2014-05-08 16:44:01] (ERROR @ /home/**/cron/gallery_check_shares.php) Could not cache context settings for web.
[2014-05-08 16:44:01] (ERROR @ /home/**/cron/gallery_check_shares.php) Could not cache context settings for web.
В скрипте вызов модыкс через MODX_API_MODE. Действия в скрипте отрабатывают нормально, только вот лог забивается постоянно. Папку с кешем чистил, права 777. Что еще может быть?
Комментарии: 6
Наблюдал ровно то же при запуске скриптов из консоли сервера по крону.
Немного поразбирался, но ничего не нашел — поэтому просто забил.
Немного поразбирался, но ничего не нашел — поэтому просто забил.
У мя лог модыкса забивается за считанные часы(((( По 2 строчки в минуту пишет почему-то(
Видимо с такой частотой запускается твой скрипт. Так и должно быть?
Не, частота точно не такая))) Каждые 2 часа должно быть
* */2 * * * root /usr/bin/php /home/**/cron/gallery_check_shares.php
Но он у тебя запускается каждую минуту. Вместо первой звезды поставь ноль.
Точняк, спасибо
Авторизуйтесь или зарегистрируйтесь, чтобы оставлять комментарии.