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

Thanks,
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
INFO:bench.app:pulling frappe
From https://github.com/frappe/frappe

  • branch master -> FETCH_HEAD
    Updating 1bc35a6…7dbe38e
    error: Your local changes to the following files would be overwritten by merge:
    frappe/init.py
    frappe/integration_broker/doctype/integration_service/integration_service.js
    frappe/integrations/doctype/dropbox_settings/dropbox_settings.js
    frappe/integrations/doctype/dropbox_settings/dropbox_settings.json
    frappe/integrations/doctype/dropbox_settings/dropbox_settings.py
    frappe/public/js/frappe/ui/tree.js
    frappe/website/doctype/web_form/web_form.py
    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 716, in call
    return self.main(*args, **kwargs)
    File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 696, in main
    rv = self.invoke(ctx)
    File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 1060, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
    File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 889, in invoke
    return ctx.invoke(self.callback, **ctx.params)
    File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 534, in invoke
    return callback(*args, **kwargs)
    File “/home/frappe/.bench/bench/commands/update.py”, 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/update.py”, line 78, in _update
    pull_all_apps(bench_path=bench_path, reset=reset)
    File “/home/frappe/.bench/bench/app.py”, 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/utils.py”, line 127, in exec_cmd
    raise CommandFailedError(cmd)
    bench.utils.CommandFailedError: git pull upstream master

hi,

please check this.
commit the changes.

Thanks

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

Hi,

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

Thanks

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

*** Please tell me who you are.

Run

git config --global user.email "you@example.com"
git config --global user.name “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 user.email "you@example.com"
git config --global user.name “Your Name”
[/quote]

github email and username.

Thanks

@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 user.email "you@example.com"
frappe@ERP:~/frappe-bench$ git config --global user.name “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.