User Daniel_Lopes reports issues with avatar uploads failing on Discourse 2.1.0.beta6, receiving an error related to S3 region settings. The problem appears to be that uploads are failing due to a mismatch between the configured S3 region (us-west) and the actual region used (us-east), despite the user changing the setting in the admin panel. Sam suggests checking S3 settings and notes a potential issue with IPv6, while also pointing out that the problem might be related to cached or corrupted uploads. Daniel_Lopes confirms that unchecking “force path style” helped with general uploads but not avatars, and suspects the issue may stem from a cache or a recent update. Sam speculates that recent stability fixes in uploads could have inadvertently introduced the issue, as the problem only arose after updating to the latest beta. The issue seems isolated to specific images, with users advised to try different photos. Sam offers to fix bad images with a rake job if needed.
I’m not sure this is a bug with the last version (2.1.0.beta6) or if it’s something with my installation yet, but I’m posting here until I figure it out.
When I upload a custom avatar image I’m getting this error:
Trying to see if the issue could be the region of the upload. I thought this setting was optional, but I’m changing it now just to see if something could have changed (my bucket is us-west and the log is showing us-east as the site setting was set to us-east).
Somehow changing the region doesn’t seem to reflect on the uploads. The log still points to us-east1 even after chaging to us-west using the admin. Tried rebuilding the container just to make sure but no luck, so far.
I think it’s not a big deal. We had two support tickets, and that was it.
I have no idea either. I think it might be some cache because before the region was set to East (Virginia) (default value) and today while trying to debug this, I noticed the difference and changed to West (Oregon). So this might have fixed, but the old images were probably somehow cached.
The thing I don’t understand is why this became an issue only last week when I updated to the latest beta.
We have been working really hard over the past few weeks stabalizing issues around uploads. There are a mountain of fixes we had to apply. My guess is that somewhere between fixes something happened.