Getting tenacity.RetryError: RetryError[] on different actions

After recent update to Frapee 14.23.0 and Erpnext 14.13.0, I am getting this error on different actions like saving, deleting.

For example, while saving some modifications made to ‘User’, this error appears.

Here’s the error:

App Versions

{
	"erpnext": "14.13.0",
	"frappe": "14.23.0",
	"hrms": "1.0.0",
	"payments": "0.0.1"
}

Route

Form/User/manish@example.com

Trackeback

Traceback (most recent call last):
  File "env/lib/python3.10/site-packages/redis/connection.py", line 559, in connect
    sock = self._connect()
  File "env/lib/python3.10/site-packages/redis/connection.py", line 615, in _connect
    raise err
  File "env/lib/python3.10/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 "env/lib/python3.10/site-packages/tenacity/__init__.py", line 407, in __call__
    result = fn(*args, **kwargs)
  File "apps/frappe/frappe/utils/background_jobs.py", line 351, in get_redis_conn
    redis_connection = RedisQueue.get_connection(**cred)
  File "apps/frappe/frappe/utils/redis_queue.py", line 24, in get_connection
    conn.ping()
  File "env/lib/python3.10/site-packages/redis/client.py", line 1378, in ping
    return self.execute_command('PING')
  File "env/lib/python3.10/site-packages/redis/client.py", line 898, in execute_command
    conn = self.connection or pool.get_connection(command_name, **options)
  File "env/lib/python3.10/site-packages/redis/connection.py", line 1192, in get_connection
    connection.connect()
  File "env/lib/python3.10/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 "apps/frappe/frappe/app.py", line 69, in application
    response = frappe.api.handle()
  File "apps/frappe/frappe/api.py", line 54, in handle
    return frappe.handler.handle()
  File "apps/frappe/frappe/handler.py", line 45, in handle
    data = execute_cmd(cmd)
  File "apps/frappe/frappe/handler.py", line 83, in execute_cmd
    return frappe.call(method, **frappe.form_dict)
  File "apps/frappe/frappe/__init__.py", line 1595, in call
    return fn(*args, **newargs)
  File "apps/frappe/frappe/desk/form/save.py", line 26, in savedocs
    doc.save()
  File "apps/frappe/frappe/model/document.py", line 305, in save
    return self._save(*args, **kwargs)
  File "apps/frappe/frappe/model/document.py", line 356, in _save
    self.run_post_save_methods()
  File "apps/frappe/frappe/model/document.py", line 1077, in run_post_save_methods
    self.run_method("on_update")
  File "apps/frappe/frappe/model/document.py", line 909, in run_method
    out = Document.hook(fn)(self, *args, **kwargs)
  File "apps/frappe/frappe/model/document.py", line 1259, in composer
    return composed(self, method, *args, **kwargs)
  File "apps/frappe/frappe/model/document.py", line 1241, in runner
    add_to_return_value(self, fn(self, *args, **kwargs))
  File "apps/frappe/frappe/model/document.py", line 906, in fn
    return method_object(*args, **kwargs)
  File "apps/frappe/frappe/core/doctype/user/user.py", line 123, in on_update
    frappe.enqueue(
  File "apps/frappe/frappe/__init__.py", line 2154, in enqueue
    return frappe.utils.background_jobs.enqueue(*args, **kwargs)
  File "apps/frappe/frappe/utils/background_jobs.py", line 93, in enqueue
    q = get_queue(queue, is_async=is_async)
  File "apps/frappe/frappe/utils/background_jobs.py", line 313, in get_queue
    return Queue(generate_qname(qtype), connection=get_redis_conn(), is_async=is_async)
  File "env/lib/python3.10/site-packages/tenacity/__init__.py", line 324, in wrapped_f
    return self(f, *args, **kw)
  File "env/lib/python3.10/site-packages/tenacity/__init__.py", line 404, in __call__
    do = self.iter(retry_state=retry_state)
  File "env/lib/python3.10/site-packages/tenacity/__init__.py", line 361, in iter
    raise retry_exc from fut.exception()
tenacity.RetryError: RetryError[<Future at 0x7f63d52b5fc0 state=finished raised ConnectionError>]

Request Data

{
	"type": "POST",
	"args": {
		"doc": "{\"name\":\"manish@example.com\",\"owner\":\"anup@example.com\",\"creation\":\"2023-01-09 13:37:48.518306\",\"modified\":\"2023-01-17 11:40:14.580720\",\"modified_by\":\"anup@example.com\",\"docstatus\":0,\"idx\":0,\"enabled\":1,\"email\":\"manish@example.com\",\"first_name\":\"Manish\",\"middle_name\":\"\",\"last_name\":\"Tamang\",\"full_name\":\"Manish Tamang\",\"username\":\"manish\",\"language\":\"en\",\"time_zone\":\"Asia/Kathmandu\",\"send_welcome_email\":1,\"unsubscribed\":0,\"user_image\":\"/private/files/photo.jpeg\",\"gender\":\"Male\",\"birth_date\":\"1997-08-25\",\"desk_theme\":\"Light\",\"phone\":\"\",\"mute_sounds\":0,\"mobile_no\":\"9802305074\",\"new_password\":\"\",\"logout_all_sessions\":1,\"reset_password_key\":\"\",\"last_reset_password_key_generated_on\":\"*****\",\"last_password_reset_date\":\"*****\",\"redirect_url\":\"\",\"document_follow_notify\":0,\"document_follow_frequency\":\"Daily\",\"follow_created_documents\":0,\"follow_commented_documents\":0,\"follow_liked_documents\":0,\"follow_assigned_documents\":0,\"follow_shared_documents\":0,\"thread_notify\":1,\"send_me_a_copy\":0,\"allowed_in_mentions\":1,\"module_profile\":\"Site Engineer\",\"simultaneous_sessions\":1,\"last_ip\":\"113.199.227.20\",\"login_after\":0,\"user_type\":\"System User\",\"last_active\":\"2023-01-22 13:20:15.158290\",\"login_before\":0,\"bypass_restrict_ip_check_if_2fa_enabled\":0,\"last_login\":\"2023-01-22 10:14:29.404282\",\"last_known_versions\":\"{\\\"hrms\\\": {\\\"title\\\": \\\"Frappe HR\\\", \\\"description\\\": \\\"Modern HR and Payroll Software\\\", \\\"branch\\\": \\\"develop\\\", \\\"version\\\": \\\"1.0.0\\\"}, \\\"erpnext\\\": {\\\"title\\\": \\\"ERPNext\\\", \\\"description\\\": \\\"ERP made simple\\\", \\\"branch\\\": \\\"version-14\\\", \\\"version\\\": \\\"14.7.0\\\"}, \\\"payments\\\": {\\\"title\\\": \\\"Payments\\\", \\\"description\\\": \\\"Payments app for frappe\\\", \\\"branch\\\": \\\"develop\\\", \\\"version\\\": \\\"0.0.1\\\"}, \\\"frappe\\\": {\\\"title\\\": \\\"Frappe Framework\\\", \\\"description\\\": \\\"Full stack web framework with Python, Javascript, MariaDB, Redis, Node\\\", \\\"branch\\\": \\\"version-14\\\", \\\"version\\\": \\\"14.15.0\\\"}}\",\"doctype\":\"User\",\"social_logins\":[{\"name\":\"62204308c5\",\"owner\":\"anup@example.com\",\"creation\":\"2023-01-09 13:37:49.222196\",\"modified\":\"2023-01-17 11:40:14.580720\",\"modified_by\":\"anup@example.com\",\"docstatus\":0,\"idx\":1,\"provider\":\"frappe\",\"userid\":\"99cf32fc908b0e088724f2c990589294422bc77\",\"parent\":\"manish@example.com\",\"parentfield\":\"social_logins\",\"parenttype\":\"User\",\"doctype\":\"User Social Login\"}],\"defaults\":[],\"block_modules\":[{\"name\":\"384f43ec59\",\"creation\":\"2023-01-17 11:40:17.184351\",\"modified\":\"2023-01-17 11:40:17.184351\",\"modified_by\":\"anup@example.com\",\"docstatus\":0,\"idx\":1,\"module\":\"Core\",\"parent\":\"manish@example.com\",\"parentfield\":\"block_modules\",\"parenttype\":\"User\",\"doctype\":\"Block Module\"},{\"name\":\"fe19caa36e\",\"creation\":\"2023-01-17 11:40:17.195922\",\"modified\":\"2023-01-17 11:40:17.195922\",\"modified_by\":\"anup@example.com\",\"docstatus\":0,\"idx\":2,\"module\":\"Workflow\",\"parent\":\"manish@example.com\",\"parentfield\":\"block_modules\",\"parenttype\":\"User\",\"doctype\":\"Block Module\"},{\"name\":\"1d1629352f\",\"creation\":\"2023-01-17 11:40:17.203922\",\"modified\":\"2023-01-17 11:40:17.203922\",\"modified_by\":\"anup@example.com\",\"docstatus\":0,\"idx\":3,\"module\":\"Custom\",\"parent\":\"manish@example.com\",\"parentfield\":\"block_modules\",\"parenttype\":\"User\",\"doctype\":\"Block Module\"},{\"name\":\"6d7c5e0d6e\",\"creation\":\"2023-01-17 11:40:17.211805\",\"modified\":\"2023-01-17 11:40:17.211805\",\"modified_by\":\"anup@example.com\",\"docstatus\":0,\"idx\":4,\"module\":\"Printing\",\"parent\":\"manish@example.com\",\"parentfield\":\"block_modules\",\"parenttype\":\"User\",\"doctype\":\"Block Module\"},{\"name\":\"4829e29b06\",\"creation\":\"2023-01-17 11:40:17.218562\",\"modified\":\"2023-01-17 11:40:17.218562\",\"modified_by\":\"anup@example.com\",\"docstatus\":0,\"idx\":5,\"module\":\"Automation\",\"parent\":\"manish@example.com\",\"parentfield\":\"block_modules\",\"parenttype\":\"User\",\"doctype\":\"Block Module\"},{\"name\":\"487cfe8611\",\"creation\":\"2023-01-17 11:40:17.228297\",\"modified\":\"2023-01-17 11:40:17.228297\",\"modified_by\":\"anup@example.com\",\"docstatus\":0,\"idx\":6,\"module\":\"Accounts\",\"parent\":\"manish@example.com\",\"parentfield\":\"block_modules\",\"parenttype\":\"User\",\"doctype\":\"Block Module\"},{\"name\":\"7b19796261\",\"creation\":\"2023-01-17 11:40:17.236629\",\"modified\":\"2023-01-17 11:40:17.236629\",\"modified_by\":\"anup@example.com\",\"docstatus\":0,\"idx\":7,\"module\":\"Selling\",\"parent\":\"manish@example.com\",\"parentfield\":\"block_modules\",\"parenttype\":\"User\",\"doctype\":\"Block Module\"},{\"name\":\"9a2bdc70bc\",\"creation\":\"2023-01-17 11:40:17.250963\",\"modified\":\"2023-01-17 11:40:17.250963\",\"modified_by\":\"anup@example.com\",\"docstatus\":0,\"idx\":8,\"module\":\"Utilities\",\"parent\":\"manish@example.com\",\"parentfield\":\"block_modules\",\"parenttype\":\"User\",\"doctype\":\"Block Module\"},{\"name\":\"906c8f9bda\",\"creation\":\"2023-01-17 11:40:17.255457\",\"modified\":\"2023-01-17 11:40:17.255457\",\"modified_by\":\"anup@example.com\",\"docstatus\":0,\"idx\":9,\"module\":\"Portal\",\"parent\":\"manish@example.com\",\"parentfield\":\"block_modules\",\"parenttype\":\"User\",\"doctype\":\"Block Module\"},{\"name\":\"36b09e53e0\",\"creation\":\"2023-01-17 11:40:17.268100\",\"modified\":\"2023-01-17 11:40:17.268100\",\"modified_by\":\"anup@example.com\",\"docstatus\":0,\"idx\":10,\"module\":\"Regional\",\"parent\":\"manish@example.com\",\"parentfield\":\"block_modules\",\"parenttype\":\"User\",\"doctype\":\"Block Module\"},{\"name\":\"d54d673e12\",\"creation\":\"2023-01-17 11:40:17.277645\",\"modified\":\"2023-01-17 11:40:17.277645\",\"modified_by\":\"anup@example.com\",\"docstatus\":0,\"idx\":11,\"module\":\"Quality Management\",\"parent\":\"manish@example.com\",\"parentfield\":\"block_modules\",\"parenttype\":\"User\",\"doctype\":\"Block Module\"},{\"name\":\"c3069d85d1\",\"creation\":\"2023-01-17 11:40:17.283791\",\"modified\":\"2023-01-17 11:40:17.283791\",\"modified_by\":\"anup@example.com\",\"docstatus\":0,\"idx\":12,\"module\":\"Loan Management\",\"parent\":\"manish@example.com\",\"parentfield\":\"block_modules\",\"parenttype\":\"User\",\"doctype\":\"Block Module\"},{\"name\":\"2429e5ed42\",\"creation\":\"2023-01-17 11:40:17.292452\",\"modified\":\"2023-01-17 11:40:17.292452\",\"modified_by\":\"anup@example.com\",\"docstatus\":0,\"idx\":13,\"module\":\"Telephony\",\"parent\":\"manish@example.com\",\"parentfield\":\"block_modules\",\"parenttype\":\"User\",\"doctype\":\"Block Module\"},{\"name\":\"b05fbe2cf9\",\"creation\":\"2023-01-17 11:40:17.300686\",\"modified\":\"2023-01-17 11:40:17.300686\",\"modified_by\":\"anup@example.com\",\"docstatus\":0,\"idx\":14,\"module\":\"E-commerce\",\"parent\":\"manish@example.com\",\"parentfield\":\"block_modules\",\"parenttype\":\"User\",\"doctype\":\"Block Module\"},{\"name\":\"68a48ac357\",\"creation\":\"2023-01-17 11:40:17.308691\",\"modified\":\"2023-01-17 11:40:17.308691\",\"modified_by\":\"anup@example.com\",\"docstatus\":0,\"idx\":15,\"module\":\"Maintenance\",\"parent\":\"manish@example.com\",\"parentfield\":\"block_modules\",\"parenttype\":\"User\",\"doctype\":\"Block Module\"},{\"name\":\"5683b4b419\",\"creation\":\"2023-01-17 11:40:17.315028\",\"modified\":\"2023-01-17 11:40:17.315028\",\"modified_by\":\"anup@example.com\",\"docstatus\":0,\"idx\":16,\"module\":\"Assets\",\"parent\":\"manish@example.com\",\"parentfield\":\"block_modules\",\"parenttype\":\"User\",\"doctype\":\"Block Module\"},{\"name\":\"9ef9953381\",\"creation\":\"2023-01-17 11:40:17.323505\",\"modified\":\"2023-01-17 11:40:17.323505\",\"modified_by\":\"anup@example.com\",\"docstatus\":0,\"idx\":17,\"module\":\"Support\",\"parent\":\"manish@example.com\",\"parentfield\":\"block_modules\",\"parenttype\":\"User\",\"doctype\":\"Block Module\"},{\"name\":\"9001e9f5b7\",\"creation\":\"2023-01-17 11:40:17.326775\",\"modified\":\"2023-01-17 11:40:17.326775\",\"modified_by\":\"anup@example.com\",\"docstatus\":0,\"idx\":18,\"module\":\"Manufacturing\",\"parent\":\"manish@example.com\",\"parentfield\":\"block_modules\",\"parenttype\":\"User\",\"doctype\":\"Block Module\"},{\"name\":\"2282b5c0d5\",\"creation\":\"2023-01-17 11:40:17.331444\",\"modified\":\"2023-01-17 11:40:17.331444\",\"modified_by\":\"anup@example.com\",\"docstatus\":0,\"idx\":19,\"module\":\"CRM\",\"parent\":\"manish@example.com\",\"parentfield\":\"block_modules\",\"parenttype\":\"User\",\"doctype\":\"Block Module\"},{\"name\":\"43404c04e9\",\"creation\":\"2023-01-17 11:40:17.337147\",\"modified\":\"2023-01-17 11:40:17.337147\",\"modified_by\":\"anup@example.com\",\"docstatus\":0,\"idx\":20,\"module\":\"Event Streaming\",\"parent\":\"manish@example.com\",\"parentfield\":\"block_modules\",\"parenttype\":\"User\",\"doctype\":\"Block Module\"},{\"name\":\"783292b619\",\"creation\":\"2023-01-17 11:40:17.347871\",\"modified\":\"2023-01-17 11:40:17.347871\",\"modified_by\":\"anup@example.com\",\"docstatus\":0,\"idx\":21,\"module\":\"Social\",\"parent\":\"manish@example.com\",\"parentfield\":\"block_modules\",\"parenttype\":\"User\",\"doctype\":\"Block Module\"},{\"name\":\"6e9a7f7fa2\",\"creation\":\"2023-01-17 11:40:17.357377\",\"modified\":\"2023-01-17 11:40:17.357377\",\"modified_by\":\"anup@example.com\",\"docstatus\":0,\"idx\":22,\"module\":\"Contacts\",\"parent\":\"manish@example.com\",\"parentfield\":\"block_modules\",\"parenttype\":\"User\",\"doctype\":\"Block Module\"},{\"name\":\"d3e4df0e8d\",\"creation\":\"2023-01-17 11:40:17.363089\",\"modified\":\"2023-01-17 11:40:17.363089\",\"modified_by\":\"anup@example.com\",\"docstatus\":0,\"idx\":23,\"module\":\"Geo\",\"parent\":\"manish@example.com\",\"parentfield\":\"block_modules\",\"parenttype\":\"User\",\"doctype\":\"Block Module\"},{\"name\":\"94e48f2549\",\"creation\":\"2023-01-17 11:40:17.369267\",\"modified\":\"2023-01-17 11:40:17.369267\",\"modified_by\":\"anup@example.com\",\"docstatus\":0,\"idx\":24,\"module\":\"Integrations\",\"parent\":\"manish@example.com\",\"parentfield\":\"block_modules\",\"parenttype\":\"User\",\"doctype\":\"Block Module\"},{\"name\":\"f45a0b4b2c\",\"creation\":\"2023-01-17 11:40:17.373075\",\"modified\":\"2023-01-17 11:40:17.373075\",\"modified_by\":\"anup@example.com\",\"docstatus\":0,\"idx\":25,\"module\":\"Email\",\"parent\":\"manish@example.com\",\"parentfield\":\"block_modules\",\"parenttype\":\"User\",\"doctype\":\"Block Module\"},{\"name\":\"f862f91509\",\"creation\":\"2023-01-17 11:40:17.375748\",\"modified\":\"2023-01-17 11:40:17.375748\",\"modified_by\":\"anup@example.com\",\"docstatus\":0,\"idx\":26,\"module\":\"Website\",\"parent\":\"manish@example.com\",\"parentfield\":\"block_modules\",\"parenttype\":\"User\",\"doctype\":\"Block Module\"},{\"name\":\"b47dda8b41\",\"creation\":\"2023-01-17 11:40:17.378141\",\"modified\":\"2023-01-17 11:40:17.378141\",\"modified_by\":\"anup@example.com\",\"docstatus\":0,\"idx\":27,\"module\":\"Buying\",\"parent\":\"manish@example.com\",\"parentfield\":\"block_modules\",\"parenttype\":\"User\",\"doctype\":\"Block Module\"},{\"name\":\"e552a5febb\",\"creation\":\"2023-01-17 11:40:17.380705\",\"modified\":\"2023-01-17 11:40:17.380705\",\"modified_by\":\"anup@example.com\",\"docstatus\":0,\"idx\":28,\"module\":\"Payment Gateways\",\"parent\":\"manish@example.com\",\"parentfield\":\"block_modules\",\"parenttype\":\"User\",\"doctype\":\"Block Module\"},{\"name\":\"d33d31aa77\",\"creation\":\"2023-01-17 11:40:17.383764\",\"modified\":\"2023-01-17 11:40:17.383764\",\"modified_by\":\"anup@example.com\",\"docstatus\":0,\"idx\":29,\"module\":\"Bulk Transaction\",\"parent\":\"manish@example.com\",\"parentfield\":\"block_modules\",\"parenttype\":\"User\",\"doctype\":\"Block Module\"},{\"name\":\"903c93d09f\",\"creation\":\"2023-01-17 11:40:17.389254\",\"modified\":\"2023-01-17 11:40:17.389254\",\"modified_by\":\"anup@example.com\",\"docstatus\":0,\"idx\":30,\"module\":\"Subcontracting\",\"parent\":\"manish@example.com\",\"parentfield\":\"block_modules\",\"parenttype\":\"User\",\"doctype\":\"Block Module\"},{\"name\":\"962b89d0ec\",\"creation\":\"2023-01-17 11:40:17.395244\",\"modified\":\"2023-01-17 11:40:17.395244\",\"modified_by\":\"anup@example.com\",\"docstatus\":0,\"idx\":31,\"module\":\"Communication\",\"parent\":\"manish@example.com\",\"parentfield\":\"block_modules\",\"parenttype\":\"User\",\"doctype\":\"Block Module\"},{\"name\":\"0b0c9beca8\",\"creation\":\"2023-01-17 11:40:17.399827\",\"modified\":\"2023-01-17 11:40:17.399827\",\"modified_by\":\"anup@example.com\",\"docstatus\":0,\"idx\":32,\"module\":\"Payments\",\"parent\":\"manish@example.com\",\"parentfield\":\"block_modules\",\"parenttype\":\"User\",\"doctype\":\"Block Module\"},{\"name\":\"1d72f23806\",\"creation\":\"2023-01-17 11:40:17.411694\",\"modified\":\"2023-01-17 11:40:17.411694\",\"modified_by\":\"anup@example.com\",\"docstatus\":0,\"idx\":33,\"module\":\"Setup\",\"parent\":\"manish@example.com\",\"parentfield\":\"block_modules\",\"parenttype\":\"User\",\"doctype\":\"Block Module\"},{\"name\":\"30f6aab95b\",\"creation\":\"2023-01-17 11:40:17.416979\",\"modified\":\"2023-01-17 11:40:17.416979\",\"modified_by\":\"anup@example.com\",\"docstatus\":0,\"idx\":34,\"module\":\"ERPNext Integrations\",\"parent\":\"manish@example.com\",\"parentfield\":\"block_modules\",\"parenttype\":\"User\",\"doctype\":\"Block Module\"}],\"roles\":[{\"name\":\"274f3fa8fd\",\"owner\":\"anup@example.com\",\"creation\":\"2023-01-09 13:37:48.518306\",\"modified\":\"2023-01-17 11:40:14.580720\",\"modified_by\":\"anup@example.com\",\"docstatus\":0,\"idx\":2,\"role\":\"Projects User\",\"parent\":\"manish@example.com\",\"parentfield\":\"roles\",\"parenttype\":\"User\",\"doctype\":\"Has Role\"},{\"name\":\"f7089d470e\",\"owner\":\"anup@example.com\",\"creation\":\"2023-01-09 13:37:48.518306\",\"modified\":\"2023-01-17 11:40:14.580720\",\"modified_by\":\"anup@example.com\",\"docstatus\":0,\"idx\":3,\"role\":\"Purchase User (NO PO)\",\"parent\":\"manish@example.com\",\"parentfield\":\"roles\",\"parenttype\":\"User\",\"doctype\":\"Has Role\"},{\"name\":\"59293ef8d5\",\"owner\":\"anup@example.com\",\"creation\":\"2023-01-09 13:37:48.518306\",\"modified\":\"2023-01-17 11:40:14.580720\",\"modified_by\":\"anup@example.com\",\"docstatus\":0,\"idx\":4,\"role\":\"Site Engineer\",\"parent\":\"manish@example.com\",\"parentfield\":\"roles\",\"parenttype\":\"User\",\"doctype\":\"Has Role\"},{\"name\":\"0e3217a06d\",\"owner\":\"anup@example.com\",\"creation\":\"2023-01-09 13:37:48.518306\",\"modified\":\"2023-01-17 11:40:14.580720\",\"modified_by\":\"anup@example.com\",\"docstatus\":0,\"idx\":5,\"role\":\"Employee\",\"parent\":\"manish@example.com\",\"parentfield\":\"roles\",\"parenttype\":\"User\",\"doctype\":\"Has Role\"},{\"name\":\"112c990e15\",\"owner\":\"anup@example.com\",\"creation\":\"2023-01-09 13:37:48.518306\",\"modified\":\"2023-01-17 11:40:14.580720\",\"modified_by\":\"anup@example.com\",\"docstatus\":0,\"idx\":5,\"role\":\"Translator\",\"parent\":\"manish@example.com\",\"parentfield\":\"roles\",\"parenttype\":\"User\",\"doctype\":\"Has Role\"}],\"user_emails\":[],\"__onload\":{\"all_modules\":[\"Core\",\"Website\",\"Workflow\",\"Email\",\"Custom\",\"Geo\",\"Desk\",\"Integrations\",\"Printing\",\"Contacts\",\"Social\",\"Automation\",\"Event Streaming\",\"Accounts\",\"CRM\",\"Buying\",\"Projects\",\"Selling\",\"Setup\",\"Manufacturing\",\"Stock\",\"Support\",\"Utilities\",\"Assets\",\"Portal\",\"Maintenance\",\"Regional\",\"ERPNext Integrations\",\"Quality Management\",\"Communication\",\"Loan Management\",\"Telephony\",\"E-commerce\",\"Bulk Transaction\",\"Subcontracting\",\"Payments\",\"Payment Gateways\",\"HR\",\"Payroll\"]},\"__last_sync_on\":\"2023-01-22T08:08:10.038Z\",\"__unsaved\":1}",
		"action": "Save"
	},
	"btn": {
		"jQuery3600142634859211008941": {
			"events": {
				"click": [
					{
						"type": "click",
						"origType": "click",
						"guid": 1061,
						"namespace": ""
					}
				]
			}
		}
	},
	"freeze": true,
	"headers": {},
	"error_handlers": {},
	"url": "/api/method/frappe.desk.form.save.savedocs"
}

Response Data

{
	"exception": "tenacity.RetryError: RetryError[<Future at 0x7f63d52b5fc0 state=finished raised ConnectionError>]"
}

I am facing the error.

ERPNext: v14.30.6 (version-14)
Frappe Framework: v14.40.3 (version-14)

frappe@server:~/frappe-bench$ bench doctor
Please make sure that Redis Queue runs @ redis://localhost:11000
Please make sure that Redis Queue runs @ redis://localhost:11000
Please make sure that Redis Queue runs @ redis://localhost:11000
Please make sure that Redis Queue runs @ redis://localhost:11000
Please make sure that Redis Queue runs @ redis://localhost:11000
Please make sure that Redis Queue runs @ redis://localhost:11000
Please make sure that Redis Queue runs @ redis://localhost:11000
Please make sure that Redis Queue runs @ redis://localhost:11000

What is the solution to this problem?

It could be because of connection failure. Check if nginx and redis servers are running. Restart bench. Restart supervisors. If it does not solve problem, may be someone here can help.