Issue: daemon.log is filled with stack traces from PhabricatorTaskmasterDaemon
VCS: SVN (Partial import), externally hosted, diffusion tracked
Phabricator: Updated on 23rd June.
Seems like if there is a 'Deleted' file in the SVN commit, the problem is observed.
Commit revision 71588 had 5 deleted files and 8 modified files.
[25-Jun-2015 10:30:04 Asia/Kolkata] #0 <#2> PhutilErrorHandler::handleError(integer, string, string, integer, array) called at [<phutil>/src/utils/utils.php:36] [25-Jun-2015 10:30:04 Asia/Kolkata] #1 <#2> idx(NULL, string) called at [<phabricator>/src/applications/transactions/worker/PhabricatorApplicationTransactionPublishWorker.php:32] [25-Jun-2015 10:30:04 Asia/Kolkata] #2 <#2> PhabricatorApplicationTransactionPublishWorker::loadObject() called at [<phabricator>/src/applications/transactions/worker/PhabricatorApplicationTransactionPublishWorker.php:17] [25-Jun-2015 10:30:04 Asia/Kolkata] #3 <#2> PhabricatorApplicationTransactionPublishWorker::doWork() called at [<phabricator>/src/infrastructure/daemon/workers/PhabricatorWorker.php:91] [25-Jun-2015 10:30:04 Asia/Kolkata] #4 <#2> PhabricatorWorker::executeTask() called at [<phabricator>/src/infrastructure/daemon/workers/storage/PhabricatorWorkerActiveTask.php:162] [25-Jun-2015 10:30:04 Asia/Kolkata] #5 <#2> PhabricatorWorkerActiveTask::executeTask() called at [<phabricator>/src/infrastructure/daemon/workers/PhabricatorTaskmasterDaemon.php:22] [25-Jun-2015 10:30:04 Asia/Kolkata] #6 PhabricatorTaskmasterDaemon::run() called at [<phutil>/src/daemon/PhutilDaemon.php:183] [25-Jun-2015 10:30:04 Asia/Kolkata] #7 PhutilDaemon::execute() called at [<phutil>/scripts/daemon/exec/exec_daemon.php:125] [25-Jun-2015 10:35:05 Asia/Kolkata] [2015-06-25 10:35:05] EXCEPTION: (PhutilProxyException) Error while executing Task ID 136757. {>} (InvalidArgumentException) Argument 1 passed to idx() must be of the type array, null given, called in /home/tester/phabricator/phabricator/src/applications/transactions/worker/PhabricatorApplicationTransactionPublishWorker.php on line 32 and defined at [<phutil>/src/error/PhutilErrorHandler.php:200] [25-Jun-2015 10:35:05 Asia/Kolkata] arcanist(head=master, ref.master=5b5629959d60), phabricator(head=master_copy, ref.master=9513fc3571c0, ref.master_copy=87bbda549fc0), phutil(head=master, ref.master=6fedd82a29a0) [25-Jun-2015 10:35:05 Asia/Kolkata] #0 <#2> PhutilErrorHandler::handleError(integer, string, string, integer, array) called at [<phutil>/src/utils/utils.php:36] [25-Jun-2015 10:35:05 Asia/Kolkata] #1 <#2> idx(NULL, string) called at [<phabricator>/src/applications/transactions/worker/PhabricatorApplicationTransactionPublishWorker.php:32] [25-Jun-2015 10:35:05 Asia/Kolkata] #2 <#2> PhabricatorApplicationTransactionPublishWorker::loadObject() called at [<phabricator>/src/applications/transactions/worker/PhabricatorApplicationTransactionPublishWorker.php:17] [25-Jun-2015 10:35:05 Asia/Kolkata] #3 <#2> PhabricatorApplicationTransactionPublishWorker::doWork() called at [<phabricator>/src/infrastructure/daemon/workers/PhabricatorWorker.php:91] [25-Jun-2015 10:35:05 Asia/Kolkata] #4 <#2> PhabricatorWorker::executeTask() called at [<phabricator>/src/infrastructure/daemon/workers/storage/PhabricatorWorkerActiveTask.php:162] [25-Jun-2015 10:35:05 Asia/Kolkata] #5 <#2> PhabricatorWorkerActiveTask::executeTask() called at [<phabricator>/src/infrastructure/daemon/workers/PhabricatorTaskmasterDaemon.php:22] [25-Jun-2015 10:35:05 Asia/Kolkata] #6 PhabricatorTaskmasterDaemon::run() called at [<phutil>/src/daemon/PhutilDaemon.php:183] [25-Jun-2015 10:35:05 Asia/Kolkata] #7 PhutilDaemon::execute() called at [<phutil>/scripts/daemon/exec/exec_daemon.php:125] [25-Jun-2015 10:40:06 Asia/Kolkata] [2015-06-25 10:40:06] EXCEPTION: (PhutilProxyException) Error while executing Task ID 136757. {>} (InvalidArgumentException) Argument 1 passed to idx() must be of the type array, null given, called in /home/tester/phabricator/phabricator/src/applications/transactions/worker/PhabricatorApplicationTransactionPublishWorker.php on line 32 and defined at [<phutil>/src/error/PhutilErrorHandler.php:200] [25-Jun-2015 10:40:06 Asia/Kolkata] arcanist(head=master, ref.master=5b5629959d60), phabricator(head=master_copy, ref.master=9513fc3571c0, ref.master_copy=87bbda549fc0), phutil(head=master, ref.master=6fedd82a29a0) [25-Jun-2015 10:40:06 Asia/Kolkata] #0 <#2> PhutilErrorHandler::handleError(integer, string, string, integer, array) called at [<phutil>/src/utils/utils.php:36] [25-Jun-2015 10:40:06 Asia/Kolkata] #1 <#2> idx(NULL, string) called at [<phabricator>/src/applications/transactions/worker/PhabricatorApplicationTransactionPublishWorker.php:32] [25-Jun-2015 10:40:06 Asia/Kolkata] #2 <#2> PhabricatorApplicationTransactionPublishWorker::loadObject() called at [<phabricator>/src/applications/transactions/worker/PhabricatorApplicationTransactionPublishWorker.php:17] [25-Jun-2015 10:40:06 Asia/Kolkata] #3 <#2> PhabricatorApplicationTransactionPublishWorker::doWork() called at [<phabricator>/src/infrastructure/daemon/workers/PhabricatorWorker.php:91] [25-Jun-2015 10:40:06 Asia/Kolkata] #4 <#2> PhabricatorWorker::executeTask() called at [<phabricator>/src/infrastructure/daemon/workers/storage/PhabricatorWorkerActiveTask.php:162] [25-Jun-2015 10:40:06 Asia/Kolkata] #5 <#2> PhabricatorWorkerActiveTask::executeTask() called at [<phabricator>/src/infrastructure/daemon/workers/PhabricatorTaskmasterDaemon.php:22] [25-Jun-2015 10:40:06 Asia/Kolkata] #6 PhabricatorTaskmasterDaemon::run() called at [<phutil>/src/daemon/PhutilDaemon.php:183] [25-Jun-2015 10:40:06 Asia/Kolkata] #7 PhutilDaemon::execute() called at [<phutil>/scripts/daemon/exec/exec_daemon.php:125]
mysql> (SELECT * FROM phabricator_worker.worker_activetask); +--------+------------------------------------------------+----------------------------------+--------------+--------------+--------+-------------+----------+--------------------------------+ | id | taskClass | leaseOwner | leaseExpires | failureCount | dataID | failureTime | priority | objectPHID | +--------+------------------------------------------------+----------------------------------+--------------+--------------+--------+-------------+----------+--------------------------------+ | 136757 | PhabricatorApplicationTransactionPublishWorker | 29539:1435224658:phabricator:296 | 1435224958 | 253 | 136755 | 1435224658 | 1000 | PHID-CMIT-rjfxs3iuxyzwf4resy4b | +--------+------------------------------------------------+----------------------------------+--------------+--------------+--------+-------------+----------+--------------------------------+ 1 row in set (0.00 sec) mysql> (SELECT * FROM phabricator_worker.worker_archivetask WHERE id=136755 ); +--------+-----------------------------------------+------------------------------------+--------------+--------------+--------+--------+----------+-------------+--------------+----------+------------+ | id | taskClass | leaseOwner | leaseExpires | failureCount | dataID | result | duration | dateCreated | dateModified | priority | objectPHID | +--------+-----------------------------------------+------------------------------------+--------------+--------------+--------+--------+----------+-------------+--------------+----------+------------+ | 136755 | PhabricatorRepositoryCommitOwnersWorker | 27022:1435148802:phabricator:83987 | 1435156002 | 0 | 136753 | 0 | 19160 | 1435148802 | 1435148802 | 2000 | NULL | +--------+-----------------------------------------+------------------------------------+--------------+--------------+--------+--------+----------+-------------+--------------+----------+------------+ 1 row in set (0.00 sec) mysql> (SELECT * FROM phabricator_worker.worker_archivetask WHERE id=136753 ); +--------+--------------------------------------------------+------------------------------------+--------------+--------------+--------+--------+----------+-------------+--------------+----------+------------+ | id | taskClass | leaseOwner | leaseExpires | failureCount | dataID | result | duration | dateCreated | dateModified | priority | objectPHID | +--------+--------------------------------------------------+------------------------------------+--------------+--------------+--------+--------+----------+-------------+--------------+----------+------------+ | 136753 | PhabricatorRepositorySvnCommitChangeParserWorker | 27022:1435148800:phabricator:83986 | 1435235200 | 0 | 136751 | 0 | 2183335 | 1435148802 | 1435148802 | 2000 | NULL | +--------+--------------------------------------------------+------------------------------------+--------------+--------------+--------+--------+----------+-------------+--------------+----------+------------+ 1 row in set (0.00 sec) mysql> (SELECT * FROM phabricator_worker.worker_archivetask WHERE id=136751 ); +--------+--------------------------+------------------------------------+--------------+--------------+--------+--------+----------+-------------+--------------+----------+------------+ | id | taskClass | leaseOwner | leaseExpires | failureCount | dataID | result | duration | dateCreated | dateModified | priority | objectPHID | +--------+--------------------------+------------------------------------+--------------+--------------+--------+--------+----------+-------------+--------------+----------+------------+ | 136751 | PhabricatorMetaMTAWorker | 27022:1435148152:phabricator:83341 | 1435155352 | 0 | 136749 | 0 | 2776911 | 1435148154 | 1435148154 | 1000 | NULL | +--------+--------------------------+------------------------------------+--------------+--------------+--------+--------+----------+-------------+--------------+----------+------------+ 1 row in set (0.00 sec) mysql> select * from repository_commit where phid = "PHID-CMIT-rjfxs3iuxyzwf4resy4b" -> ; +-------+--------------+--------------------------------+------------------+------------+----------------------+--------------------------------+-------------+-------------------------------------------------------------+--------------+ | id | repositoryID | phid | commitIdentifier | epoch | mailKey | authorPHID | auditStatus | summary | importStatus | +-------+--------------+--------------------------------+------------------+------------+----------------------+--------------------------------+-------------+-------------------------------------------------------------+--------------+ | 25193 | 3 | PHID-CMIT-rjfxs3iuxyzwf4resy4b | 71588 | 1435148799 | 624zhev76g6gctrhw6mq | PHID-USER-wr44plznucp4eqowtp7r | 0 | Porting cRNC TCs to mcRNC & vRNC & RNC_UE MT restructuring. | 1039 | +-------+--------------+--------------------------------+------------------+------------+----------------------+--------------------------------+-------------+-------------------------------------------------------------+--------------+ 1 row in set (0.00 sec)
PS: Used bin/worked cancel --id ID for multiple entries in worker_activetask table in the previous week.