Skip to content

MySQL works on first run, then won't connect again #542

@pnoeric

Description

@pnoeric

ISSUE TYPE

  • Bug Report

Checklist

  • .env file is attached - my-dot-env.txt - note that I did nothing except what is in the docs and selected MariaDB 5.5 since it matches the production server, otherwise it is same as default-env
  • docker-compose.override.yml is attached (if it exists) - DOES NOT EXIST
  • Custom configs from cfg/ dir are attached (if customized) - NONE
  • docker-compose logs and log/ output is added

my-docker-compose-logs.txt

image

in the mariadb-5.5 folder are 3 files (error.log, query.log, slow.log), all of them are 0 bytes

OS / ENVIRONMENT

  1. Host operating system and version: Mac OS X 10.14.3
  2. (Windows) Native Docker or Docker Toolbox: n/a
  3. Docker version: Docker version 18.09.2, build 6247962
  4. Docker Compose version: 1.23.2

also I am using Mac Docker Desktop, the latest version which is Version 2.0.0.3 (31259)

image

  1. (Linux) Is SELinux enabled?: n/a
  2. What git commit hash are you on?: commit 57b2a5c (HEAD -> release/v1.0.0, tag: v1.0.0-alpha1, origin/release/v1.0.0)

SUMMARY

Short summary - Everything works great on first startup, then I shut down as the docs describe, start the box again, and MySQL is dead. Possible same as issue #500 ?

Longer explanation - I installed devilbox following the docs exactly and it worked perfectly first try. Wow! Then I exported a 1.5 GB MySQL db from another server and imported it into the local MariaDB inside of devilbox. No errors and I could use my site locally with the db, everything was perfect.

I shut down (following the steps in the docs) and then started it up again... and now can't connect to the MySQL server. There are no errors on startup that I notice, but as you can see the server is unhappy:

image

STEPS TO REPRODUCE

  • Install devilbox exactly like it says on the tin, be sure mysql is running fine
  • Import large database (may not be necessary, if Cannot connect MySQL after restart docker #500 is same issue, that user did not)
  • Shut down devilbox correctly
  • Start devilbox again - now MySQL can't connect
  • Optional: shutdown again, upgrade to 1.0.0 branch, startup again - did not fix the problem

EXPECTED BEHAVIOUR

MySQL can always connect

ACTUAL BEHAVIOUR

MySQL craps out after the 1st run

OTHER INFORMATION

Start command

$ docker-compose up php mysql httpd bind

File and user permissions (Linux & MacOS)

$ id
uid=501(ericmueller) gid=20(staff) groups=20(staff),12(everyone),61(localaccounts),79(_appserverusr),80(admin),81(_appserveradm),98(_lpadmin),33(_appstore),100(_lpoperator),204(_developer),250(_analyticsusers),395(com.apple.access_ftp),398(com.apple.access_screensharing),399(com.apple.access_ssh)

$ ls -la

image

$ ls -la data/www

image

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions