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 frappe
 * branch            develop    -> FETCH_HEAD
Already up-to-date. 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/", 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-repo/bench/commands/", 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/", line 76, in _update
  File "/home/frappe/bench-repo/bench/", 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/", line 100, in exec_cmd
    raise CommandFailedError(cmd)
bench.utils.CommandFailedError: git pull  upstream develop

Can you please check?

Thx in advance


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 …