ConnectionRefusedError: [Errno 111] Connection refused plss h

Installing lms…
Updating DocTypes for lms : [================================ ] 82%An error occurred while installing lms: Error 111 connecting to 127.0.0.1:13000. Connection refused.
Traceback (most recent call last):
File “apps/frappe/frappe/core/doctype/file/utils.py”, line 354, in attach_files_to_document
file.insert(ignore_permissions=True)
File “apps/frappe/frappe/model/document.py”, line 256, in insert
self.run_method(“before_insert”)
File “apps/frappe/frappe/model/document.py”, line 915, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
File “apps/frappe/frappe/model/document.py”, line 1277, in composer
return composed(self, method, *args, **kwargs)
File “apps/frappe/frappe/model/document.py”, line 1259, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File “apps/frappe/frappe/model/document.py”, line 912, in fn
return method_object(*args, **kwargs)
File “apps/frappe/frappe/core/doctype/file/file.py”, line 72, in before_insert
self.save_file(content=self.get_content())
File “apps/frappe/frappe/core/doctype/file/file.py”, line 476, in get_content
with open(file_path, mode=“rb”) as f:
FileNotFoundError: [Errno 2] No such file or directory: ‘./airplane/public/files/og_image_web_form_evaluation_68ddf18e.png’

During handling of the above exception, another exception occurred:

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 “apps/frappe/frappe/commands/site.py”, line 415, in install_app
_install_app(app, verbose=context.verbose, force=force)
File “apps/frappe/frappe/installer.py”, line 297, in install_app
sync_for(name, force=force, reset_permissions=True)
File “apps/frappe/frappe/model/sync.py”, line 109, in sync_for
import_file_by_path(
File “apps/frappe/frappe/modules/import_file.py”, line 145, in import_file_by_path
import_doc(
File “apps/frappe/frappe/modules/import_file.py”, line 242, in import_doc
doc.insert()
File “apps/frappe/frappe/model/document.py”, line 289, in insert
self.run_post_save_methods()
File “apps/frappe/frappe/model/document.py”, line 1088, in run_post_save_methods
self.run_method(“on_update”)
File “apps/frappe/frappe/model/document.py”, line 915, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
File “apps/frappe/frappe/model/document.py”, line 1277, in composer
return composed(self, method, *args, **kwargs)
File “apps/frappe/frappe/model/document.py”, line 1261, in runner
add_to_return_value(self, f(self, method, *args, **kwargs))
File “apps/frappe/frappe/core/doctype/file/utils.py”, line 356, in attach_files_to_document
doc.log_error(“Error Attaching File”)
File “apps/frappe/frappe/model/document.py”, line 1404, in log_error
return frappe.log_error(
File “apps/frappe/frappe/init.py”, line 2277, in log_error
return error_log.insert(ignore_permissions=True)
File “apps/frappe/frappe/model/document.py”, line 257, in insert
self.set_new_name(set_name=set_name, set_child_names=set_child_names)
File “apps/frappe/frappe/model/document.py”, line 449, in set_new_name
set_new_name(self)
File “apps/frappe/frappe/model/naming.py”, line 148, in set_new_name
if is_autoincremented(doc.doctype, meta):
File “apps/frappe/frappe/model/naming.py”, line 179, in is_autoincremented
return _implicitly_auto_incremented(doctype)
File “apps/frappe/frappe/utils/caching.py”, line 154, in redis_cache_wrapper
if frappe.cache().exists(func_call_key):
File “apps/frappe/frappe/utils/redis_wrapper.py”, line 178, in exists
return super().exists(*names)
File “env/lib/python3.10/site-packages/redis/client.py”, line 1581, in exists
return self.execute_command(‘EXISTS’, *names)
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 127.0.0.1:13000. Connection refused.

Check that redis is running
systemctl status redis-server or ss -antlp | grep -E 'redis|6379'
and start/restart it if necessary
systemctl restart redis-server