Page MenuHomePhabricator

"Unable to build document" error
Closed, DuplicatePublic

Description

I am trying to run ./bin/search index --all --background but am getting the following error occurring (many times).

[2014-04-02 11:59:02] PHLOG: Unable to build document PHID-CMIT-dud44wwoo2pnv3fpdnzv by indexer PhabricatorRepositoryCommitSearchIndexer. at [/data/www/phabricator/src/applications/search/index/PhabricatorSearchDocumentIndexer.php:53]
[2014-04-02 11:59:02] EXCEPTION: (Exception) Unable to load object by phid 'PHID-CMIT-dud44wwoo2pnv3fpdnzv'! at [/data/www/phabricator/src/applications/search/index/PhabricatorSearchDocumentIndexer.php:31]
  #0 PhabricatorSearchDocumentIndexer::loadDocumentByPHID(PHID-CMIT-dud44wwoo2pnv3fpdnzv) called at [/data/www/phabricator/src/applications/repository/search/PhabricatorRepositoryCommitSearchIndexer.php:11]
  #1 PhabricatorRepositoryCommitSearchIndexer::buildAbstractDocumentByPHID(PHID-CMIT-dud44wwoo2pnv3fpdnzv) called at [/data/www/phabricator/src/applications/search/index/PhabricatorSearchDocumentIndexer.php:38]
  #2 PhabricatorSearchDocumentIndexer::indexDocumentByPHID(PHID-CMIT-dud44wwoo2pnv3fpdnzv) called at [/data/www/phabricator/src/applications/search/index/PhabricatorSearchIndexer.php:22]
  #3 PhabricatorSearchIndexer::indexDocumentByPHID(PHID-CMIT-dud44wwoo2pnv3fpdnzv) called at [/data/www/phabricator/src/applications/search/management/PhabricatorSearchManagementIndexWorkflow.php:86]
  #4 PhabricatorSearchManagementIndexWorkflow::execute(Object PhutilArgumentParser) called at [/data/www/libphutil/src/parser/argument/PhutilArgumentParser.php:396]
  #5 PhutilArgumentParser::parseWorkflowsFull(Array of size 2 starting with: { 0 => Object PhabricatorSearchManagementIndexWorkflow }) called at [/data/www/libphutil/src/parser/argument/PhutilArgumentParser.php:292]
  #6 PhutilArgumentParser::parseWorkflows(Array of size 2 starting with: { 0 => Object PhabricatorSearchManagementIndexWorkflow }) called at [/data/www/phabricator/scripts/search/manage_search.php:22]

I think this is similar to T4710. It seems that references to old commits still exist in the database.

Event Timeline

joshuaspence assigned this task to epriestley.
joshuaspence raised the priority of this task from to Normal.
joshuaspence updated the task description. (Show Details)
joshuaspence added a subscriber: joshuaspence.

This isn't terminating the script (just spewing errors) right?

The overall behavior should still be correct, although obviously it would be nice to clean these objects up.

Yeah that's right, the script continues executing.

If the errors don't do any harm, then I probably can't be bothered to fix them at this stage. But as you said, it would be nice to clean these up.