Hello!
I’m trying to make static elements in my S3 Bucket in AWS.
I followed all the documentation: I put my Keys, changed my bucket URL as pointed in other forum threads (
https://forums.modx.com/thread/88840/connect-to-amazon-s3-media-source#dis-post-488624) and now I can see my
Files in the bucket. I can upload new files, download, delete and edit perfectly.
But still I can’t make static
Elements (Templates, chunks, snippets..) in the bucket.
I reinstalled a clean version of modx to be sure that is not a plugin that messes with the Media Sources.
When I change the Static File route to the AWS file and try to save, it shows an error:
“An error occurred while saving the snippet.”
In the System > Error Log shows:
[2014-06-06 09:17:49] (ERROR @ /index.php) Could not retrieve data to cache for resource 1
[2014-06-06 09:17:54] (ERROR @ /connectors/element/snippet.php) An error occurred while saving the snippet.Array
(resource 1 is the snipet called test in my clean installation of modx)
Also doesn’t load the content when I try to access the Element pointed to the AWS bucket. (via static file in Elements, remember that if I access via File, then I can edit, remove, upload..)
One of my other tests was to upload my application to my AWS account and try to access the bucket from there (to discard possibly firewall or connection issues), but I got the same result. I can list the tree, but I can’t make static elements.
Do you have any tips or suggestions? Maybe there is something that I miss!
Thank you,
Jordi
PS: I have attached 3 snapshots with the correct File tree listing (from the bucket), the Media Source config. and the error on save the static snippet Element.