Page MenuHomePhabricator

The objects you have listed include objects which do not exist
Closed, InvalidPublic

Description

I'm getting this exception whilst trying to update a diff:

arc diff --never-apply-patches --trace HEAD~
libphutil loaded from '/usr/src/libphutil/src'.
arcanist loaded from '/usr/src/arcanist/src'.
Config: Reading user configuration file "/home/josh/.arcrc"...
Config: Did not find system configuration at "/etc/arcconfig".
Working Copy: Reading .arcconfig from "/home/josh/workspace/REDACTED/.arcconfig".
Working Copy: Path "/home/josh/workspace/REDACTED" is part of `git` working copy "/home/josh/workspace/REDACTED".
Working Copy: Project root is at "/home/josh/workspace/REDACTED".
Config: Did not find local configuration at "/home/josh/workspace/REDACTED/.git/arc/config".
Loading phutil library from '/home/josh/workspace/REDACTED/support/flarc/src'...
>>> [0] <conduit> user.whoami() <bytes = 117>
>>> [1] <http> https://phabricator.redacted.com/api/user.whoami
<<< [1] <http> 2,334,289 us
<<< [0] <conduit> 2,334,744 us
>>> [2] <exec> $ git diff --no-ext-diff --no-textconv --raw 'HEAD' --
>>> [3] <exec> $ git ls-files --others --exclude-standard
<<< [2] <exec> 380,399 us
<<< [3] <exec> 511,283 us
>>> [4] <exec> $ git diff-files --name-only
<<< [4] <exec> 140,486 us
>>> [5] <event> diff.didCollectChanges <listeners = 0>
<<< [5] <event> 1,042 us
>>> [6] <exec> $ git rev-parse 'HEAD'
<<< [6] <exec> 14,513 us
>>> [7] <exec> $ git merge-base 'HEAD~' 'd5c3af448e725f965ebe3fdaa9f0d66e14c55b1c'
<<< [7] <exec> 11,858 us
>>> [8] <exec> $ git log --first-parent --format=medium 'be63d51a133c96175bdf9480e318de5802e1751c'..'d5c3af448e725f965ebe3fdaa9f0d66e14c55b1c'
<<< [8] <exec> 11,702 us
>>> [9] <conduit> differential.query() <bytes = 239>
>>> [10] <http> https://phabricator.redacted.com/api/differential.query
<<< [10] <http> 616,847 us
<<< [9] <conduit> 617,524 us
>>> [11] <conduit> differential.query() <bytes = 149>
>>> [12] <http> https://phabricator.redacted.com/api/differential.query
<<< [12] <http> 518,926 us
<<< [11] <conduit> 519,429 us
>>> [13] <conduit> differential.getcommitmessage() <bytes = 172>
>>> [14] <http> https://phabricator.redacted.com/api/differential.getcommitmessage
<<< [14] <http> 585,427 us
<<< [13] <conduit> 585,659 us
>>> [15] <conduit> differential.parsecommitmessage() <bytes = 537>
>>> [16] <http> https://phabricator.redacted.com/api/differential.parsecommitmessage
<<< [16] <http> 788,808 us
<<< [15] <conduit> 789,192 us

[2015-12-21 08:03:56] EXCEPTION: (ArcanistDifferentialCommitMessageParserException) Error parsing field "Reviewers": The objects you have listed include objects which do not exist (#). at [<arcanist>/src/differential/ArcanistDifferentialCommitMessage.php:54]
arcanist(head=master, ref.master=9a373c88d747), flarc(), phutil(head=master, ref.master=e0dd9c4efda1)
  #0 ArcanistDifferentialCommitMessage::pullDataFromConduit(ConduitClient) called at [<arcanist>/src/workflow/ArcanistDiffWorkflow.php:1786]
  #1 ArcanistDiffWorkflow::getCommitMessageFromRevision(string) called at [<arcanist>/src/workflow/ArcanistDiffWorkflow.php:1518]
  #2 ArcanistDiffWorkflow::buildCommitMessage() called at [<arcanist>/src/workflow/ArcanistDiffWorkflow.php:460]
  #3 ArcanistDiffWorkflow::run() called at [<arcanist>/scripts/arcanist.php:382]

Event Timeline

The exception is correct in that the reviewers field contains garbage:

Reviewers: #, REDACTED

This field, however, was set with arc amend.

> arc amend --trace
libphutil loaded from '/usr/src/libphutil/src'.
arcanist loaded from '/usr/src/arcanist/src'.
Config: Reading user configuration file "/home/josh/.arcrc"...
Config: Did not find system configuration at "/etc/arcconfig".
Working Copy: Reading .arcconfig from "/home/josh/workspace/REDACTED/.arcconfig".
Working Copy: Path "/home/josh/workspace/REDACTED" is part of `git` working copy "/home/josh/workspace/REDACTED".
Working Copy: Project root is at "/home/josh/workspace/REDACTED".
Config: Did not find local configuration at "/home/josh/workspace/REDACTED/.git/arc/config".
Loading phutil library from '/home/josh/workspace/REDACTED/support/flarc/src'...
>>> [0] <conduit> user.whoami() <bytes = 117>
>>> [1] <http> https://phabricator.redacted.com/api/user.whoami
<<< [1] <http> 2,570,538 us
<<< [0] <conduit> 2,572,524 us
>>> [2] <exec> $ git diff --no-ext-diff --no-textconv --raw 'HEAD' --
>>> [3] <exec> $ git ls-files --others --exclude-standard
<<< [2] <exec> 309,152 us
<<< [3] <exec> 442,695 us
>>> [4] <exec> $ git diff-files --name-only
<<< [4] <exec> 161,257 us
>>> [5] <exec> $ git rev-parse --verify HEAD^
<<< [5] <exec> 17,530 us
>>> [6] <exec> $ git rev-parse 'HEAD'
<<< [6] <exec> 22,073 us
>>> [7] <exec> $ git log --first-parent --format=medium 'HEAD^'..'d83b73a78e5ffea324c3948866988112837f342b'
<<< [7] <exec> 5,918 us
>>> [8] <conduit> differential.query() <bytes = 177>
>>> [9] <http> https://phabricator.redacted.com/api/differential.query
<<< [9] <http> 623,208 us
<<< [8] <conduit> 623,581 us
>>> [10] <conduit> differential.getcommitmessage() <bytes = 166>
>>> [11] <http> https://phabricator.redacted.com/api/differential.getcommitmessage
<<< [11] <http> 727,894 us
<<< [10] <conduit> 728,127 us
>>> [12] <conduit> differential.query() <bytes = 143>
>>> [13] <http> https://phabricator.redacted.com/api/differential.query
<<< [13] <http> 578,351 us
<<< [12] <conduit> 578,568 us
Amending commit message to reflect revision D29252: REDACTED.
>>> [14] <exec> $ git commit --amend --allow-empty -F '/tmp/e8ccn3ifj3wc8cko/13791-sHgYHg'
<<< [14] <exec> 203,644 us

> git log --format=%B -n 1 | grep ^Reviewers
Reviewers: #, REDACTED
echo '{ids: [29252]}' | arc call-conduit differential.query
{
    "error": null,
    "errorMessage": null,
    "response": [
        {
            "activeDiffPHID": "PHID-DIFF-jljg7seerlxdwpqmctef",
            "authorPHID": "PHID-USER-abzwhc667osh5mwd4gk7",
            "auxiliary": {
                "jira.issues": [],
                "phabricator:depends-on": [
                    "PHID-DREV-2qrid2heomsyqknvz6ig"
                ],
                "phabricator:projects": []
            },
            "branch": "master",
            "ccs": [],
            "commits": [],
            "dateCreated": "1450064608",
            "dateModified": "1450349113",
            "diffs": [
                "590952",
                "590180",
                "589937"
            ],
            "hashes": [
                [
                    "gtcm",
                    "77b01130662887c1a7b5b15a6c04ddf0aa63820d"
                ],
                [
                    "gttr",
                    "bb2e97dcd67904e02fea4ac9643b6467f48aa6af"
                ]
            ],
            "id": "29252",
            "lineCount": "567",
            "phid": "PHID-DREV-7cs76mhttnhp7homxd4l",
            "repositoryPHID": "PHID-REPO-e7qvu3z7a3uhk7akjy7y",
            "reviewers": [
                "PHID-PROJ-cbz6xwpsmzwa4oqodzqg",
                "PHID-USER-5vh6hvh4jprplkbupz7g"
            ],
            "sourcePath": "/home/josh/workspace/REDACTED/",
            "status": "0",
            "statusName": "Needs Review",
            "summary": "REDACTED",
            "testPlan": "`arc lint --everything`",
            "title": "REDACTED",
            "uri": "https://phabricator.redacted.com/D29252"
        }
    ]
}

Nevermind, this was my fault... the webserver was running a different version of the codebase than the rest of the cluster.

joshuaspence claimed this task.