lemmy-ui
lemmy-ui copied to clipboard
MinIO Object Storage error when loading images
Requirements
- [X] This is a bug report, and if not, please post to https://lemmy.ml/c/lemmy_support instead.
- [X] Please check to see if this issue already exists.
- [X] It's a single bug. Do not report multiple bugs in one issue.
- [X] It's a frontend issue, not a backend issue; Otherwise please create an issue on the backend repo instead.
Summary
I have a MinIO S3 Object Storage Server and wanted to start using it for my Lemmy instance (wip) since the start. Everything works normally for Lemmy. When I enable S3 Object Storage and upload images (site icon, site banner) everything works as expected too, images are uploaded correctly, I see them in the bucket in MinIO, and the images are even publicly accessible. However, after some time, cache, and/or restarting Lemmy, the web UI will be trying to actually download those images to serve to the user, and it will return an error.
Steps to Reproduce
- Setup Lemmy
- Setup MinIO and bucket
- Connect Lemmy to MinIO
- Upload Site Banner or Site Icon
- Restart Lemmy
- Control + F5 to force refresh the Lemmy page
Technical Details
This is the error returned
[Error: Input buffer contains unsupported image format]
Lemmy Instance Version
0.18.5
Lemmy Instance URL
No response
I've further discovered that this happens with or without S3, and it happens only after restarting Lemmy
I'm having the server error issue after uploading a site image and then restarting the server. version 0.19.0
Ideally the UI shouldn't completely die when images aren't reachable or are returned invalid. Mlmym (also SSR'd) works well in this scenario. Each time there's some issue with pict-rs or the S3 provider (Scaleway, I see you...), or if I'm just doing something to pict-rs, I always have my main web interface going down, while everything else still works. A bit frustrating.
I might take a stab at this, if I can find some time.
This issue appears to be a duplicate of #2211.
True, my bad!