By Sunny on Wednesday, 27 May 2015
Posted in Technical Issues
Replies 13
Likes 0
Views 660
Votes 0
Hi,
I just purchased Nonumber CDN for joomla and configured to load all images from a cloudfront url. Its working for all other components on the site except easysocial.

All Avatars and Cover photos etc.. are still being loaded from my S3 bucket instead of my cloudfront url
e.g. easyblog images are now loading from
http://CLOUDFRONTDOMAIN.cloudfront.net/images/blog_images/555/...

but easysocial images are being loaded from
http://MYBUCKETNAME.s3-ap-southeast-1.amazonaws.com/media/uploads/avatars/users/1112/...

In easysocial remote storage setting is have set all to S3 and entered credentials of AWS account and Bucket Name.
If i make Location to store avatar, files, Photes.. to localserver, still the images are served from S3.

can you please help me on this. I've attached the site credentials alongwith.

regards

p.s: This question i'm reposting and my earlier old thread was not getting any responses.
Link to old thread
Hello Sunny,

I am sorry for the delay of this reply.

I am not sure but everything seems to be messed up in your staging site and I cannot upload a new photo in order to test it properly. Can you provide us with your FTP access so we can check on the issue directly?

Any advise is highly appreciated.
·
Thursday, 28 May 2015 13:09
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Ezrul,

Yes there are some issues on staging site, it was because of the transfer. All is working well on the main site.
I'm now providing the credentials to the main site.
Please be carefull as its a live site with many visitors.

regards
Sunny
·
Thursday, 28 May 2015 13:49
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Ezrul,

Hope you had the time to look into my issue this time.

looking forward for an early resolution.

regards
Sunny
·
Friday, 29 May 2015 13:55
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Sunny,

I'm really sorry that delayed of this reply,

May i know do you want to completely abandon AMAZON S3 for your remote storage?

If yes, you have to set `Storage` to local server from your Easysocial backend setting, once you have done this, when you trying to upload some new photo in your site, the image will store in your CDN server, you can take a look of this page -> http://www.yourdomainname.com/community/profile/1116-support

Yes, we are still investigate on this, because the previous image still can't store your CDN server.
·
Friday, 29 May 2015 17:19
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Arlex,

Yes i want to abandon S3 and move to cloudfront as this would decrease the extra DNS lookup. I had noticed that once we use local server setting, NoNumber CDN puts all the new images onto Cloudfront.

But existing images are all linked to S# account, so if i delete the S3 bucket than all the old images would be lost. So i'm in a fix.

regards
·
Friday, 29 May 2015 19:07
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Sunny,

Yes, you don't delete your S3 bucket first.

Okay, now i help you set all the `storage` to use local server now.

So you have to wait for your cronjob automatically process to pull back those images to the CDN server.

By the way, may i know how many time interval you set from your cronjob setting?
·
Friday, 29 May 2015 21:58
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks will check tomorrow morning, as by then the cron would have run 100s of times.
ES Cron which sets notifications runs every 5 minutes.

I had a question, when we set S3 settings in backend, does it delete all pictures in local and hardcode/overwrite the local path to images?

And what was the fix which you applied?

regards
·
Friday, 29 May 2015 22:34
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Sunny,

I am really sorry for the delay of this reply as it is a weekend for us here.

It depend on your configuration, if you enable this option Delete Files After Upload from your Easysocial Amazon S3 configuration setting, the local files will be deleted after the files are uploaded to Amazon.

By the way, may i know your Cloudfront is it starting receive the image file?
·
Saturday, 30 May 2015 15:23
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Arlex,

Many thanks for your explanation.

Regarding serving of images, all new member images are not being loaded from S3, but old members images are still being loaded from S3.
e.g:

Old Member avatar :
http://ABC.s3-ap-southeast-1.amazonaws.com/media/uploads/avatars/users/494/5992f0dbe61b890bd26c978bb37513fe_small.png

New member Avtar (Who are registering after the change to Local server)
http://www.cdn.XYZ.com/media/uploads/avatars/users/1034/f307d71f217037d3fe0db945eeb2b90c_small.jpg

I think ES is not allowing the return of S3 images to Local.

regards
Sunny
·
Saturday, 30 May 2015 16:09
·
0 Likes
·
0 Votes
·
0 Comments
·
Is there a special cron which i have to run?
I have the standard ES cron running at a 5minute interval. (this i run mainly for notification mails)

regards
·
Saturday, 30 May 2015 16:57
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Sunny,

You're welcome.

You can try manually run the cron URL e.g http://yourdomainname.com/index.php?option=com_easysocial&cron=true

If still can't, we really need your site FTP access for troubleshoot on this.
·
Saturday, 30 May 2015 17:02
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Arlex,

The cron result is as below:

[{"status":"200","contents":"There is nothing to dispatch currently.","time":"2015-05-30 11:47:54"},{"status":"200","contents":"Current photos storage is set to local.","time":"2015-05-30 11:47:54"},{"status":"200","contents":"Current photos storage is set to local.","time":"2015-05-30 11:47:54"},{"status":"200","contents":"Current avatar storage is set to local.","time":"2015-05-30 11:47:54"},{"status":"200","contents":"No files to upload to Amazon S3 right now.","time":"2015-05-30 11:47:54"},{"status":"200","contents":"There is nothing to archive from activity stream currently.","time":"2015-05-30 11:47:54"}]

As from the above you can see that there is no reverse population (S3->Local) happening. Moreover i've checked the local server has the images in the avatar folder:
http://BUCKET.s3-ap-southeast-1.amazonaws.com/media/uploads/avatars/users/1107/580cc4e6feb21e0016bcee3ca4906513_medium.jpg
is also available on
http://www.DOMAIN.com/media/uploads/avatars/users/1107/580cc4e6feb21e0016bcee3ca4906513_medium.jpg

So according to simple logic the url re writing (back to local server is not happening when we switch from S3 to Local.

I can arrange for FTP to the staging site, would that be okay?

regards
·
Saturday, 30 May 2015 19:50
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Sunny,

Thanks for getting back to us regarding the result.

May i ask if you set a staging site, is it exactly same with your live site?

Example : If I upload a new image, it will upload to your CDN server as well right?

I believe it would be best if you can provide your live site FTP access so we can directly check on this.
·
Sunday, 31 May 2015 10:32
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post