Hello, I'm starting to use solidus in production v...
# support
s
Hello, I'm starting to use solidus in production via a heroku like with aws s3, since I use the solidus/spree part into a subdomain (
mount Spree::Core::Engine, at: '/', constraints: { subdomain: 'shop' }
) I'm getting some problems to upload product images from the backend after upload an image, in the home view:
Copy code
(before)
<img itemprop="image" src="<https://bucket.s3.eu-west-2.amazonaws.com/inaiwpq6x48d2i81z2m2e6au7hi0>">

(now)
<img alt="" itemprop="image" src="/assets/noimage/small-e0e64753ab233ecd636325b86739eace7af7759hu1t673578df9781f7f34dbaf.png">
PS. I'm on Rails 7, so with ActiveStorage
✅ 1
From the logs it seems to be an error from the Amazon ACL
Copy code
2022-11-27 18:13:28.542027740 +0100 CET [web-1] [c391fbdd-e673-428f-9420-816e75f2555f] actionpack (7.0.4) lib/action_dispatch/journey/router.rb:32:in `serve'
2022-11-27 18:13:28.542030457 +0100 CET [web-1] [c391fbdd-e673-428f-9420-816e75f2555f] railties (7.0.4) lib/rails/railtie.rb:226:in `method_missing'
2022-11-27 18:13:28.542030077 +0100 CET [web-1] [c391fbdd-e673-428f-9420-816e75f2555f] railties (7.0.4) lib/rails/railtie.rb:226:in `public_send'
2022-11-27 18:13:28.542028485 +0100 CET [web-1] [c391fbdd-e673-428f-9420-816e75f2555f] railties (7.0.4) lib/rails/engine.rb:530:in `call'
2022-11-27 18:13:28.542028187 +0100 CET [web-1] [c391fbdd-e673-428f-9420-816e75f2555f] actionpack (7.0.4) lib/action_dispatch/routing/route_set.rb:852:in `call'
2022-11-27 18:13:28.542101993 +0100 CET [web-1] [c391fbdd-e673-428f-9420-816e75f2555f] actionpack (7.0.4) lib/action_dispatch/routing/route_set.rb:852:in `call' 

...

2022-11-27 18:13:28.541208009 +0100 CET [web-1] [c391fbdd-e673-428f-9420-816e75f2555f] Aws::S3::Errors::AccessControlListNotSupported (The bucket does not allow ACLs):
2022-11-27 18:13:28.541196952 +0100 CET [web-1] F, [2022-11-27T17:13:28.539576 #15] FATAL -- : [c391fbdd-e673-428f-9420-816e75f2555f]
I changed the ACL, it's seem to be working now 🙂