Good Day
I want to Bench Update from version 10.0.14 and get the following error:
user@ERPNextX:/home/frappe/frappe-bench# bench update
INFO:bench.utils:updating bench
INFO:bench.utils:git pull
remote: Enumerating objects: 268, done.
remote: Counting objects: 100% (268/268), done.
remote: Total 586 (delta 268), reused 268 (delta 268), pack-reused 318
Receiving objects: 100% (586/586), 163.07 KiB | 130.00 KiB/s, done.
Resolving deltas: 100% (383/383), completed with 71 local objects.
From GitHub - frappe/bench: CLI to manage Multi-tenant deployments for Frappe apps
dd7d24b…3dbb412 master → origin/master
efb75f2…a82f9e5 develop → origin/develop
- [new branch] release-command-with-prompt → origin/release-command-with-prompt
- [new branch] setup_wildcard_ssl → origin/setup_wildcard_ssl
Updating dd7d24b…3dbb412
Fast-forward
.circleci/config.yml | 32 ++++++
.github/ISSUE_TEMPLATE/bug_report.md | 68 ++++++++++++
.github/ISSUE_TEMPLATE/feature_request.md | 21 ++++
.github/PULL_REQUEST_TEMPLATE.md | 28 +++++
.travis.yml | 5 ±
README.md | 26 +++±
bench/app.py | 50 ++++±—
bench/cli.py | 6 ±
bench/commands/init.py | 6 ±
bench/commands/setup.py | 51 ++++++±-
bench/commands/update.py | 9 ±
bench/commands/utils.py | 16 +±
bench/config/lets_encrypt.py | 58 ++++++++±
bench/config/nginx.py | 63 +++++++++±
bench/config/production_setup.py | 3 ±
bench/config/redis.py | 14 ±-
bench/config/templates/bench_manager_nginx.conf | 100 +++++++++++++++++
bench/config/templates/nginx.conf | 10 ±
bench/patches/v4/update_node.py | 2 ±
bench/prepare_beta_release.py | 118 +++++++++++++++++++++
bench/release.py | 106 ++++++++++±------
bench/tests/test_init.py | 27 +++±
bench/tests/test_setup_production.py | 7 ±
bench/utils.py | 44 +++±—
completion.sh | 61 +++++±----
playbooks/create_user.yml | 13 ±-
playbooks/install.py | 18 ++±
…/roles/bench/tasks/setup_bench_production.yml | 8 ++
playbooks/roles/bench/tasks/setup_erpnext.yml | 5 ±
playbooks/roles/common/tasks/debian_family.yml | 6 ±
playbooks/roles/common/tasks/redhat_family.yml | 5 ±
playbooks/roles/mariadb/README.md | 13 +±
playbooks/roles/mariadb/defaults/main.yml | 1 -
playbooks/roles/mariadb/handlers/main.yml | 1 -
playbooks/roles/mariadb/tasks/centos.yml | 7 ±
playbooks/roles/mariadb/tasks/debian.yml | 1 +
playbooks/roles/mariadb/tasks/main.yml | 10 ±
…/mariadb/tasks/mysql_secure_installation.yml | 42 +±-----
…/tasks/{ubuntu.yml => ubuntu-trusty.yml} | 14 +±
…/roles/mariadb/tasks/ubuntu-xenial_bionic.yml | 27 +++++
…/roles/mariadb/templates/mariadb_centos.repo.j2 | 2 ±
…/roles/mariadb/templates/mariadb_ubuntu.list.j2 | 2 ±
playbooks/roles/mariadb/vars/main.yml | 3 ±
playbooks/roles/nodejs/defaults/main.yml | 3 +
playbooks/roles/nodejs/tasks/debian_family.yml | 18 +±-
playbooks/roles/nodejs/tasks/main.yml | 2 -
playbooks/roles/nodejs/tasks/redhat_family.yml | 19 +±-
playbooks/site.yml | 32 ++±–
requirements.txt | 3 ±
setup.py | 16 +±
vm/build.py | 10 ±
vm/vm-develop.json | 4 ±
vm/vm-production.json | 4 ±
53 files changed, 916 insertions(+), 304 deletions(-)
create mode 100644 .circleci/config.yml
create mode 100644 .github/ISSUE_TEMPLATE/bug_report.md
create mode 100644 .github/ISSUE_TEMPLATE/feature_request.md
create mode 100644 .github/PULL_REQUEST_TEMPLATE.md
create mode 100644 bench/config/templates/bench_manager_nginx.conf
create mode 100644 bench/prepare_beta_release.py
rename playbooks/roles/mariadb/tasks/{ubuntu.yml => ubuntu-trusty.yml} (63%)
create mode 100644 playbooks/roles/mariadb/tasks/ubuntu-xenial_bionic.yml
create mode 100644 playbooks/roles/nodejs/defaults/main.yml
remote: Enumerating objects: 7027, done.
remote: Counting objects: 100% (7027/7027), done.
remote: Compressing objects: 100% (169/169), done.
remote: Total 24456 (delta 6872), reused 6985 (delta 6858), pack-reused 17429
Receiving objects: 100% (24456/24456), 31.68 MiB | 431.00 KiB/s, done.
Resolving deltas: 100% (19876/19876), completed with 1455 local objects.
From GitHub - frappe/frappe: Low code web framework for real world applications, in Python and Javascript
2f1f174…85fb946 develop → upstream/develop
8246194…d3a2122 hotfix → upstream/hotfix
757f37a…c2b4d28 master → upstream/master
- 404296f…9591fb7 staging → upstream/staging (forced update)
- [new branch] v10.x.x → upstream/v10.x.x
- [new tag] v11.1.17 → v11.1.17
- [new tag] v11.1.3 → v11.1.3
- [new tag] v10.1.32 → v10.1.32
- [new tag] v10.1.33 → v10.1.33
- [new tag] v10.1.34 → v10.1.34
- [new tag] v10.1.35 → v10.1.35
- [new tag] v10.1.36 → v10.1.36
- [new tag] v10.1.37 → v10.1.37
- [new tag] v10.1.38 → v10.1.38
- [new tag] v10.1.39 → v10.1.39
- [new tag] v10.1.40 → v10.1.40
- [new tag] v10.1.41 → v10.1.41
- [new tag] v10.1.42 → v10.1.42
- [new tag] v10.1.43 → v10.1.43
- [new tag] v10.1.44 → v10.1.44
- [new tag] v10.1.45 → v10.1.45
- [new tag] v10.1.46 → v10.1.46
- [new tag] v10.1.47 → v10.1.47
- [new tag] v10.1.48 → v10.1.48
- [new tag] v10.1.49 → v10.1.49
- [new tag] v10.1.49-beta.1 → v10.1.49-beta.1
- [new tag] v10.1.50 → v10.1.50
- [new tag] v10.1.51 → v10.1.51
- [new tag] v10.1.52 → v10.1.52
- [new tag] v10.1.53 → v10.1.53
- [new tag] v10.1.54 → v10.1.54
- [new tag] v10.1.55 → v10.1.55
- [new tag] v10.1.56 → v10.1.56
- [new tag] v10.1.57 → v10.1.57
- [new tag] v10.1.58 → v10.1.58
- [new tag] v10.1.59 → v10.1.59
- [new tag] v10.1.60 → v10.1.60
- [new tag] v10.1.61 → v10.1.61
- [new tag] v10.1.62 → v10.1.62
- [new tag] v10.1.63 → v10.1.63
- [new tag] v10.1.64 → v10.1.64
- [new tag] v10.1.65 → v10.1.65
- [new tag] v10.1.66 → v10.1.66
- [new tag] v10.1.67 → v10.1.67
- [new tag] v10.1.68 → v10.1.68
- [new tag] v10.1.69 → v10.1.69
- [new tag] v10.1.70 → v10.1.70
- [new tag] v10.1.71 → v10.1.71
- [new tag] v11.0.0-beta → v11.0.0-beta
- [new tag] v11.0.1 → v11.0.1
- [new tag] v11.0.2 → v11.0.2
- [new tag] v11.0.3 → v11.0.3
- [new tag] v11.0.3-beta.1 → v11.0.3-beta.1
- [new tag] v11.0.3-beta.10 → v11.0.3-beta.10
- [new tag] v11.0.3-beta.11 → v11.0.3-beta.11
- [new tag] v11.0.3-beta.12 → v11.0.3-beta.12
- [new tag] v11.0.3-beta.13 → v11.0.3-beta.13
- [new tag] v11.0.3-beta.14 → v11.0.3-beta.14
- [new tag] v11.0.3-beta.15 → v11.0.3-beta.15
- [new tag] v11.0.3-beta.16 → v11.0.3-beta.16
- [new tag] v11.0.3-beta.17 → v11.0.3-beta.17
- [new tag] v11.0.3-beta.18 → v11.0.3-beta.18
- [new tag] v11.0.3-beta.19 → v11.0.3-beta.19
- [new tag] v11.0.3-beta.2 → v11.0.3-beta.2
- [new tag] v11.0.3-beta.20 → v11.0.3-beta.20
- [new tag] v11.0.3-beta.21 → v11.0.3-beta.21
- [new tag] v11.0.3-beta.22 → v11.0.3-beta.22
- [new tag] v11.0.3-beta.23 → v11.0.3-beta.23
- [new tag] v11.0.3-beta.24 → v11.0.3-beta.24
- [new tag] v11.0.3-beta.25 → v11.0.3-beta.25
- [new tag] v11.0.3-beta.26 → v11.0.3-beta.26
- [new tag] v11.0.3-beta.27 → v11.0.3-beta.27
- [new tag] v11.0.3-beta.28 → v11.0.3-beta.28
- [new tag] v11.0.3-beta.29 → v11.0.3-beta.29
- [new tag] v11.0.3-beta.3 → v11.0.3-beta.3
- [new tag] v11.0.3-beta.30 → v11.0.3-beta.30
- [new tag] v11.0.3-beta.31 → v11.0.3-beta.31
- [new tag] v11.0.3-beta.32 → v11.0.3-beta.32
- [new tag] v11.0.3-beta.33 → v11.0.3-beta.33
- [new tag] v11.0.3-beta.34 → v11.0.3-beta.34
- [new tag] v11.0.3-beta.35 → v11.0.3-beta.35
- [new tag] v11.0.3-beta.36 → v11.0.3-beta.36
- [new tag] v11.0.3-beta.37 → v11.0.3-beta.37
- [new tag] v11.0.3-beta.38 → v11.0.3-beta.38
- [new tag] v11.0.3-beta.39 → v11.0.3-beta.39
- [new tag] v11.0.3-beta.4 → v11.0.3-beta.4
- [new tag] v11.0.3-beta.40 → v11.0.3-beta.40
- [new tag] v11.0.3-beta.41 → v11.0.3-beta.41
- [new tag] v11.0.3-beta.42 → v11.0.3-beta.42
- [new tag] v11.0.3-beta.43 → v11.0.3-beta.43
- [new tag] v11.0.3-beta.44 → v11.0.3-beta.44
- [new tag] v11.0.3-beta.45 → v11.0.3-beta.45
- [new tag] v11.0.3-beta.46 → v11.0.3-beta.46
- [new tag] v11.0.3-beta.47 → v11.0.3-beta.47
- [new tag] v11.0.3-beta.48 → v11.0.3-beta.48
- [new tag] v11.0.3-beta.49 → v11.0.3-beta.49
- [new tag] v11.0.3-beta.5 → v11.0.3-beta.5
- [new tag] v11.0.3-beta.50 → v11.0.3-beta.50
- [new tag] v11.0.3-beta.51 → v11.0.3-beta.51
- [new tag] v11.0.3-beta.6 → v11.0.3-beta.6
- [new tag] v11.0.3-beta.7 → v11.0.3-beta.7
- [new tag] v11.0.3-beta.8 → v11.0.3-beta.8
- [new tag] v11.0.3-beta.9 → v11.0.3-beta.9
- [new tag] v11.1.0 → v11.1.0
- [new tag] v11.1.1 → v11.1.1
- [new tag] v11.1.10 → v11.1.10
- [new tag] v11.1.11 → v11.1.11
- [new tag] v11.1.12 → v11.1.12
- [new tag] v11.1.13 → v11.1.13
- [new tag] v11.1.14 → v11.1.14
- [new tag] v11.1.15 → v11.1.15
- [new tag] v11.1.16 → v11.1.16
- [new tag] v11.1.2 → v11.1.2
- [new tag] v11.1.4 → v11.1.4
- [new tag] v11.1.5 → v11.1.5
- [new tag] v11.1.6 → v11.1.6
- [new tag] v11.1.7 → v11.1.7
- [new tag] v11.1.8 → v11.1.8
- [new tag] v11.1.9 → v11.1.9
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 11, in
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 722, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 697, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 535, in invoke
return callback(*args, **kwargs)
File “/home/frappe/bench-repo/bench/commands/update.py”, line 51, in update
version_upgrade = is_version_upgrade()
File “/home/frappe/bench-repo/bench/app.py”, line 259, in is_version_upgrade
upstream_version = get_upstream_version(app=app, branch=branch, bench_path=bench_path)
File “/home/frappe/bench-repo/bench/app.py”, line 324, in get_upstream_version
branch = get_current_branch(app, bench_path=bench_path)
File “/home/frappe/bench-repo/bench/app.py”, line 280, in get_current_branch
return get_cmd_output(“basename $(git symbolic-ref -q HEAD)”, cwd=repo_dir)
File “/home/frappe/bench-repo/bench/utils.py”, line 362, in get_cmd_output
output = subprocess.check_output(cmd, cwd=cwd, shell=True, stderr=subprocess.PIPE).strip()
File “/usr/lib/python2.7/subprocess.py”, line 574, in check_output
raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command ‘basename $(git symbolic-ref -q HEAD)’ returned non-zero exit status 1
Could anyone explain how i could Bench Update Please.
Thank You
Albertus Geyser