Page MenuHomePhabricator

Attempting to access attached data on AlmanacBinding
Closed, ResolvedPublic

Description

I just updated our install this morning and am now seeing daemon errors when parsing commits:

[2016-02-24 08:17:41] EXCEPTION: (PhabricatorDataNotAttachedException) Attempting to access attached data on AlmanacBinding, but the data is not actually attached. Before accessing attachable data on an object, you must load and attach it.

Data is normally attached by calling the corresponding needX() method on the Query class when the object is loaded. You can also call the corresponding attachX() method explicitly. at [<phabricator>/src/infrastructure/storage/lisk/PhabricatorLiskDAO.php:166]
arcanist(head=master, ref.master=fcc11b3a2781), phabricator(head=master, ref.master=76d4e85bfc1b), phlab(head=master, ref.master=450c7c100a72), phutil(head=master, ref.master=f43291e99d36)
  #0 PhabricatorLiskDAO::assertAttached(string) called at [<phabricator>/src/applications/almanac/storage/AlmanacBinding.php:109]
  #1 AlmanacBinding::hasAlmanacProperty(string) called at [<phabricator>/src/applications/almanac/storage/AlmanacBinding.php:118]
  #2 AlmanacBinding::getAlmanacPropertyValue(string) called at [<phabricator>/src/applications/repository/storage/PhabricatorRepository.php:2093]
  #3 PhabricatorRepository::getAlmanacServiceURI(PhabricatorUser, boolean, array) called at [<phabricator>/src/applications/repository/storage/PhabricatorRepository.php:2170]
  #4 PhabricatorRepository::newConduitClient(PhabricatorUser, boolean) called at [<phabricator>/src/applications/diffusion/query/DiffusionQuery.php:77]
  #5 DiffusionQuery::callConduitWithDiffusionRequest(PhabricatorUser, DiffusionGitRequest, string, array) called at [<phabricator>/src/applications/repository/worker/commitmessageparser/PhabricatorRepositoryCommitMessageParserWorker.php:29]
  #6 PhabricatorRepositoryCommitMessageParserWorker::parseCommit(PhabricatorRepository, PhabricatorRepositoryCommit) called at [<phabricator>/src/applications/repository/worker/PhabricatorRepositoryCommitParserWorker.php:40]
  #7 PhabricatorRepositoryCommitParserWorker::doWork() called at [<phabricator>/src/infrastructure/daemon/workers/PhabricatorWorker.php:122]
  #8 PhabricatorWorker::executeTask() called at [<phabricator>/src/infrastructure/daemon/workers/storage/PhabricatorWorkerActiveTask.php:171]
  #9 PhabricatorWorkerActiveTask::executeTask() called at [<phabricator>/src/infrastructure/daemon/workers/management/PhabricatorWorkerManagementExecuteWorkflow.php:52]
  #10 PhabricatorWorkerManagementExecuteWorkflow::execute(PhutilArgumentParser) called at [<phutil>/src/parser/argument/PhutilArgumentParser.php:408]
  #11 PhutilArgumentParser::parseWorkflowsFull(array) called at [<phutil>/src/parser/argument/PhutilArgumentParser.php:301]
  #12 PhutilArgumentParser::parseWorkflows(array) called at [<phabricator>/scripts/setup/manage_worker.php:21]

I figured this could be related to the recent work on Almanac.

Revisions and Commits

Restricted Differential Revision

Event Timeline

This seems to be happening consistently for all new commits.

epriestley added a revision: Restricted Differential Revision.Feb 23 2016, 9:49 PM
epriestley closed this task as Resolved by committing Restricted Diffusion Commit.Feb 23 2016, 9:50 PM
epriestley added a commit: Restricted Diffusion Commit.

I think I got 'em all, but let me know if you catch any more.