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
- What does it means
I am looking for Appwrite for migration, but i am confused with the term "Unlimited" in Pricing table of Documents . Kindly Let me know what does it ...
- Unable to Create Storage After Upgrading...
We upgraded our Appwrite instance from version 1.8.0 to 1.9.0 and successfully ran the migration process. However, after the upgrade, we are no longer able to c...
- help!!!!
whats happening no clue pls help 🥲