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
"Unable to start server" on Amazon Linux AMI (works with 5.7) #628
Comments
Try running it with |
When starting the container with the following command you suggested: The following log output can be seen:
It looks like Apparmor is not intervening and the is not problem there. I tried to double check the apparmor profile of the container process with the following bash script:
But go the following output: |
It seems kind of similar to other corrupted image issues we've had before, could you try a My other thought is that the warnings are actually issues, and they're constrained by the But otherwise I can't reproduce the issue, although I haven't tried on an ec2 server. And there's only about three other similar issues |
I reproduced the issue mutliple times after doing a
I ran the image with the ulimit parameter and got the following log:
I checked the issues you linked, but, as you said, they're just related and I couldn't find a fix in those. |
Curiously your error is changing. When you did an unconfined apparmor profile you lost the line And when you upped the ulimit you gained /usr/local/bin/docker-entrypoint.sh: line 88: 94 Killed "$@" --daemonize --skip-networking --socket="${SOCKET}" And the entrypoint logged |
From what I understand the mysqld error log should by default be logged to the console. |
It doesn't work for me too. But when I execute this command twice, it starts successfully. My log:
|
Just as a point of information, I had this error and it turned out I had ~15 instances of MySQL running on that machine (something was failing to clean up). Removing them and re-trying fixed the issue. |
Closing old issue. As far as I can tell, I don't think think there is anything actionable that we can change in the image. |
same issue, but could see the oom-killer in the |
When starting a mysql container with version
8.0.19
(lastest) the container is getting killed after a few seconds due to the following error taken fromdocker logs
:It works locally on a mac os system.
The exact linux ami is:
amzn2-ami-ecs-hvm-2.0.20191212-x86_64-ebs (ami-027078d981e5d4010)
It is easily reproducable by running the follow command on an ec2 instance:
docker run -e MYSQL_ROOT_PASSWORD=my-secret-pw -d mysql
When running the same command but locking the version to 5.7 it does work:
docker run -e MYSQL_ROOT_PASSWORD=my-secret-pw -d mysql:5.7
The text was updated successfully, but these errors were encountered: