-
Notifications
You must be signed in to change notification settings - Fork 442
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
MySQL server has gone away in Windows #403
Comments
Can you show the logs for the mariadb container? If its a crash or similar can you try the container quay.io/mariadb-foundation/mariadb-debug using the same major version tag as your maridab container. Its logs should be a little more verbose. |
These are the container logs. Some what I have noticed is a common error for some tables: |
Installed EXTRA |
Starting with the error code:
The preallocation that linux uses is
If we look at the first, we see that with an open file descriptor it should already refer to a file, and therefore denying its existance in an error message is quite odd. Because this is Windows I'm assuming its a WSL version? I'm suspecting something similar to #331 / MDEV-24189, a very clear difference between the linux functions and the WSL implementations. Like what Vlad did in MDEV-24189 can you instigate a procmon recording of the migration at the same time as recording the strace of the mysqld/mariadbd process.
|
Reported: microsoft/WSL#8443 |
Note that the windows-based mongo images do not have any entrypoint or initialization logic. Related information in docker-library/postgres#506 and the official images faq. |
I have webdevops/php-apache-dev:8.0 and latest mariadb images docker, running in Windows.
My issue: when I run a Laravel or Yii2 migration via console (
docker exec -ti php-container php artisan migrate
for Laravel,docker exec -ti php-container php yii migrate
for Yii2), I always get in errorMySQL server has gone away
, but it happens only when my docker images are in Windows, but if I run the same docker-compose file in Linux, it runs the commands without any issue.The text was updated successfully, but these errors were encountered: