Back

[SOLVED] Unable to delete Databases/Collections from GUI

  • 0
  • Databases
  • Self Hosted
Drake
3 May, 2023, 00:11

[Error] Message: Utopia\Database\Document::__construct(): Argument #1 ($input) must be of type array, string given, called in /usr/src/code/app/controllers/api/teams.php on line 228

This isn't good...it's like the migrate didn't run 🧐

TL;DR
Issue: Unable to delete Databases/Collections from GUI Solution: There was an issue with the _APP_VERSION variable being set to 1. To resolve this, the user needed to check the value of `_APP_VERSION` using the command `docker inspect appwrite | grep _APP_VERSION`. Additionally, the user was advised to use the Console in an incognito window and check the parent folder above the specified folder. It was also suggested to try the migration again if necessary. Lastly, there was an error message regarding the migration not running properly.
Speedy059
3 May, 2023, 00:12

thats odd, I did do it. Should I try it again?

Drake
3 May, 2023, 00:12

what's the parent folder above this?

Drake
3 May, 2023, 00:13

can you try the Console in an incognito window?

Speedy059
3 May, 2023, 00:13

/root/appwrite

Drake
3 May, 2023, 00:13

you don't have /root/appwrite/appwrite do you?

Speedy059
3 May, 2023, 00:14

no no

Speedy059
3 May, 2023, 00:14

just 1 appwrite

Speedy059
3 May, 2023, 00:17

Tried that, same thing. I did notice something. When executing the doctor command docker exec appwrite doctor I see at the bottom it says A new version (1.3.3) is available!

Drake
3 May, 2023, 00:17

what's docker ps show?

Speedy059
3 May, 2023, 00:20
Drake
3 May, 2023, 00:24

what's docker inspect appwrite | grep _APP_VERSION show?

Speedy059
3 May, 2023, 00:24

_APP_VERSION=1

Drake
3 May, 2023, 00:24

that's weird...

Drake
3 May, 2023, 00:47

ok i found hte problem with the _APP_VERSION

Drake
3 May, 2023, 00:51

how did you restore back to 1.2.1?

Speedy059
3 May, 2023, 01:04

Its a VM, so i have an image of the entire disk at 1.2.1

Speedy059
3 May, 2023, 01:05

I do that before upgrades

Speedy059
3 May, 2023, 01:05

Easier to restore the entire vm or roll it back with snapshots

Drake
3 May, 2023, 01:13

ya that should work...

Drake
3 May, 2023, 01:17

I won't be able to today, but I'll try to reproduce the problem tomorrow

Drake
3 May, 2023, 17:25

so i tried to reproduce this by spinning up a 1.2.1, creating a collection, upgrading to 1.3.1, migrating, and deleting the collection and it all seemed to work fine for me

Drake
3 May, 2023, 17:25
Speedy059
3 May, 2023, 17:55

Oddly enough, it is for me too now. Thank you.

Drake
3 May, 2023, 19:53

[SOLVED] Unable to delete Databases/Collections from GUI

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