Images/Videos in storage appearing broken after upgrading to 1.9.6
- 0
- 3
- Self Hosted
- Flutter
- Storage
I am running into a storage issue after upgrading my self-hosted Appwrite instance , all of my previously uploaded images and videos are now showing as broken icons in the Appwrite console and failing to render in Flutter app
hmm that's strange,
can you tell me :
- if your not using S3 ? if you are using S3, are you sure the configuration is correct ?
- if is there error logs in the appwrite container ? (if yes could you share thoses logs ?)
- are the files in the volumes ?
no im not using s3
here appwrite logs
appwrite | http.request · 9.4ms · 4b304811
appwrite |
appwrite | level error
appwrite | http.method GET
appwrite | storage.cache.key 4ebc5323877d2d3fb8fa8c0063268eea
appwrite | storage.cache.hit false
appwrite | http.path /v1/storage/buckets/:bucketId/files/:fileId/preview
appwrite | http.response.code 400
appwrite |
appwrite | Appwrite\Extend\Exception: Zero size image string passed
appwrite | at /usr/src/code/src/Appwrite/Platform/Modules/Storage/Http/Buckets/Files/Preview/Get.php:245
appwrite | at /usr/src/code/vendor/utopia-php/http/src/Http/Http.php:645
appwrite | at /usr/src/code/vendor/utopia-php/http/src/Http/Http.php:864
appwrite | at /usr/src/code/vendor/utopia-php/http/src/Http/Http.php:791
appwrite | ... 3 more
appwrite |
appwrite | ────────────────────────────────────────────────────────────
appwrite |
appwrite | Warning: gzdecode(): data error in /usr/src/code/vendor/utopia-php/compression/src/Compression/Algorithms/GZIP.php on line 41
appwrite | http.request · 7.3ms · d189a174
appwrite |
appwrite | level error
appwrite | http.method GET
appwrite | storage.cache.key e95c5d26fa3b601f7368807605a11423
appwrite | storage.cache.hit false
appwrite | http.path /v1/storage/buckets/:bucketId/files/:fileId/preview
appwrite | http.response.code 400
appwrite |
appwrite | Appwrite\Extend\Exception: Zero size image string passed
appwrite | at /usr/src/code/src/Appwrite/Platform/Modules/Storage/Http/Buckets/Files/Preview/Get.php:245
appwrite | at /usr/src/code/vendor/utopia-php/http/src/Http/Http.php:645
appwrite | at /usr/src/code/vendor/utopia-php/http/src/Http/Http.php:864
appwrite | at /usr/src/code/vendor/utopia-php/http/src/Http/Http.php:791
appwrite | ... 3 more
appwrite |
appwrite | ────────────────────────────────────────────────────────────
seems to be a 400 error, so maybe your request is bad.
could you share the preview request your making (if possible both from the SDK/Code and the Network request from the devtools or add a debug logs with the url, headers and maybe body if present if your using a mobile app)
like if i understand the error correctly you seems to not pass width/height (or pass them as empty value) which then fails to display
and regarding the files ? are they present in the volume ?
okay im sending it..
oh, it's not the same request ... and this one is 200, not 400
also i'm wondering, do you use compression ?
this is directly from appwrite console
ok so the fact that preview is throwing 400 and view is showing 200 tells me there is something bad happening either with the Compression and/or the Encryption.
did you change anything after the upgrade ?
is the encryption key still passed (does the env from the old an ew version are the same for _APP_OPENSSL_KEY_V1)
Nope, only the default appwrite configuration
No, i just follow the upgrade wizard, no change
tho i really think it's the Encryption key that somehow changed, because of the warn from the GZIP, where is think it try to decompress the image, but it's "data error" so i think it's already broken there.
then very strange, by any chance, do you still have a backup of the older .env and compose before the upgrade ? so we could compare
yes i do have both
could you check if both have the OPENSSL key and if they are the same ?
okay let me see
just to be sure, the Jul 2 is also the same ? (since the two your showing are from Aug 4, today)
also remove them from here, as they are encryption key
wait i see something the new have more back slash no ?
Recommended threads
- `project_id_missing` in Cloud Function w...
I've got a cloud function written in `Dart-3.12` that I'm trying to create a file in a file bucket. I'm using the latest `dart_appwrite` sdk (`26.1.0`) and App...
- New OAuth provider not appearing in Cons...
Hi team! I'm contributing to Appwrite and currently working on adding Hugging Face as a new OAuth provider. Here's what I've done so far: - Implemented the ...
- Can Appwrite logs be output without bein...
Hi, I'm trying to use the Better Stack Collector to forward my Appwrite logs to Better Stack. The issue is that Appwrite seems to format the logs for terminal ...