Page MenuHomePhabricator

You must use withSourcePHIDs() to query edges.
Closed, InvalidPublic

Description

Hey guys,

When trying to update my profile by clicking on my account profile image in the top right corner, I get the following:

Unhandled Exception ("Exception")
You must use withSourcePHIDs() to query edges.

I know you guys want reproduction steps, however, I am not really sure how to reproduce it since I can't fix it. My suspicion is that I have recently removed a few projects via the bin/remove destroy command and that's what is screwing things up. I just pulled all the latest from the upstream and I still have the issue.

Here is the part of the error log that is relevant:

[Fri Apr 01 17:30:58.449509 2016] [:error] [pid 3195] [client 71.225.2.2:60613] [2016-04-01 18:30:58] EXCEPTION: (Exception) You must use withSourcePHIDs() to query edges. at [<phabricator>/src/infrastructure/edges/query/PhabricatorEdgeQuery.php:162]
[Fri Apr 01 17:30:58.450539 2016] [:error] [pid 3195] [client 71.225.2.2:60613] arcanist(head=master, ref.master=3d7ac867f538), phabricator(head=master, ref.master=59efb7bdf327), phutil(head=master, ref.master=3024f0a4908b), sprint(head=master, ref.master=1ddd5084a80d)
[Fri Apr 01 17:30:58.450555 2016] [:error] [pid 3195] [client 71.225.2.2:60613]   #0 <#2> PhabricatorEdgeQuery::execute() called at [<phabricator>/src/applications/project/query/PhabricatorProjectQuery.php:299]
[Fri Apr 01 17:30:58.450561 2016] [:error] [pid 3195] [client 71.225.2.2:60613]   #1 <#2> PhabricatorPolicyAwareQuery::execute() called at [<phabricator>/src/applications/phid/type/PhabricatorPHIDType.php:91]
[Fri Apr 01 17:30:58.450566 2016] [:error] [pid 3195] [client 71.225.2.2:60613]   #2 <#2> PhabricatorPHIDType::loadObjects(PhabricatorObjectQuery, array) called at [<phabricator>/src/applications/phid/query/PhabricatorObjectQuery.php:143]
[Fri Apr 01 17:30:58.450571 2016] [:error] [pid 3195] [client 71.225.2.2:60613]   #3 <#2> PhabricatorObjectQuery::loadObjectsByPHID(array, array) called at [<phabricator>/src/applications/phid/query/PhabricatorObjectQuery.php:63]
[Fri Apr 01 17:30:58.450575 2016] [:error] [pid 3195] [client 71.225.2.2:60613]   #4 <#2> PhabricatorObjectQuery::loadPage() called at [<phabricator>/src/infrastructure/query/policy/PhabricatorPolicyAwareQuery.php:227]
[Fri Apr 01 17:30:58.450580 2016] [:error] [pid 3195] [client 71.225.2.2:60613]   #5 <#2> PhabricatorPolicyAwareQuery::execute() called at [<phabricator>/src/applications/feed/story/PhabricatorFeedStory.php:84]
[Fri Apr 01 17:30:58.450584 2016] [:error] [pid 3195] [client 71.225.2.2:60613]   #6 <#2> PhabricatorFeedStory::loadAllFromRows(array, PhabricatorUser) called at [<phabricator>/src/applications/feed/query/PhabricatorFeedQuery.php:37]
[Fri Apr 01 17:30:58.450589 2016] [:error] [pid 3195] [client 71.225.2.2:60613]   #7 <#2> PhabricatorFeedQuery::willFilterPage(array) called at [<phabricator>/src/infrastructure/query/policy/PhabricatorPolicyAwareQuery.php:236]
[Fri Apr 01 17:30:58.450594 2016] [:error] [pid 3195] [client 71.225.2.2:60613]   #8 <#2> PhabricatorPolicyAwareQuery::execute() called at [<phabricator>/src/applications/people/controller/PhabricatorPeopleProfileViewController.php:266]
[Fri Apr 01 17:30:58.450598 2016] [:error] [pid 3195] [client 71.225.2.2:60613]   #9 <#2> PhabricatorPeopleProfileViewController::buildPeopleFeed(PhabricatorUser, PhabricatorUser) called at [<phabricator>/src/applications/people/controller/PhabricatorPeopleProfileViewController.php:54]
[Fri Apr 01 17:30:58.450603 2016] [:error] [pid 3195] [client 71.225.2.2:60613]   #10 <#2> PhabricatorPeopleProfileViewController::handleRequest(AphrontRequest) called at [<phabricator>/src/aphront/configuration/AphrontApplicationConfiguration.php:237]
[Fri Apr 01 17:30:58.450607 2016] [:error] [pid 3195] [client 71.225.2.2:60613]   #11 phlog(Exception) called at [<phabricator>/src/aphront/handler/PhabricatorDefaultRequestExceptionHandler.php:32]
[Fri Apr 01 17:30:58.450621 2016] [:error] [pid 3195] [client 71.225.2.2:60613]   #12 PhabricatorDefaultRequestExceptionHandler::handleRequestException(AphrontRequest, Exception) called at [<phabricator>/src/aphront/configuration/AphrontApplicationConfiguration.php:632]
[Fri Apr 01 17:30:58.450626 2016] [:error] [pid 3195] [client 71.225.2.2:60613]   #13 AphrontApplicationConfiguration::handleException(Exception) called at [<phabricator>/src/aphront/configuration/AphrontApplicationConfiguration.php:242]
[Fri Apr 01 17:30:58.450630 2016] [:error] [pid 3195] [client 71.225.2.2:60613]   #14 AphrontApplicationConfiguration::processRequest(AphrontRequest, PhutilDeferredLog, AphrontPHPHTTPSink, MultimeterControl) called at [<phabricator>/src/aphront/configuration/AphrontApplicationConfiguration.php:149]
[Fri Apr 01 17:30:58.450636 2016] [:error] [pid 3195] [client 71.225.2.2:60613]   #15 AphrontApplicationConfiguration::runHTTPRequest(AphrontPHPHTTPSink) called at [<phabricator>/webroot/index.php:17]
[Fri Apr 01 17:31:20.392744 2016] [:error] [pid 3211] [client 71.225.2.2:60874] [2016-04-01 18:31:20] EXCEPTION: (Exception) You must use withSourcePHIDs() to query edges. at [<phabricator>/src/infrastructure/edges/query/PhabricatorEdgeQuery.php:162]
[Fri Apr 01 17:31:20.393661 2016] [:error] [pid 3211] [client 71.225.2.2:60874] arcanist(head=master, ref.master=3d7ac867f538), phabricator(head=master, ref.master=59efb7bdf327), phutil(head=master, ref.master=3024f0a4908b), sprint(head=master, ref.master=1ddd5084a80d)
[Fri Apr 01 17:31:20.393683 2016] [:error] [pid 3211] [client 71.225.2.2:60874]   #0 <#2> PhabricatorEdgeQuery::execute() called at [<phabricator>/src/applications/project/query/PhabricatorProjectQuery.php:299]
[Fri Apr 01 17:31:20.393689 2016] [:error] [pid 3211] [client 71.225.2.2:60874]   #1 <#2> PhabricatorPolicyAwareQuery::execute() called at [<phabricator>/src/applications/phid/type/PhabricatorPHIDType.php:91]
[Fri Apr 01 17:31:20.393694 2016] [:error] [pid 3211] [client 71.225.2.2:60874]   #2 <#2> PhabricatorPHIDType::loadObjects(PhabricatorObjectQuery, array) called at [<phabricator>/src/applications/phid/query/PhabricatorObjectQuery.php:143]
[Fri Apr 01 17:31:20.393699 2016] [:error] [pid 3211] [client 71.225.2.2:60874]   #3 <#2> PhabricatorObjectQuery::loadObjectsByPHID(array, array) called at [<phabricator>/src/applications/phid/query/PhabricatorObjectQuery.php:63]
[Fri Apr 01 17:31:20.393704 2016] [:error] [pid 3211] [client 71.225.2.2:60874]   #4 <#2> PhabricatorObjectQuery::loadPage() called at [<phabricator>/src/infrastructure/query/policy/PhabricatorPolicyAwareQuery.php:227]
[Fri Apr 01 17:31:20.393708 2016] [:error] [pid 3211] [client 71.225.2.2:60874]   #5 <#2> PhabricatorPolicyAwareQuery::execute() called at [<phabricator>/src/applications/feed/story/PhabricatorFeedStory.php:84]
[Fri Apr 01 17:31:20.393713 2016] [:error] [pid 3211] [client 71.225.2.2:60874]   #6 <#2> PhabricatorFeedStory::loadAllFromRows(array, PhabricatorUser) called at [<phabricator>/src/applications/feed/query/PhabricatorFeedQuery.php:37]
[Fri Apr 01 17:31:20.393718 2016] [:error] [pid 3211] [client 71.225.2.2:60874]   #7 <#2> PhabricatorFeedQuery::willFilterPage(array) called at [<phabricator>/src/infrastructure/query/policy/PhabricatorPolicyAwareQuery.php:236]
[Fri Apr 01 17:31:20.393723 2016] [:error] [pid 3211] [client 71.225.2.2:60874]   #8 <#2> PhabricatorPolicyAwareQuery::execute() called at [<phabricator>/src/applications/people/controller/PhabricatorPeopleProfileViewController.php:266]
[Fri Apr 01 17:31:20.393727 2016] [:error] [pid 3211] [client 71.225.2.2:60874]   #9 <#2> PhabricatorPeopleProfileViewController::buildPeopleFeed(PhabricatorUser, PhabricatorUser) called at [<phabricator>/src/applications/people/controller/PhabricatorPeopleProfileViewController.php:54]
[Fri Apr 01 17:31:20.393732 2016] [:error] [pid 3211] [client 71.225.2.2:60874]   #10 <#2> PhabricatorPeopleProfileViewController::handleRequest(AphrontRequest) called at [<phabricator>/src/aphront/configuration/AphrontApplicationConfiguration.php:237]
[Fri Apr 01 17:31:20.393748 2016] [:error] [pid 3211] [client 71.225.2.2:60874]   #11 phlog(Exception) called at [<phabricator>/src/aphront/handler/PhabricatorDefaultRequestExceptionHandler.php:32]
[Fri Apr 01 17:31:20.393753 2016] [:error] [pid 3211] [client 71.225.2.2:60874]   #12 PhabricatorDefaultRequestExceptionHandler::handleRequestException(AphrontRequest, Exception) called at [<phabricator>/src/aphront/configuration/AphrontApplicationConfiguration.php:632]
[Fri Apr 01 17:31:20.393758 2016] [:error] [pid 3211] [client 71.225.2.2:60874]   #13 AphrontApplicationConfiguration::handleException(Exception) called at [<phabricator>/src/aphront/configuration/AphrontApplicationConfiguration.php:242]
[Fri Apr 01 17:31:20.393762 2016] [:error] [pid 3211] [client 71.225.2.2:60874]   #14 AphrontApplicationConfiguration::processRequest(AphrontRequest, PhutilDeferredLog, AphrontPHPHTTPSink, MultimeterControl) called at [<phabricator>/src/aphront/configuration/AphrontApplicationConfiguration.php:149]
[Fri Apr 01 17:31:20.393768 2016] [:error] [pid 3211] [client 71.225.2.2:60874]   #15 AphrontApplicationConfiguration::runHTTPRequest(AphrontPHPHTTPSink) called at [<phabricator>/webroot/index.php:17]

``

Thank you

Event Timeline

epriestley added a subscriber: epriestley.

I know you guys want reproduction steps

Yes, we require reproduction steps for bug reports. This report doesn't have reproduction steps, so we unfortunately can't accept it.

If you believe this is related to deleting things, you can install a fresh copy of Phabricator and delete some things in order to try to reproduce it. If you succeed, you'll have reproduction steps.

Feel free to file a new report if you are able to come up with repeatable, self-contained, concise reproduction steps.

@epriestley Maybe a bug request wasn't the right thing to submit. How can I go about getting support or advice on this issue without figuring out how to reproduce it. At the end of the day it is likely not a bug but rather me breaking something through deleting a project.

I get the same error after delete project by "bin/remove destory phid". I find that the phid has been removed from edge table in mysql but the phid exist in project table. so I delete the phid project record in project table just resovle it