Back

[CLOSED] Storage not opening after some time

  • 0
  • Storage
kun
22 Jun, 2023, 21:25

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:

TypeScript
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
TL;DR
User is experiencing an issue where their storage is not opening after some time. They suspect that the problem may be related to their rclone configuration. They also mention getting a lot of "Not Found" errors and warnings regarding failed to open stream and I/O errors. They have tried disabling compression but are still encountering the same error. They ask for suggestions on how to fix the issue. Solution: The user later updates that the issue was indeed related to their rclone configuration and they have fixed it. Therefore, the thread can be closed.
Drake
22 Jun, 2023, 21:38

No warnings saving the file?

Drake
22 Jun, 2023, 21:38

Is the compression changing?

kun
22 Jun, 2023, 21:39

no, no errors on saving afaik

kun
22 Jun, 2023, 21:39

where do I see if compression changing?

Drake
22 Jun, 2023, 21:43

The compression settings are in bucket settings

kun
22 Jun, 2023, 21:43

oh yes, I do have zstd compression enabled there

Drake
22 Jun, 2023, 23:57

can you try re-uploading and download again?

Drake
23 Jun, 2023, 00:23

maybe you changed it because the default is no compression

kun
23 Jun, 2023, 10:07

It has been with compression enabled since the beginning

kun
23 Jun, 2023, 10:08

But I have tried, same error

kun
23 Jun, 2023, 13:42

Even if I disabled compresion I still get:

TypeScript
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
Drake
23 Jun, 2023, 15:00

and you can open it manually?

Drake
23 Jun, 2023, 15:00

how big is the file?

kun
24 Jun, 2023, 10:15

seems like the files are not being saved on the storage, if I go there it's empty

kun
24 Jun, 2023, 10:15

any size

kun
24 Jun, 2023, 10:16

I also get a LOT of these errors, not sure if is related:

TypeScript
[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
kun
24 Jun, 2023, 10:22

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.

kun
26 Jun, 2023, 08:52

I can confirm my issue was my rclone configuration, I was use rclone mount for the docker volume. This can be closed.

safwan
26 Jun, 2023, 11:34

[CLOSED] Storage not opening after some time

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more