
Are there any guides on what I need to do if I have a self-hosted instance of Appwrite on a server to another server? It'll be the same OS so there shouldn't be any issues regarding that. The only concern that I have is that currently, I run Appwrite behind Nginx Proxy Manager (NPM) but I won't need to use NPM where I'm moving it to because I'm using Cloudflare Tunnels (cloudflared) instead.

Yeah, the logs tab isn't particularly helpful

Okay I'll try the backup from the video next weekend. I don't think I have time for the rest of the day to work on this.

So I watched the logs for the appwrite
container and retried the migration again and this is what kept showing up:
2024-04-15T01:13:55.021804552Z [Error] Timestamp: 2024-04-15T01:13:55+00:00
2024-04-15T01:13:55.021828584Z [Error] Method: POST
2024-04-15T01:13:55.021832334Z [Error] URL: /v1/databases/:databaseId/collections/:collectionId/documents
2024-04-15T01:13:55.021834952Z [Error] Type: Appwrite\Extend\Exception
2024-04-15T01:13:55.021837456Z [Error] Message: This domain is not connected to any Appwrite resource yet. Please configure custom domain or function domain to allow this request.
2024-04-15T01:13:55.021839959Z [Error] File: /usr/src/code/app/controllers/general.php
2024-04-15T01:13:55.021842301Z [Error] Line: 59
For the new server, I will be pointing a domain name to it that is publicly accessible but I had to temporarily change the _APP_DOMAIN
and _APP_DOMAIN_TARGET
because the migration request keeps timing out (I am using Cloudflare Tunnels) after 100 seconds - https://developers.cloudflare.com/support/troubleshooting/cloudflare-errors/troubleshooting-cloudflare-5xx-errors/#error-524-a-timeout-occurred

The built-in migrations tool finally worked after I also supplied value to the _APP_DOMAIN_FUNCTIONS
environment parameter (it was initially blank).

Interesting - that shouldn't affect this, I don't think

However, it does change all of the dates to the current date and I don't want that so I'll look into manually doing the backup and restore.

CF tunnels is great - that's what I was using originally, but it was really limiting for Function domains, because of how some of it's internal routing works

I tried it on a smaller project. But I'll try it on the main project now. I'm just testing stuff right now and it's fairly easy to start from scratch.

Yeah, I warned about that earlier

Yes, I'm actually not that happy with CF Tunnels.. my apps have been a bit more sluggish because of it but I understand why, but I don't know of any other solution to point domain names to the dynamic IP address of the mini PC I have serving all of these Docker containers.

Sure. I personally handle it by having a VPS running Traefik forwarding requests to my local machine over Tailscale

There's also ngrok, which is a service that'll handle exposing it on whatever domain you want for you

I want a solution where I won't have to rent a VPS.. that's the main reason why I'm trying to migrate all of my services from a Google VM to a mini PC at home. I just want everything to be in-house.

Is this similar to CF tunnels?

Or Tailscale can expose your port directly to the Internet by itself, but then you don't have control over the domain

Yes, fairly. I've never used it myself though - I just know it exists (I have used ngrok for temporary tunnels to expose an application I'm working on locally to the web on a randomly generated domain)

Understood - having a cheap gateway VPS (I pay ~ā¬3.50/month for mine) does put you far more in control of your whole stack, though

I also have mine handle a bunch of caching for static files (like JS, CSS, etc)

Interesting.. I think your solution is a little too advanced for my knowledge, maybe someday I'll look into it but right now I'll just try to live with CF tunnels.

If it works for you, great! And if you want to try to get set up with a VPS gateway, Iād be happy to help.

Thanks, let me add you so I can hit you up if I decide to go that route someday.

I finally managed to migrate Appwrite to my new server using the method shown in the YouTube video. Thanks!

Oh, great! Glad it helped. I was busy recently and lost your other messages š

Can I mark this as solved now?
Recommended threads
- Appwrite Education program
I have applied for the GitHub Student Developer Pack and it was approved so that i can be eligible for the Appwrite Education program in Appwrite BUT it is sh...
- SMTP Error: Could not connect to SMTP
My appwrite self-hosted instance on DigitalOcean cannot sennd emails. The following results were performed Log: ``` docker compose logs -f appwrite-worker-mail...
- Cannot create a user
Hi, I am using a lowcoder frontend and trying to create a user in Appwrite (python function). Unfortunately, all I got is an error: "Raw body: Error". It means...
