Bench update failure

getting following error while trying to run bench update

remote: Counting objects: 1119, done.
remote: Compressing objects: 100% (134/134), done.
remote: Total 1119 (delta 705), reused 650 (delta 646), pack-reused 338
Receiving objects: 100% (1119/1119), 378.35 KiB | 66.00 KiB/s, done.
Resolving deltas: 100% (870/870), completed with 269 local objects.
From GitHub - frappe/frappe: Low code web framework for real world applications, in Python and Javascript
6d9c169…830f22b master → upstream/master
7fff090…33d8db6 develop → upstream/develop

  • [new branch] fix-typo-socketio → upstream/fix-typo-socketio
  • [new branch] fix-typo-socketioclient → upstream/fix-typo-socketioclient
  • [new branch] forellana-digithinkit-patch-1 → upstream/forellana-digithinkit-patch-1
    d4116f2…7b7152a hotfix → upstream/hotfix
  • [new tag] v7.2.14 → v7.2.14
  • [new tag] v7.2.10 → v7.2.10
  • [new tag] v7.2.11 → v7.2.11
  • [new tag] v7.2.12 → v7.2.12
  • [new tag] v7.2.13 → v7.2.13
    Traceback (most recent call last):
    File “/usr/local/bin/bench”, line 9, in
    load_entry_point(‘bench==2.1.0’, ‘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 31, in update
    version_upgrade = is_version_upgrade()
    File “/home/frappe/bench-repo/bench/”, line 102, in is_version_upgrade
    upstream_version = get_upstream_version(‘frappe’, bench=bench, branch=branch)
    File “/home/frappe/bench-repo/bench/”, line 150, in get_upstream_version
    return get_version_from_string(contents)
    File “/home/frappe/bench-repo/bench/”, line 206, in get_version_from_string
    AttributeError: ‘NoneType’ object has no attribute ‘group’

Hi @shahshree,

pull the latest changes in bench-repo and then try to update please following [Important] Error in Bench Update?



Thanks for quick response.
I did as suggested but upon running bench update getting following
error message:

	Please update node to latest version before running "bench update".
	Please install latest node version before running "bench update".

For installation instructions
please refer “Debian and Ubuntu based Linux distributions” section
or “Enterprise Linux and
Fedora” section depending upon your OS on the following link,
Installing Node.js via package manager | Node.js
I checked nodejs is updated one only. Request to help me on this.

Thanks & Regards

try this
sudo npm install n -g
sudo n stable
then try bench update


this has resolved the issue…thanks a ton

1 Like