Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore F.A.Q/Instructions › Troubleshooting Amazon S3 Download Link Issues
Tagged: amazon s3, integration, s3 download link
- This topic has 1 reply, 2 voices, and was last updated 11 years, 5 months ago by wzp.
-
AuthorPosts
-
June 22, 2013 at 12:02 am #9245adminKeymaster
Amazon s3 can be very picky about link structure and file names. In this post I have compiled a list of the most common mistakes and the reasons for amazon s3 protected download links to not work. Going through this guide will help you troubleshoot and fix the s3 download issue.
Use eStore’s Debug Option
The eStore debug option can tell you a lot of useful information about what happens when you try to download a file.
We recommend you first create an encrypted download link from the “admin functions” menu of eStore plugin. Then try the download link and have a look at the download manager log file to see what is happening and if there are any issues.
See this forum post to learn how to use the eStore debug.
https://support.tipsandtricks-hq.com/forums/topic/how-and-when-to-enable-debug-and-what-does-it-do
Amazon S3 API Details
You need to tell the plugin your Amazon S3 API access details before the s3 integration can work. Few users completely forget to do this even though it is the 1st step of the integration.
So make sure you have specified your Amazon S3 API access details in the Settings area of the plugin.
Common Amazon Bucket Related Mistakes
1. Amazon has strict bucket naming restrictions (if you don’t name your bucket correctly then downloads can fail). You can read about this naming restrictions here: http://docs.aws.amazon.com/AmazonS3/latest/dev/BucketRestrictions.html
2. Only Virtual Hosted Style bucket names are supported. Path Style bucket names are not supported.
Examples:
Virtual Hosted Style Bucket Names:
[http://johnsmith.net.s3.amazonaws.com/homepage.html]
Path Style Bucket Names:
[http://s3.amazonaws.com/johnsmith/homepage.html]
3. Region specific end points are not supported. You can read more about this here: http://docs.aws.amazon.com/AmazonS3/latest/dev/VirtualHosting.html
4. Most Amazon S3 download not working issues arise from using a wrong URL (AS3TP URI) value in the eStore’s digital product URL field.
This documentation explains how to integrate with Amazon s3 (if you didn’t follow the steps then you may have a mistake):
5. The 2 most common errors when making a Bucket name are.
– Bucket name contains an upper case letter
– Bucket or file name contains a space
You can read more about bucket name restrictions here:
http://docs.amazonwebservices.com/AmazonS3/latest/dev/index.html?BucketRestrictions.html
Things to know when troubleshooting bucket and file naming issues.
– No capital letters in the bucket or file name.
– No spaces
– Bucket names must be at least 3 and no more than 63 characters long
– Bucket names must not be formatted as an IP address (e.g., 192.168.5.4)
Examples of Valid Bucket Names
The following are examples of valid bucket names:
myawsbucket
my.aws.bucket
myawsbucket.1
Examples of Invalid Bucket Names
.myawsbucket – Bucket name cannot start with a period (.).
myawsbucket. – Bucket name cannot end with a period (.).
my..examplebucket – There can only be one period between labels
Troubleshooting Access Denied Issues
When troubleshooting access denied issues the first thing you should check is your bucket names. See the section above for more information on this.
If your bucket and file names are correct then continue following the steps in this section.
Make sure the URI is configured properly. Your URI should look like one of the following examples.
Typical examples of valid AS3TP URI that you can use in eStore:
– as3tp://bucket.s3.amazonaws.com/object
– as3tp://bucket.s3.amazonaws.com/folder/object
– as3tps://bucket.s3.amazonaws.com/folder/folder/object
– as3tps://public@bucket.s3.amazonaws.com/object
General Troubleshooting
The following section covers general settings you should check if you are having and Amazon s3 issue.
1. Your access key is 20 characters long.
2. Your secret access key is 40 characters long.
3. You have not accidentally mixed up the access key and secret key.
4. That you did not forget to enter you access key and secret access key in the eStore settings.
5. Make sure you have not make any spelling mistakes.
6. Remote hosting (on S3) of PDF Stamper files is not supported (if you are using the PDF Stamper plugin).
Useful Forum Posts Related to Amazon S3 Integration
– https://support.tipsandtricks-hq.com/forums/topic/download-links-not-working-with-amazon-s3
– https://support.tipsandtricks-hq.com/forums/topic/amazon-s3-doesnt-work-and-returns-access-denied
– https://support.tipsandtricks-hq.com/forums/topic/encrypted-download-links-not-working
– https://support.tipsandtricks-hq.com/forums/topic/amazon-s3-downloads-not-working
– https://support.tipsandtricks-hq.com/forums/topic/s3-estore-help-needed
June 22, 2013 at 12:15 pm #56269wzpModeratorCopying and pasting of URL and keys can also lead to errors; because of trailing whitespace and other non-visible characters that inadvertently get copied/pasted. When in doubt, type it by hand. Or copy and paste it in a note pad document which will remove any hidden characters then copy it from the note pad.
-
AuthorPosts
- You must be logged in to reply to this topic.