cron errors after update to latest version
solved

By Mariusz Mielnik, 5 years ago

php-fw /srv/www/fabrykawafelkow/fabrykawafelkow.pl/current/modules/datakick/cron.php

PHP Warning: count(): Parameter must be an array or an object that implements Countable in /srv/www/fabrykawafelkow/fabrykawafelkow.pl/releases/53/modules/datakick/engine/core/classes/xml/export/xml-builder-multi.php on line 344

PHP Warning: count(): Parameter must be an array or an object that implements Countable in /srv/www/fabrykawafelkow/fabrykawafelkow.pl/releases/53/modules/datakick/engine/core/classes/xml/export/xml-builder-multi.php on line 344

PHP Warning: count(): Parameter must be an array or an object that implements Countable in /srv/www/fabrykawafelkow/fabrykawafelkow.pl/releases/53/modules/datakick/engine/core/classes/xml/export/xml-builder-multi.php on line 344

PHP Warning: count(): Parameter must be an array or an object that implements Countable in /srv/www/fabrykawafelkow/fabrykawafelkow.pl/releases/53/modules/datakick/engine/core/classes/xml/export/xml-builder-multi.php on line 344

PHP Warning: count(): Parameter must be an array or an object that implements Countable in /srv/www/fabrykawafelkow/fabrykawafelkow.pl/releases/53/modules/datakick/engine/core/classes/xml/export/xml-builder-multi.php on line 344

PHP Warning: count(): Parameter must be an array or an object that implements Countable in /srv/www/fabrykawafelkow/fabrykawafelkow.pl/releases/53/modules/datakick/engine/core/classes/xml/export/xml-builder-multi.php on line 344

PHP Warning: count(): Parameter must be an array or an object that implements Countable in /srv/www/fabrykawafelkow/fabrykawafelkow.pl/releases/53/modules/datakick/engine/core/classes/xml/export/xml-builder-multi.php on line 344

PHP Warning: count(): Parameter must be an array or an object that implements Countable in /srv/www/fabrykawafelkow/fabrykawafelkow.pl/releases/53/modules/datakick/engine/core/classes/xml/export/xml-builder-multi.php on line 344

PHP Warning: count(): Parameter must be an array or an object that implements Countable in /srv/www/fabrykawafelkow/fabrykawafelkow.pl/releases/53/modules/datakick/engine/core/classes/xml/export/xml-builder-multi.php on line 344

PHP Warning: count(): Parameter must be an array or an object that implements Countable in /srv/www/fabrykawafelkow/fabrykawafelkow.pl/releases/53/modules/datakick/engine/core/classes/xml/export/xml-builder-multi.php on line 344

PHP Warning: count(): Parameter must be an array or an object that implements Countable in /srv/www/fabrykawafelkow/fabrykawafelkow.pl/releases/53/modules/datakick/engine/core/classes/xml/export/xml-builder-multi.php on line 344

PHP Fatal error: Uncaught Datakick\UserError: too many tasks in /srv/www/fabrykawafelkow/fabrykawafelkow.pl/releases/53/modules/datakick/engine/core/scheduler.php:154

Stack trace:

#0 /srv/www/fabrykawafelkow/fabrykawafelkow.pl/releases/53/modules/datakick/cron.php(21): Datakick\Scheduler->cronEvent('cron', false)

#1 {main}

 thrown in /srv/www/fabrykawafelkow/fabrykawafelkow.pl/releases/53/modules/datakick/engine/core/scheduler.php on line 154

By Petr Hucik, 5 years ago

Thanks for reporting this issue. It will be fixed in the next release.

Note that it's not a serious one, the schedules should continue to run correctly. Please check in the schedule overview.

By Mariusz Mielnik, 5 years ago

a few days ago, I had a full disk (tmp with files from datakick csv-XXX they are not deleted). Since then, the cron hasn't been executed. Manual call: 

php -q /srv/www/fabrykawafelkow/fabrykawafelkow.pl/current/modules/datakick/cron.php
PHP Fatal error:  Uncaught Datakick\UserError: too many tasks in /srv/www/fabrykawafelkow/fabrykawafelkow.pl/releases/54/modules/datakick/engine/core/scheduler.php:154
Stack trace:
#0 /srv/www/fabrykawafelkow/fabrykawafelkow.pl/releases/54/modules/datakick/cron.php(21): Datakick\Scheduler->cronEvent('cron', false)
#1 {main}
  thrown in /srv/www/fabrykawafelkow/fabrykawafelkow.pl/releases/54/modules/datakick/engine/core/scheduler.php on line 154

cron task still working

May  7 16:11:01 web1 CRON[47253]: (fabrykawafelkow) CMD (/usr/bin/php -q /srv/www/fabrykawafelkow/fabrykawafelkow.pl/current/modules/datakick/cron.php >/dev/null 2>&1)
May  7 16:12:02 web1 CRON[47520]: (fabrykawafelkow) CMD (/usr/bin/php -q /srv/www/fabrykawafelkow/fabrykawafelkow.pl/current/modules/datakick/cron.php >/dev/null 2>&1)
May  7 16:13:01 web1 CRON[47820]: (fabrykawafelkow) CMD (/usr/bin/php -q /srv/www/fabrykawafelkow/fabrykawafelkow.pl/current/modules/datakick/cron.php >/dev/null 2>&1)
May  7 16:14:01 web1 CRON[48027]: (fabrykawafelkow) CMD (/usr/bin/php -q /srv/www/fabrykawafelkow/fabrykawafelkow.pl/current/modules/datakick/cron.php >/dev/null 2>&1)

what should i check?

By Mariusz Mielnik, 5 years ago

i found the problem. aftera failed job (full tmp disk) column 'processing' had values, empty it resolved problem.

now it works.

By Petr Hucik, 5 years ago

Fixed in new version 2.1.6