ERP System - Core Crash

If you see this, a module failed to load. Copy the error below.


Traceback (most recent call last):
  File "/home/crishxco/erp.crishx.com/erpnext-develop/frappe/app.py", line 101, in application
    run_after_request_hooks(request, response)
  File "/home/crishxco/erp.crishx.com/erpnext-develop/frappe/app.py", line 117, in run_after_request_hooks
    for after_request_task in frappe.get_hooks("after_request"):
  File "/home/crishxco/erp.crishx.com/erpnext-develop/frappe/__init__.py", line 1364, in get_hooks
    hooks = _dict(cache().get_value("app_hooks", load_app_hooks))
  File "/home/crishxco/erp.crishx.com/erpnext-develop/frappe/utils/redis_wrapper.py", line 84, in get_value
    val = generator()
  File "/home/crishxco/erp.crishx.com/erpnext-develop/frappe/__init__.py", line 1338, in load_app_hooks
    for app in [app_name] if app_name else get_installed_apps(_ensure_on_bench=True):
  File "/home/crishxco/erp.crishx.com/erpnext-develop/frappe/__init__.py", line 1292, in get_installed_apps
    installed = json.loads(db.get_global("installed_apps") or "[]")
  File "/home/crishxco/erp.crishx.com/erpnext-develop/frappe/database/database.py", line 884, in get_global
    return self.get_default(key, user)
  File "/home/crishxco/erp.crishx.com/erpnext-develop/frappe/database/database.py", line 888, in get_default
    d = self.get_defaults(key, parent)
  File "/home/crishxco/erp.crishx.com/erpnext-develop/frappe/database/database.py", line 905, in get_defaults
    defaults = frappe.defaults.get_defaults(parent)
  File "/home/crishxco/erp.crishx.com/erpnext-develop/frappe/defaults.py", line 89, in get_defaults
    globald = get_defaults_for()
  File "/home/crishxco/erp.crishx.com/erpnext-develop/frappe/defaults.py", line 234, in get_defaults_for
    res = frappe.db.sql(
  File "/home/crishxco/erp.crishx.com/erpnext-develop/frappe/database/database.py", line 161, in sql
    self.connect()
  File "/home/crishxco/erp.crishx.com/erpnext-develop/frappe/database/database.py", line 85, in connect
    self._conn = self.get_connection()
  File "/home/crishxco/erp.crishx.com/erpnext-develop/frappe/database/mariadb/database.py", line 76, in get_connection
    conn = pymysql.connect(
  File "/home/crishxco/virtualenv/erp.crishx.com/3.9/lib/python3.9/site-packages/pymysql/connections.py", line 353, in __init__
    self.connect()
  File "/home/crishxco/virtualenv/erp.crishx.com/3.9/lib/python3.9/site-packages/pymysql/connections.py", line 633, in connect
    self._request_authentication()
  File "/home/crishxco/virtualenv/erp.crishx.com/3.9/lib/python3.9/site-packages/pymysql/connections.py", line 907, in _request_authentication
    auth_packet = self._read_packet()
  File "/home/crishxco/virtualenv/erp.crishx.com/3.9/lib/python3.9/site-packages/pymysql/connections.py", line 725, in _read_packet
    packet.raise_for_error()
  File "/home/crishxco/virtualenv/erp.crishx.com/3.9/lib/python3.9/site-packages/pymysql/protocol.py", line 221, in raise_for_error
    err.raise_mysql_exception(self._data)
  File "/home/crishxco/virtualenv/erp.crishx.com/3.9/lib/python3.9/site-packages/pymysql/err.py", line 143, in raise_mysql_exception
    raise errorclass(errno, errval)
pymysql.err.OperationalError: (1045, "Access denied for user 'crishxco'@'localhost' (using password: NO)")

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/crishxco/erp.crishx.com/passenger_wsgi.py", line 40, in application
    return frappe_app(environ, start_response)
  File "/home/crishxco/virtualenv/erp.crishx.com/3.9/lib/python3.9/site-packages/werkzeug/local.py", line 231, in application
    return ClosingIterator(app(environ, start_response), self.cleanup)
  File "/home/crishxco/virtualenv/erp.crishx.com/3.9/lib/python3.9/site-packages/werkzeug/wrappers/base_request.py", line 237, in application
    resp = f(*args[:-2] + (request,))
  File "/home/crishxco/erp.crishx.com/erpnext-develop/frappe/app.py", line 104, in application
    frappe.logger().error("Failed to run after request hook", exc_info=True)
  File "/home/crishxco/erp.crishx.com/erpnext-develop/frappe/__init__.py", line 2043, in logger
    return get_logger(
  File "/home/crishxco/erp.crishx.com/erpnext-develop/frappe/utils/logger.py", line 69, in get_logger
    site_handler = RotatingFileHandler(sitelog_filename, maxBytes=max_size, backupCount=file_count)
  File "/opt/alt/python39/lib64/python3.9/logging/handlers.py", line 153, in __init__
    BaseRotatingHandler.__init__(self, filename, mode, encoding=encoding,
  File "/opt/alt/python39/lib64/python3.9/logging/handlers.py", line 58, in __init__
    logging.FileHandler.__init__(self, filename, mode=mode,
  File "/opt/alt/python39/lib64/python3.9/logging/__init__.py", line 1146, in __init__
    StreamHandler.__init__(self, self._open())
  File "/opt/alt/python39/lib64/python3.9/logging/__init__.py", line 1175, in _open
    return open(self.baseFilename, self.mode, encoding=self.encoding,
FileNotFoundError: [Errno 2] No such file or directory: '/home/crishxco/erp.crishx.com/erp.crishx.com/logs/frappe.log'