Back

[SOLVED] My Appwrite Doesn't Work After My Migration

  • 1
  • Self Hosted
  • Tools
LDs_Group
9 Nov, 2023, 12:43

I have this error ```html Error 401 This domain is not connected to any Appwrite resource yet. Please configure custom domain or function domain to allow this request.

Type

general_access_forbidden ```

TL;DR
After migrating from cloud to self-hosted on Appwrite, the user encountered the error message "This domain is not connected to any Appwrite resource yet. Please configure custom domain or function domain to allow this request." They tried changing the endpoint in their code and using the IP address instead of "localhost", but the issue persisted. The suggested solution was to run the "appwrite login" command and make sure the credentials were correct. The user confirmed that this resolved the issue.
D5
9 Nov, 2023, 13:16

The migration was from cloud to self-hosted?

LDs_Group
9 Nov, 2023, 13:17

self

D5
9 Nov, 2023, 13:18

Self-hosted to cloud?

LDs_Group
9 Nov, 2023, 13:18

to v1.4.9

LDs_Group
9 Nov, 2023, 13:18

Self-hosted

D5
9 Nov, 2023, 13:18

So you mean you upgraded it

D5
9 Nov, 2023, 13:19

The error usually appears when you enter invalid credentials or an account different from the main one to access console so you don't have access to such project

LDs_Group
9 Nov, 2023, 13:25

Ahh! So how to change credential ? because when I tip "appwrite init project and choose ==>Link this directory to an existing Appwrite project<==" It show the same error

LDs_Group
9 Nov, 2023, 13:35

It work in cloud πŸ‘ but not in Self-hosted πŸ₯Ί .

When I switch my endpoint from "appwrite client --endpoint http://localhost/v1" to "appwrite client --endpoint https://cloud.appwrite.io/v1" then link an project id using "appwrite projects get --projectId <PROJECT_ID>".

LDs_Group
9 Nov, 2023, 13:36

All worked before my migration from 1.4.7 to 1.4.9

LDs_Group
9 Nov, 2023, 14:58

DONE

D5
9 Nov, 2023, 15:04

Run the appwrite login command

LDs_Group
9 Nov, 2023, 15:06

Its okay <:appwritefire:823999000330895380> . But now I get domain Error

LDs_Group
9 Nov, 2023, 15:06
D5
9 Nov, 2023, 15:07

Try using the instance IP instead of localhost

ideclon
9 Nov, 2023, 15:17

Is _APP_DOMAIN in your .env file set correctly?

LDs_Group
9 Nov, 2023, 15:20

I Just fix it. It work

D5
9 Nov, 2023, 15:22

What was the solution?

LDs_Group
9 Nov, 2023, 15:23

_APP_DOMAIN_FUNCTIONS=localhost

LDs_Group
9 Nov, 2023, 15:23

update function domain

D5
9 Nov, 2023, 15:40

Great!

D5
9 Nov, 2023, 15:41

[SOLVED] My Appwrite Doesn't Work After My Migration

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