Skip to content
Back

Upgrade from 1.6.1 to 1.6.2 fails, error 409 document_already_exists on all endpoints

  • 0
  • Self Hosted
Ibaraki Douji
21 Jul, 2025, 13:46

SO today i wanted to upgrade on of my appwrite infra hosted on a swarm cluster.

I asked GPT to make a simple script to check duplicate on _uid accross the whole appwrite database and found multiple dupe keys (i assume the duplicates in the metadata are normal as it's not IDs)

After removing them, they poped back and still 409 After editing the _uid (just took the existing one and replaced the last hex chara with another one), the duplicates where not present and not poping back, tho still 409.

At this point i reverted back to 1.6.1 and idk what to do now

TL;DR
Issue: Upgrade from version 1.6.1 to 1.6.2 fails with error 409 document_already_exists on all endpoints. Possible solution: Stop all Appwrite containers, upgrade only the `appwrite_appwrite` container, perform the migrations, upgrade all other containers, and restart them. Additionally, check for duplicate `_uid` keys in the database and resolve any inconsistencies.
Ibaraki Douji
21 Jul, 2025, 13:48

a last thing i could try is to stop all appwrite containers, upgrade only the appwrite_appwrite container, do the migrations, upgrade all others containers and restart them

Ibaraki Douji
21 Jul, 2025, 13:48

but idk if it could help

Ibaraki Douji
21 Jul, 2025, 13:58

running doctor, everything is green except the check version. "Failed to check for a newer version"

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