Skip to content
Back

Getting `stuck` when removing relationship

  • 1
  • Databases
  • Self Hosted
Expo
14 Nov, 2023, 17:23

When removing a relationship in a DB, I'm getting a stuck tag on said entry, as shown in the attached screenshot. I'm confused as to what this means

TL;DR
The user is getting "stuck" when trying to remove a relationship in a database. They proposed a solution that hasn't been approved yet. They are experiencing the issue with both cloud and shelf hosting. They are running version 1.4.13 on the cloud. The attribute is creating a 400 error when trying to create or update documents in the collection. They tried redeploying the related collection but the attribute is still stuck. They are asking how to remove the attribute in its current state. The user also asks if changing anything about the attribute after creating it or deleting the related collection could have caused the issue. They also
Drake
14 Nov, 2023, 17:43

Did you try to delete it while it was processing?

Drake
14 Nov, 2023, 17:44

Are you on Appwrite Cloud?

Expo
14 Nov, 2023, 17:44

nope

Expo
14 Nov, 2023, 17:45

nope, this is a local self-hosted docker instance of appwrite

Drake
14 Nov, 2023, 17:47

Can you check the docker logs for the appwrite-worker-databases container?

Drake
14 Nov, 2023, 17:47

there should be some logs related to that attribute

Expo
14 Nov, 2023, 17:49
TypeScript
Attribute not found
[Job] (6553b327eb8d61.08949735) successfully run.
Expo
14 Nov, 2023, 17:50

despite it indicating the attribute doesn't exist, restarting appwrite still shows said attribute, inclusive the stuck label

Drake
14 Nov, 2023, 18:00

Did you change anything about the attribute after creating it? Did you maybe delete the related collection?

Expo
14 Nov, 2023, 18:01

i did re-deploy the related collection from the appwrite cli, that could be why - how would I go about removing the attribute in it's current state?

ech0ech0
20 Dec, 2023, 14:03

I have the same, also for the same reason (removed the respective collection and hence also want to remove the relationship).

ech0ech0
20 Dec, 2023, 14:03

How to get the attribute unstuck? I get a 400 when trying to create/update documents in the collection with the stuck attribute.

Muniraja
20 Dec, 2023, 14:04

Relationships are taking forever to do anything.

ech0ech0
20 Dec, 2023, 14:04

Yah, it got stuck yesterday and is still stuck šŸ˜‰

ech0ech0
20 Dec, 2023, 14:06

PS: Version 1.4.13 on cloud

Muniraja
20 Dec, 2023, 14:06

Both cloud and shelf host have the same issue.

ech0ech0
20 Dec, 2023, 14:06

yeah I saw some other threads on this, but no solution so far?!

Drake
20 Dec, 2023, 18:29

You're probably running into this issue: https://github.com/appwrite/appwrite/issues/6012

Drake
20 Dec, 2023, 18:29

You would need to recreate the collection

ech0ech0
20 Dec, 2023, 20:58

Thanks @Drake šŸ‘

ech0ech0
20 Dec, 2023, 21:01

PS: why wasn't the MR approved??? It would fix the issue. (I understand it can/should be fixed at the root cause of deleting the related collection, but the proposed fix would have solved it too, and so far the "better" fix is nowhere – not the best decision IMO)

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