Before upgrade you need ensure backup is taken, don’t take risk with your data @Shubham_Prabhat1
tried this command, check version definitely
python --version (3.11+)
nodejs --version (18+)
sudo apt update
sudo apt upgrade
Upgrade Frappe Bench (execute commands below in the frappe-bench directory)
sudo -H pip3 install --upgrade frappe-bench
Update
bench setup requirements
bench update
Switch Branch and Upgrade
bench switch-to-branch version-15 frappe erpnext --upgrade
bench migrate --skip-failing
bench update --reset
bench update --patch
Restart
bench build
sudo supervisorctl restart all (you might have to start supervisorctl first before restarting)
sudo service nginx stop
sudo service nginx start