GNQA Search

ERROR

This error is not what we wanted to see. Unfortunately errors are part of all software systems and we need to resolve this together.

It is important to report this ERROR so we can fix it for everyone.

Report to the GeneNetwork team by recording the steps you take to reproduce this ERROR. Next to those steps, copy-paste below stack trace, either as a new issue or E-mail this full page to one of the developers directly.

(GeneNetwork error: (2002, "Can't connect to local server through socket '/run/mysqld/mysqld.sock' (2)"))

    GeneNetwork 2.11-rc2 
    (2002, "Can't connect to local server through socket '/run/mysqld/mysqld.sock' (2)") (error)
    
    
  

To check if this already a known issue, search the issue tracker.

Toggle full stack trace
      GeneNetwork 2.11-rc2  https://cd.genenetwork.org/submit_trait (11:01AM UTC Mar 28, 2024) 
Traceback (most recent call last):
  File "/gnu/store/jl6x90wdbwbs7c7zxnyz2kfd0qx8bf5h-profile/lib/python3.10/site-packages/flask/app.py", line 1523, in full_dispatch_request
    rv = self.dispatch_request()
  File "/gnu/store/jl6x90wdbwbs7c7zxnyz2kfd0qx8bf5h-profile/lib/python3.10/site-packages/flask/app.py", line 1509, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
  File "/genenetwork2/gn2/wqflask/views.py", line 414, in submit_trait_form
    species_and_groups = get_species_groups()
  File "/genenetwork2/gn2/utility/helper_functions.py", line 55, in get_species_groups
    with database_connection(get_setting("SQL_URI")) as conn, conn.cursor() as cursor:
  File "/gnu/store/3lxr2xg3yscdb3979blgjg0h7xd1n9la-python-3.10.7/lib/python3.10/contextlib.py", line 135, in __enter__
    return next(self.gen)
  File "/genenetwork2/gn2/wqflask/database.py", line 39, in database_connection
    connection = MySQLdb.connect(
  File "/gnu/store/jl6x90wdbwbs7c7zxnyz2kfd0qx8bf5h-profile/lib/python3.10/site-packages/MySQLdb/__init__.py", line 130, in Connect
    return Connection(*args, **kwargs)
  File "/gnu/store/jl6x90wdbwbs7c7zxnyz2kfd0qx8bf5h-profile/lib/python3.10/site-packages/MySQLdb/connections.py", line 185, in __init__
    super().__init__(*args, **kwargs2)
MySQLdb._exceptions.OperationalError: (2002, "Can't connect to local server through socket '/run/mysqld/mysqld.sock' (2)")