Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve Dative not working — 2024-06-04 #13

Open
jrwdunham opened this issue Jun 4, 2024 · 1 comment
Open

Resolve Dative not working — 2024-06-04 #13

jrwdunham opened this issue Jun 4, 2024 · 1 comment
Assignees

Comments

@jrwdunham
Copy link
Member

Problem: Requests to OLD API return 500.

AC:

  • Figure out and document the root cause in this ticket.
  • Solve the issue: ensure users can login via Dative and use the system.
@jrwdunham jrwdunham self-assigned this Jun 4, 2024
@jrwdunham jrwdunham converted this from a draft issue Jun 4, 2024
@jrwdunham
Copy link
Member Author

Root cause: MySQL connections sleeping for up to 8h! (Root cause of that is that SQLAlchemy is misconfigured and/or one MySQL database per OLD instance is bad architecture.)

Resolution: set MySQL wait_timeout to 300, ie 5m.

Added the following to /etc/mysql/my.cnf, which sets the connection timeout to 5 minutes:

  [mysqld]
  wait_timeout = 300
  interactive_timeout = 300

@jrwdunham jrwdunham moved this from In Progress to Done in Migrate Dative to CIPL Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

1 participant