Afterlast update i got error

chandu@myerp:~/eipl/frappe-bench$ bench update --pull
From https://github.com/frappe/shopping-cart

  • branch develop -> FETCH_HEAD
    Already up-to-date.
    remote: Counting objects: 68, done.
    remote: Compressing objects: 100% (36/36), done.
    error: insufficient permission for adding an object to repository database .git/objects
    fatal: failed to write object
    fatal: unpack-objects failed
    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 35, in cli
    return bench()
    File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 488, in call
    return self.main(*args, **kwargs)
    File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 474, in main
    self.invoke(ctx)
    File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 758, in invoke
    return self.invoke_subcommand(ctx, cmd, cmd_name, ctx.args[1:])
    File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 767, in invoke_subcommand
    return cmd.invoke(cmd_ctx)
    File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 659, in invoke
    ctx.invoke(self.callback, **ctx.params)
    File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 325, in invoke
    return callback(*args, **kwargs)
    File “/home/chandu/bench-repo/bench/cli.py”, line 160, in update
    pull_all_apps()
    File “/home/chandu/bench-repo/bench/app.py”, line 64, in pull_all_apps
    exec_cmd(“git pull {rebase} upstream {branch}”.format(rebase=rebase, branch=get_current_branch(app_dir)), cwd=app_dir)
    File “/home/chandu/bench-repo/bench/utils.py”, line 61, 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 pull upstream develop
    ’ returned non-zero exit status 1
    chandu@myerp:~/eipl/frappe-bench$ bench config auto_update on
    chandu@myerp:~/eipl/frappe-bench$ bench update
    remote: Counting objects: 89, done.
    remote: Compressing objects: 100% (54/54), done.
    error: insufficient permission for adding an object to repository database .git/objects
    fatal: failed to write object
    fatal: unpack-objects failed
    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 35, in cli
    return bench()
    File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 488, in call
    return self.main(*args, **kwargs)
    File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 474, in main
    self.invoke(ctx)
    File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 758, in invoke
    return self.invoke_subcommand(ctx, cmd, cmd_name, ctx.args[1:])
    File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 767, in invoke_subcommand
    return cmd.invoke(cmd_ctx)
    File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 659, in invoke
    ctx.invoke(self.callback, **ctx.params)
    File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 325, in invoke
    return callback(*args, **kwargs)
    File “/home/chandu/bench-repo/bench/cli.py”, line 150, in update
    update_bench()
    File “/home/chandu/bench-repo/bench/utils.py”, line 138, in update_bench
    exec_cmd(“git pull”, cwd=cwd)
    File “/home/chandu/bench-repo/bench/utils.py”, line 61, 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 pull’ returned non-zero exit status 1
    chandu@myerp:~/eipl/frappe-bench$

Login as eipl and run the command

chandu is my erpnext instaled user i login as chandu i dont have eipl user please help
from last five months i am using this user and update command without any problem

chandu@myerp:~/eipl/frappe-bench$ bench update
remote: Counting objects: 89, done.
remote: Compressing objects: 100% (54/54), done.
error: insufficient permission for adding an object to repository database .git/objects
fatal: failed to write object
fatal: unpack-objects failed
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 35, in cli
return bench()
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 488, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 474, in main
self.invoke(ctx)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 758, in invoke
return self.invoke_subcommand(ctx, cmd, cmd_name, ctx.args[1:])
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 767, in invoke_subcommand
return cmd.invoke(cmd_ctx)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 659, in invoke
ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 325, in invoke
return callback(*args, **kwargs)
File “/home/chandu/bench-repo/bench/cli.py”, line 150, in update
update_bench()
File “/home/chandu/bench-repo/bench/utils.py”, line 138, in update_bench
exec_cmd(“git pull”, cwd=cwd)
File “/home/chandu/bench-repo/bench/utils.py”, line 61, 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 pull’ returned non-zero exit status 1
chandu@myerp:~/eipl/frappe-bench$

Sorry, my mistake.
Run the following

cd ~/eipl/frappe-bench
sudo chown -R chandu apps
bench update

Hi sir
I am sorry for late reply (out of station)
as for your suggestion i have don this command
but out put is showing this.
i am missing anything, please help
chandu@myerp:~$ cd eipl/
chandu@myerp:~/eipl$ cd frappe-bench/
chandu@myerp:~/eipl/frappe-bench$ cd ~/eipl/frappe-bench
chandu@myerp:~/eipl/frappe-bench$ sudo chown -R chandu apps
[sudo] password for chandu:
chandu@myerp:~/eipl/frappe-bench$ bench update
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 9, in
load_entry_point(‘bench==0.1’, ‘console_scripts’, ‘bench’)()
File “/usr/lib/python2.7/dist-packages/pkg_resources.py”, line 351, in load_en
try_point
return get_distribution(dist).load_entry_point(group, name)
File “/usr/lib/python2.7/dist-packages/pkg_resources.py”, line 2363, in load_e
ntry_point
return ep.load()
File “/usr/lib/python2.7/dist-packages/pkg_resources.py”, line 2088, in load
entry = import(self.module_name, globals(),globals(), [‘name’])
File “/home/chandu/bench-repo/bench/cli.py”, line 22, in
from .migrate_to_v5 import migrate_to_v5
File “/home/chandu/bench-repo/bench/migrate_to_v5.py”, line 2, in
from .release import get_current_version
File “/home/chandu/bench-repo/bench/release.py”, line 5, in
import semantic_version
ImportError: No module named semantic_version
chandu@myerp:~/eipl/frappe-bench$

Try this as root and bench update again,

pip install --upgrade -e /home/chandu/bench-repo

Hi sir
It works for me and update is successfully completed
Thanks for help me out in update error

I did as your instruction
pip install --upgrade -e /home/frappe/bench-repo
but when bench update, error still:
[frappe@123 ~]$ bench update INFO:bench.utils:updating bench remote: Counting objects: 56, done. remote: Total 56 (delta 41), reused 41 (delta 41), pack-reused 15 error: insufficient permission for adding an object to repository database .git/objects fatal: failed to write object fatal: unpack-objects failed Traceback (most recent call last): File "/usr/bin/bench", line 9, in <module> load_entry_point('bench==3.0.0', 'console_scripts', 'bench')() File "/home/frappe/bench-repo/bench/cli.py", line 40, in cli bench_command() File "/usr/lib/python2.7/site-packages/click/core.py", line 716, in __call__ return self.main(*args, **kwargs) File "/usr/lib/python2.7/site-packages/click/core.py", line 696, in main rv = self.invoke(ctx) File "/usr/lib/python2.7/site-packages/click/core.py", line 1060, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/usr/lib/python2.7/site-packages/click/core.py", line 889, in invoke return ctx.invoke(self.callback, **ctx.params) File "/usr/lib/python2.7/site-packages/click/core.py", line 534, in invoke return callback(*args, **kwargs) File "/home/frappe/bench-repo/bench/commands/update.py", line 34, in update update_bench() File "/home/frappe/bench-repo/bench/utils.py", line 194, in update_bench exec_cmd("git pull", cwd=cwd) File "/home/frappe/bench-repo/bench/utils.py", line 100, in exec_cmd raise CommandFailedError(cmd) bench.utils.CommandFailedError: git pull [frappe@123 ~]$ cd /home/frappe/bench-repo [frappe@123 bench-repo]$ bench update INFO:bench.utils:updating bench remote: Counting objects: 56, done. remote: Total 56 (delta 41), reused 41 (delta 41), pack-reused 15 error: insufficient permission for adding an object to repository database .git/objects fatal: failed to write object fatal: unpack-objects failed Traceback (most recent call last): File "/usr/bin/bench", line 9, in <module> load_entry_point('bench==3.0.0', 'console_scripts', 'bench')() File "/home/frappe/bench-repo/bench/cli.py", line 40, in cli bench_command() File "/usr/lib/python2.7/site-packages/click/core.py", line 716, in __call__ return self.main(*args, **kwargs) File "/usr/lib/python2.7/site-packages/click/core.py", line 696, in main rv = self.invoke(ctx) File "/usr/lib/python2.7/site-packages/click/core.py", line 1060, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/usr/lib/python2.7/site-packages/click/core.py", line 889, in invoke return ctx.invoke(self.callback, **ctx.params) File "/usr/lib/python2.7/site-packages/click/core.py", line 534, in invoke return callback(*args, **kwargs) File "/home/frappe/bench-repo/bench/commands/update.py", line 34, in update update_bench() File "/home/frappe/bench-repo/bench/utils.py", line 194, in update_bench exec_cmd("git pull", cwd=cwd) File "/home/frappe/bench-repo/bench/utils.py", line 100, in exec_cmd raise CommandFailedError(cmd) bench.utils.CommandFailedError: git pull [frappe@123 bench-repo]$