Shouki - Server Error
Traceback (most recent call last):
File "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 "apps/frappe/frappe/website/serve.py", line 17, in get_response
endpoint, renderer_instance = path_resolver.resolve()
File "apps/frappe/frappe/website/path_resolver.py", line 36, in resolve
resolve_redirect(self.path, request.query_string)
File "apps/frappe/frappe/website/path_resolver.py", line 109, in resolve_redirect
redirects += frappe.get_all("Website Route Redirect", ["source", "target"], order_by=None)
File "apps/frappe/frappe/__init__.py", line 1938, in get_all
return get_list(doctype, *args, **kwargs)
File "apps/frappe/frappe/__init__.py", line 1910, in get_list
return frappe.model.db_query.DatabaseQuery(doctype).execute(*args, **kwargs)
File "apps/frappe/frappe/model/db_query.py", line 191, in execute
result = self.build_and_run()
File "apps/frappe/frappe/model/db_query.py", line 232, in build_and_run
return frappe.db.sql(
File "apps/frappe/frappe/database/database.py", line 221, in sql
self.connect()
File "apps/frappe/frappe/database/database.py", line 126, in connect
self._conn: "MariadbConnection" | "PostgresConnection" = self.get_connection()
File "apps/frappe/frappe/database/mariadb/database.py", line 103, in get_connection
conn = self._get_connection()
File "apps/frappe/frappe/database/mariadb/database.py", line 109, in _get_connection
return self.create_connection()
File "apps/frappe/frappe/database/mariadb/database.py", line 112, in create_connection
return pymysql.connect(**self.get_connection_settings())
File "env/lib/python3.10/site-packages/pymysql/connections.py", line 361, in __init__
self.connect()
File "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 '127.0.0.1' ([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/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 "apps/frappe/frappe/app.py", line 106, in application
response = get_response()
File "apps/frappe/frappe/website/serve.py", line 26, in get_response
response = ErrorPage(exception=e).render()
File "apps/frappe/frappe/website/page_renderers/template_page.py", line 84, in render
html = self.get_html()
File "apps/frappe/frappe/website/utils.py", line 517, in cache_html_decorator
html = func(*args, **kwargs)
File "apps/frappe/frappe/website/page_renderers/template_page.py", line 92, in get_html
self.init_context()
File "apps/frappe/frappe/website/page_renderers/error_page.py", line 14, in init_context
super().init_context()
File "apps/frappe/frappe/website/page_renderers/base_template_page.py", line 15, in init_context
self.context.update(get_website_settings())
File "apps/frappe/frappe/website/doctype/website_settings/website_settings.py", line 208, in get_website_settings
context.boot = get_boot_data()
File "apps/frappe/frappe/website/utils.py", line 170, in get_boot_data
"user": frappe.db.get_value("User", frappe.session.user, "time_zone") or get_system_timezone(),
File "apps/frappe/frappe/database/database.py", line 568, in get_value
result = self.get_values(
File "apps/frappe/frappe/database/database.py", line 672, in get_values
out = self._get_values_from_table(
File "apps/frappe/frappe/database/database.py", line 910, in _get_values_from_table
return query.run(as_dict=as_dict, debug=debug, update=update, run=run, pluck=pluck)
File "apps/frappe/frappe/query_builder/utils.py", line 87, in execute_query
result = frappe.db.sql(query, params, *args, **kwargs) # nosemgrep
File "apps/frappe/frappe/database/database.py", line 221, in sql
self.connect()
File "apps/frappe/frappe/database/database.py", line 126, in connect
self._conn: "MariadbConnection" | "PostgresConnection" = self.get_connection()
File "apps/frappe/frappe/database/mariadb/database.py", line 103, in get_connection
conn = self._get_connection()
File "apps/frappe/frappe/database/mariadb/database.py", line 109, in _get_connection
return self.create_connection()
File "apps/frappe/frappe/database/mariadb/database.py", line 112, in create_connection
return pymysql.connect(**self.get_connection_settings())
File "env/lib/python3.10/site-packages/pymysql/connections.py", line 361, in __init__
self.connect()
File "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 '127.0.0.1' ([Errno 111] Connection refused)")
Status: 500