Skip to content
Back

Migration from self-hosted to self-hosted fails with 'user missing scope migrations:write' error

  • 0
  • Self Hosted
Al
17 Jan, 2025, 00:29

I migrate one of my appwrite projects using migrations. New fresh install, parity on .env, after 20 seconds or so in DevTools / Network I see a 401:

TypeScript
{"message":"<my user email> (role: users) missing scope (migrations.write)","code":401,"type":"general_unauthorized_scope","version":"1.6.0"}

on GET request to

TypeScript
target server/v1/migrations/appwrite/

Any suggestions? Earlier in the day it's been working with source system when I tried to test migrations on a quick localhost (dev machine) fresh appwrite install, but when I try to do it now, it doesn't work either. Banging my head...

TL;DR
Migration from self-hosted to self-hosted fails with 'user missing scope migrations:write' error. The issue occurs during GET request to `target server/v1/migrations/appwrite/` with a 401 error. The user lacks the migration.write scope. A suggested solution is to ensure the correct user role and scope are set up for migrations to work properly.
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