Details
Details
Hey there,
I've been having trouble running arc patch lately ; asked on Z1336 and got a few hints, but eventually couldn't fixed it. So here we go, maybe someone here will have some more leads :)
Here is all the info I got:
- I run arc with PHP 7.0.5-4+donate.sury.org~trusty+1 (cli) in ubuntu 14.04 LTS
- Both my phabricator and my local arc installs are up to date
- I can run other arc commands fine (eg. I use arc diff in my daily workflow)
- Whenever I (or my colleagues who share the same vagrant dev environment) try to arc patch any revision we get the following error:
$ arc patch D217 --trace ARGV '/opt/phacility/arcanist/bin/../scripts/arcanist.php' 'patch' 'D217' '--trace' LOAD Loaded "phutil" from "/opt/phacility/libphutil/src". LOAD Loaded "arcanist" from "/opt/phacility/arcanist/src". Config: Reading user configuration file "/home/vagrant/.arcrc"... Config: Did not find system configuration at "/etc/arcconfig". Working Copy: Unable to find .arcconfig in any of these locations: /vagrant/.arcconfig. Working Copy: Path "/vagrant" is part of `git` working copy "/vagrant". Working Copy: Project root is at "/vagrant". Config: Did not find local configuration at "/vagrant/.git/arc/config". >>> [0] <conduit> differential.querydiffs() <bytes = 74> >>> [1] <http> https://phabricator.PLACEHOLDER/api/differential.querydiffs <<< [1] <http> 149,823 us <<< [0] <conduit> 151,067 us [2016-05-19 17:04:43] EXCEPTION: (ConduitClientException) ERR-INVALID-AUTH: Unknown Error at [<phutil>/src/conduit/ConduitFuture.php:58] arcanist(head=master, ref.master=2234c8cacc21), phutil(head=master, ref.master=4b75e0c34e52) #0 ConduitFuture::didReceiveResult(array) called at [<phutil>/src/future/FutureProxy.php:58] #1 FutureProxy::getResult() called at [<phutil>/src/future/FutureProxy.php:35] #2 FutureProxy::resolve() called at [<arcanist>/src/workflow/ArcanistWorkflow.php:1198] #3 ArcanistWorkflow::loadBundleFromConduit(ConduitClient, array) called at [<arcanist>/src/workflow/ArcanistWorkflow.php:1189] #4 ArcanistWorkflow::loadRevisionBundleFromConduit(ConduitClient, string) called at [<arcanist>/src/workflow/ArcanistPatchWorkflow.php:383] #5 ArcanistPatchWorkflow::run() called at [<arcanist>/scripts/arcanist.php:392]
- When I run arc patch and check the webserver logs, conduit response seems fine: xxxxx - - [23/May/2016:09:52:22 +0000] "POST /api/differential.querydiffs HTTP/1.1" 200 5011 "-" "-"
- I also tested calling conduit directly, response seem fine:
$ echo '{"revisionIDs": [217]}' | arc call-conduit differential.querydiffs { "error": null, "errorMessage": null, "response": { "1093": { "id": "1093", "revisionID": "217", "dateCreated": "1463666858", "dateModified": "1463666860", "sourceControlBaseRevision": "9a0483964c6a752e21c3a6cf33c96af75e00883b", "sourceControlPath": null, "sourceControlSystem": "git", "branch": "XXX", "bookmark": null, "creationMethod": "arc", "description": "XXX", "unitStatus": "0", "lintStatus": "0", "changes": [ ... ] "properties": { "arc.staging": { "status": "repository.unconfigured", "refs": [] }, "local:commits": { "bd2582f06ef62e6a34f07db589cea0a6d6f2cfa7": { "commit": "bd2582f06ef62e6a34f07db589cea0a6d6f2cfa7", "tree": "3d09a4fa215a5cc9c5d3c0b866c2308c7b26356a", "parents": [ "9a0483964c6a752e21c3a6cf33c96af75e00883b" ], "time": "1463663811", "author": "XXX", "summary": "XXX", "message": "XXX", "authorEmail": "XXX" } } }, "authorName": "XXX", "authorEmail": "XXX" } } }