• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

    • 😌 This community is user driven. Be polite with other users.
    • 👉 Is required to purchase a Chevereto license to participate in this community (doesn't apply to Pre-sales).
    • 💸 Purchase a Pro Subscription to get access to active software support and faster ticket response times.

Amazon S3 No Image Preview

Status
Not open for further replies.

dudemail

Chevereto Member
Hi All,

I just configured Amazong s3 with my website - imgcave.com

But when amazon s3 is set as the storage if an image is uploaded there's no preview at all. Example - https://imgcave.com/image/wMO

But files are actually there in Amazon bucket.

When amazon s3 is switched off as a storage (to use default webserver) images display fine.

Attached are my storage info to see if it's all have been set up well.

Any clue?

Cheers
 

Attachments

  • amazon.jpg
    amazon.jpg
    322.1 KB · Views: 10
https://s3.amazonaws.com/imgcave/2017/05/01/logo.png

Code:
<Error>
<Code>PermanentRedirect</Code>
<Message>
The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint.
</Message>
<Bucket>imgcave</Bucket>
<Endpoint>imgcave.s3.amazonaws.com</Endpoint>
<RequestId>1A700C8E5F7583A7</RequestId>
<HostId>
82ARif3NYN+tOzGwu+0e/2H9bZaE9jGVQU/2hLe9v/ay8CxRbdW3rq+VugckfJ3Gmsd6F16JOsI=
</HostId>
</Error>

https://imgcave.s3.amazonaws.com/2017/05/01/logo.png

So your URL for Amazon S3 is
Code:
https://imgcave.s3.amazonaws.com

It seems to me that you turned on some setting that disabled requests to https://s3.amazonaws.com/imgcave and now only accepts requests from https://imgcave.s3.amazonaws.com

To be honest I don't know where you change that on Amazon S3, maybe you created an alias so Amazon gave you this sub-domain to map your cname?
 
Been struggling like crazy. So after reading http://docs.aws.amazon.com/AmazonS3/latest/dev/VirtualHosting.html#VirtualHostingCustomURLs I did this:

1 - Created a subdomain as imagehost.imgcave.com on cPanel
2 - Created a CNAME on cPanel as imagehost.imgcave.com. 14400 IN CNAME imagehost.imgcave.com.s3.amazonaws.com
3 - Created a CNAME on my domain registrar as imagehost.imgcave.com. TTL 3600 imagehost.imgcave.com.s3.amazonaws.com
3 - On Settings -> External Storage I set the URL as "http://imagehost.imgcave.com.s3.amazonaws.com"

But the display_url of images is still shown as i.e. http://imagehost.imgcave.com.s3.amazonaws.com/2017/05/02/rawr.md.jpg . This is not how I want it. I it want to be displayed as i.e. http://imagehost.imgcave.com/2017/05/02/rawr.md.jpg


Messed up :(
 
I think that at this point you should be able to figure out what's going on.

And sadly your website at this time is not resolving so I can't check out what's going on.
 
I think that at this point you should be able to figure out what's going on.

And sadly your website at this time is not resolving so I can't check out what's going on.
I really could use your help mate. Spent the whole day trying by myself. The site is up and running as we speak. Please lend a hand
 
Strange the site is down. Probably me playing around with DNS and CNAMES. Let me get back to you after it's all solved.
 
At this time, this is what your website is doing:

upload_2017-5-2_12-44-57.png

(you can check yourself using your browser console, F12 key, then "Network").

You are calling your objects at the root of s3.amazonaws.com which is not a valid container. The documentation mention this caveat:

https://chevereto.com/docs/storages#amazon-s3
If you want to use a custom domain follow the CNAME documentation. Otherwise just make sure that the Storage URL ends with /<yourbucketname>/

If your URLs doesn't end with the bucket name it won't work. In Chevereto external storage settings you indicate in which URL the system should map external storage uploads, in this case the URL could be an Amazon S3 URL (including bucket name at the end) or a CNAME based URL (in which you can skip the bucket as a folder but you have to deal with how implement HTTPS there).
 
At this time, this is what your website is doing:

View attachment 1236

(you can check yourself using your browser console, F12 key, then "Network").

You are calling your objects at the root of s3.amazonaws.com which is not a valid container. The documentation mention this caveat:

https://chevereto.com/docs/storages#amazon-s3


If your URLs doesn't end with the bucket name it won't work. In Chevereto external storage settings you indicate in which URL the system should map external storage uploads, in this case the URL could be an Amazon S3 URL (including bucket name at the end) or a CNAME based URL (in which you can skip the bucket as a folder but you have to deal with how implement HTTPS there).

Thanks heaps mate. The issue was that I had entered HTTPS in storage location! Change to HTTP and it's fine now.
 
Status
Not open for further replies.
Back
Top