Back

Getting Server 500 error when trying to Delete Document or Update Relationship to null

  • 0
  • Databases
Vedsaga
9 May, 2023, 15:31

also, trying to change the relationship giving server error

TL;DR
Issue: Server 500 error when deleting a document or updating relationship to null. Possible Solution: Restart the Appwrite container using the command `docker-compose stop` and `docker-compose up -d`. Make sure to include the database container as well.
Guille
9 May, 2023, 15:33

how did you restarted the server?

Vedsaga
9 May, 2023, 15:33

docker stop and docker start, hope that is fine πŸ‘€

Vedsaga
9 May, 2023, 15:34

I mean I did for single appwrite container

Vedsaga
9 May, 2023, 15:34

not whole docker

Guille
9 May, 2023, 15:35

Yes, I did have the same problem the last week, restarting the server that way solved the problem in my case

Vedsaga
9 May, 2023, 15:35

ahh, if incase any command that I might have missed

Guille
9 May, 2023, 15:35

you did it only for the appwrite container?

Vedsaga
9 May, 2023, 15:36

yap, appwrite contier ID

Guille
9 May, 2023, 15:36

try docker compose stop and doker compose up -d

Vedsaga
9 May, 2023, 15:36
TypeScript
aeea77760124   appwrite/appwrite:1.3.4   "docker-php-entrypoi…"   2 days ago    Up 2 days    80/tcp                                                                     appwrite

for this one

Guille
9 May, 2023, 15:36

so all containers will stop

Guille
9 May, 2023, 15:36

including database

Guille
9 May, 2023, 15:37

run the command where you have your docker-compose.yml file

Vedsaga
9 May, 2023, 15:37

trying now...

Vedsaga
9 May, 2023, 15:40

oh yes works like charm πŸ™‚

Vedsaga
9 May, 2023, 15:40

I guess mistake was I only stop only one

Vedsaga
9 May, 2023, 15:41

so, just doubt hope this was one time after upgrading... in future if I create new relationshop so, should not need to be doing it

Guille
9 May, 2023, 15:41

Yes, maybe restarting only database will work too πŸ€”

Guille
9 May, 2023, 15:42

Yeah, there are several bugs with relationship, I'm waiting for the next release addressing all the problems

Vedsaga
9 May, 2023, 15:44

but I still prefer to use this bugy things because it's easy to use and if some major bugs happens then get addressed super fast and anyway I have this project as side one which will take 2month so hopefully by that time relationship will be public and avl on cloud to use so I can shift from AWS

Guille
9 May, 2023, 15:45

Yeah, I'm in the same position as your

Vedsaga
9 May, 2023, 15:49

Just one thing noticed which is, if you try to delete document which have Restict from deletion it is showing Server error, I guess just messaging could be improved there..

Vedsaga
9 May, 2023, 15:50

I am not sure if issue is already there or should be created...

joeyouss
12 May, 2023, 08:02

It could be improved yes, I will pass this to the team

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