Migrating Failure Connection to Redis Refused

Hi All,

Instance installed on MacOS Mojave and try to update get following error while migrating site

Executing frappe.patches.v11_0.rename_standard_reply_to_email_template in gt.dev (625f865cb92f889a)
Traceback (most recent call last):
File “/usr/local/Cellar/python@2/2.7.15_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py”, line 174, in _run_module_as_main
main”, fname, loader, pkg_name)
File “/usr/local/Cellar/python@2/2.7.15_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py”, line 72, in _run_code
exec code in run_globals
File “/Users/Hok/ERPNext/frappe-v10/apps/frappe/frappe/utils/bench_helper.py”, line 97, in
main()
File “/Users/Hok/ERPNext/frappe-v10/apps/frappe/frappe/utils/bench_helper.py”, line 18, in main
click.Group(commands=commands)(prog_name=‘bench’)
File “/Users/Hok/ERPNext/frappe-v10/env/lib/python2.7/site-packages/click/core.py”, line 764, in call
return self.main(*args, **kwargs)
File “/Users/Hok/ERPNext/frappe-v10/env/lib/python2.7/site-packages/click/core.py”, line 717, in main
rv = self.invoke(ctx)
File “/Users/Hok/ERPNext/frappe-v10/env/lib/python2.7/site-packages/click/core.py”, line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/Users/Hok/ERPNext/frappe-v10/env/lib/python2.7/site-packages/click/core.py”, line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/Users/Hok/ERPNext/frappe-v10/env/lib/python2.7/site-packages/click/core.py”, line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/Users/Hok/ERPNext/frappe-v10/env/lib/python2.7/site-packages/click/core.py”, line 555, in invoke
return callback(*args, **kwargs)
File “/Users/Hok/ERPNext/frappe-v10/env/lib/python2.7/site-packages/click/decorators.py”, line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File “/Users/Hok/ERPNext/frappe-v10/apps/frappe/frappe/commands/init.py”, line 25, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
File “/Users/Hok/ERPNext/frappe-v10/apps/frappe/frappe/commands/site.py”, line 227, in migrate
migrate(context.verbose, rebuild_website=rebuild_website)
File “/Users/Hok/ERPNext/frappe-v10/apps/frappe/frappe/migrate.py”, line 38, in migrate
frappe.modules.patch_handler.run_all()
File “/Users/Hok/ERPNext/frappe-v10/apps/frappe/frappe/modules/patch_handler.py”, line 29, in run_all
if not run_single(patchmodule = patch):
File “/Users/Hok/ERPNext/frappe-v10/apps/frappe/frappe/modules/patch_handler.py”, line 63, in run_single
return execute_patch(patchmodule, method, methodargs)
File “/Users/Hok/ERPNext/frappe-v10/apps/frappe/frappe/modules/patch_handler.py”, line 83, in execute_patch
frappe.get_attr(patchmodule.split()[0] + “.execute”)()
File “/Users/Hok/ERPNext/frappe-v10/apps/frappe/frappe/patches/v11_0/rename_standard_reply_to_email_template.py”, line 7, in execute
rename_doc(‘DocType’, ‘Standard Reply’, ‘Email Template’)
File “/Users/Hok/ERPNext/frappe-v10/apps/frappe/frappe/model/rename_doc.py”, line 52, in rename_doc
update_user_settings(old, new, link_fields)
File “/Users/Hok/ERPNext/frappe-v10/apps/frappe/frappe/model/rename_doc.py”, line 96, in update_user_settings
sync_user_settings()
File “/Users/Hok/ERPNext/frappe-v10/apps/frappe/frappe/model/utils/user_settings.py”, line 50, in sync_user_settings
for key, data in iteritems(frappe.cache().hgetall(’_user_settings’)):
File “/Users/Hok/ERPNext/frappe-v10/apps/frappe/frappe/utils/redis_wrapper.py”, line 160, in hgetall
iteritems(super(RedisWrapper, self).hgetall(self.make_key(name)))}
File “/Users/Hok/ERPNext/frappe-v10/env/lib/python2.7/site-packages/redis/client.py”, line 1967, in hgetall
return self.execute_command(‘HGETALL’, name)
File “/Users/Hok/ERPNext/frappe-v10/env/lib/python2.7/site-packages/redis/client.py”, line 673, in execute_command
connection.send_command(*args)
File “/Users/Hok/ERPNext/frappe-v10/env/lib/python2.7/site-packages/redis/connection.py”, line 610, in send_command
self.send_packed_command(self.pack_command(*args))
File “/Users/Hok/ERPNext/frappe-v10/env/lib/python2.7/site-packages/redis/connection.py”, line 585, in send_packed_command
self.connect()
File “/Users/Hok/ERPNext/frappe-v10/env/lib/python2.7/site-packages/redis/connection.py”, line 489, in connect
raise ConnectionError(self._error_message(e))
redis.exceptions.ConnectionError: Error 61 connecting to localhost:13000. Connection refused.

My attempt:

  1. Redis server is not starting automatically then I try to start redis server manually and have try to ping redis-cli ping and it reply pong, it means the server is running but still there is connection error.
  2. I activate the env in frappe-bench and start redis server in the virtual enviroment and migrate still no luck
  3. Try to reinstall the redis still the same