I'm trying to upload a 4.3GB tar containing log files to Files and am hitting an exception:
> arc upload --trace logs.tar ARGV '/usr/local/src/arcanist/bin/../scripts/arcanist.php' 'upload' '--trace' 'logs.tar' LOAD Loaded "phutil" from "/usr/local/src/libphutil/src". LOAD Loaded "arcanist" from "/usr/local/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/api/user.whoami <<< [1] <http> 958,490 us <<< [0] <conduit> 959,524 us >>> [2] <conduit> file.allocate() <bytes = 282> >>> [3] <http> https://phabricator.REDACTED/api/file.allocate <<< [3] <http> 330,927 us <<< [2] <conduit> 331,305 us [2017-04-10 22:18:00] EXCEPTION: (Exception) Unable to upload file data: Unable to upload file: failed to read 4583864320 bytes after offset 0 from file at path "logs.tar". at [<arcanist>/src/workflow/ArcanistUploadWorkflow.php:87] arcanist(head=master, ref.master=a59cfca5f190), flarc(), phutil(head=master, ref.master=fb9e0642c4ea) #0 ArcanistUploadWorkflow::run() called at [<arcanist>/scripts/arcanist.php:394]
The log files are sensitive, so I can't upload them to this install in an attempt to reproduce. Let me see if I can come up with a dummy file to reproduce the error.