Bench switch-to-branch v3.x.x frappe erpnext error

INFO: Fetching upstream unshallow for frappe
$ git remote set-branches upstream ‘*’
$ git fetch --all --unshallow --quiet
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
error: 34481 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
error: Could not fetch upstream
Traceback (most recent call last):
File “/home/nonierp/.local/bin/bench”, line 8, in
File “/home/nonierp/.local/lib/python3.10/site-packages/bench/”, line 127, in cli
File “/usr/lib/python3/dist-packages/click/”, line 1128, in call
return self.main(*args, **kwargs)
File “/usr/lib/python3/dist-packages/click/”, line 1053, in main
rv = self.invoke(ctx)
File “/usr/lib/python3/dist-packages/click/”, line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/lib/python3/dist-packages/click/”, line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/lib/python3/dist-packages/click/”, line 754, in invoke
return __callback(*args, **kwargs)
File “/home/nonierp/.local/lib/python3.10/site-packages/bench/commands/”, line 93, in switch_to_branch
switch_to_branch(branch=branch, apps=list(apps), upgrade=upgrade)
File “/home/nonierp/.local/lib/python3.10/site-packages/bench/utils/”, line 107, in switch_to_branch
switch_branch(branch, apps=apps, bench_path=bench_path, upgrade=upgrade)
File “/home/nonierp/.local/lib/python3.10/site-packages/bench/utils/”, line 68, in switch_branch
File “/home/nonierp/.local/lib/python3.10/site-packages/bench/utils/”, line 158, in exec_cmd
raise CommandFailedError

nonierp@doko:~$ python3 --version
Python 3.10.6
nonierp@doko:~$ pip --version
pip 23.1.1 from /home/nonierp/.local/lib/python3.10/site-packages/pip (python 3.10)
nonierp@doko:~$ node --version
nonierp@doko:~$ yarn --version
nonierp@doko:~/dokos-bench$ bench --version

how to fix it

i found this only way to get too production

bench init dokos-bench --branch v3.x.x
bench get-app Dokos / Payments · GitLab --branch v3.x.x
bench get-app dokos --branch v3.x.x
bench get-app Dokos / HRMS · GitLab --branch v3.x.x
bench get-app Dokos / Dokos WooCommerce · GitLab --branch v3.x.x

after install app run
bench update --reset

Installed Apps

WooCommerce: v1.5.3 (v3.x.x)
Dokos: v3.31.3 (v3.x.x)
Dodock: v3.32.0 (v3.x.x)
HRMS: v1.6.1 (v3.x.x)
Payments: v1.1.4 (v3.x.x)

1 Like