Back

[Solved] Index Creation for 1 specific collection fails

  • 1
  • Databases
punti_z
4 Apr, 2023, 16:57

Attribute index creation fails, not sure why. Tried other collections and it works fine but this one collection refuses. Not sure if there is a way to check logs or something, don't see anything in the appwrite console apart from a big red "failed"

Tried restarting all containers but no dice.

Any ideas where I could look ?

TL;DR
The user is experiencing issues with creating an index for a specific collection in MariaDB. They have tried various troubleshooting steps, including using HeidiSQL and checking the logs, but have not found a solution yet. They ask for advice on where to look for further help.
Binyamin
4 Apr, 2023, 16:58

You can try to run docker logs appwrite-worker-database

Binyamin
4 Apr, 2023, 16:59
  • docker logs appwrite-worker-databases
punti_z
4 Apr, 2023, 17:02

Interesting, logs say index already exists ??? I deleted the existing indexes and all documents in the collection .. How could index exist

Binyamin
4 Apr, 2023, 17:03

Maybe it somehow stayed Try login to MariaDB itself and look in there for any index attached to the collection

punti_z
4 Apr, 2023, 17:05

Oh boy, not even sure how I will can do that. Any existing posts I can refer to be able to do that ?

Let me try removing the collection and recreating it

Binyamin
4 Apr, 2023, 17:05

Sure thing I've mentioned this few times in the past Let me find one of them

punti_z
4 Apr, 2023, 17:07

@Binyamin and @Steven you guys are absolutely fantastic. Very active, knowledgeable and helpful. I really appreciate you both.

punti_z
4 Apr, 2023, 17:20

Just downloaded HeidiSQL and I am not sure how to get to docker internal network so it could reach the MariaDB IP

Binyamin
4 Apr, 2023, 17:31

You can use the instruction here https://gist.github.com/byawitz/885510a4d9789e97424337e9472276d7

Later I'll try to add some screenshots for each tool,

Binyamin
4 Apr, 2023, 17:37

Sorry the video contained private info so I've recreated it

Binyamin
4 Apr, 2023, 17:38
  1. Choose MariaDB (SSH Tunnel)
  2. Enter MariaDB Internal IP
  3. Enter MariaDB username and password
  4. Enter Server IP+port
  5. Enter Server SSH user and password (or key)
punti_z
5 Apr, 2023, 12:00

[Solved] Index Creation for 1 specific collection fails

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