Moving site from one app server to another in self hosted frappe cloud using press app

Hi,
I’m self-hosting Press Console and trying to move a site from one app server to another.

Here’s my setup:

  • Two app servers: app1 and app3
  • Both use the same DB server
  • A bench already exists on the destination app server

When I try to change the server using the Press UI or by creating a Site Migration manually in code, I get this error:

python

CopyEdit

raise NotImplementedError

It happens in this part of the code:

python

CopyEdit

if source_db == destination_db:
    raise NotImplementedError

From what I understand, this check is there to avoid conflicts when restoring a site to the same DB server. But in my case, each site has a unique database name, so a migration should be possible if the site is archived before restoring.

Just wanted to know:

  • Has anyone else faced this issue?
  • What’s the correct way to handle this kind of migration when both app servers use the same database server?
  • Is it safe to patch the code and handle this manually by adjusting the step order?

Any help or suggestions would be appreciated.
Thanks.

what step you failed?. i already use this function on Press V1 on Frappe Version14 and dashboard 1. i don’t know Press now, this function is the same or not.

I think I’ve figured out the issue.

Right now, I have two app servers, but both are connected to the same database server. There’s no separate DB server for each app server.

From what I understand, the site migration logic in Press Console assumes that when you’re moving a site from one app server to another, the database is also moving — or at least that the source and destination app servers are backed by different DB servers.

Since in my case, the source and destination DB servers are the same, the migration fails with a NotImplementedError.

So I believe the real blocker here is the fact that there’s no logic to handle server migrations across app servers that share a single DB server.