I too got the same error
Here is a copy-paste of the total error.
Restoring Database file...
12.1KiB 0:00:00 [17.5MiB/s] [=============================================================================================================================================>] 100%
Installing frappe...
Updating DocTypes for frappe : [========================================] 100%
Updating country info : [========================================] 100%
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
Please make sure that Redis Queue runs @ redis://localhost:11000
Please make sure that Redis Queue runs @ redis://localhost:11000
Traceback (most recent call last):
File "/home/our/frappe-bench/apps/frappe/frappe/model/base_document.py", line 502, in db_insert
frappe.db.sql(
File "/home/our/frappe-bench/apps/frappe/frappe/database/database.py", line 219, in sql
self._cursor.execute(query, values)
File "/home/our/frappe-bench/env/lib/python3.10/site-packages/pymysql/cursors.py", line 158, in execute
result = self._query(query)
File "/home/our/frappe-bench/env/lib/python3.10/site-packages/pymysql/cursors.py", line 325, in _query
conn.query(q)
File "/home/our/frappe-bench/env/lib/python3.10/site-packages/pymysql/connections.py", line 549, in query
self._affected_rows = self._read_query_result(unbuffered=unbuffered)
File "/home/our/frappe-bench/env/lib/python3.10/site-packages/pymysql/connections.py", line 779, in _read_query_result
result.read()
File "/home/our/frappe-bench/env/lib/python3.10/site-packages/pymysql/connections.py", line 1157, in read
first_packet = self.connection._read_packet()
File "/home/our/frappe-bench/env/lib/python3.10/site-packages/pymysql/connections.py", line 729, in _read_packet
packet.raise_for_error()
File "/home/our/frappe-bench/env/lib/python3.10/site-packages/pymysql/protocol.py", line 221, in raise_for_error
err.raise_mysql_exception(self._data)
File "/home/our/frappe-bench/env/lib/python3.10/site-packages/pymysql/err.py", line 143, in raise_mysql_exception
raise errorclass(errno, errval)
pymysql.err.IntegrityError: (1062, "Duplicate entry 'email_account.pull' for key 'PRIMARY'")
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/our/frappe-bench/apps/frappe/frappe/core/doctype/scheduled_job_type/scheduled_job_type.py", line 209, in insert_single_event
doc.insert()
File "/home/our/frappe-bench/apps/frappe/frappe/model/document.py", line 270, in insert
self.db_insert(ignore_if_duplicate=ignore_if_duplicate)
File "/home/our/frappe-bench/apps/frappe/frappe/model/base_document.py", line 529, in db_insert
raise frappe.DuplicateEntryError(self.doctype, self.name, e)
frappe.exceptions.DuplicateEntryError: ('Scheduled Job Type', 'email_account.pull', IntegrityError(1062, "Duplicate entry 'email_account.pull' for key 'PRIMARY'"))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/our/frappe-bench/env/lib/python3.10/site-packages/redis/connection.py", line 559, in connect
sock = self._connect()
File "/home/our/frappe-bench/env/lib/python3.10/site-packages/redis/connection.py", line 615, in _connect
raise err
File "/home/our/frappe-bench/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 "/home/our/frappe-bench/env/lib/python3.10/site-packages/tenacity/__init__.py", line 407, in __call__
result = fn(*args, **kwargs)
File "/home/our/frappe-bench/apps/frappe/frappe/utils/background_jobs.py", line 380, in get_redis_conn
redis_connection = RedisQueue.get_connection(**cred)
File "/home/our/frappe-bench/apps/frappe/frappe/utils/redis_queue.py", line 24, in get_connection
conn.ping()
File "/home/our/frappe-bench/env/lib/python3.10/site-packages/redis/client.py", line 1378, in ping
return self.execute_command('PING')
File "/home/our/frappe-bench/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 "/home/our/frappe-bench/env/lib/python3.10/site-packages/redis/connection.py", line 1192, in get_connection
connection.connect()
File "/home/our/frappe-bench/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 "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/home/our/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 109, in <module>
main()
File "/home/our/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 18, in main
click.Group(commands=commands)(prog_name="bench")
File "/home/our/frappe-bench/env/lib/python3.10/site-packages/click/core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "/home/our/frappe-bench/env/lib/python3.10/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/home/our/frappe-bench/env/lib/python3.10/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/our/frappe-bench/env/lib/python3.10/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/our/frappe-bench/env/lib/python3.10/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/our/frappe-bench/env/lib/python3.10/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/home/our/frappe-bench/apps/frappe/frappe/commands/site.py", line 77, in new_site
_new_site(
File "/home/our/frappe-bench/apps/frappe/frappe/installer.py", line 106, in _new_site
install_app(app, verbose=verbose, set_as_patched=not source_sql, force=False)
File "/home/our/frappe-bench/apps/frappe/frappe/installer.py", line 306, in install_app
sync_jobs()
File "/home/our/frappe-bench/apps/frappe/frappe/core/doctype/scheduled_job_type/scheduled_job_type.py", line 152, in sync_jobs
all_events = insert_events(scheduler_events)
File "/home/our/frappe-bench/apps/frappe/frappe/core/doctype/scheduled_job_type/scheduled_job_type.py", line 164, in insert_events
event_jobs += insert_event_jobs(events, event_type)
File "/home/our/frappe-bench/apps/frappe/frappe/core/doctype/scheduled_job_type/scheduled_job_type.py", line 182, in insert_event_jobs
insert_single_event(frequency, event)
File "/home/our/frappe-bench/apps/frappe/frappe/core/doctype/scheduled_job_type/scheduled_job_type.py", line 212, in insert_single_event
doc.delete()
File "/home/our/frappe-bench/apps/frappe/frappe/model/document.py", line 1021, in delete
return frappe.delete_doc(
File "/home/our/frappe-bench/apps/frappe/frappe/__init__.py", line 1243, in delete_doc
return frappe.model.delete_doc.delete_doc(
File "/home/our/frappe-bench/apps/frappe/frappe/model/delete_doc.py", line 129, in delete_doc
frappe.enqueue(
File "/home/our/frappe-bench/apps/frappe/frappe/__init__.py", line 2166, in enqueue
return frappe.utils.background_jobs.enqueue(*args, **kwargs)
File "/home/our/frappe-bench/apps/frappe/frappe/utils/background_jobs.py", line 101, in enqueue
q = get_queue(queue, is_async=is_async)
File "/home/our/frappe-bench/apps/frappe/frappe/utils/background_jobs.py", line 342, in get_queue
return Queue(generate_qname(qtype), connection=get_redis_conn(), is_async=is_async)
File "/home/our/frappe-bench/env/lib/python3.10/site-packages/tenacity/__init__.py", line 324, in wrapped_f
return self(f, *args, **kw)
File "/home/our/frappe-bench/env/lib/python3.10/site-packages/tenacity/__init__.py", line 404, in __call__
do = self.iter(retry_state=retry_state)
File "/home/our/frappe-bench/env/lib/python3.10/site-packages/tenacity/__init__.py", line 361, in iter
raise retry_exc from fut.exception()
tenacity.RetryError: RetryError[<Future at 0x7f3757684550 state=finished raised ConnectionError>]