Skip to content

mysql fails to start since arbitrary --user values were allowed #175

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

Closed
bhearsum opened this issue May 27, 2016 · 10 comments
Closed

mysql fails to start since arbitrary --user values were allowed #175

bhearsum opened this issue May 27, 2016 · 10 comments

Comments

@bhearsum
Copy link

I pulled in the latest mysql image recently and found that mysqld was failing to start. After some debugging, I realized that I removed the new if block added in a6f4c23#diff-17ed820d5141a5e8565a0431e5385daeR24, mysqld started fine.

I couldn't find any additional logs when poking around the image interactively, but I did notice that mysqld was attempting to start in a loop (I'd see one pid for it, then it would disappear, then another). The only output I had was:

* Working around permission errors in Docker on Mac locally by making sure that "mysql" uses the same uid and gid as the host volume
-- Setting mysql user to use uid 0
usermod: no changes
-- Setting mysql group to use gid 0

* Starting MySQL
@bhearsum
Copy link
Author

Oops, just realized that I have a workaround for the issue that that commit fixed. Removing the workaround fixes me.

@drewish
Copy link

drewish commented May 31, 2016

@bhearsum so you were using something like: #99 ? did you just ditch the script or did you start passing in a user?

@bhearsum
Copy link
Author

bhearsum commented Jun 1, 2016

Yeah, I was using that script. Deleting the script got my image working again on Linux, but not on Mac :(. Still looking for a workaround for that.

@drewish
Copy link

drewish commented Jun 1, 2016

Yeah I'm using the beta on Mac and that work around script is now no longer necessary.

@bhearsum
Copy link
Author

bhearsum commented Jun 1, 2016

The beta of Docker and/or Docker Compose?

@drewish
Copy link

drewish commented Jun 1, 2016

Exactly, with the new stuff I was able to just use the image's stock entry point and skip the work around:

entrypoint: /entrypoint.sh mysqld --user=mysql --console --explicit_defaults_for_timestamp=OFF

@bhearsum
Copy link
Author

bhearsum commented Jun 1, 2016

Ah, cheers. I didn't realize it wasn't released yet!

@dmitrym0
Copy link

dmitrym0 commented Jun 5, 2016

@bhearsum, @drewish can you shed some light on what you did to make this work without the workaround script?

@drewish
Copy link

drewish commented Jun 5, 2016

@dmitrym0 I'm not sure what more detail I can provide. What are you trying?

@bhearsum
Copy link
Author

bhearsum commented Jun 6, 2016

@dmitrym0 Using the latest Beta (DockerToolbox-1.11.1b.pkg) it just worked without the script. Unfortunately, you have to sign up and wait for an invite code to get the Beta.

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