Back

My deleted attribute is “stuck”

  • 0
  • Self Hosted
mauricev
21 Feb, 2023, 04:10

I tried to delete an attribute from a collection, and it’s entered some kind of limbo state called “stuck”. Restarting appwrite didn’t help. Wondering if something is amiss at the MariaDB end?

TL;DR
User is experiencing an issue with a deleted attribute being "stuck" in a collection. They suspect it may not have been deleted successfully and suggest recreating the collection. They mention the importance of saving logs immediately when encountering weird events. Another user suggests checking the logs for any useful information, specifically mentioning a "Key column 'facility_id' doesn't exist in table" message. The user mentions not having logs from when the issue first occurred and tries deleting the attribute again, but no new logs are generated. They are asked to share the docker logs for the appwrite-worker-databases container and clarify if the logs provided are from after the
Drake
21 Feb, 2023, 04:12

What's in the appwrite-worker-deletes docker logs?

mauricev
21 Feb, 2023, 04:14

Here you go

Drake
21 Feb, 2023, 04:21

What's the attribute key?

mauricev
21 Feb, 2023, 04:21

facility_id

Drake
21 Feb, 2023, 04:23

Are these logs from after the attribute became stuck only?

Drake
21 Feb, 2023, 04:25

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

mauricev
21 Feb, 2023, 04:25

I tried to delete it earlier today but that log is from after rebooting appwrite, so it’s possible it has no evidence of the defective delete. I just tried deleting again, but nothing seemed to be added to this log.

mauricev
21 Feb, 2023, 04:26
Drake
21 Feb, 2023, 04:27

Ya...I would need the logs from when it happened to try to figure out the root cause

mauricev
21 Feb, 2023, 04:27

This last log seems to say something useful, “Key column 'facility_id' doesn't exist in table”

mauricev
21 Feb, 2023, 04:28

Now I know to save the logs immediately should something weird happens

Drake
21 Feb, 2023, 04:29

Maybe the attribute didn't create successfully?

You could try to recreate the collection

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