Copied a server with an ERPNext instance, Mysql not working

I have been copying v10 servers for a long time now. I guess it all depends on how you define “copy”.

In my case I make an image copy of the server and restore the image to a fresh server. Then I perform the steps in this post:

Once that is done I restore a copy of the latest backup to the newly restored server and everything works just fine.

So, If by “copy” you mean that you are making a server image, then this may help.

However, if by “copy” you mean that you are just moving all of the directory structure to a different server, then I would not expect to get a functioning server. The reason for this is the install process of erpnext is extremely dependent on the status of many other supporting programs such as pip, mariadb, python, etc. (there are far to many to name here).

Every install is potentially different even if the versions indicate they are the same simply because of the lack of control you have over the status of the supporting programs. Some of the support programs may be changing daily. This is exactly why I only use complete server images. It is not possible to know what has changed and that means that any two servers are going to be different unless you make a complete server image.

Hope this helps.

BKM