ERROR on Latest Update - 2018.09.19

Hi guys,

I updated my latest bench from the main develop branch and i’m getting an error completing the bench update. Anyone who has experienced it or knows the resolution?

Executing erpnext.patches.v11_0.rename_healthcare_fields in intelligent.so (87246e320a71ced8)
Traceback (most recent call last):
File “/usr/lib64/python2.7/runpy.py”, line 162, in _run_module_as_main
main”, fname, loader, pkg_name)
File “/usr/lib64/python2.7/runpy.py”, line 72, in _run_code
exec code in run_globals
File “/opt/bench/verveerp/apps/frappe/frappe/utils/bench_helper.py”, line 97, in
main()
File “/opt/bench/verveerp/apps/frappe/frappe/utils/bench_helper.py”, line 18, in main
click.Group(commands=commands)(prog_name=‘bench’)
File “/opt/bench/verveerp/env/lib/python2.7/site-packages/click/core.py”, line 722, in call
return self.main(*args, **kwargs)
File “/opt/bench/verveerp/env/lib/python2.7/site-packages/click/core.py”, line 697, in main
rv = self.invoke(ctx)
File “/opt/bench/verveerp/env/lib/python2.7/site-packages/click/core.py”, line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/opt/bench/verveerp/env/lib/python2.7/site-packages/click/core.py”, line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/opt/bench/verveerp/env/lib/python2.7/site-packages/click/core.py”, line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/opt/bench/verveerp/env/lib/python2.7/site-packages/click/core.py”, line 535, in invoke
return callback(*args, **kwargs)
File “/opt/bench/verveerp/env/lib/python2.7/site-packages/click/decorators.py”, line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File “/opt/bench/verveerp/apps/frappe/frappe/commands/init.py”, line 25, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
File “/opt/bench/verveerp/apps/frappe/frappe/commands/site.py”, line 222, in migrate
migrate(context.verbose, rebuild_website=rebuild_website)
File “/opt/bench/verveerp/apps/frappe/frappe/migrate.py”, line 39, in migrate
frappe.modules.patch_handler.run_all()
File “/opt/bench/verveerp/apps/frappe/frappe/modules/patch_handler.py”, line 29, in run_all
if not run_single(patchmodule = patch):
File “/opt/bench/verveerp/apps/frappe/frappe/modules/patch_handler.py”, line 63, in run_single
return execute_patch(patchmodule, method, methodargs)
File “/opt/bench/verveerp/apps/frappe/frappe/modules/patch_handler.py”, line 83, in execute_patch
frappe.get_attr(patchmodule.split()[0] + “.execute”)()
File “/opt/bench/verveerp/apps/erpnext/erpnext/patches/v11_0/rename_healthcare_fields.py”, line 38, in execute
rename_field(dt, field[0], field[1])
File “/opt/bench/verveerp/apps/frappe/frappe/model/utils/rename_field.py”, line 48, in rename_field
update_user_settings(doctype, old_fieldname, new_fieldname)
File “/opt/bench/verveerp/apps/frappe/frappe/model/utils/rename_field.py”, line 139, in update_user_settings
sync_user_settings()
File “/opt/bench/verveerp/apps/frappe/frappe/model/utils/user_settings.py”, line 49, in sync_user_settings
for key, data in iteritems(frappe.cache().hgetall(‘_user_settings’)):
File “/opt/bench/verveerp/apps/frappe/frappe/utils/redis_wrapper.py”, line 153, in hgetall
iteritems(super(redis.Redis, self).hgetall(self.make_key(name)))}
File “/opt/bench/verveerp/env/lib/python2.7/site-packages/redis/client.py”, line 1967, in hgetall
return self.execute_command(‘HGETALL’, name)
File “/opt/bench/verveerp/env/lib/python2.7/site-packages/redis/client.py”, line 673, in execute_command
connection.send_command(*args)
File “/opt/bench/verveerp/env/lib/python2.7/site-packages/redis/connection.py”, line 610, in send_command
self.send_packed_command(self.pack_command(*args))
File “/opt/bench/verveerp/env/lib/python2.7/site-packages/redis/connection.py”, line 585, in send_packed_command
self.connect()
File “/opt/bench/verveerp/env/lib/python2.7/site-packages/redis/connection.py”, line 489, in connect
raise ConnectionError(self._error_message(e))
redis.exceptions.ConnectionError: Error 111 connecting to localhost:13001. Connection refused.

Reverted the commit back to my old one. If someone finds out why this is not working, let me know.

Thanks.

bench must be running. In console 1 run bench start. In console 2 bench update.

1 Like

Thanks @akademio, I will try this and give feedback.

akademio
bench must be running. In console 1 run bench start. In console 2 bench update

Thank you @akademio

This was the missing instruction in the puzzle of restoring from backup.