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

[BUG] Reconnect to database fail #558

Open
1 task done
Luzifix opened this issue Sep 8, 2024 · 1 comment
Open
1 task done

[BUG] Reconnect to database fail #558

Luzifix opened this issue Sep 8, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Luzifix
Copy link

Luzifix commented Sep 8, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

After lose connection to the database the reconnect not work and only a restart of the docker container helps

Expected Behavior

The bot can reconnect to the database after losing connection

Steps To Reproduce

  1. Start the database and the bot
  2. Kill the database process
  3. Do a command like /force-close or any other which result into database actions
  4. Start the Database
  5. Do the same command
  6. You still get the error:
[08/09/24 10:17:04] [INFO] (PRISMA) @../../app/src/client.js:96:46 quaint::pooled Starting a mysql pool with 29 connections.
[08/09/24 10:17:07] [ERROR] (PRISMA) @../../app/src/client.js:95:48 guild.findUnique 
Invalid `prisma.guild.findUnique()` invocation:


Can't reach database server at `127.0.0.1`:`3306`

Environment

- OS: Linux
- Node: docker
- NPM: docker
- Bot: 4.0.19

Anything else?

Im using a MariaDB 10.6.19 as MySQL Server

@Luzifix Luzifix added the bug Something isn't working label Sep 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants