ERPNext update error running bench update: .git objects is empty

bench update
INFO:bench.utils:updating bench
Already up-to-date.
Requirement already satisfied (use --upgrade to upgrade): Pillow in ./env/lib/python2.7/site-packages
INFO:bench.app:pulling frappe
From https://github.com/frappe/frappe
 * branch            develop    -> FETCH_HEAD
Already up-to-date.
INFO:bench.app:pulling erpnext
error: object file .git/objects/13/3d10429a99d3f0d44b40bea8e3cfc3adc1395b is empty
error: object file .git/objects/13/3d10429a99d3f0d44b40bea8e3cfc3adc1395b is empty
fatal: loose object 133d10429a99d3f0d44b40bea8e3cfc3adc1395b (stored in .git/objects/13/3d10429a99d3f0d44b40bea8e3cfc3adc1395b) is corrupt
fatal: The remote end hung up unexpectedly
Traceback (most recent call last):
  File "/usr/local/bin/bench", line 9, in <module>
    load_entry_point('bench', 'console_scripts', 'bench')()
  File "/home/frappe/bench-repo/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-repo/bench/commands/update.py", line 60, in update
    _update(pull, patch, build, bench, auto, restart_supervisor, requirements, no_backup, upgrade, force=force)
  File "/home/frappe/bench-repo/bench/commands/update.py", line 76, in _update
    pull_all_apps(bench_path=bench_path)
  File "/home/frappe/bench-repo/bench/app.py", line 97, in pull_all_apps
    exec_cmd("git pull {rebase} upstream {branch}".format(rebase=rebase, branch=get_current_branch(app, bench_path=bench_path)), cwd=app_dir)
  File "/home/frappe/bench-repo/bench/utils.py", line 100, in exec_cmd
    raise CommandFailedError(cmd)
bench.utils.CommandFailedError: git pull  upstream develop

Can you please check?

Thx in advance

Hi,

fatal: The remote end hung up unexpectedly

Probably your internet is problematic my friend , check and try updating again.

@srinivasragav i don’t think it’s an internet problem …tested again now …same problem …it seems there is a problem in .git/objects/13 folder in github repo …

1 Like

Yes you are right could be a problem with .git/objects/13 folder in github repo …