Back

[SOLVED] Storage does not works after upgrade

  • 0
  • Storage
0xb4d1dea
23 Apr, 2023, 05:03

upgrade from 1.2.0 to 1.2.1 or 1.3.0 The problem stills I use DOSpaces. My functions stop to works also, error logs

TypeScript
<?xml version="1.0" encoding="UTF-8"?><Error><Code>NoSuchKey</Code><BucketName>my-bucket</BucketName><RequestId>tx000000000000046f88a5e-</RequestId><HostId>65ef6fc3</HostId></Error>

All my files say

TypeScript
{"message":"File not found in \/storage\/uploads\/app...","code":404,"type":"storage_file_not_found","version":"1.2.1"}
TL;DR
After upgrading to version 1.2.1, the storage device name changed to `dospaces` from `DOSpaces`. However, the user is still unable to upload files and their functions have stopped working. They have tried using both `DOSpaces` and `dospaces` in the .env file, but neither works. The error logs show a "NoSuchKey" code and a "File not found" message. It is suggested to check the digital ocean spaces and ensure that the files are correctly uploaded.
0xb4d1dea
23 Apr, 2023, 08:55

I use “DOSpaces” and “dospaces” in .env and none of them works 🥲

Drake
23 Apr, 2023, 14:42

So there was a bug in previous versions where the path was incorrect. Do you see anything weird in digital ocean?

What happens if you upload a file now?

0xb4d1dea
23 Apr, 2023, 15:18

I can’t upload files even, I keep this project in 1.2.0 to works correctly

Drake
23 Apr, 2023, 15:19

What spaces do you have in digital ocean?

0xb4d1dea
23 Apr, 2023, 15:23

i don't uderstand, in my DO account i've 17 spaces i've one called appwrite-ink to this project.

I understand since 1.2.1 the storage device is ranamed dospaces instead DOSpaces

0xb4d1dea
23 Apr, 2023, 15:31

Hey, i did upgrade to 1.2.1 and upload files is working

Drake
23 Apr, 2023, 15:31

And are the files in that space correctly?

0xb4d1dea
23 Apr, 2023, 15:31
Drake
23 Apr, 2023, 15:32

These are the old files?

0xb4d1dea
23 Apr, 2023, 15:32

yes

0xb4d1dea
23 Apr, 2023, 15:33

oh

0xb4d1dea
23 Apr, 2023, 15:34

The old content are into / -.-

Drake
23 Apr, 2023, 15:35

Right so that's the bug that was fixed. Can you move/copy the data?

0xb4d1dea
23 Apr, 2023, 15:36

well, i could create a script to copy/move the data, no problem

0xb4d1dea
23 Apr, 2023, 16:00

After copy items and docker compose up -d it's working on 1.2.1 😄

0xb4d1dea
23 Apr, 2023, 16:01

i Shoul rename _APP_STORAGE_DEVICE var to dospaces or keeping DOSpaces to upgrade into 1.3.1 ?

Drake
23 Apr, 2023, 16:12

I believe it should be lowercase

0xb4d1dea
23 Apr, 2023, 16:13

Ok, thanks for your help ☺️

Drake
23 Apr, 2023, 16:39

[SOLVED] Storage does not works after upgrade

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