Back

unknown attribute (mfa) when doing login on local instance

  • 0
  • Self Hosted
  • Auth
Dave
26 Apr, 2024, 18:34

How do I do that please?

TL;DR
Developers trying to use appwrite locally but encountering an "unknown attribute (mfa)" error. There is confusion on how to set up multiple projects and functions on a single local instance and managing old instances. The solution provided is to delete the folder of the old instance, connecting the remaining folders to the single instance. Additionally, upgrading to appwrite v1.5.5 and running migration commands may help resolve the login issue.
Dave
26 Apr, 2024, 18:34

Nope, I didn't. I created a new docker image for this project so this is a new image and I didn't run any migration command

Steven
26 Apr, 2024, 18:35

you must have had an old installation on the machine 🧐

Dave
26 Apr, 2024, 18:35

Yes I did have an old installation. I deleted it tho

Dave
26 Apr, 2024, 18:35

The container on docker

Steven
26 Apr, 2024, 18:36

deleting the docker cmpose files or containers does not delete everything as data is persisted in volumes

Steven
26 Apr, 2024, 18:36

if you're not concerned about your data, you can wipe your old instance. see https://appwrite.io/docs/advanced/self-hosting#uninstall

Dave
26 Apr, 2024, 18:37

No I do not. I already deleted the container, so where should I run this command?

The two instances were done in different projects.

I was told I cannot have the same instance running the two projects so I deleted the old one

Steven
26 Apr, 2024, 18:39

so what's in your folder now? and what's the folder name?

Dave
26 Apr, 2024, 18:42

Like I mentioned, I had a previous instance in a different folder which was for my frontend built with react.js

I then created a new instance in another folder for appwrite functions because I wanted to test my functions locally before pushing to prod which will use appwrite cloud.

The instance I deleted was the one for the frontend but it still has the docker-compose.yml file and appwrite folder there.

The two folders are: Frontend - memora Functions - memora-cloud-function

Steven
26 Apr, 2024, 18:43

go into that "deleted" instance's appwrite folder and run the command there (this will wipe the data)

Dave
26 Apr, 2024, 18:44

Okay

Dave
26 Apr, 2024, 18:44

So how would I now connect both folders to the single instance?

Steven
26 Apr, 2024, 18:45

you should only have 1 appwrite folder. delete the other one

Dave
26 Apr, 2024, 18:45

per project?

Steven
26 Apr, 2024, 18:46

no. per machine

Dave
26 Apr, 2024, 18:46

If I want to create another project that uses appwrite, how would I go about it?

Dave
26 Apr, 2024, 18:46

Okayy, I see

Dave
26 Apr, 2024, 18:46

So the local instance works like the cloud?

Dave
26 Apr, 2024, 18:46

One instance but with multiple projects and functions?

Dave
26 Apr, 2024, 18:47

I have done this, let me try signing in again

Dave
26 Apr, 2024, 18:47

Is there anything I should do before signing in?

Steven
26 Apr, 2024, 18:48

to the Appwrite Console? create an account

Dave
26 Apr, 2024, 18:51

I am signed in locally now. Thank you

Dave
26 Apr, 2024, 18:52

Is there a way I can copy a project in appwrite cloud locally so I don't have to set up from scratch?

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