Please tell me steps to upgrade ERPNext to v10. Assume that I don’t know how to work on linux & I have SSH screen.
Running this commands should work just fine.
cd /home/frappe/frappe-bench
bench update
That’s all.
also use su frappe, if you haven’t added a password to the frappe users type down in terminal passwd frappe and chose the password. let me know if you have any issues
BUT FIRST MAKE A BACKUP of the ERPNEXT
I ran bench update and it’s throwing the following error:
admin@homework-erp:/home/frappe/frappe-bench$ sudo bench update
INFO:bench.utils:updating bench
INFO:bench.utils:git pull
Updating 9c15073…b3bc4a6
error: Your local changes to the following files would be overwritten by merge:
bench/commands/install.py
playbooks/prerequisites/roles/fail2ban/defaults/main.yml
playbooks/prerequisites/roles/fail2ban/templates/nginx-proxy-jail.conf.j2
Please, commit your changes or stash them before you can merge.
Aborting
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 11, in
load_entry_point(‘bench’, ‘console_scripts’, ‘bench’)()
File “/home/frappe/.bench/bench/cli.py”, line 40, in cli
bench_command()
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 722, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 697, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 535, in invoke
return callback(*args, **kwargs)
File “/home/frappe/.bench/bench/commands/update.py”, line 34, in update
update_bench()
File “/home/frappe/.bench/bench/utils.py”, line 256, in update_bench
exec_cmd(“git pull”, cwd=cwd)
File “/home/frappe/.bench/bench/utils.py”, line 140, in exec_cmd
raise CommandFailedError(cmd)
bench.utils.CommandFailedError: git pull
admin@homework-erp:/home/frappe/frappe-bench$
i stashed all in frappe and erpnext folder but its still giving me the error.
to first commit the changes then try bench update.
Like i said, i already stashed the changes in frappe and erpnext folder:
admin@homework-erp:/home/frappe/frappe-bench/apps/frappe$ git status
On branch master
Your branch is up-to-date with ‘upstream/master’.
nothing to commit, working directory clean
admin@homework-erp:/home/frappe/frappe-bench/apps/frappe$
admin@homework-erp:/home/frappe/frappe-bench/apps/erpnext$ git status
On branch master
Your branch is up-to-date with ‘upstream/master’.
nothing to commit, working directory clean
admin@homework-erp:/home/frappe/frappe-bench/apps/erpnext$
Unless there are other changes not committed or stashed which i don’t know about.
in bench you have not commited the changes.
FWIW - here is a good upgrade procedure that includes things like backup snapshots and such
Fixed the problem! Thanks!