bench --site syraerpnext.com uninstall-app erpnext
Uninstalling App erpnext from Site syraerpnext.com…
All doctypes (including custom), modules related to this app will be deleted. Are you sure you want to continue? [y/N]: y
Backing up…
Deleting Module ‘Subcontracting’
- removing DocType ‘Subcontracting Receipt’…
- removing DocType ‘Subcontracting Receipt Supplied Item’…
- removing DocType ‘Subcontracting Receipt Item’…
- removing DocType ‘Subcontracting Order Item’…
- removing DocType ‘Subcontracting Order Supplied Item’…
- removing DocType ‘Subcontracting Order Service Item’…
- removing DocType ‘Subcontracting Order’…
- removing DocType ‘Subcontracting BOM’…
- removing Module Def ‘Subcontracting’…
Please make sure that Redis Queue runs @ redis://127.0.0.1:11000
Please make sure that Redis Queue runs @ redis://127.0.0.1:11000
Please make sure that Redis Queue runs @ redis://127.0.0.1:11000
Please make sure that Redis Queue runs @ redis://127.0.0.1:11000
Please make sure that Redis Queue runs @ redis://127.0.0.1:11000
Traceback (most recent call last):
File “/home/erp/frappe-bench/env/lib/python3.11/site-packages/redis/connection.py”, line 699, in connect
sock = self.retry.call_with_retry(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/erp/frappe-bench/env/lib/python3.11/site-packages/redis/retry.py”, line 46, in call_with_retry
return do()
^^^^
File “/home/erp/frappe-bench/env/lib/python3.11/site-packages/redis/connection.py”, line 700, in
lambda: self._connect(), lambda error: self.disconnect(error)
^^^^^^^^^^^^^^^
File “/home/erp/frappe-bench/env/lib/python3.11/site-packages/redis/connection.py”, line 1002, in _connect
raise err
File “/home/erp/frappe-bench/env/lib/python3.11/site-packages/redis/connection.py”, line 990, 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 “”, line 198, in _run_module_as_main
File “”, line 88, in _run_code
File “/home/erp/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 114, in
main()
File “/home/erp/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 20, in main
click.Group(commands=commands)(prog_name=“bench”)
File “/home/erp/frappe-bench/env/lib/python3.11/site-packages/click/core.py”, line 1157, in call
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/erp/frappe-bench/env/lib/python3.11/site-packages/click/core.py”, line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File “/home/erp/frappe-bench/env/lib/python3.11/site-packages/click/core.py”, line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/erp/frappe-bench/env/lib/python3.11/site-packages/click/core.py”, line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/erp/frappe-bench/env/lib/python3.11/site-packages/click/core.py”, line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/erp/frappe-bench/env/lib/python3.11/site-packages/click/core.py”, line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/erp/frappe-bench/env/lib/python3.11/site-packages/click/decorators.py”, line 33, in new_func
return f(get_current_context(), *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/erp/frappe-bench/apps/frappe/frappe/commands/init.py”, line 29, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/erp/frappe-bench/apps/frappe/frappe/commands/site.py”, line 981, in uninstall
remove_app(app_name=app, dry_run=dry_run, yes=yes, no_backup=no_backup, force=force)
File “/home/erp/frappe-bench/apps/frappe/frappe/installer.py”, line 388, in remove_app
drop_doctypes = _delete_modules(modules, dry_run=dry_run)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/erp/frappe-bench/apps/frappe/frappe/installer.py”, line 433, in _delete_modules
frappe.delete_doc(“Module Def”, module_name, ignore_on_trash=True, force=True)
File “/home/erp/frappe-bench/apps/frappe/frappe/init.py”, line 1324, in delete_doc
return frappe.model.delete_doc.delete_doc(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/erp/frappe-bench/apps/frappe/frappe/model/delete_doc.py”, line 131, in delete_doc
frappe.enqueue(
File “/home/erp/frappe-bench/apps/frappe/frappe/init.py”, line 2212, in enqueue
return frappe.utils.background_jobs.enqueue(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/erp/frappe-bench/apps/frappe/frappe/utils/background_jobs.py”, line 121, in enqueue
q = get_queue(queue, is_async=is_async)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/erp/frappe-bench/apps/frappe/frappe/utils/background_jobs.py”, line 461, in get_queue
return Queue(generate_qname(qtype), connection=get_redis_conn(), is_async=is_async)
^^^^^^^^^^^^^^^^
File “/home/erp/frappe-bench/env/lib/python3.11/site-packages/tenacity/init.py”, line 289, in wrapped_f
return self(f, *args, **kw)
^^^^^^^^^^^^^^^^^^^^
File “/home/erp/frappe-bench/env/lib/python3.11/site-packages/tenacity/init.py”, line 379, in call
do = self.iter(retry_state=retry_state)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/erp/frappe-bench/env/lib/python3.11/site-packages/tenacity/init.py”, line 325, in iter
raise retry_exc.reraise()
^^^^^^^^^^^^^^^^^^^
File “/home/erp/frappe-bench/env/lib/python3.11/site-packages/tenacity/init.py”, line 158, in reraise
raise self.last_attempt.result()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3.11/concurrent/futures/_base.py”, line 449, in result
return self.__get_result()
^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3.11/concurrent/futures/_base.py”, line 401, in __get_result
raise self._exception
File “/home/erp/frappe-bench/env/lib/python3.11/site-packages/tenacity/init.py”, line 382, in call
result = fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^
File “/home/erp/frappe-bench/apps/frappe/frappe/utils/background_jobs.py”, line 502, in get_redis_conn
return get_redis_connection_without_auth()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/erp/frappe-bench/apps/frappe/frappe/utils/background_jobs.py”, line 521, in get_redis_connection_without_auth
_redis_queue_conn = RedisQueue.get_connection()
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/erp/frappe-bench/apps/frappe/frappe/utils/redis_queue.py”, line 21, in get_connection
conn.ping()
File “/home/erp/frappe-bench/env/lib/python3.11/site-packages/redis/commands/core.py”, line 1205, in ping
return self.execute_command(“PING”, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/erp/frappe-bench/env/lib/python3.11/site-packages/redis/client.py”, line 1266, in execute_command
conn = self.connection or pool.get_connection(command_name, **options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/erp/frappe-bench/env/lib/python3.11/site-packages/redis/connection.py”, line 1457, in get_connection
connection.connect()
File “/home/erp/frappe-bench/env/lib/python3.11/site-packages/redis/connection.py”, line 705, in connect
raise ConnectionError(self._error_message(e))
redis.exceptions.ConnectionError: Error 111 connecting to 127.0.0.1:11000. Connection refused.
Tried checking in common sites config everything is correct
What Might Be the issue can Anyone please help to solve this