{"action":"created","issue":{"url":"https://api.github.com/repos/etsy/411/issues/23","repository_url":"https://api.github.com/repos/etsy/411","labels_url":"https://api.github.com/repos/etsy/411/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/etsy/411/issues/23/comments","events_url":"https://api.github.com/repos/etsy/411/issues/23/events","html_url":"https://github.com/etsy/411/issues/23","id":179345136,"number":23,"title":"Scheduled jobs","user":{"login":"AGirin","id":5177657,"avatar_url":"https://avatars.githubusercontent.com/u/5177657?v=3","gravatar_id":"","url":"https://api.github.com/users/AGirin","html_url":"https://github.com/AGirin","followers_url":"https://api.github.com/users/AGirin/followers","following_url":"https://api.github.com/users/AGirin/following{/other_user}","gists_url":"https://api.github.com/users/AGirin/gists{/gist_id}","starred_url":"https://api.github.com/users/AGirin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AGirin/subscriptions","organizations_url":"https://api.github.com/users/AGirin/orgs","repos_url":"https://api.github.com/users/AGirin/repos","events_url":"https://api.github.com/users/AGirin/events{/privacy}","received_events_url":"https://api.github.com/users/AGirin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":20,"created_at":"2016-09-26T21:44:15Z","updated_at":"2016-09-29T14:41:49Z","closed_at":null,"body":"Hi,\r\n\r\nIt looks like jobs are not running on my system:\r\n\r\n[411]$ /var/www/411/bin/cron.php && /var/www/411/bin/worker.php\r\n[+] Scheduler: 1474926082\r\n[+] Maintenance\r\n[+] Search Health\r\n[+] Rollups\r\n[+] Searches\r\n[+] Reports\r\n[+] Summary\r\n[+] Autoclose\r\n[+] Cleanup\r\n[+] Worker\r\n[+] Worker: 1474926093\r\n[+] Job count: 64\r\nPHP Fatal error:  Uncaught PDOException: SQLSTATE[HY000]: General error: 1 near \"LIMIT\": syntax error in /var/www/411/phplib/DB.php:78\r\nStack trace:\r\n#0 /var/www/411/phplib/DB.php(78): PDO->prepare('UPDATE `jobs` S...')\r\n#1 /var/www/411/phplib/Job.php(167): FOO\\DB::query('UPDATE `jobs` S...', Array, 0)\r\n#2 /var/www/411/phplib/Worker.php(77): FOO\\JobFinder::getAndLock('1', 1474926093)\r\n#3 /var/www/411/bin/worker.php(34): FOO\\Worker->processSite(Object(FOO\\Site), 1474926093)\r\n#4 {main}\r\n  thrown in /var/www/411/phplib/DB.php on line 78\r\nerr [411_Worker] Worker error site:[1] ret:[65280]\r\n\r\n\r\nAnd I see this in the web UI:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/5177657/18852939/638562cc-8408-11e6-81de-365ce76c00de.png)\r\n\r\nAny ideas on why this is happening?\r\n\r\nThanks!\r\n\r\nAndrew"},"comment":{"url":"https://api.github.com/repos/etsy/411/issues/comments/250486442","html_url":"https://github.com/etsy/411/issues/23#issuecomment-250486442","issue_url":"https://api.github.com/repos/etsy/411/issues/23","id":250486442,"user":{"login":"AGirin","id":5177657,"avatar_url":"https://avatars.githubusercontent.com/u/5177657?v=3","gravatar_id":"","url":"https://api.github.com/users/AGirin","html_url":"https://github.com/AGirin","followers_url":"https://api.github.com/users/AGirin/followers","following_url":"https://api.github.com/users/AGirin/following{/other_user}","gists_url":"https://api.github.com/users/AGirin/gists{/gist_id}","starred_url":"https://api.github.com/users/AGirin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AGirin/subscriptions","organizations_url":"https://api.github.com/users/AGirin/orgs","repos_url":"https://api.github.com/users/AGirin/repos","events_url":"https://api.github.com/users/AGirin/events{/privacy}","received_events_url":"https://api.github.com/users/AGirin/received_events","type":"User","site_admin":false},"created_at":"2016-09-29T14:41:49Z","updated_at":"2016-09-29T14:41:49Z","body":"Same error:\r\n\r\nsqlite> UPDATE jobs SET state = 0, update_date = 0, tries = tries + 1, completion = 0, last_execution_date = 0 WHERE site_id = 0 AND archived = 0 AND state = 0 AND job_id = 0 LIMIT 1;\r\nError: near \"LIMIT\": syntax error\r\nsqlite>\r\n"}}
{"actor":{"display_login":"AGirin"}}