Hi all, my storage keeps getting lost after some time. Seems to work initially, but when I get back after some time the image fails to load, I can see the image is on my local disk.
This file as an example I can see in there, but it won't open it. Relevant log when trying to open the image URL:
Warning: file_get_contents(/storage/uploads/app-xxx/yyy/e3vN5JUaiz2tDKfyZzby78LgwpNfpa.png): Failed to open stream: I/O error in /usr/src/code/vendor/utopia-php/storage/src/Storage/Device/Local.php on line 185
Warning: file_get_contents(/storage/uploads/app-xxx/yyy/e3vN5JUaiz2tDKfyZzby78LgwpNfpa.png): Failed to open stream: I/O error in /usr/src/code/vendor/utopia-php/storage/src/Storage/Device/Local.php on line 185
Warning: zstd_uncompress: it was not compressed by zstd in /usr/src/code/vendor/utopia-php/storage/src/Storage/Compression/Algorithms/Zstd.php on line 77
Warning: file_get_contents(/storage/uploads/xxx/yyy/e3vN5JUaiz2tDKfyZzby78LgwpNfpa.png): Failed to open stream: I/O error in /usr/src/code/vendor/utopia-php/storage/src/Storage/Device/Local.php on line 185
No warnings saving the file?
Is the compression changing?
no, no errors on saving afaik
where do I see if compression changing?
The compression settings are in bucket settings
oh yes, I do have zstd compression enabled there
can you try re-uploading and download again?
maybe you changed it because the default is no compression
It has been with compression enabled since the beginning
But I have tried, same error
Even if I disabled compresion I still get:
Warning: file_get_contents(/storage/uploads/app-xxx/yyy/y5lynu-IMG_0025.jpg): Failed to open stream: I/O error in /usr/src/code/vendor/utopia-php/storage/src/Storage/Device/Local.php on line 185
Warning: file_get_contents(/storage/uploads/app-xxx/yyy/be7qbGDowLzeT0zSZjfae2KFivBRYW.png): Failed to open stream: I/O error in /usr/src/code/vendor/utopia-php/storage/src/Storage/Device/Local.php on line 185
Warning: file_get_contents(/storage/uploads/app-xxx/yyy/7ay53c-IMG_0025.jpg): Failed to open stream: I/O error in /usr/src/code/vendor/utopia-php/storage/src/Storage/Device/Local.php on line 185
and you can open it manually?
how big is the file?
seems like the files are not being saved on the storage, if I go there it's empty
any size
I also get a LOT of these errors, not sure if is related:
[Error] Timestamp: 2023-06-24T10:15:18+00:00
[Error] Type: Utopia\Exception
[Error] Message: Not Found
[Error] File: /usr/src/code/vendor/utopia-php/framework/src/App.php
[Error] Line: 803
[Error] Timestamp: 2023-06-24T10:15:23+00:00
[Error] Type: Utopia\Exception
[Error] Message: Not Found
[Error] File: /usr/src/code/vendor/utopia-php/framework/src/App.php
[Error] Line: 803
The error above still continue, but I think my issue was my rclone configuration, please bear with me for a few days to see if it has been fixed, because now I can see my files inside the folder.
I can confirm my issue was my rclone configuration, I was use rclone mount for the docker volume. This can be closed.
[CLOSED] Storage not opening after some time
Recommended threads
- Storage files aren’t showing on mobile
hi, what can be the problem? i have a storage and there are images in it, the permissions are read for All Users, everything is fine on desktop, but on mobile t...
- Delete storage files all at once
I am using Appwrite Cloud. I want to delete all storage files in my bucket similar to how I can select all documents in a collection and delete them all at once...
- Storage images are not showing on mobile
Hi, can anyone help me? I have some images on the storage, and it is not shown on mobile, on desktop everything is fine.