Page MenuHomePhabricator

Pastes index fails to load.
Closed, InvalidPublic

Description

When opening the paste index on my instance, I get the following message:

Attempting to access attached data on PhabricatorPaste (via getContent()), 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.

I get the following stack trace from Darkconsole:

Stack trace:
phlog called at [/var/www/phabricator/phabricator/src/aphront/configuration/AphrontDefaultApplicationConfiguration.php:226]
AphrontDefaultApplicationConfiguration::handleException called at [/var/www/phabricator/phabricator/src/aphront/configuration/AphrontApplicationConfiguration.php:222]
AphrontApplicationConfiguration::processRequest called at [/var/www/phabricator/phabricator/src/aphront/configuration/AphrontApplicationConfiguration.php:132]
AphrontApplicationConfiguration::runHTTPRequest called at [/var/www/phabricator/phabricator/webroot/index.php:19]

And this other stack trace from the Nginx error log:

2015/06/15 15:33:12 [error] 604#0: *1258 FastCGI sent in stderr: "PHP message: [2015-06-15 15:33:12] EXCEPTION: (PhabricatorDataNotAttachedException) Attempting to access attached data on PhabricatorPaste (via getContent()), 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]
PHP message: arcanist(head=master, ref.master=fe4856277c6c), phabricator(head=master, ref.master=6aa494bd2523), phutil(head=master, ref.master=3b4da3f33153)
PHP message:   #0 PhabricatorLiskDAO::assertAttached(string) called at [<phabricator>/src/applications/paste/storage/PhabricatorPaste.php:97]
PHP message:   #1 PhabricatorPaste::getContent() called at [<phabricator>/src/applications/paste/query/PhabricatorPasteSearchEngine.php:152]
PHP message:   #2 PhabricatorPasteSearchEngine::renderResultList(array, PhabricatorSavedQuery, array) called at [<phabricator>/src/applications/search/engine/PhabricatorApplicationSearchEngine.php:805]
PHP message:   #3 PhabricatorApplicationSearchEngine::renderResults(array, PhabricatorSavedQuery) called at [<phabricator>/src/applications/search/controller/PhabricatorApplicationSearchController.php:233]
PHP message:   #4 PhabricatorApplicationSearchController::processSearchRequest() called at [<phabricator>/src/applications/search/controller/PhabricatorApplicationSearchController.php:84]
PHP message:   #5 PhabricatorApplicationSearchController::processRequest() called at [<phabricator>/src/aphront/AphrontController.php:33]
PHP message:   #6 AphrontController::handleRequest(AphrontRequest) called at [<phabricator>/src/aphront/AphrontController.php:69]
PHP message:   #7 AphrontController::delegateToController(PhabricatorApplicationSearchController) called at [<phabricator>/src/applications/pas

Event Timeline

pirogoeth assigned this task to epriestley.
pirogoeth raised the priority of this task from to Needs Triage.
pirogoeth updated the task description. (Show Details)
pirogoeth added a project: Paste.
pirogoeth added a subscriber: pirogoeth.

I can't reproduce anything here, does this still give you an error at HEAD?

phabricator(head=master, ref.master=6aa494bd2523)

Yeah, you're about two months out of date. Does updating fix the issue? See:

https://secure.phabricator.com/book/phabcontrib/article/bug_reports/#update-phabricator

Well.... it was current when the task was filed.

(I did fix a couple of similar things a while ago, so it seems reasonable that this may be resolved at HEAD.)

In any case, we can't reproduce this and aren't sure if it reproduces at HEAD. See Contributing Bug Reports.