$ arc --trace upload ios-release-2.2.1-2034.zip libphutil loaded from '/Users/pol/Automatic/libphutil/src'. arcanist loaded from '/Users/pol/Automatic/arcanist/src'. Config: Reading user configuration file "/Users/pol/.arcrc"... Config: Did not find system configuration at "/etc/arcconfig". Working Copy: No candidate locations for .arcconfig from this working directory. Working Copy: Path "/Users/pol/Library/Developer/Xcode/Archives/2014-08-31" is not in any working copy. >>> [0] <conduit> conduit.connect() <bytes = 545> >>> [1] <http> https://<REDACTED>/api/conduit.connect <<< [1] <http> 724,081 us <<< [0] <conduit> 724,421 us Uploading 'ios-release-2.2.1-2034.zip'... >>> [2] <conduit> file.upload() <bytes = 30799262> >>> [3] <http> https://<REDACTED>/api/file.upload <<< [3] <http> 22,257,774 us <<< [2] <conduit> 22,258,048 us [2014-09-01 09:32:59] EXCEPTION: (HTTPFutureHTTPResponseStatus) [HTTP/502] <html> <head><title>502 Bad Gateway</title></head> <body bgcolor="white"> <center><h1>502 Bad Gateway</h1></center> <hr><center>nginx/1.4.7</center> </body> </html> at [<phutil>/src/future/http/BaseHTTPFuture.php:337] #0 BaseHTTPFuture::parseRawHTTPResponse(string) called at [<phutil>/src/future/http/HTTPSFuture.php:387] #1 HTTPSFuture::isReady() called at [<phutil>/src/future/Future.php:39] #2 Future::resolve(NULL) called at [<phutil>/src/future/FutureProxy.php:36] #3 FutureProxy::resolve() called at [<phutil>/src/conduit/ConduitClient.php:24] #4 ConduitClient::callMethodSynchronous(string, array) called at [<arcanist>/src/workflow/ArcanistUploadWorkflow.php:82] #5 ArcanistUploadWorkflow::run() called at [<arcanist>/scripts/arcanist.php:338]
From /var/log/nginx/error.log:
2014/09/01 16:30:56 [error] 20808#0: *68538 upstream sent unexpected FastCGI record: 3 while reading response header from upstream, client: 98.210.228.233, server: <REDACTED>, request: "POST /api/file.upload HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "<REDACTED>"
From /var/log/php-fpm/www-error.log:
[01-Sep-2014 16:37:09 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 28006068 bytes) in Unknown on line 0
Note that arc is up-to-date and that uploading the same file using the Phabricator /file app in Chrome works fine. The file is 20.7 MB and the upload limit should be 1 GB across the entire system.