After I've upgraded to "36 week stable release", PhabricatorTaskmasterDaemon started to fail when executing PhabricatorApplicationTransactionPublishWorker tasks.
Tried to launch workers separately, tried with bin/phd start, tried launch single worker - still getting same errors. Some tasks are failing few times, some are failing over 20 times. Some get executed sooner or later - some do not. This fills the queue, workers needs to be restarted because exception and other tasks are delayed.
Currently I'm using python script to cancel tasks via bin/worker cancel if their class is PhabricatorApplicationTransactionPublishWorker and failure count is at least 1.
Any ideas what can cause this issue and how to solve it?
[2015-09-09 23:30:09] EXCEPTION: (PhutilProxyException) Error while executing Task ID 35057595. {>} (AphrontDeadlockQueryException) #1213: Deadlock found when trying to get lock; try restarting transaction at [<phutil>/src/aphront/storage/connection/mysql/AphrontBaseMySQLDatabaseConnection.php:293] <...> #0 <#2> AphrontBaseMySQLDatabaseConnection::throwQueryCodeException(integer, string) called at [<phutil>/src/aphront/storage/connection/mysql/AphrontBaseMySQLDatabaseConnection.php:275] #1 <#2> AphrontBaseMySQLDatabaseConnection::throwQueryException(mysqli) called at [<phutil>/src/aphront/storage/connection/mysql/AphrontBaseMySQLDatabaseConnection.php:181] #2 <#2> AphrontBaseMySQLDatabaseConnection::executeRawQuery(string) called at [<phutil>/src/xsprintf/queryfx.php:6] #3 <#2> queryfx(AphrontMySQLiDatabaseConnection, string, string, string) called at [<phabricator>/src/applications/feed/PhabricatorFeedStoryPublisher.php:185] #4 <#2> PhabricatorFeedStoryPublisher::insertNotifications(integer, array) called at [<phabricator>/src/applications/feed/PhabricatorFeedStoryPublisher.php:134] #5 <#2> PhabricatorFeedStoryPublisher::publish() called at [<phabricator>/src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php:2764] #6 <#2> PhabricatorApplicationTransactionEditor::publishFeedStory(DifferentialRevision, array, array) called at [<phabricator>/src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php:1068] #7 <#2> PhabricatorApplicationTransactionEditor::publishTransactions(DifferentialRevision, array) called at [<phabricator>/src/applications/transactions/worker/PhabricatorApplicationTransactionPublishWorker.php:21] #8 <#2> PhabricatorApplicationTransactionPublishWorker::doWork() called at [<phabricator>/src/infrastructure/daemon/workers/PhabricatorWorker.php:91] #9 <#2> PhabricatorWorker::executeTask() called at [<phabricator>/src/infrastructure/daemon/workers/storage/PhabricatorWorkerActiveTask.php:162] #10 <#2> PhabricatorWorkerActiveTask::executeTask() called at [<phabricator>/src/infrastructure/daemon/workers/PhabricatorTaskmasterDaemon.php:22] #11 PhabricatorTaskmasterDaemon::run() called at [<phutil>/src/daemon/PhutilDaemon.php:183] #12 PhutilDaemon::execute() called at [<phutil>/scripts/daemon/exec/exec_daemon.php:125]