Closed AGirin closed 8 years ago
Remaining ones should be fixed.
Got full output of the error when I run /var/www/411/bin/cron.php. Does this help?
array(5) {
[0]=>
array(6) {
["file"]=>
string(26) "/var/www/411/phplib/DB.php"
["line"]=>
int(118)
["function"]=>
string(8) "fetchAll"
["class"]=>
string(12) "PDOStatement"
["type"]=>
string(2) "->"
["args"]=>
array(1) {
[0]=>
int(2)
}
}
[1]=>
array(6) {
["file"]=>
string(31) "/var/www/411/phplib/Element.php"
["line"]=>
int(146)
["function"]=>
string(5) "query"
["class"]=>
string(6) "FOO\DB"
["type"]=>
string(2) "::"
["args"]=>
array(2) {
[0]=>
string(147) "UPDATE search_filters
SET archived
= 1 WHERE site_id
= ? AND archived
= 0 AND lifetime
> 0 AND ? >= (create_date
+ lifetime
* 60 - 5)"
[1]=>
array(2) {
[0]=>
int(1)
[1]=>
int(1475596920)
}
}
}
[2]=>
array(6) {
["file"]=>
string(33) "/var/www/411/phplib/Scheduler.php"
["line"]=>
int(318)
["function"]=>
string(4) "reap"
["class"]=>
string(17) "FOO\ElementFinder"
["type"]=>
string(2) "::"
["args"]=>
array(1) {
[0]=>
int(1475596920)
}
}
[3]=>
array(6) {
["file"]=>
string(33) "/var/www/411/phplib/Scheduler.php"
["line"]=>
int(142)
["function"]=>
string(11) "maintenance"
["class"]=>
string(13) "FOO\Scheduler"
["type"]=>
string(2) "->"
["args"]=>
array(1) {
[0]=>
int(1475596920)
}
}
@AGirin Might be fixed via #41.
I confirm. This is fixed! Thanks a lot for all the help. I am closing the ticket.
Hi,
It looks like jobs are not running on my system:
[411]$ /var/www/411/bin/cron.php && /var/www/411/bin/worker.php [+] Scheduler: 1474926082 [+] Maintenance [+] Search Health [+] Rollups [+] Searches [+] Reports [+] Summary [+] Autoclose [+] Cleanup [+] Worker [+] Worker: 1474926093 [+] Job count: 64 PHP Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 1 near "LIMIT": syntax error in /var/www/411/phplib/DB.php:78 Stack trace:
0 /var/www/411/phplib/DB.php(78): PDO->prepare('UPDATE
jobs
S...')1 /var/www/411/phplib/Job.php(167): FOO\DB::query('UPDATE
jobs
S...', Array, 0)2 /var/www/411/phplib/Worker.php(77): FOO\JobFinder::getAndLock('1', 1474926093)
3 /var/www/411/bin/worker.php(34): FOO\Worker->processSite(Object(FOO\Site), 1474926093)
4 {main}
thrown in /var/www/411/phplib/DB.php on line 78 err [411_Worker] Worker error site:[1] ret:[65280]
And I see this in the web UI:
Any ideas on why this is happening?
Thanks!
Andrew