Openfoodnetwork: Product pictures are not showing up for France

Created on 28 May 2020  路  12Comments  路  Source: openfoodfoundation/openfoodnetwork

Description

Product pictures have disappear since the last release.

Steps to Reproduce

  1. Go to any shops on OFF https://www.openfoodfrance.org/shops#/

Animated Gif/Screenshot

image.png

Severity

bug-s1: a critical feature is broken: checkout, payments, signup, login

Your Environment

  • Version used: v2.9.10
  • Browser name and version: All
  • Operating System and version (desktop or mobile): both

Possible Fix

bug-s1

All 12 comments

This is looking good! Thanks @Matt-Yorkley 馃憤

@Matt-Yorkley can you add a few details here, what was the problem and how ti was solved?
I am curious about what are the specific S3 settings we have in FR.

Okay, so the issue here was related to S3 image settings and only affected France. All other instances with S3 seem to use this setting for the path:

Screenshot from 2020-05-29 11-53-34

Whereas France was using this setting:

Screenshot from 2020-05-28 22-35-10

:rails_root is a placeholder here which expands the full path on the filesytem, which in this case has recently changed from being in /current to a symlink in a different location.

The "path" given here is basically a virtual path that Amazon uses to identify/name images. So the generated URLs on our side were not pointing to the correct place in the bucket, but to a different path that included a per-release timestamp.

I manually adjusted the setting and changed the :rails_root prefix to /home/openfoodnetwork/apps/current and the image paths were all fixed.

Note: if we want to change this setting to be in line with other instances we would have to migrate/rename all images in the French S3 bucket first.

thanks for explaining Matt! This info may be useful in the future as well.

Exactly same issues in Brazil! I did this and works well.

I'm reopening this one. Pictures are down again :'(

I see the values in live FR are again the values Matt comment above says are incorrect for France.
I changed the values but still no luck.
The error message is something like "All access restricted to that object"..
I tried to login on AWS FR and I see this:
image

So the "All access to this object has been disabled" message is potentially a billing issue?

yes, 7usd to be paid...
Apart from that needed "fix" (pay the bill) I wonder why the settings were back to not start with :rails_root...

I think I may have changed the wrong values, Matt's comment was about "Attachments PATH" while I changed "attachments URL" and "attachments default URL". I reverted my changes now, this may need to be verified after the aws account is unlocked.

@luisramos0 @Matt-Yorkley thanks! It appeared the credit card for this account expired in February. I don't understand why we didn't get any emails :( anyway I've paid now. But I guess it will take some time to be reactivated.

Ok images are back! I'm closing. Thank you everyone!

Was this page helpful?
0 / 5 - 0 ratings