Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Broken images in S3 bucket

9 years 1 month ago
Licenses:
JomSocial Active iSEO Active Socialize Active

ISSUE SUMMARY:

I enabled the S3 feature for our site. When the cron runs, the files are transferred to the S3 bucket, but after that, on the front-end there are broken images. I noticed that the file s3_lib.php hard coded the amazon url as "s3.amazon.com". However, the Amazon S3 endpoint for my bucket is akjn.s3-website-ap-southeast-1.amazonaws.com. We tried changing that in the file s3_lib.php as well, but still the images are broken in the frontend.

We are currently testing JS 4 with the Socialize template on our development server - ajdev.in. The production site is akankshajunction.com which is still running an older version.

Request your help on the development server, please. Have provided the credentials in the private area.

Thank you
Best regards

Praveen



STEPS TO REPLICATE:
1
2
3
4
5
RESULT
EXPECTED RESULT
BROWSER

9 years 1 month ago
Licenses:

HI, Praveen.

I assign developer to this thread.


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
9 years 1 month ago
Licenses:

Hi Praveen,

do already setup your amazon S3 correctly? Because when I execute the cron job. there is no any files transferred.
please revert back any file changes at jomsocial core. and amazon URL by default always <bucket>.s3.amazonaws.com.

please follow this doc carefully:
documentation.jomsocial.com/wiki/Setting_up_Amazon_S3

Regards

9 years 1 month ago
Licenses:
JomSocial Active iSEO Active Socialize Active

Hi Albertus,

We managed to get this working. There was a typo in the S3 URL we entered in the Jomsocial backend configuration. With the correct URL, it works like a charm. Also, the cron did not transfer any pictures because there were none to transfer, as this is a development site. We had to make changes to the original S3 files because the S3 URL was hard-coded in some places as "s3.amazonaws.com". However, if you setup a bucket in a different AWS region, the bucket URL looks something like "akjn.s3-website-ap-southeast-1.amazonaws.com".

Plus, while setting up the bucket, we need to enable static site hosting and give the following AWS policy for the bucket:

{
"Version":"2012-10-17",
"Statement":[{
"Sid":"PublicReadGetObject",
"Effect":"Allow",
"Principal": "*",
"Action":["s3:GetObject"],
"Resource":["arn:aws:s3:::example-bucket/*"
]
}
]
}

This is also given on the Amazon site at docs.aws.amazon.com/AmazonS3/latest/dev/...PermissionsReqd.html

You may want to include this in your documentation, after checking it out.
After we made these changes, the S3 feature works like a charm.

Thank you
Best regards

Praveen

The following user(s) said Thank You: Albertus
Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW