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.

S3 remote storage is not working

10 years 2 months ago
  • perico's Avatar
    Topic Author
  • perico
  • Offline
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 0
Licenses:
JomSocial Expired

Hi,

I'm following this topic www.jomsocial.com/forum/photos-videos/12...mages-from-amazon-s3 and waiting for an answer from 1 month 2 weeks ago.
I've got the same problem and I didn't want to open another topic but I need to know how is the subject going because I have to launch my website soon and I need the S3 remote storage functionality.
Could you tell me when it will be fixed?
Thanks
Jesus

10 years 2 months ago
Licenses:

Hi, perico.

"S3 remote storage is not working" tells us nothing. Also linking to another topic.
ALWAYS describe your issue with details, how to replicate it, where it is located, print screens are great help.

So tell us more about your issue and what you want achieve.


- 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
10 years 2 months ago
  • perico's Avatar
    Topic Author
  • perico
  • Offline
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 0
Licenses:
JomSocial Expired

Hi Michal,

yes I know that I have not describe my issue with details but it is really the same as the other topic that I've linked.
Sorry about that if it is a problem.
The only thing I want to know is about how long the problem may be solved. Could you ask to the developer how it's going?
I need to know it to plan the launch of the web. It is the last feature that I need to include.

Thanks

10 years 2 months ago
Licenses:

Hi, perico.

In this month we'll release JomSocial 3.2, so this issue should be solved in this release.


- 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
10 years 2 months ago
  • perico's Avatar
    Topic Author
  • perico
  • Offline
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 0
Licenses:
JomSocial Expired

Hi,

in the changelog of JS versión 3.1.1 appears that you have fixed the bug MISC->Covers are not moved to Amazon S3.

I've have tried and covers are moved to S3 (as well as photos and avatars).

The problem is that once moved to S3 (covers, photos, avatars) don't appear in the website.

The url from which is trying to load the images from Amazon S3 is:

s3.amazonaws.com/BUCKET_NAME/images/avat...17c7e2fa8dfe00b2.jpg

If you write directly this url in a navigator, you get a error message:

<Message>The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint.</Message>

It should be:

http://BUCKET_NAME.s3.amazonaws.com/images/avatar/thumb_a8a01cd317c7e2fa8dfe00b2.jpg

Please fix it.
Thanks

10 years 2 months ago
  • perico's Avatar
    Topic Author
  • perico
  • Offline
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 0
Licenses:
JomSocial Expired

Hi,
I've change the line 113 in the file \components\com_community\libraries\storage\s3.php
from:
return ' s3.amazonaws.com/ ' . $this->bucket . '/' . $item->resource_path;
to:
return 'http://'.$this->bucket.'.s3.amazonaws.com/'. $item->resource_path;
to fix the previous problem.

After that, I've been testing a litle bit more and I have found the next:

A)) For photos and covers is working fine from amazon S3. OK!!!

B)) The avatars files are not being transfer to S3.
If I upload a new avatar 4 files are created in the server folder /images/avatar/. For example:
1º 679168bdc941fc4e0704a4a1.jpg 10Kb
2º 679168bdc941fc4e0704a4a1_stream_.jpg 13Kb
3º profile-679168bdc941fc4e0704a4a1.jpg 14Kb
4º thumb_679168bdc941fc4e0704a4a1.jpg 4Kb
No one of these avatar files are transfer to S3 and then Jomsocial take them from the server.

Please, could you ckeck and solve it?
Thanks

10 years 2 months ago
Licenses:

Hi, perico.

I confirm, your fix is ok.
As for avatars... I'll add developer to this thread, he'll take a look at it.


- 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
10 years 2 months ago
Licenses:

Hi, perico.

Try change in ROOT/components/com_community/libraries/storage/s3_lib.php lines 1142 & 1143:
from:

// $hostBucket ? $bucket : $bucket.'.s3.amazonaws.com', $uri, self::$__accessKey, $expires,
$hostBucket ? $bucket : self::$endpoint.'/'.$bucket, $uri, self::$__accessKey, $expires,
to:
$hostBucket ? $bucket : $bucket.'.s3.amazonaws.com', $uri, self::$__accessKey, $expires,
// $hostBucket ? $bucket : self::$endpoint.'/'.$bucket, $uri, self::$__accessKey, $expires,

Does it works for you?


- 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
10 years 2 months ago
  • perico's Avatar
    Topic Author
  • perico
  • Offline
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 0
Licenses:
JomSocial Expired

Hi, Michal

it works for me.

Thanks

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