Page MenuHomePhabricator

"Attempting to access attached data on PhabricatorRepositoryCommit (via getRepository())" error when creating or accessing diffs
Closed, ResolvedPublic

Description

[Tue Jan 06 10:29:23 2015] [error] [client <ip>] [2015-01-06 10:29:23] EXCEPTION: (PhabricatorDataNotAttachedException) Attempting to access attached data on PhabricatorRepositoryCommit (via getRepository()), but the data is not actually attached. Before accessing attachable data on an object, you must load and attach it.\n\nData 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], referer: https://<ourdomain>/differential/
[Tue Jan 06 10:29:23 2015] [error] [client <ip>]   #0 PhabricatorLiskDAO::assertAttached(string) called at [<phabricator>/src/applications/repository/storage/PhabricatorRepositoryCommit.php:46], referer: https://<ourdomain>/differential/
[Tue Jan 06 10:29:23 2015] [error] [client <ip>]   #1 PhabricatorRepositoryCommit::getRepository() called at [<phabricator>/src/applications/diffusion/query/DiffusionCommitQuery.php:201], referer: https://<ourdomain>/differential/
[Tue Jan 06 10:29:23 2015] [error] [client <ip>]   #2 DiffusionCommitQuery::willFilterPage(array) called at [<phabricator>/src/infrastructure/query/policy/PhabricatorPolicyAwareQuery.php:236], referer: https://<ourdomain>/differential/
[Tue Jan 06 10:29:23 2015] [error] [client <ip>]   #3 PhabricatorPolicyAwareQuery::execute() called at [<phabricator>/src/applications/differential/controller/DifferentialRevisionViewController.php:218], referer: https://<ourdomain>/differential/
[Tue Jan 06 10:29:23 2015] [error] [client <ip>]   #4 DifferentialRevisionViewController::processRequest() called at [<phabricator>/src/aphront/AphrontController.php:33], referer: https://<ourdomain>/differential/
[Tue Jan 06 10:29:23 2015] [error] [client <ip>]   #5 AphrontController::handleRequest(AphrontRequest) called at [<phabricator>/src/aphront/configuration/AphrontApplicationConfiguration.php:196], referer: https://<ourdomain>/differential/
[Tue Jan 06 10:29:23 2015] [error] [client <ip>]   #6 AphrontApplicationConfiguration::processRequest(AphrontRequest, PhutilDeferredLog, AphrontPHPHTTPSink) called at [<phabricator>/src/aphront/configuration/AphrontApplicationConfiguration.php:121], referer: https://<ourdomain>/differential/
[Tue Jan 06 10:29:23 2015] [error] [client <ip>]   #7 AphrontApplicationConfiguration::runHTTPRequest(AphrontPHPHTTPSink) called at [<phabricator>/webroot/index.php:19], referer: https://<ourdomain>/differential/

Event Timeline

mbishopim3 raised the priority of this task from to Needs Triage.
mbishopim3 updated the task description. (Show Details)
mbishopim3 added a subscriber: mbishopim3.

I'm getting something similar

Attempting to access attached data on PhabricatorUser (via getProfileImageURI()), but the data is not actually attached. Before accessing attachable data on an object, you must load and   attach it.\n\nData 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.

@swang Please file a new task with all important information needed (full stack trace, what you were doing, etc).