Turns out server needs to be rebooted , and its now updated to v8.0.9
try it on app ‘erpnext’ even though the error shows ‘frappe’ , mine was the other way round. And similarly i never touch frappe/erpnext codes. Try…
in apps/frappe
git stash (it will says No local changes to save)
git reset --hard
git pull --rebase
in frappe-bench
bench update --upgrade
I’ve already tried it both ways. It still doesn’t work.
Try this
in apps/frappe
git stash (it will says No local changes to save)
git reset --hard
git pull --rebase
in frappe-bench
bench update --reset
With bench update --reset
it works every time, but without the reset the error occurs on the next try of bench update.
same situation here,
bench update --reset ist working.
but without --reset no success.
Hello is happening again.
I run the code as before, but this time it’s not working.
The code
Then i do bench update
I have a few issues in my version that was fixed and I need to update urgent. Any help please.
It’s not updating am getting this error
Am not able to save anything.
Try this
in apps/frappe
git stash (it will says No local changes to save)
git reset --hard
git pull --rebase
git stash
git add . (Including point)
in frappe-bench
bench update
this work for me …
This work for me 2 thank you.
Thank you. I expected this to work, but unfortunately it still doesn’t. Maybe anyone can confirm that.
This is how it should work:
cd /home/frappe/frappe-bench/apps/frappe
git stash
cd /home/frappe/frappe-bench/apps/erpnext
git stash
cd /home/frappe/frappe-bench
bench update --reset
That should work.
Hello Jermaine_Gray,
of course, with --reset it works. Without it doesn’t, so your suggestion is more a workaround than a solution.
If you run bench update the next time, you will see the same message like before:
Cannot proceed with update: You have local changes in app "erpnext" that are not committed.
Here are your choices:
1. Merge the erpnext app manually with "git pull" / "git pull --rebase" and fix conflicts.
1. Temporarily remove your changes with "git stash" or discard them completely
with "bench update --reset" or for individual repositries "git reset --hard"
2. If your changes are helpful for others, send in a pull request via GitHub and
wait for them to be merged in the core.
Thank for your feedback.
I know it a workaround. Still look for a solution.
I am close to a solution. Actually, I found a solution already.
- Go to the directory, either frappe-bench/apps/erpnext or frappe-bench/apps/frappe
- Type
git status
- Check the list of the untracked files. There might be files, which do or don’t belong there.
- Type
git add --all
to track those files - Type
git stash
- Run
bench update
- It should run successfully, if not, start over with 1. and repeat for the other directory
On this point you’re already done, but you may want to apply your changes, which you stashed. So continue with 8. if you stashed things, which you consider important.
8 . While you’re still in the folder, either frappe-bench/apps/erpnext or frappe-bench/apps/frappe type git stash apply
Your changes will be applied again, but on the next run, you will run into the same issue like you had before.
So 1. - 7. was the solution we were looking for.
Maybe someone can tell, why “print formats” and “support/web forms” are breaking bench update. These are my files:
erpnext/accounts/print_format/nameofsomeguy/__init__.py
erpnext/accounts/print_format/nameofsomeguy/nameofsomeguy.json
erpnext/accounts/print_format/nameofsomeotherguy/__init__.py
erpnext/accounts/print_format/nameofsomeotherguy/nameofsomeotherguy.json
erpnext/support/web_form/contact/__init__.py
erpnext/support/web_form/contact/contact.js
erpnext/support/web_form/contact/contact.json
erpnext/support/web_form/contact/contact.py
You’re welcome. I am happy to help!
than k you very much. it working for me.
thank you very much, it work for me.