Steps to update stats server - jigneshpshah/greycube_helpmanual GitHub Wiki
Ensure server has stable internet access
Navigate to bench folder
su - frappe
cd /home/frappe/frappe-bench
Stash any uncommited changes on apps. Ex hrms
cd apps/hrms
git stash
cd /home/frappe/frappe-bench
Above steps needs to be done if required for frappe,erpnext and stats
update
keep nawars github id/pwd handy run following command from bench folder
bench update
bench destroy-all-sessions
bench --site site1.local enable-scheduler
bench --site site1.local clear-cache
bench --site site1.local migrate
bench build
use bench update --no-backup
--> if it keeps on failing due to inernet issue and you need to retry it.
Basically you should complete it without any error
restart your server
sudo shutdown -r now
Login to site and go to help--> about and check stats version
It should match https://github.com/ashish-greycube/stats/blob/main/stats/__init__.py you require nawar github id to acces above github URL