Bench Update Does Not Response

Please advice on the below issue,

root@ERP:~# bench update
You should not run this command as root

Should I reset frappe password to proceed?
What’s next regarding github?

hello @vCentre,
try this command for change the user through using this command “sudo su frappe”
and not to run as a root.

please try to run bench update go to frappe-bench folder and try it.

Git for Beginners

Sagar Shiragawakar

Please advice,
the below update command responds with “Already up-to-date” while it is not.

frappe@ERP:~/frappe-bench$ bench update
INFO:bench.utils:updating bench
Already up-to-date.
Requirement already satisfied: Pillow in ./env/lib/python2.7/site-packages frappe
From GitHub - frappe/frappe: Low code web framework for real world applications, in Python and Javascript

  • branch master → FETCH_HEAD
    Updating 1bc35a6…7dbe38e
    error: Your local changes to the following files would be overwritten by merge:
    Please, commit your changes or stash them before you can merge.
    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/”, line 40, in cli
    File “/usr/local/lib/python2.7/dist-packages/click/”, line 716, in call
    return self.main(*args, **kwargs)
    File “/usr/local/lib/python2.7/dist-packages/click/”, line 696, in main
    rv = self.invoke(ctx)
    File “/usr/local/lib/python2.7/dist-packages/click/”, line 1060, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
    File “/usr/local/lib/python2.7/dist-packages/click/”, line 889, in invoke
    return ctx.invoke(self.callback, **ctx.params)
    File “/usr/local/lib/python2.7/dist-packages/click/”, line 534, in invoke
    return callback(*args, **kwargs)
    File “/home/frappe/.bench/bench/commands/”, line 62, in update
    _update(pull, patch, build, bench, auto, restart_supervisor, requirements, no_backup, upgrade, force=force, reset=reset)
    File “/home/frappe/.bench/bench/commands/”, line 78, in _update
    pull_all_apps(bench_path=bench_path, reset=reset)
    File “/home/frappe/.bench/bench/”, line 146, in pull_all_apps
    remote=remote, branch=get_current_branch(app, bench_path=bench_path)), cwd=app_dir)
    File “/home/frappe/.bench/bench/”, line 127, in exec_cmd
    raise CommandFailedError(cmd)
    bench.utils.CommandFailedError: git pull upstream master


please check this.
commit the changes.


Please hint

frappe@ERP:~/frappe-bench$ git commit
fatal: Not a git repository (or any parent up to mount point /home)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).

git commit WHAT


this file changes you have to save.
use following command
got to apps/frappe folder
git add .
git commit -m"update error"


Should I signup for git account? or supposed to pull from erpnext account?!

*** Please tell me who you are.


git config --global “
git config --global “Your Name”

to set your account’s default identity.
Omit --global to set the identity only in this repository.

fatal: unable to auto-detect email address (got ‘frappe@ERPS.(none)’)

yes and set the [quote=“vCentre, post:7, topic:18342”]
git config --global “
git config --global “Your Name”

github email and username.


@sagar Special thanks for your kind support

I repeated the same for erpnext app as i found only frappe framework got updated.

Well, to summarize the process assuming fresh install is there,

root@ERP:~# sudo su frappe
frappe@ERP:/root$ cd /home/frappe/frappe-bench
frappe@ERP:~/frappe-bench$ git config --global “
frappe@ERP:~/frappe-bench$ git config --global “Your Name”
frappe@ERP:~/frappe-bench$ bench update
for frappe App
frappe@ERP:~/frappe-bench$ cd /home/frappe/frappe-bench/apps/frappe
frappe@ERP:~/frappe-bench$ git add .
frappe@ERP:~/frappe-bench$ git commit -m"update error"
for erpnext App
frappe@ERP:~/frappe-bench$ cd /home/frappe/frappe-bench/apps/erpnext
frappe@ERP:~/frappe-bench$ git add .
frappe@ERP:~/frappe-bench$ git commit -m"update error"

Please correct.