Page MenuHomePhabricator

PhabricatorDataNotAttachedException on /people/commits/ID/
Closed, ResolvedPublic

Description

Hi,

I'm getting the above error on my installation at https://URL/people/commits/1/ for myself.

The following is what is generated in my php errors log file:

[06-Mar-2017 18:22:03 America/New_York] [2017-03-06 18:22:03] EXCEPTION: (PhabricatorDataNotAttachedException) Attempting to access attached data on PhabricatorRepositoryCommit (via getAudits()), 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:241]
[06-Mar-2017 18:22:03 America/New_York] arcanist(head=master, ref.master=3b6b523c2b23), phabricator(head=master, ref.master=814c28d39a81), phabricator-sparkpost(head=master, ref.master=5f5b06bb29d7), phutil(head=master, ref.master=13a200ca7621)
[06-Mar-2017 18:22:03 America/New_York]   #0 <#2> PhabricatorLiskDAO::assertAttached(string) called at [<phabricator>/src/applications/repository/storage/PhabricatorRepositoryCommit.php:182]
[06-Mar-2017 18:22:03 America/New_York]   #1 <#2> PhabricatorRepositoryCommit::getAudits() called at [<phabricator>/src/applications/audit/view/PhabricatorAuditListView.php:90]
[06-Mar-2017 18:22:03 America/New_York]   #2 <#2> PhabricatorAuditListView::buildList() called at [<phabricator>/src/applications/audit/view/PhabricatorAuditListView.php:77]
[06-Mar-2017 18:22:03 America/New_York]   #3 <#2> phutil_tag(string, array, array) called at [<phabricator>/src/infrastructure/javelin/markup.php:53]
[06-Mar-2017 18:22:03 America/New_York]   #4 <#2> phutil_escape_html(array) called at [<phutil>/src/markup/render.php:157]
[06-Mar-2017 18:22:03 America/New_York]   #5 <#2> phutil_escape_html(array) called at [<phutil>/src/markup/render.php:119]
[06-Mar-2017 18:22:03 America/New_York]   #6 <#2> phutil_tag(string, array, array) called at [<phabricator>/src/view/phui/PHUITwoColumnView.php:221]
[06-Mar-2017 18:22:03 America/New_York]   #7 <#2> PHUITwoColumnView::buildFooter() called at [<phabricator>/src/view/phui/PHUITwoColumnView.php:108]
[06-Mar-2017 18:22:03 America/New_York]   #8 <#2> PHUITwoColumnView::getTagContent() called at [<phabricator>/src/view/AphrontTagView.php:161]
[06-Mar-2017 18:22:03 America/New_York]   #9 <#2> AphrontTagView::render() called at [<phabricator>/src/view/AphrontView.php:222]
[06-Mar-2017 18:22:03 America/New_York]   #10 <#2> AphrontView::producePhutilSafeHTML() called at [<phutil>/src/markup/render.php:133]
[06-Mar-2017 18:22:03 America/New_York]   #11 <#2> phutil_escape_html(PHUITwoColumnView) called at [<phutil>/src/markup/render.php:189]
[06-Mar-2017 18:22:03 America/New_York]   #12 <#2> phutil_implode_html(string, array) called at [<phabricator>/src/view/page/PhabricatorBarePageView.php:58]
[06-Mar-2017 18:22:03 America/New_York]   #13 <#2> PhabricatorBarePageView::willRenderPage() called at [<phabricator>/src/view/page/PhabricatorStandardPageView.php:199]
[06-Mar-2017 18:22:03 America/New_York]   #14 <#2> PhabricatorStandardPageView::willRenderPage() called at [<phabricator>/src/view/page/AphrontPageView.php:46]
[06-Mar-2017 18:22:03 America/New_York]   #15 <#2> AphrontPageView::render() called at [<phabricator>/src/view/page/PhabricatorStandardPageView.php:884]
[06-Mar-2017 18:22:03 America/New_York]   #16 <#2> PhabricatorStandardPageView::produceAphrontResponse() called at [<phabricator>/src/aphront/configuration/AphrontApplicationConfiguration.php:649]
[06-Mar-2017 18:22:03 America/New_York]   #17 <#2> AphrontApplicationConfiguration::produceResponse(AphrontRequest, PhabricatorStandardPageView) called at [<phabricator>/src/aphront/configuration/AphrontApplicationConfiguration.php:278]
[06-Mar-2017 18:22:03 America/New_York]   #18 <#2> AphrontApplicationConfiguration::processRequest(AphrontRequest, PhutilDeferredLog, AphrontPHPHTTPSink, MultimeterControl) called at [<phabricator>/src/aphront/configuration/AphrontApplicationConfiguration.php:181]
[06-Mar-2017 18:22:03 America/New_York]   #19 <#2> AphrontApplicationConfiguration::runHTTPRequest(AphrontPHPHTTPSink) called at [<phabricator>/webroot/index.php:17]
[06-Mar-2017 18:22:03 America/New_York]   #20 phlog(PhabricatorDataNotAttachedException) called at [<phabricator>/src/aphront/response/AphrontUnhandledExceptionResponse.php:20]
[06-Mar-2017 18:22:03 America/New_York]   #21 AphrontUnhandledExceptionResponse::setException(PhabricatorDataNotAttachedException) called at [<phabricator>/webroot/index.php:21]

I have manually removed a repository before. If this is the cause, what would be the solution?

Revisions and Commits

Restricted Differential Revision

Event Timeline

chad added a revision: Restricted Differential Revision.Mar 7 2017, 12:44 AM
chad closed this task as Resolved by committing Restricted Diffusion Commit.Mar 7 2017, 1:24 AM
chad added a commit: Restricted Diffusion Commit.

Beautiful and timely fix. Thanks!