Bench update error (Updating. We will be back in a few moments... )

Hi
please help me i am getting this error (Updating. We will be back in a few moments… ) after resent updates.
this is my live server.

chandu@myerp:~/eipl$ cd frappe-bench/
chandu@myerp:~/eipl/frappe-bench$ bench update --bench
Already up-to-date.
Already up-to-date.
From https://github.com/frappe/shopping-cart

  • branch develop -> FETCH_HEAD
    Already up-to-date.
    From https://github.com/frappe/erpnext
  • branch develop -> FETCH_HEAD
    Updating 80f8b7b…5c7f0bc
    Fast-forward
    …/chart_of_accounts/chart_of_accounts.py | 11 +++±—
    …/report/general_ledger/general_ledger.js | 24 ++++++++++++++++
    …/report/general_ledger/general_ledger.py | 31 +++++++++++++++±----
    …/doctype/newsletter_list/newsletter_list.py | 4 +±
    erpnext/setup/page/setup_wizard/emails/email-1.md | 15 ++++±----
    erpnext/setup/page/setup_wizard/emails/email-2.md | 8 +±—
    6 files changed, 66 insertions(+), 27 deletions(-)
    From https://github.com/frappe/frappe
  • branch master -> FETCH_HEAD
    Updating b288a2e…19ce1a7
    Fast-forward
    frappe/version.py | 2 ±
    frappe/hooks.py | 2 ±
    frappe/public/css/font/noto_sans/noto_sans.css | 24 +++++++++±----------
    frappe/public/js/frappe/misc/number_format.js | 9 ++++±–
    …/templates/print_formats/standard_macros.html | 2 ±
    frappe/utils/init.py | 5 +++++
    frappe/utils/file_manager.py | 4 ++++
    frappe/website/utils.py | 2 ±
    frappe/website/website_generator.py | 9 +++±—
    requirements.txt | 2 ±
    setup.py | 2 ±
    11 files changed, 37 insertions(+), 26 deletions(-)
    database backup taken - ./envirosyz.com/private/backups/20150421_38851533_database.sql.gz - on 2015-04-21 10:01:28.839606
    database backup taken - ./eenergy.in/private/backups/20150421_45505894_database.sql.gz - on 2015-04-21 10:01:29.884362

Running latest for envirosyz.com

Executing execute:frappe.permissions.reset_perms(“GL Entry”) #2014-06-09 in envirosyz.com (envirosyz.com)
Traceback (most recent call last):
File “/home/chandu/eipl/frappe-bench/env/bin/frappe”, line 9, in
load_entry_point(‘frappe==4.1.0’, ‘console_scripts’, ‘frappe’)()
File “/home/chandu/eipl/frappe-bench/apps/frappe/frappe/cli.py”, line 39, in main
ret = run(fn, args)
File “/home/chandu/eipl/frappe-bench/apps/frappe/frappe/cli.py”, line 83, in run
out = globals().get(fn)(**args)
File “/home/chandu/eipl/frappe-bench/apps/frappe/frappe/cli.py”, line 67, in new_fn
return fn(*args, **new_kwargs)
File “/home/chandu/eipl/frappe-bench/apps/frappe/frappe/cli.py”, line 431, in latest
frappe.modules.patch_handler.run_all()
File “/home/chandu/eipl/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 25, in run_all
if not run_single(patchmodule = patch):
File “/home/chandu/eipl/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 50, in run_single
return execute_patch(patchmodule, method, methodargs)
File “/home/chandu/eipl/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 64, in execute_patch
exec patchmodule.split(“execute:”)[1] in globals()
File “”, line 1, in
AttributeError: ‘module’ object has no attribute ‘permissions’
Error: None
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 9, in
load_entry_point(‘bench==0.1’, ‘console_scripts’, ‘bench’)()
File “/home/chandu/bench-repo/bench/cli.py”, line 55, in cli
bench()
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 610, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 590, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 936, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 782, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 416, in invoke
return callback(*args, **kwargs)
File “/home/chandu/bench-repo/bench/cli.py”, line 247, in update
patch_sites()
File “/home/chandu/bench-repo/bench/utils.py”, line 116, in patch_sites
exec_cmd("{frappe} --latest all".format(frappe=get_frappe(bench=bench)), cwd=os.path.join(bench, ‘sites’))
File “/home/chandu/bench-repo/bench/utils.py”, line 72, in exec_cmd
subprocess.check_call(cmd, cwd=cwd, shell=True)
File “/usr/lib/python2.7/subprocess.py”, line 540, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘/home/chandu/eipl/frappe-bench/env/bin/frappe --latest all’ returned non-zero exit status 1

This is a really old patch. Can you try executing again?

HI Mehta
This is output of re executing
and i tried bench update --pull & patch & build but not resoled my error

chandu@myerp:~/eipl/frappe-bench$ bench update --upgrade
Already up-to-date.
From https://github.com/frappe/shopping-cart

  • branch develop -> FETCH_HEAD
    Already up-to-date.
    From https://github.com/frappe/erpnext
  • branch develop -> FETCH_HEAD
    Already up-to-date.
    From https://github.com/frappe/frappe
  • branch master -> FETCH_HEAD
    Already up-to-date.
    database backup taken - ./envirosyz.com/private/backups/20150422_28784330_database.sql.gz - on 2015-04-22 22:55:45.855903
    database backup taken - ./eenergy.in/private/backups/20150422_86674614_database.sql.gz - on 2015-04-22 22:55:46.959110

Running latest for envirosyz.com

Executing execute:frappe.permissions.reset_perms(“GL Entry”) #2014-06-09 in envirosyz.com (envirosyz.com)
Traceback (most recent call last):
File “/home/chandu/eipl/frappe-bench/env/bin/frappe”, line 9, in
load_entry_point(‘frappe==4.1.0’, ‘console_scripts’, ‘frappe’)()
File “/home/chandu/eipl/frappe-bench/apps/frappe/frappe/cli.py”, line 39, in main
ret = run(fn, args)
File “/home/chandu/eipl/frappe-bench/apps/frappe/frappe/cli.py”, line 83, in run
out = globals().get(fn)(**args)
File “/home/chandu/eipl/frappe-bench/apps/frappe/frappe/cli.py”, line 67, in new_fn
return fn(*args, **new_kwargs)
File “/home/chandu/eipl/frappe-bench/apps/frappe/frappe/cli.py”, line 431, in latest
frappe.modules.patch_handler.run_all()
File “/home/chandu/eipl/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 25, in run_all
if not run_single(patchmodule = patch):
File “/home/chandu/eipl/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 50, in run_single
return execute_patch(patchmodule, method, methodargs)
File “/home/chandu/eipl/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 64, in execute_patch
exec patchmodule.split(“execute:”)[1] in globals()
File “”, line 1, in
AttributeError: ‘module’ object has no attribute ‘permissions’
Error: None
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 9, in
load_entry_point(‘bench==0.1’, ‘console_scripts’, ‘bench’)()
File “/home/chandu/bench-repo/bench/cli.py”, line 55, in cli
bench()
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 610, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 590, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 936, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 782, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 416, in invoke
return callback(*args, **kwargs)
File “/home/chandu/bench-repo/bench/cli.py”, line 247, in update
patch_sites()
File “/home/chandu/bench-repo/bench/utils.py”, line 116, in patch_sites
exec_cmd("{frappe} --latest all".format(frappe=get_frappe(bench=bench)), cwd=os.path.join(bench, ‘sites’))
File “/home/chandu/bench-repo/bench/utils.py”, line 72, in exec_cmd
subprocess.check_call(cmd, cwd=cwd, shell=True)
File “/usr/lib/python2.7/subprocess.py”, line 540, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘/home/chandu/eipl/frappe-bench/env/bin/frappe --latest all’ returned non-zero exit status 1
chandu@myerp:~/eipl/frappe-bench$

Really hard to guess what is going wrong unless we can replicate it. Can you start a fresh bench and upgrade?

hi mehta
i have two errors

  1. mariadb root password (i have root password when i installed lost year and saved in .txt on my local pc but it is not working when i restor my databae to new setup, I WANT TO KNOW ROOT PASS WICH IS STORED IN ERPNEXT SETUP PLEASE HELP)

  2. my droplet have snapshot just now i restored to 3/27/15 (lost 27 days data) now it is the version ERPNext: v4.24.0 when i update showing " bench switch-to-master "
    after this command giveng this error
    please help in this Reg
    i installed fresh bench but my root db password is not working to restore.

chandu@myerp:~/eipl/frappe-bench$ bench switch-to-master
M ci/fix-mariadb.sh
M frappe/cli.py
M frappe/core/doctype/letter_head/letter_head.py
M frappe/handler.py
M frappe/installer.py
M frappe/public/css/font/fontawesome-webfont.eot
M frappe/public/css/font/fontawesome-webfont.svg
M frappe/public/css/font/fontawesome-webfont.ttf
M frappe/public/css/font/fontawesome-webfont.woff
M frappe/public/css/font/noto_sans/NotoSans-Bold-webfont.eot
M frappe/public/css/font/noto_sans/NotoSans-Bold-webfont.svg
M frappe/public/css/font/noto_sans/NotoSans-Bold-webfont.ttf
M frappe/public/css/font/noto_sans/NotoSans-Bold-webfont.woff
M frappe/public/css/font/noto_sans/NotoSans-BoldItalic-webfont.eot
M frappe/public/css/font/noto_sans/NotoSans-BoldItalic-webfont.svg
M frappe/public/css/font/noto_sans/NotoSans-BoldItalic-webfont.ttf
M frappe/public/css/font/noto_sans/NotoSans-BoldItalic-webfont.woff
M frappe/public/css/font/noto_sans/NotoSans-Italic-webfont.eot
M frappe/public/css/font/noto_sans/NotoSans-Italic-webfont.svg
M frappe/public/css/font/noto_sans/NotoSans-Italic-webfont.ttf
M frappe/public/css/font/noto_sans/NotoSans-Italic-webfont.woff
M frappe/public/css/font/noto_sans/NotoSans-Regular-webfont.eot
M frappe/public/css/font/noto_sans/NotoSans-Regular-webfont.svg
M frappe/public/css/font/noto_sans/NotoSans-Regular-webfont.ttf
M frappe/public/css/font/noto_sans/NotoSans-Regular-webfont.woff
M frappe/public/css/octicons/LICENSE.txt
M frappe/public/css/octicons/README.md
M frappe/public/css/octicons/octicons-local.ttf
M frappe/public/css/octicons/octicons.css
M frappe/public/css/octicons/octicons.eot
M frappe/public/css/octicons/octicons.less
M frappe/public/css/octicons/octicons.svg
M frappe/public/css/octicons/octicons.ttf
M frappe/public/css/octicons/octicons.woff
M frappe/public/css/octicons/sprockets-octicons.scss
M frappe/public/images/ui/random-polygons.jpg
M frappe/public/js/lib/Chart.min.js
M frappe/public/js/lib/bootstrap.min.js
M frappe/public/js/lib/flot/excanvas.js
M frappe/public/js/lib/flot/excanvas.min.js
M frappe/public/js/lib/flot/jquery.colorhelpers.js
M frappe/public/js/lib/flot/jquery.flot.crosshair.js
M frappe/public/js/lib/flot/jquery.flot.fillbetween.js
M frappe/public/js/lib/flot/jquery.flot.image.js
M frappe/public/js/lib/flot/jquery.flot.js
M frappe/public/js/lib/flot/jquery.flot.navigate.js
M frappe/public/js/lib/flot/jquery.flot.pie.js
M frappe/public/js/lib/flot/jquery.flot.resize.js
M frappe/public/js/lib/flot/jquery.flot.selection.js
M frappe/public/js/lib/flot/jquery.flot.stack.js
M frappe/public/js/lib/flot/jquery.flot.symbol.js
M frappe/public/js/lib/flot/jquery.flot.threshold.js
M frappe/public/js/lib/fullcalendar/fullcalendar.css
M frappe/public/js/lib/fullcalendar/fullcalendar.js
M frappe/public/js/lib/fullcalendar/fullcalendar.min.js
M frappe/public/js/lib/fullcalendar/fullcalendar.print.css
M frappe/public/js/lib/fullcalendar/gcal.js
M frappe/public/js/lib/jquery/bootstrap_theme/images/ui-bg_flat_0_aaaaaa_40x100.png
M frappe/public/js/lib/jquery/bootstrap_theme/images/ui-bg_glass_55_fbf9ee_1x400.png
M frappe/public/js/lib/jquery/bootstrap_theme/images/ui-bg_glass_65_ffffff_1x400.png
M frappe/public/js/lib/jquery/bootstrap_theme/images/ui-bg_glass_75_dadada_1x400.png
M frappe/public/js/lib/jquery/bootstrap_theme/images/ui-bg_glass_75_e6e6e6_1x400.png
M frappe/public/js/lib/jquery/bootstrap_theme/images/ui-bg_glass_75_ffffff_1x400.png
M frappe/public/js/lib/jquery/bootstrap_theme/images/ui-bg_highlight-soft_75_cccccc_1x100.png
M frappe/public/js/lib/jquery/bootstrap_theme/images/ui-bg_inset-soft_95_fef1ec_1x100.png
M frappe/public/js/lib/jquery/bootstrap_theme/images/ui-icons_222222_256x240.png
M frappe/public/js/lib/jquery/bootstrap_theme/images/ui-icons_2e83ff_256x240.png
M frappe/public/js/lib/jquery/bootstrap_theme/images/ui-icons_454545_256x240.png
M frappe/public/js/lib/jquery/bootstrap_theme/images/ui-icons_888888_256x240.png
M frappe/public/js/lib/jquery/bootstrap_theme/images/ui-icons_cd0a0a_256x240.png
M frappe/public/js/lib/jquery/bootstrap_theme/images/ui-icons_f6cf3b_256x240.png
M frappe/public/js/lib/jquery/bootstrap_theme/jquery-ui.css
M frappe/public/js/lib/jquery/jquery.ui.min.js
M frappe/public/js/lib/slickgrid/jquery.event.drag.js
M frappe/pythonrc.py
M frappe/utils/email_lib/html2text.py
Already on ‘master’
Your branch is up-to-date with ‘upstream/master’.
error: pathspec ‘master’ did not match any file(s) known to git.
Error: None
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 9, in
load_entry_point(‘bench==0.1’, ‘console_scripts’, ‘bench’)()
File “/home/chandu/bench-repo/bench/cli.py”, line 55, in cli
bench()
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 610, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 590, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 936, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 782, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 416, in invoke
return callback(*args, **kwargs)
File “/home/chandu/bench-repo/bench/cli.py”, line 293, in _switch_to_master
switch_to_master()
File “/home/chandu/bench-repo/bench/app.py”, line 150, in switch_to_master
switch_branch(‘master’, apps=apps, bench=bench)
File “/home/chandu/bench-repo/bench/app.py”, line 147, in switch_branch
exec_cmd(“git checkout {branch}”.format(branch=branch), cwd=app_dir)
File “/home/chandu/bench-repo/bench/utils.py”, line 72, in exec_cmd
subprocess.check_call(cmd, cwd=cwd, shell=True)
File “/usr/lib/python2.7/subprocess.py”, line 540, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘git checkout master’ returned non-zero exit status 1

The password should have been printed when you ran the install script. It should still be available at /root/frappe_passwords.txt or ~/frappe_passwords.txt if available.

If you’ve lost the root password, you can reset it, https://www.google.co.in/search?q=mysql+reset+root+password

bench switch-to-master is a new command. You can run a git pull in ~/bench-repo and try again.

Also, please get rid of any changes in code you’ve done.

hi vyas
i tried in bench-repo$git pull and frappe-bench$ bench switch-to-master
Given error please help

chandu@myerp:~/eipl/frappe-bench$ bench switch-to-master
M ci/fix-mariadb.sh
M frappe/cli.py
M frappe/core/doctype/letter_head/letter_head.py
M frappe/handler.py
M frappe/installer.py
M frappe/public/css/font/fontawesome-webfont.eot
M frappe/public/css/font/fontawesome-webfont.svg
M frappe/public/css/font/fontawesome-webfont.ttf
M frappe/public/css/font/fontawesome-webfont.woff
M frappe/public/css/font/noto_sans/NotoSans-Bold-webfont.eot
M frappe/public/css/font/noto_sans/NotoSans-Bold-webfont.svg
M frappe/public/css/font/noto_sans/NotoSans-Bold-webfont.ttf
M frappe/public/css/font/noto_sans/NotoSans-Bold-webfont.woff
M frappe/public/css/font/noto_sans/NotoSans-BoldItalic-webfont.eot
M frappe/public/css/font/noto_sans/NotoSans-BoldItalic-webfont.svg
M frappe/public/css/font/noto_sans/NotoSans-BoldItalic-webfont.ttf
M frappe/public/css/font/noto_sans/NotoSans-BoldItalic-webfont.woff
M frappe/public/css/font/noto_sans/NotoSans-Italic-webfont.eot
M frappe/public/css/font/noto_sans/NotoSans-Italic-webfont.svg
M frappe/public/css/font/noto_sans/NotoSans-Italic-webfont.ttf
M frappe/public/css/font/noto_sans/NotoSans-Italic-webfont.woff
M frappe/public/css/font/noto_sans/NotoSans-Regular-webfont.eot
M frappe/public/css/font/noto_sans/NotoSans-Regular-webfont.svg
M frappe/public/css/font/noto_sans/NotoSans-Regular-webfont.ttf
M frappe/public/css/font/noto_sans/NotoSans-Regular-webfont.woff
M frappe/public/css/octicons/LICENSE.txt
M frappe/public/css/octicons/README.md
M frappe/public/css/octicons/octicons-local.ttf
M frappe/public/css/octicons/octicons.css
M frappe/public/css/octicons/octicons.eot
M frappe/public/css/octicons/octicons.less
M frappe/public/css/octicons/octicons.svg
M frappe/public/css/octicons/octicons.ttf
M frappe/public/css/octicons/octicons.woff
M frappe/public/css/octicons/sprockets-octicons.scss
M frappe/public/images/ui/random-polygons.jpg
M frappe/public/js/lib/Chart.min.js
M frappe/public/js/lib/bootstrap.min.js
M frappe/public/js/lib/flot/excanvas.js
M frappe/public/js/lib/flot/excanvas.min.js
M frappe/public/js/lib/flot/jquery.colorhelpers.js
M frappe/public/js/lib/flot/jquery.flot.crosshair.js
M frappe/public/js/lib/flot/jquery.flot.fillbetween.js
M frappe/public/js/lib/flot/jquery.flot.image.js
M frappe/public/js/lib/flot/jquery.flot.js
M frappe/public/js/lib/flot/jquery.flot.navigate.js
M frappe/public/js/lib/flot/jquery.flot.pie.js
M frappe/public/js/lib/flot/jquery.flot.resize.js
M frappe/public/js/lib/flot/jquery.flot.selection.js
M frappe/public/js/lib/flot/jquery.flot.stack.js
M frappe/public/js/lib/flot/jquery.flot.symbol.js
M frappe/public/js/lib/flot/jquery.flot.threshold.js
M frappe/public/js/lib/fullcalendar/fullcalendar.css
M frappe/public/js/lib/fullcalendar/fullcalendar.js
M frappe/public/js/lib/fullcalendar/fullcalendar.min.js
M frappe/public/js/lib/fullcalendar/fullcalendar.print.css
M frappe/public/js/lib/fullcalendar/gcal.js
M frappe/public/js/lib/jquery/bootstrap_theme/images/ui-bg_flat_0_aaaaaa_40x100.png
M frappe/public/js/lib/jquery/bootstrap_theme/images/ui-bg_glass_55_fbf9ee_1x400.png
M frappe/public/js/lib/jquery/bootstrap_theme/images/ui-bg_glass_65_ffffff_1x400.png
M frappe/public/js/lib/jquery/bootstrap_theme/images/ui-bg_glass_75_dadada_1x400.png
M frappe/public/js/lib/jquery/bootstrap_theme/images/ui-bg_glass_75_e6e6e6_1x400.png
M frappe/public/js/lib/jquery/bootstrap_theme/images/ui-bg_glass_75_ffffff_1x400.png
M frappe/public/js/lib/jquery/bootstrap_theme/images/ui-bg_highlight-soft_75_cccccc_1x100.png
M frappe/public/js/lib/jquery/bootstrap_theme/images/ui-bg_inset-soft_95_fef1ec_1x100.png
M frappe/public/js/lib/jquery/bootstrap_theme/images/ui-icons_222222_256x240.png
M frappe/public/js/lib/jquery/bootstrap_theme/images/ui-icons_2e83ff_256x240.png
M frappe/public/js/lib/jquery/bootstrap_theme/images/ui-icons_454545_256x240.png
M frappe/public/js/lib/jquery/bootstrap_theme/images/ui-icons_888888_256x240.png
M frappe/public/js/lib/jquery/bootstrap_theme/images/ui-icons_cd0a0a_256x240.png
M frappe/public/js/lib/jquery/bootstrap_theme/images/ui-icons_f6cf3b_256x240.png
M frappe/public/js/lib/jquery/bootstrap_theme/jquery-ui.css
M frappe/public/js/lib/jquery/jquery.ui.min.js
M frappe/public/js/lib/slickgrid/jquery.event.drag.js
M frappe/pythonrc.py
M frappe/utils/email_lib/html2text.py
Already on ‘master’
Your branch is behind ‘upstream/master’ by 5 commits, and can be fast-forwarded.
(use “git pull” to update your local branch)
error: pathspec ‘master’ did not match any file(s) known to git.
Error: None
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 9, in
load_entry_point(‘bench==0.1’, ‘console_scripts’, ‘bench’)()
File “/home/chandu/bench-repo/bench/cli.py”, line 55, in cli
bench()
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 664, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 644, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 991, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 837, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 464, in invoke
return callback(*args, **kwargs)
File “/home/chandu/bench-repo/bench/cli.py”, line 293, in _switch_to_master
switch_to_master()
File “/home/chandu/bench-repo/bench/app.py”, line 150, in switch_to_master
switch_branch(‘master’, apps=apps, bench=bench)
File “/home/chandu/bench-repo/bench/app.py”, line 147, in switch_branch
exec_cmd(“git checkout {branch}”.format(branch=branch), cwd=app_dir)
File “/home/chandu/bench-repo/bench/utils.py”, line 72, in exec_cmd
subprocess.check_call(cmd, cwd=cwd, shell=True)
File “/usr/lib/python2.7/subprocess.py”, line 540, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘git checkout master’ returned non-zero exit status 1

cd apps/frappe
git config --add remote.upstream.fetch '+refs/heads/*:refs/remotes/upstream/*
git fetch upstream
cd -
cd apps/erpnext
git config --add remote.upstream.fetch '+refs/heads/*:refs/remotes/upstream/*
git fetch upstream
cd -

Try this

Hi VYas
this is output for commandeers

chandu@myerp:~/eipl/frappe-bench/apps/erpnext$ git fetch upstream
fatal: Invalid refspec ‘+refs/heads/:refs/remotes/upstream/
git fetch upstream
cd -
cd apps/erpnext
git config --add remote.upstream.fetch +refs/heads/:refs/remotes/upstream/
chandu@myerp:~/eipl/frappe-bench/apps/erpnext$ cd -
/home/chandu/eipl/frappe-bench
chandu@myerp:~/eipl/frappe-bench$

IN frappe-bench
chandu@myerp:~/eipl/frappe-bench$ bench switch-to-master
fatal: Invalid refspec ‘+refs/heads/:refs/remotes/upstream/
git fetch upstream
cd -
cd apps/erpnext
git config --add remote.upstream.fetch +refs/heads/:refs/remotes/upstream/
Error: None
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 9, in
load_entry_point(‘bench==0.1’, ‘console_scripts’, ‘bench’)()
File “/home/chandu/bench-repo/bench/cli.py”, line 55, in cli
bench()
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 610, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 590, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 936, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 782, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 416, in invoke
return callback(*args, **kwargs)
File “/home/chandu/bench-repo/bench/cli.py”, line 293, in _switch_to_master
switch_to_master()
File “/home/chandu/bench-repo/bench/app.py”, line 150, in switch_to_master
switch_branch(‘master’, apps=apps, bench=bench)
File “/home/chandu/bench-repo/bench/app.py”, line 146, in switch_branch
exec_cmd(“git fetch upstream”, cwd=app_dir)
File “/home/chandu/bench-repo/bench/utils.py”, line 72, in exec_cmd
subprocess.check_call(cmd, cwd=cwd, shell=True)
File “/usr/lib/python2.7/subprocess.py”, line 540, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘git fetch upstream’ returned non-zero exit status 128

I have exaclty the same errors

@talluri_chandu maybe @kanhaiya can help? Ask him for a quote

Hi VYas
“OSError: [Errno 2] No such file or directory: './apps/frappe”
after commit getting error in :~/bench-repo

And git push origin master URL returned error: 403
chandu@myerp:~/bench-repo$ git push origin master
Username for ‘https://github.com’: chandutalluri
Password for ‘https://chandutalluri@github.com’:
remote: Permission to frappe/bench.git denied to chandutalluri.
fatal: unable to access ‘https://github.com/frappe/bench/’: The requested URL returned error: 403
chandu@myerp:~/bench-repo$ bench switch-to-master

Switched to master
Please run bench update --patch to be safe from any differences in database schema
chandu@myerp:~/bench-repo$ bench update --patch
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 9, in
load_entry_point(‘bench==0.1’, ‘console_scripts’, ‘bench’)()
File “/home/chandu/bench-repo/bench/cli.py”, line 55, in cli
bench()
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 610, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 590, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 936, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 782, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 416, in invoke
return callback(*args, **kwargs)
File “/home/chandu/bench-repo/bench/cli.py”, line 218, in update
version_upgrade = is_version_upgrade()
File “/home/chandu/bench-repo/bench/app.py”, line 97, in is_version_upgrade
fetch_upstream(frappe_dir)
File “/home/chandu/bench-repo/bench/app.py”, line 123, in fetch_upstream
return exec_cmd(“git fetch upstream”, cwd=repo_dir)
File “/home/chandu/bench-repo/bench/utils.py”, line 72, in exec_cmd
subprocess.check_call(cmd, cwd=cwd, shell=True)
File “/usr/lib/python2.7/subprocess.py”, line 535, in check_call
retcode = call(*popenargs, **kwargs)
File “/usr/lib/python2.7/subprocess.py”, line 522, in call
return Popen(*popenargs, **kwargs).wait()
File “/usr/lib/python2.7/subprocess.py”, line 710, in init
errread, errwrite)
File “/usr/lib/python2.7/subprocess.py”, line 1327, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory: ‘./apps/frappe’

same error after running

bench update

Updating. We will be back in a few moments…

want to restart and be able to use the system again, please

@talluri_chandu You need to run this from frappe-bench folder not bench-repo

Hi Rushabh Mehta
I tried in frappe-bench but with no luck
but today is some changes in “bench update”
and one more thing i restored my snapshot to my lost working condition and now mariadb V 5 to 10 upgraded and my root db password reseated and working good.
And lost thing i am up dating V4 regularly but it was stooped at ERPNext: v4.24.0 and Frappe Framework: v4.13.1 and Shopping Cart: v0.7.0 what is the latest version (i assumed V4 stoped and V5 stated)…?
please help to update my working V4 bench to update normal.

chandu@myerp:~/eipl/frappe-bench$ bench update
remote: Counting objects: 3, done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (3/3), done.
From https://github.com/frappe/bench
4999929…6b5c9db master -> origin/master
Updating 4999929…6b5c9db
Fast-forward
README.md | 10 +++±-----
1 file changed, 4 insertions(+), 6 deletions(-)
fatal: Invalid refspec ‘+refs/heads/:refs/remotes/upstream/
git fetch upstream
cd -
cd apps/erpnext
git config --add remote.upstream.fetch +refs/heads/:refs/remotes/upstream/
Error: None
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 9, in
load_entry_point(‘bench==0.1’, ‘console_scripts’, ‘bench’)()
File “/home/chandu/bench-repo/bench/cli.py”, line 55, in cli
bench()
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 610, in call
return self.main(args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 590, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 936, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 782, in invoke
return ctx.invoke(self.callback, *ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 416, in invoke
return callback(args, **kwargs)
File “/home/chandu/bench-repo/bench/cli.py”, line 218, in update
version_upgrade = is_version_upgrade()
File “/home/chandu/bench-repo/bench/app.py”, line 97, in is_version_upgrade
fetch_upstream(frappe_dir)
File “/home/chandu/bench-repo/bench/app.py”, line 123, in fetch_upstream
return exec_cmd(“git fetch upstream”, cwd=repo_dir)
File “/home/chandu/bench-repo/bench/utils.py”, line 72, in exec_cmd
subprocess.check_call(cmd, cwd=cwd, shell=True)
File “/usr/lib/python2.7/subprocess.py”, line 540, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘git fetch upstream’ returned non-zero exit status 128

chandu@myerp:~/eipl/frappe-bench$
chandu@myerp:~/eipl/frappe-bench$ bench switch-to-master
fatal: Invalid refspec '+refs/heads/
:refs/remotes/upstream/

git fetch upstream
cd -
cd apps/erpnext
git config --add remote.upstream.fetch +refs/heads/
:refs/remotes/upstream/*’
Error: None
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 9, in
load_entry_point(‘bench==0.1’, ‘console_scripts’, ‘bench’)()
File “/home/chandu/bench-repo/bench/cli.py”, line 55, in cli
bench()
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 610, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 590, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 936, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 782, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 416, in invoke
return callback(*args, **kwargs)
File “/home/chandu/bench-repo/bench/cli.py”, line 293, in _switch_to_master
switch_to_master()
File “/home/chandu/bench-repo/bench/app.py”, line 150, in switch_to_master
switch_branch(‘master’, apps=apps, bench=bench)
File “/home/chandu/bench-repo/bench/app.py”, line 146, in switch_branch
exec_cmd(“git fetch upstream”, cwd=app_dir)
File “/home/chandu/bench-repo/bench/utils.py”, line 72, in exec_cmd
subprocess.check_call(cmd, cwd=cwd, shell=True)
File “/usr/lib/python2.7/subprocess.py”, line 540, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘git fetch upstream’ returned non-zero exit status 128

As per your suggestion i have don

chandu@myerp:~/eipl/frappe-bench/apps/frappe$
cd apps/frappe
git config --add remote.upstream.fetch '+refs/heads/:refs/remotes/upstream/
git fetch upstream
cd -
cd apps/erpnext
git config --add remote.upstream.fetch '+refs/heads/:refs/remotes/upstream/
git fetch upstream
cd -

but til that date i am getting this error waiting for your reply from you please help me to out

fatal: Invalid refspec ‘+refs/heads/:refs/remotes/upstream/
git fetch upstream
cd -
cd apps/erpnext
git config --add remote.upstream.fetch +refs/heads/:refs/remotes/upstream/
Error: None
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 9, in
load_entry_point(‘bench==0.1’, ‘console_scripts’, ‘bench’)()
File “/home/chandu/bench-repo/bench/cli.py”, line 56, in cli
bench()
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 610, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 590, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 936, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 782, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 416, in invoke
return callback(*args, **kwargs)
File “/home/chandu/bench-repo/bench/cli.py”, line 221, in update
version_upgrade = is_version_upgrade()
File “/home/chandu/bench-repo/bench/app.py”, line 97, in is_version_upgrade
fetch_upstream(frappe_dir)
File “/home/chandu/bench-repo/bench/app.py”, line 123, in fetch_upstream
return exec_cmd(“git fetch upstream”, cwd=repo_dir)
File “/home/chandu/bench-repo/bench/utils.py”, line 76, in exec_cmd
subprocess.check_call(cmd, cwd=cwd, shell=True)
File “/usr/lib/python2.7/subprocess.py”, line 540, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘git fetch upstream’ returned non-zero exit status 128

Please don’t reply on old threads.