80% success with transfering old server to new server

Hi

I have decided, for various reasons, that I want to “transfer” my old V14 server to a new V14 server.

Here is my process

Backup of old database
Create new V14 server

transfer database file to new server
bench --force -site restore /database-file …[ database restored succesfully ]

bench new-app custom-app
bench --site install-app custom_app

bench --site migrate
bench restart

All seem to go well.
I can access the standard ERPNext doctypes and data of documents seems fine.

There are two problems

  1. I wrote a custom report under manufacturing which I cannot access
    error : … ModuleNotFoundError ; No Module erpnext.manufaturing.report.production_status

I can see my script report under “Build”
And if I log on to the backend , I can see my report files under …/manufacturing/report/…

Problem 2.
I also created a custom doctype under apps/custom_app/custom_app/doctype/…
The actual files did not migrate accross to the new server.
I can see my custom doctpye on the desk if i goto “Doctype List”
I can see the module under “Module Def List”
I can see my app under “Installed applications”

Somewhere I missed something in the whole transfer propcess.

Would appreciate some assistance, please
Thank you

Hi @willspenc:

Maybe typo here? manufacturing.report.production_status

You need to “pack” your changes on old server into custom_app (doctypes, customizations, reports, etc …), export this app (via github), and install it on new server.

Check this video

Hope this helps.

Thank you for your assistance @avc

I think your suggestion is wise not only from a point of view of solving the problem,
but also from a version control point of view. So I have created a github account
and I have started working through the video and the procedures.

Will update.

Thank you