Hi, just trying to update an existing test deployment of V4 and running βbench updateβ advises that it will cause a major version change from V4 to v5.
As I want to keep the test server on V4 for the moment, when I use βbench switch-to-v4β, I get the following error:-
administrator@ubuntu:~/frappe-bench$ bench switch-to-v4
Branch v4.x.x set up to track remote branch v4.x.x from upstream.
Switched to a new branch βv4.x.xβ
remote: Counting objects: 11863, done.
remote: Compressing objects: 100% (4419/4419), done.
remote: Total 11863 (delta 9793), reused 9382 (delta 7423), pack-reused 0
Receiving objects: 100% (11863/11863), 7.29 MiB | 2.73 MiB/s, done.
Resolving deltas: 100% (9793/9793), completed with 911 local objects.
From GitHub - frappe/erpnext: Free and Open Source Enterprise Resource Planning (ERP)
4944fb3β¦2887913 develop β upstream/develop
- [new tag] 4.0.0 β 4.0.0
- [new tag] 4.0.0-beta1 β 4.0.0-beta1
- [new tag] v3.1.0 β v3.1.0
- [new tag] v3.1.1 β v3.1.1
- [new tag] v3.1.2 β v3.1.2
- [new tag] v3.2.0 β v3.2.0
- [new tag] v3.2.1 β v3.2.1
- [new tag] v3.2.2 β v3.2.2
- [new tag] v3.2.3 β v3.2.3
- [new tag] v3.3.0 β v3.3.0
- [new tag] v3.3.1 β v3.3.1
- [new tag] v3.3.2 β v3.3.2
- [new tag] v3.3.3 β v3.3.3
- [new tag] v3.3.4 β v3.3.4
- [new tag] v3.3.5 β v3.3.5
- [new tag] v3.3.6 β v3.3.6
- [new tag] v3.3.7 β v3.3.7
- [new tag] v3.3.8 β v3.3.8
- [new tag] v3.4.0 β v3.4.0
- [new tag] v3.4.1 β v3.4.1
- [new tag] v3.4.2 β v3.4.2
- [new tag] v3.4.3 β v3.4.3
- [new tag] v3.4.4 β v3.4.4
- [new tag] v3.4.5 β v3.4.5
- [new tag] v3.4.6 β v3.4.6
- [new tag] v3.4.7 β v3.4.7
- [new tag] v3.4.8 β v3.4.8
- [new tag] v3.4.9 β v3.4.9
- [new tag] v3.5.0 β v3.5.0
- [new tag] v3.5.1 β v3.5.1
- [new tag] v3.6.0 β v3.6.0
- [new tag] v3.6.1 β v3.6.1
- [new tag] v3.6.2 β v3.6.2
- [new tag] v3.6.3 β v3.6.3
- [new tag] v3.6.4 β v3.6.4
- [new tag] v3.6.5 β v3.6.5
- [new tag] v3.6.6 β v3.6.6
- [new tag] v3.7.0 β v3.7.0
- [new tag] v3.7.1 β v3.7.1
- [new tag] v3.8.0 β v3.8.0
- [new tag] v3.8.1 β v3.8.1
- [new tag] v3.8.2 β v3.8.2
- [new tag] v3.8.3 β v3.8.3
- [new tag] v3.8.4 β v3.8.4
- [new tag] v3.8.5 β v3.8.5
- [new tag] v3.8.6 β v3.8.6
- [new tag] v4-beta2 β v4-beta2
- [new tag] v4.0.1 β v4.0.1
- [new tag] v4.10.0 β v4.10.0
- [new tag] v4.11.0 β v4.11.0
- [new tag] v4.11.1 β v4.11.1
- [new tag] v4.11.2 β v4.11.2
- [new tag] v4.12.0 β v4.12.0
- [new tag] v4.13.0 β v4.13.0
- [new tag] v4.13.1 β v4.13.1
- [new tag] v4.14.0 β v4.14.0
- [new tag] v4.15.0 β v4.15.0
- [new tag] v4.15.1 β v4.15.1
- [new tag] v4.15.2 β v4.15.2
- [new tag] v4.15.3 β v4.15.3
- [new tag] v4.15.4 β v4.15.4
- [new tag] v4.16.0 β v4.16.0
- [new tag] v4.17.0 β v4.17.0
- [new tag] v4.18.0 β v4.18.0
- [new tag] v4.18.1 β v4.18.1
- [new tag] v4.19.0 β v4.19.0
- [new tag] v4.20.0 β v4.20.0
- [new tag] v4.20.1 β v4.20.1
- [new tag] v4.20.2 β v4.20.2
- [new tag] v4.21.0 β v4.21.0
- [new tag] v4.21.1 β v4.21.1
- [new tag] v4.21.2 β v4.21.2
- [new tag] v4.21.3 β v4.21.3
- [new tag] v4.21.4 β v4.21.4
- [new tag] v4.22.0 β v4.22.0
- [new tag] v4.22.1 β v4.22.1
- [new tag] v4.22.2 β v4.22.2
- [new tag] v4.23.0 β v4.23.0
- [new tag] v4.24.0 β v4.24.0
- [new tag] v4.3.0 β v4.3.0
- [new tag] v4.4.0 β v4.4.0
- [new tag] v4.4.1 β v4.4.1
- [new tag] v4.4.2 β v4.4.2
- [new tag] v4.5.0 β v4.5.0
- [new tag] v4.5.1 β v4.5.1
- [new tag] v4.5.2 β v4.5.2
- [new tag] v4.6.0 β v4.6.0
- [new tag] v4.6.1 β v4.6.1
- [new tag] v4.6.2 β v4.6.2
- [new tag] v4.7.0 β v4.7.0
- [new tag] v4.7.1 β v4.7.1
- [new tag] v4.7.2 β v4.7.2
- [new tag] v4.8.0 β v4.8.0
- [new tag] v4.9.0 β v4.9.0
- [new tag] v4.9.1 β v4.9.1
- [new tag] v4.9.2 β v4.9.2
- [new tag] v4.9.3 β v4.9.3
- [new tag] v4.24.1 β v4.24.1
- [new tag] v4.24.2 β v4.24.2
- [new tag] v4.24.3 β v4.24.3
error: pathspec βv4.x.xβ 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/administrator/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/administrator/bench-repo/bench/cli.pyβ, line 309, in _switch_to_v4
switch_to_v4()
File β/home/administrator/bench-repo/bench/app.pyβ, line 156, in switch_to_v4
switch_branch(βv4.x.xβ, apps=apps, bench=bench)
File β/home/administrator/bench-repo/bench/app.pyβ, line 147, in switch_branch
exec_cmd(βgit checkout {branch}β.format(branch=branch), cwd=app_dir)
File β/home/administrator/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 v4.x.xβ returned non-zero exit status 1
The system is currently running the following versions:-
ERPNext: v4.24.0
Open Source Enterprise Resource Planning for Small and Midsized OrganizationsFrappe Framework: v4.13.1
Full Stack Web Application Framework in Python
Running βbench switch-to-masterβ causes a similar error
Thanks, Ardan