Page MenuHomePhabricator

arc patch fails with conduit error
Closed, DuplicatePublic


Our phabricator is at 6816974d57 and arc patch is failing. Also, diffusion isn't showing arc patch commands anymore. Not sure if that's related.

Here's the output of --trace

 ARGV  '/opt/arcanist/bin/../scripts/arcanist.php' 'patch' 'D1313' '--trace'       
 LOAD  Loaded "phutil" from "/opt/libphutil/src".                                  
 LOAD  Loaded "arcanist" from "/opt/arcanist/src".                                 
Config: Reading user configuration file "/home/reuben/.arcrc"...                   
Config: Did not find system configuration at "/etc/arcconfig".                     
Working Copy: Reading .arcconfig from "/home/reuben/hologram-python/.arcconfig".   
Working Copy: Path "/home/reuben/hologram-python" is part of `git` working copy "/h
Working Copy: Project root is at "/home/reuben/hologram-python".                   
Config: Did not find local configuration at "/home/reuben/hologram-python/.git/arc/
>>> [0] <conduit> differential.querydiffs() <bytes = 75>                           
>>> [1] <http>           
<<< [1] <http> 68,784 us                                                           
<<< [0] <conduit> 91,264 us                                                        
>>> [2] <conduit> user.whoami() <bytes = 117>                                      
>>> [3] <http>                       
<<< [3] <http> 53,735 us                                                           
<<< [2] <conduit> 54,703 us                                                        
>>> [4] <conduit> differential.querydiffs() <bytes = 156>                          
>>> [5] <http>           
<<< [5] <http> 53,091 us                                                           
<<< [4] <conduit> 53,999 us                                                        
[2017-01-10 21:09:24] EXCEPTION: (ConduitClientException) ERR-CONDUIT-CORE: Array f
or %Ld conversion is empty. Query: id IN (%Ld) at [<phutil>/src/conduit/ConduitFutu
arcanist(head=master, ref.master=ade25facfdf2), phutil(head=master, ref.master=c584
  #0 ConduitFuture::didReceiveResult(array) called at [<phutil>/src/future/FuturePr
  #1 FutureProxy::getResult() called at [<phutil>/src/future/FutureProxy.php:35]   
  #2 FutureProxy::resolve() called at [<arcanist>/src/workflow/ArcanistWorkflow.php
  #3 ArcanistWorkflow::loadBundleFromConduit(ConduitClient, array) called at [<arca
  #4 ArcanistWorkflow::loadRevisionBundleFromConduit(ConduitClient, string) called 
at [<arcanist>/src/workflow/ArcanistPatchWorkflow.php:384]                         
  #5 ArcanistPatchWorkflow::run() called at [<arcanist>/src/workflow/ArcanistPatchW
  #6 ArcanistPatchWorkflow::run() called at [<arcanist>/scripts/arcanist.php:394]

Event Timeline

Please include reproduction steps. This is always required on every bug report.


  1. Create a diffusion review with arc diff
  2. Run arc patch <ID of review>

I am also at HEAD and cannot reproduce that error. What steps am I missing?

Oh and libphutil is at c5848b71c10 and arcanist is at ade25facf

hmm, that's pretty much it. lemme make sure i'm not missing anything

I dunno, I get this error every time. I just tried it again patching back on the same repo that generated the diff:

reuben@devworkstation1:~/konekt-rest-api$ git add -u                       
reuben@devworkstation1:~/konekt-rest-api$ git commit                       
[test-diff 7f5b09d] test commit                                            
 1 file changed, 1 insertion(+)                                            
reuben@devworkstation1:~/konekt-rest-api$ arc diff                         
 LINT OKAY  No lint problems.                                              
Running unit tests...                                                      
No unit test engine is configured for this project.                        
 SKIP STAGING  Unable to determine repository for this change.             
Updating commit message...                                                 
Created a new Differential revision:                                       
        Revision URI:                  
Included changes:                                                          
  M       api.php                                                          
reuben@devworkstation1:~/konekt-rest-api$ git checkout develop             
Switched to branch 'develop'                                               
Your branch is up-to-date with 'origin/develop'.                           
reuben@devworkstation1:~/konekt-rest-api$ arc patch D1315                  
ERR-CONDUIT-CORE: Array for %Ld conversion is empty. Query: id IN (%Ld)    
(Run with `--trace` for a full exception trace.)