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

Database connection failure on deploy #25

Closed
ain opened this issue Dec 26, 2016 · 1 comment
Closed

Database connection failure on deploy #25

ain opened this issue Dec 26, 2016 · 1 comment
Assignees
Labels

Comments

@ain
Copy link
Contributor

ain commented Dec 26, 2016

Steps to reproduce:

  1. Configure staging environment deployment
  2. Configure docker-compose-staging.yml with MySQL container running as db service and web server service as web
  3. Start development environment containers
  4. Log in to web container
  5. Run deploy with bundle exec cap staging deploy

What happens:

ERROR 2003 (HY000): Can't connect to MySQL server on 'db' (111)

What should happen: no error should be thrown.

@ain ain added the bug label Dec 26, 2016
@ain ain self-assigned this Dec 26, 2016
@ain
Copy link
Contributor Author

ain commented Dec 27, 2016

Cause (from container log):

  03 db_1   | InnoDB: Unable to lock ./ibdata1, error: 11

meaning that database is locked against external modifications by 3rd parties incl. new container.

Not reproducible on PostgreSQL.

ain added a commit that referenced this issue Dec 29, 2016
@ain ain closed this as completed in 5ca8d71 Jan 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant