I’m trying to install Frappe latest version with a slight modification of installing node v14+ instead of 12+ in Step 4.
No issues until Step 20.
But at Step 21, I’m facing this issue:
Please make sure that Redis Queue runs @ redis://localhost:11000
Traceback (most recent call last):
File "/home/ubuntu/myfrappe/env/lib/python3.8/site-packages/redis/connection.py", line 559, in connect
sock = self._connect()
File "/home/ubuntu/myfrappe/env/lib/python3.8/site-packages/redis/connection.py", line 615, in _connect
raise err
File "/home/ubuntu/myfrappe/env/lib/python3.8/site-packages/redis/connection.py", line 603, in _connect
sock.connect(socket_address)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ubuntu/myfrappe/env/lib/python3.8/site-packages/tenacity/__init__.py", line 407, in __call__
result = fn(*args, **kwargs)
File "/home/ubuntu/myfrappe/apps/frappe/frappe/utils/background_jobs.py", line 271, in get_redis_conn
redis_connection = RedisQueue.get_connection(**cred)
File "/home/ubuntu/myfrappe/apps/frappe/frappe/utils/redis_queue.py", line 24, in get_connection
conn.ping()
File "/home/ubuntu/myfrappe/env/lib/python3.8/site-packages/redis/client.py", line 1378, in ping
return self.execute_command('PING')
File "/home/ubuntu/myfrappe/env/lib/python3.8/site-packages/redis/client.py", line 898, in execute_command
conn = self.connection or pool.get_connection(command_name, **options)
File "/home/ubuntu/myfrappe/env/lib/python3.8/site-packages/redis/connection.py", line 1192, in get_connection
connection.connect()
File "/home/ubuntu/myfrappe/env/lib/python3.8/site-packages/redis/connection.py", line 563, in connect
raise ConnectionError(self._error_message(e))
redis.exceptions.ConnectionError: Error 111 connecting to localhost:11000. Connection refused.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/ubuntu/myfrappe/apps/frappe/frappe/utils/bench_helper.py", line 104, in <module>
main()
File "/home/ubuntu/myfrappe/apps/frappe/frappe/utils/bench_helper.py", line 18, in main
click.Group(commands=commands)(prog_name='bench')
File "/home/ubuntu/myfrappe/env/lib/python3.8/site-packages/click/core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "/home/ubuntu/myfrappe/env/lib/python3.8/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/home/ubuntu/myfrappe/env/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/ubuntu/myfrappe/env/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/ubuntu/myfrappe/env/lib/python3.8/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/ubuntu/myfrappe/env/lib/python3.8/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/home/ubuntu/myfrappe/env/lib/python3.8/site-packages/click/decorators.py", line 21, in new_func
return f(get_current_context(), *args, **kwargs)
File "/home/ubuntu/myfrappe/apps/frappe/frappe/commands/__init__.py", line 26, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
File "/home/ubuntu/myfrappe/apps/frappe/frappe/commands/site.py", line 654, in uninstall
remove_app(app_name=app, dry_run=dry_run, yes=yes, no_backup=no_backup, force=force)
File "/home/ubuntu/myfrappe/apps/frappe/frappe/installer.py", line 242, in remove_app
drop_doctypes = _delete_modules(modules, dry_run=dry_run)
File "/home/ubuntu/myfrappe/apps/frappe/frappe/installer.py", line 280, in _delete_modules
_delete_linked_documents(module_name, doctype_link_field_map, dry_run=dry_run)
File "/home/ubuntu/myfrappe/apps/frappe/frappe/installer.py", line 300, in _delete_linked_documents
frappe.delete_doc(doctype, record, ignore_on_trash=True, force=True)
File "/home/ubuntu/myfrappe/apps/frappe/frappe/__init__.py", line 960, in delete_doc
frappe.model.delete_doc.delete_doc(doctype, name, force, ignore_doctypes, for_reload,
File "/home/ubuntu/myfrappe/apps/frappe/frappe/model/delete_doc.py", line 116, in delete_doc
frappe.enqueue('frappe.model.delete_doc.delete_dynamic_links',
File "/home/ubuntu/myfrappe/apps/frappe/frappe/__init__.py", line 1684, in enqueue
return frappe.utils.background_jobs.enqueue(*args, **kwargs)
File "/home/ubuntu/myfrappe/apps/frappe/frappe/utils/background_jobs.py", line 58, in enqueue
q = get_queue(queue, is_async=is_async)
File "/home/ubuntu/myfrappe/apps/frappe/frappe/utils/background_jobs.py", line 235, in get_queue
return Queue(generate_qname(qtype), connection=get_redis_conn(), is_async=is_async)
File "/home/ubuntu/myfrappe/env/lib/python3.8/site-packages/tenacity/__init__.py", line 324, in wrapped_f
return self(f, *args, **kw)
File "/home/ubuntu/myfrappe/env/lib/python3.8/site-packages/tenacity/__init__.py", line 404, in __call__
do = self.iter(retry_state=retry_state)
File "/home/ubuntu/myfrappe/env/lib/python3.8/site-packages/tenacity/__init__.py", line 361, in iter
raise retry_exc from fut.exception()
tenacity.RetryError: RetryError[<Future at 0x7f2788a71610 state=finished raised ConnectionError>]
should I run bench start
in a separate terminal before Step 21?