DZComposer Posted June 23, 2016 Share Posted June 23, 2016 Something happened recently, and I'm not sure what or when. I have an S3 bucket set up as a file store in my ACP for my IP.Downloads files. Everything was working fine, but lately my downloads broke and I get an error from S3 saying "The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint" and suggests a different URL. If I paste said URL into my address bar, the download works. I tried dropping that URL into my "Custom URL" in the ACP, but it did not fix it. Any ideas? Link to comment Share on other sites More sharing options...
dhampton Posted July 19, 2016 Share Posted July 19, 2016 I've just had this issue - i'm hosted on "s3-ap-southeast" but it appears to use "us-east-1" as the default - and now Amazon requires you to prefix your bucket. On the latest version of IPS I modified /File/Amazon.php and replaced $region = ( isset( $configuration['region'] ) ? $configuration['region'] : 'us-east-1' ); with $region = ( isset( $configuration['region'] ) ? $configuration['region'] : 'ap-southeast-2' ); then $canonicalHeaders = array( 'Host' => 's3.amazonaws.com', ); with $canonicalHeaders = array( 'Host' => 's3-ap-southeast-2.amazonaws.com', ); then $url = \IPS\Http\Url::external( 'https://s3.amazonaws.com' . $fileUrl )->setQueryString( $canonicalQueryString )->setQueryString( 'X-Amz-Signature', hash_hmac( 'sha256', $stringToSign, $signingKey ) ); with $url = \IPS\Http\Url::external( 'https://s3-ap-southeast-2.amazonaws.com' . $fileUrl )->setQueryString( $canonicalQueryString )->setQueryString( 'X-Amz-Signature', hash_hmac( 'sha256', $stringToSign, $signingKey ) ); Link to comment Share on other sites More sharing options...
russur Posted July 20, 2016 Share Posted July 20, 2016 Not helped me Link to comment Share on other sites More sharing options...
Stuart Silvester Posted July 20, 2016 Share Posted July 20, 2016 Please see the following KB article. Link to comment Share on other sites More sharing options...
russur Posted July 20, 2016 Share Posted July 20, 2016 4 minutes ago, Stuart Silvester said: Please see the following KB article. Thank you Stuart, everything working fine. Link to comment Share on other sites More sharing options...
Merezhko Posted August 25, 2016 Share Posted August 25, 2016 Hello, It seems i have the same problem with my cloud IPS forum. I have one parent bucket on S3 and three sub-buckets - MAIN --forum --gallery --downloads Forum and Gallery works well, but when i try to download files from Download section the error occur:The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint Help please! Article is not accessible for me somehow (( On 20 июля 2016 г. at 4:19 PM, Stuart Silvester said: Please see the following KB article. Link to comment Share on other sites More sharing options...
Kjell Iver Johansen Posted August 25, 2016 Share Posted August 25, 2016 I wrote this in anothe topic as well - but did you check the new setting Endpoint in the Storage settings? Also see https://remoteservices.invisionpower.com/docs/aws_regions/?version=101053 Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.