2024-09-17 04:06:25,618 ERROR scheduler Exception in Enqueue Events for Site riwollis-box.tcp4.me Traceback (most recent call last): File "/disk/service/web/home/erp/frappe-bench/env/lib/python3.10/site-packages/pymysql/connections.py", line 649, in connect sock = socket.create_connection( File "/usr/lib/python3.10/socket.py", line 845, in create_connection raise err File "/usr/lib/python3.10/socket.py", line 833, in create_connection sock.connect(sa) ConnectionRefusedError: [Errno 111] Connection refused During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/disk/service/web/home/erp/frappe-bench/apps/frappe/frappe/utils/scheduler.py", line 75, in enqueue_events_for_site if is_scheduler_inactive(): File "/disk/service/web/home/erp/frappe-bench/apps/frappe/frappe/utils/scheduler.py", line 117, in is_scheduler_inactive if is_scheduler_disabled(verbose=verbose): File "/disk/service/web/home/erp/frappe-bench/apps/frappe/frappe/utils/scheduler.py", line 130, in is_scheduler_disabled frappe.db.get_single_value("System Settings", "enable_scheduler") File "/disk/service/web/home/erp/frappe-bench/apps/frappe/frappe/database/database.py", line 841, in get_single_value ).run() File "/disk/service/web/home/erp/frappe-bench/apps/frappe/frappe/query_builder/utils.py", line 87, in execute_query result = frappe.db.sql(query, params, *args, **kwargs) # nosemgrep File "/disk/service/web/home/erp/frappe-bench/apps/frappe/frappe/database/database.py", line 211, in sql self.connect() File "/disk/service/web/home/erp/frappe-bench/apps/frappe/frappe/database/database.py", line 117, in connect self._conn: "MariadbConnection" | "PostgresConnection" = self.get_connection() File "/disk/service/web/home/erp/frappe-bench/apps/frappe/frappe/database/mariadb/database.py", line 107, in get_connection conn = self._get_connection() File "/disk/service/web/home/erp/frappe-bench/apps/frappe/frappe/database/mariadb/database.py", line 113, in _get_connection return self.create_connection() File "/disk/service/web/home/erp/frappe-bench/apps/frappe/frappe/database/mariadb/database.py", line 116, in create_connection return pymysql.connect(**self.get_connection_settings()) File "/disk/service/web/home/erp/frappe-bench/env/lib/python3.10/site-packages/pymysql/connections.py", line 361, in __init__ self.connect() File "/disk/service/web/home/erp/frappe-bench/env/lib/python3.10/site-packages/pymysql/connections.py", line 716, in connect raise exc pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 2024-09-20 00:56:00,919 ERROR scheduler Exception in Enqueue Events for Site riwollis-box.tcp4.me Traceback (most recent call last): File "/disk/service/web/home/erp/frappe-bench/env/lib/python3.10/site-packages/pymysql/connections.py", line 649, in connect sock = socket.create_connection( File "/usr/lib/python3.10/socket.py", line 845, in create_connection raise err File "/usr/lib/python3.10/socket.py", line 833, in create_connection sock.connect(sa) ConnectionRefusedError: [Errno 111] Connection refused During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/disk/service/web/home/erp/frappe-bench/apps/frappe/frappe/utils/scheduler.py", line 75, in enqueue_events_for_site if is_scheduler_inactive(): File "/disk/service/web/home/erp/frappe-bench/apps/frappe/frappe/utils/scheduler.py", line 117, in is_scheduler_inactive if is_scheduler_disabled(verbose=verbose): File "/disk/service/web/home/erp/frappe-bench/apps/frappe/frappe/utils/scheduler.py", line 130, in is_scheduler_disabled frappe.db.get_single_value("System Settings", "enable_scheduler") File "/disk/service/web/home/erp/frappe-bench/apps/frappe/frappe/database/database.py", line 841, in get_single_value ).run() File "/disk/service/web/home/erp/frappe-bench/apps/frappe/frappe/query_builder/utils.py", line 87, in execute_query result = frappe.db.sql(query, params, *args, **kwargs) # nosemgrep File "/disk/service/web/home/erp/frappe-bench/apps/frappe/frappe/database/database.py", line 211, in sql self.connect() File "/disk/service/web/home/erp/frappe-bench/apps/frappe/frappe/database/database.py", line 117, in connect self._conn: "MariadbConnection" | "PostgresConnection" = self.get_connection() File "/disk/service/web/home/erp/frappe-bench/apps/frappe/frappe/database/mariadb/database.py", line 107, in get_connection conn = self._get_connection() File "/disk/service/web/home/erp/frappe-bench/apps/frappe/frappe/database/mariadb/database.py", line 113, in _get_connection return self.create_connection() File "/disk/service/web/home/erp/frappe-bench/apps/frappe/frappe/database/mariadb/database.py", line 116, in create_connection return pymysql.connect(**self.get_connection_settings()) File "/disk/service/web/home/erp/frappe-bench/env/lib/python3.10/site-packages/pymysql/connections.py", line 361, in __init__ self.connect() File "/disk/service/web/home/erp/frappe-bench/env/lib/python3.10/site-packages/pymysql/connections.py", line 716, in connect raise exc pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)")