Hi everyone, i have a issue with solidus. Im using...
# support
j
Hi everyone, i have a issue with solidus. Im using active storage and s3 bucket for upload my images, but the images when the signed url of aws expires dosent show again. I read that issue resolved increasing the url_expires_in, but im not sure. Any suggestions?
j
Any chance the issue is that you're caching those signed URLs? I think they should be regenerate on each request.
Regardless, there's not really benefit to storing your images privately. Make them public and your app won't even have to generate signed URLs; it can just use the regular public URL.
a
I faced the same issue when I was using an unpaid plan as it was freeing up space after some time and that time is random (can be a few minutes to a few days). I switched to paid plan and it worked.
m
I am having similar issues. @Jared Norman I set the bucket permissions on my s3 to be public. What is strange is that I can copy and URL from the s3 browser utility and they display fine. Yet after a few minutes inside of my products page, I get a 403, with a specific error of "Access Denied" in the browser console.
j
Sounds like it's still uploading the files as private and using presigned URLs then.
You can just look at the URLs to confirm.
m
@Jared Norman thank you for the reply. Looking at the URL on the front end side it is still trying to send a signed URL. On the admin side, I am getting a clean URL. I have read through the active storage guide https://edgeguides.rubyonrails.org/active_storage_overview.html and my
storage.yml
is specifying
public: true
I have configured my S3 storage on VULTR to be public. I can specify a URL of any image in my bucket and it will display correctly as would be expected. I have rebooted my server and cleared my cache on the browsers I am testing on.
To solve this riddle I ended up deleting all of the images that were uploaded before
public: true
was set in
storage.yml
for my S3 settings. Once I did this and uploaded the new images on both the admin and front end sides I got a clean URL and the code is no longer trying to set a pre-signed URL.
sg thumbs up 1