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

SQLSTATE[HY000] [2054] Server sent charset (0) unknown to the client. Please, report to the developers #7281

Open
christoff4444 opened this issue Feb 22, 2024 · 5 comments

Comments

@christoff4444
Copy link

christoff4444 commented Feb 22, 2024

Environment

  • Version: 2.6.8
  • Installation: Docker
  • PHP version: N/A
  • OS: Synology DSM 7.2.1-69057 Update 4
  • Database: MariaDB-1:11.3.2+maria~ubu2204
  • Parameters:
My app/config/parameters.yml is: MYSQL_ROOT_PASSWORD=**** SYMFONY__ENV__DATABASE_DRIVER=pdo_mysql SYMFONY__ENV__DATABASE_HOST=mariadb_wallabag SYMFONY__ENV__DATABASE_PORT=3306 SYMFONY__ENV__DATABASE_NAME=**** SYMFONY__ENV__DATABASE_USER=**** SYMFONY__ENV__DATABASE_PASSWORD=**** SYMFONY__ENV__DATABASE_CHARSET=utf8mb4 SYMFONY__ENV__DOMAIN_NAME=https://wallabag.****.fr SYMFONY__ENV__SERVER_NAME=TOF-Wallabag SYMFONY__ENV__FOSUSER_REGISTRATION=false SYMFONY__ENV__FOSUSER_CONFIRMATION=false SYMFONY__ENV__TWOFACTOR_AUTH=true

What steps will reproduce the bug?

> bin/console cache:clear --no-warmup In ExceptionConverter.php line 101: An exception occurred in the driver: SQLSTATE[HY000] [2054] Server sent charset (0) unknown to the client. Please, report to the developers In Exception.php line 28: SQLSTATE[HY000] [2054] Server sent charset (0) unknown to the client. Please, report to the developers In Driver.php line 34: Script bin/console cache:clear --no-warmup handling the post-cmd event returned with error code 255 Script @post-cmd was called via post-install-cmd

And the container reboot again and again.

Thank you for your help.

@Anti-Apple4life
Copy link

I am having this same issue, but on a dedicated server.

@Bladdermate
Copy link

I had the same problem yesterday after my docker containers had been updated. The error message hints about a compatibility issue with the latest MariaDB image and Wallabag concerning the database charset. I changed "image: mariadb" to "image: mariadb:lts" in my docker compose file and it solved the problem.

@Anti-Apple4life
Copy link

Anti-Apple4life commented Feb 22, 2024

What do i do on the standalone server side? (Debian 12)

@christoff4444
Copy link
Author

I had the same problem yesterday after my docker containers had been updated. The error message hints about a compatibility issue with the latest MariaDB image and Wallabag concerning the database charset. I changed "image: mariadb" to "image: mariadb:lts" in my docker compose file and it solved the problem.

For my part, I didn't go that far. I rolled from "iimage: mariadb:latest" to "image: mariadb:11.3" ... waiting for Wallabag to evolve.

@Anti-Apple4life
Copy link

When not running on docker, I still encounter this error. What should I do?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants