Hi, we've just tried to upgrade phabricator to the latest git master (and stable). This broke S3 storage completely. Previously it was working perfectly.
I added the new settings:
- "amazon-s3.endpoint": "s3-eu-west-1.amazonaws.com",
- "amazon-s3.region": "eu-west-1"
as required for the new 'v4' s3 client.
Could this be some difference with eu-west-1? (I notice the committed tests are all against us-east-1)
In the meantime, we've downgraded to the commits immediately prior to this in phabricator and libphutil, and we're working again for the moment.
After this, all s3 requests from phabricator raise errors as follows in the logs, with similar appearing in the UI.
Jan 25 15:50:11 phabricator php5-fpm[13698]: ool www[13698]: [2016-01-25 15:50:11] EXCEPTION: (PhutilAWSException) AWS Request Failed
HTTP Status Code: 400 Response Body: <?xml version="1.0" encoding="UTF-8"?> <Error><Code>XAmzContentSHA256Mismatch</Code><Message>The provided 'x-amz-content-sha256' header does not match what was computed.</Message><ClientComputedContentSHA256>69ddc87ce75b40364c899be
Jan 25 15:50:11 phabricator php5-fpm[13698]: ool www[13698]: arcanist(head=master, ref.master=57f6fb59d739), phabricator(head=master, ref.master=1e69f06d7447), phutil(head=adb8a9c074ba41b9566d340db4e3599bcf097958, ref.master=f43291e99d36
Jan 25 15:50:11 phabricator php5-fpm[13698]: ool www[13698]: #0 <#2> PhutilAWSFuture::didReceiveResult(array) called at [<phutil>/src/future/aws/PhutilAWSS3Future.php:63]
Jan 25 15:50:11 phabricator php5-fpm[13698]: ool www[13698]: #1 <#2> PhutilAWSS3Future::didReceiveResult(array) called at [<phutil>/src/future/FutureProxy.php:58]
Jan 25 15:50:11 phabricator php5-fpm[13698]: ool www[13698]: #2 <#2> FutureProxy::getResult() called at [<phutil>/src/future/FutureProxy.php:35]
Jan 25 15:50:11 phabricator php5-fpm[13698]: ool www[13698]: #3 <#2> FutureProxy::resolve() called at [<phabricator>/src/applications/files/engine/PhabricatorS3FileStorageEngine.php:80]
Jan 25 15:50:11 phabricator php5-fpm[13698]: ool www[13698]: #4 <#2> PhabricatorS3FileStorageEngine::writeFile(string, array) called at [<phabricator>/src/applications/files/storage/PhabricatorFile.php:433]
Jan 25 15:50:11 phabricator php5-fpm[13698]: ool www[13698]: #5 <#2> PhabricatorFile::writeToEngine(PhabricatorS3FileStorageEngine, string, array) called at [<phabricator>/src/applications/files/storage/PhabricatorFile.php:330]
Jan 25 15:50:11 phabricator php5-fpm[13698]: ool www[13698]: #6 phlog(PhutilAWSException) called at [<phabricator>/src/applications/files/storage/PhabricatorFile.php:340]
Jan 25 15:50:11 phabricator php5-fpm[13698]: ool www[13698]: #7 PhabricatorFile::buildFromFileData(string, array) called at [<phabricator>/src/applications/files/storage/PhabricatorFile.php:391]
Jan 25 15:50:11 phabricator php5-fpm[13698]: ool www[13698]: #8 PhabricatorFile::newFromFileData(string, array) called at [<phabricator>/src/applications/files/storage/PhabricatorFile.php:1010]
Jan 25 15:50:11 phabricator php5-fpm[13698]: ool www[13698]: #9 PhabricatorFile::loadBuiltins(PhabricatorUser, array) called at [<phabricator>/src/applications/files/storage/PhabricatorFile.php:1041]
Jan 25 15:50:11 phabricator php5-fpm[13698]: ool www[13698]: #10 PhabricatorFile::loadBuiltin(PhabricatorUser, string) called at [<phabricator>/src/applications/project/query/PhabricatorProjectQuery.php:348]
Jan 25 15:50:11 phabricator php5-fpm[13698]: ool www[13698]: #11 PhabricatorProjectQuery::didFilterPage(array) called at [<phabricator>/src/infrastructure/query/policy/PhabricatorPolicyAwareQuery.php:259]
Jan 25 15:50:11 phabricator php5-fpm[13698]: ool www[13698]: #12 PhabricatorPolicyAwareQuery::execute() called at [<phabricator>/src/applications/phid/type/PhabricatorPHIDType.php:91]
Jan 25 15:50:11 phabricator php5-fpm[13698]: ool www[13698]: #13 PhabricatorPHIDType::loadObjects(PhabricatorObjectQuery, array) called at [<phabricator>/src/applications/phid/query/PhabricatorObjectQuery.php:143]
Jan 25 15:50:11 phabricator php5-fpm[13698]: ool www[13698]: #14 PhabricatorObjectQuery::loadObjectsByPHID(array, array) called at [<phabricator>/src/applications/phid/query/PhabricatorObjectQuery.php:63]
Jan 25 15:50:11 phabricator php5-fpm[13698]: ool www[13698]: #15 PhabricatorPolicyAwareQuery::execute() called at [<phabricator>/src/applications/phid/query/PhabricatorHandleQuery.php:46]
Jan 25 15:50:11 phabricator php5-fpm[13698]: ool www[13698]: #16 PhabricatorHandleQuery::loadPage() called at [<phabricator>/src/infrastructure/query/policy/PhabricatorPolicyAwareQuery.php:227]
Jan 25 15:50:11 phabricator php5-fpm[13698]: ool www[13698]: #17 PhabricatorPolicyAwareQuery::execute() called at [<phabricator>/src/applications/maniphest/view/ManiphestTaskListView.php:154]
Jan 25 15:50:11 phabricator php5-fpm[13698]: ool www[13698]: #18 ManiphestTaskListView::loadTaskHandles(PhabricatorUser, array) called at [<phabricator>/src/applications/maniphest/view/ManiphestTaskResultListView.php:50]
Jan 25 15:50:11 phabricator php5-fpm[13698]: ool www[13698]: #19 phutil_escape_html(array) called at [<phutil>/src/markup/render.php:157]
Jan 25 15:50:11 phabricator php5-fpm[13698]: ool www[13698]: #20 phutil_tag(string, array, array) called at [<phabricator>/src/infrastructure/javelin/markup.php:53]
Jan 25 15:50:11 phabricator php5-fpm[13698]: ool www[13698]: #21 javelin_tag(string, array, array) called at [<phabricator>/src/view/AphrontTagView.php:152]
Jan 25 15:50:11 phabricator php5-fpm[13698]: ool www[13698]: #22 AphrontTagView::render() called at [<phabricator>/src/view/AphrontView.php:176]
Jan 25 15:50:11 phabricator php5-fpm[13698]: ool www[13698]: #23 AphrontView::producePhutilSafeHTML() called at [<phutil>/src/markup/render.php:133]
Jan 25 15:50:11 phabricator php5-fpm[13698]: ool www[13698]: #24 phutil_escape_html(PHUIBoxView) called at [<phutil>/src/markup/render.php:139]
Jan 25 15:50:11 phabricator php5-fpm[13698]: ool www[13698]: #25 phutil_escape_html(PHUIObjectBoxView) called at [<phutil>/src/markup/render.php:119]
Jan 25 15:50:11 phabricator php5-fpm[13698]: ool www[13698]: #26 phutil_tag(string, array, PHUIObjectBoxView) called at [<phutil>/src/markup/render.php:126]
Jan 25 15:50:11 phabricator php5-fpm[13698]: ool www[13698]: #27 phutil_tag_div(string, PHUIObjectBoxView) called at [<phabricator>/src/applications/dashboard/engine/PhabricatorDashboardPanelRenderingEngine.php:211]
Jan 25 15:50:11 phabricator php5-fpm[13698]: ool www[13698]: #28 PhabricatorDashboardPanelRenderingEngine::renderPanelDiv(PhabricatorApplicationSearchResultView, NULL) called at [<phabricator>/src/applications/dashboard/engine/Phabrica
Jan 25 15:50:11 phabricator php5-fpm[13698]: ool www[13698]: #29 PhabricatorDashboardPanelRenderingEngine::renderNormalPanel(PhabricatorUser, PhabricatorDashboardPanel, PhabricatorDashboardPanelRenderingEngine) called at [<phabricator>
Jan 25 15:50:11 phabricator php5-fpm[13698]: ool www[13698]: #30 PhabricatorDashboardPanelRenderingEngine::renderPanel() called at [<phabricator>/src/applications/dashboard/controller/PhabricatorDashboardPanelRenderController.php:40]
Jan 25 15:50:11 phabricator php5-fpm[13698]: ool www[13698]: #31 PhabricatorDashboardPanelRenderController::handleRequest(AphrontRequest) called at [<phabricator>/src/aphront/configuration/AphrontApplicationConfiguration.php:237]
Jan 25 15:50:11 phabricator php5-fpm[13698]: ool www[13698]: #32 AphrontApplicationConfiguration::processRequest(AphrontRequest, PhutilDeferredLog, AphrontPHPHTTPSink, MultimeterControl) called at [<phabricator>/src/aphront/configurati
Jan 25 15:50:11 phabricator php5-fpm[13698]: ool www[13698]: #33 AphrontApplicationConfiguration::runHTTPRequest(AphrontPHPHTTPSink) called at [<phabricator>/webroot/index.php:17]