We fixed the upgrade process in version 10.0.2-0. That was last year, on 2017/12/26. Therefore, your version is very outdated.
In any case, later versions of the stack upgrades are failing due to ERPNext being incompatible with MySQL, and only working on top of MariaDB. See: https://github.com/frappe/erpnext/issues/15970 and https://github.com/frappe/frappe/issues/6353.
There are 2 things you can do:
- Migrate your database to MariaDB.
- Wait until those tickets are fixed and proceed with MySQL.
We recommend you to try and migrate your database to MariaDB so you can do this sooner than later (we expect to migrate newer releases of the Bitnami stack soon). In order to do this:
Once you have moved to MariaDB or the issue is fixed, you can proceed with fixing the upgrade process:
rm -rf bench
git clone https://github.com/frappe/bench.git
sudo pip install -e /opt/bitnami/apps/erpnext/htdocs/bench
- Next, Fix ERPNext and Frappe so it uses the Git repositories:
sudo rm package.json
sudo rm -rf erpnext frappe
git clone -o upstream https://github.com/frappe/frappe
git clone -o upstream https://github.com/frappe/erpnext
./env/bin/pip install -e ./apps/frappe
- Finally proceed with updating:
But don't forget to make backups of everything before you start the process, as it may leave your ERPNext installation unusable if something goes wrong.