I have the docker version of ERPNext ver: 13.2 installed in a ubuntu 20.04 VM in VirtualBox. MariaDB version is 10.3. This is a production environment. I would like to upgrade it to 13.25.
Can someone please explain what’s the best way to upgrade it to 13.25 safely without loosing any data? Will it also upgrade the Maria DB DB version? If not, is it a good idea to upgrade the DB too? If so, how?
My 2nd question is docker version of ErpNext good for production?
If yes, I already have tried without success. I believe I got an Internal Server Error when I tried to access erpnext after restoring.
I thought it could be due to the mismatch version of both Erpnext (13.2 vs 13.25) and Maria DB (10.3 vs 10.6)
What’s the correct way of upgrading from a lower version to higher?
@revant_one, Thank you for the clarifications, I really appreciate it. It appears now that the way I was upgrading from 13.2 to 13.26 was wrong. I was simply taking docker containers down and changing the version in the .env environment variable file from 13.2 to 13.26 which wasn’t doing much as you confirmed that it wouldn’t work with the new version.
I immediately saw the env-production file that used to be readily available is no longer available for the production and I see an example.env file in there. I also see the docker-compose.yml file is gone from the /frappe_docker/ directory and there are two new files compose.yml and pwd.yml.
I’m not sure of my installation is complete as I cannot run the docker-cmpose up without the docker-compose.yml file, right?
Is there a wiki page of how to install ErpNext 13.26 docker version in production that I could refer?
All I need is to have the latest version ErpNext installed and my data being restored on the new version.
Thanks @revant_one. I was able to install the latest version successfully. Thank you so much for the instructions.
Can you please tell me what command I would have to use to stop the services. In the older version I used
docker-compose up -d
to run it.
Secondly will the site backup still work as I explained earlier? (Please note the backup would be from ErpNext 13.2 and the same has to be restored on 13.27.)
OR how can I restore my files and database from the old version to new version?
This is what I get when I run the command to stop:
root@erp:~/frappe_docker# docker compose -p project-name stop
invalid interpolation format for x-backend-defaults.image: “required variable FRAPPE_VERSION is missing a value: No Frappe version set”. You may need to escape any $ with another $.
Did I miss a step or something to update the frappe version? I see it in the ~/gitops/erpnext-one.env file
I think I misunderstood the command you wanted me to run in your second last response. I was using the command wrong. I was trying to stop everything together in the old fashion and instead of using the actual project name I was typing “–project-name”, literally.
I tried this and it worked: