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

Getting this project up with docker-compose "Waited too long for DB to come up. Bailing." #280

Open
surfer190 opened this issue Jan 10, 2020 · 2 comments

Comments

@surfer190
Copy link

Just updated my docker-compose.yaml to look like this:

version: '3'

services:
  oncall-web:
    build: .
    ports:
      - "8080:8080"
    environment:
       - DOCKER_DB_BOOTSTRAP=1
    depends_on:
      - oncall-mysql

  oncall-mysql:
    image: mysql:5.7
    environment:
      - MYSQL_ROOT_PASSWORD=1234

But it can't connect to the db? How do I fix this?

oncall-web_1    | Checking MySQL liveness on mysql...
oncall-web_1    | DB not up yet. Waiting a few seconds..
oncall-web_1    | DB not up yet. Waiting a few seconds..
oncall-web_1    | DB not up yet. Waiting a few seconds..
oncall-web_1    | DB not up yet. Waiting a few seconds..
oncall-web_1    | DB not up yet. Waiting a few seconds..
oncall-web_1    | DB not up yet. Waiting a few seconds..
oncall-web_1    | DB not up yet. Waiting a few seconds..
oncall-web_1    | DB not up yet. Waiting a few seconds..
oncall-web_1    | DB not up yet. Waiting a few seconds..
oncall-web_1    | DB not up yet. Waiting a few seconds..
oncall-web_1    | DB not up yet. Waiting a few seconds..
oncall-web_1    | DB not up yet. Waiting a few seconds..
oncall-web_1    | DB not up yet. Waiting a few seconds..
oncall-web_1    | DB not up yet. Waiting a few seconds..
oncall-web_1    | DB not up yet. Waiting a few seconds..
oncall-web_1    | DB not up yet. Waiting a few seconds..
oncall-web_1    | DB not up yet. Waiting a few seconds..
oncall-web_1    | DB not up yet. Waiting a few seconds..
oncall-web_1    | DB not up yet. Waiting a few seconds..
oncall-web_1    | DB not up yet. Waiting a few seconds..
oncall-web_1    | DB not up yet. Waiting a few seconds..
oncall-web_1    | Waited too long for DB to come up. Bailing.
oncall_oncall-web_1 exited with code 1
@sandipb
Copy link

sandipb commented Jan 22, 2020

Missing this part in the oncall-web section?

  volumes:
      - ./configs/config.docker.yaml:/home/oncall/config/config.yaml

@lukdz
Copy link
Contributor

lukdz commented Dec 16, 2020

Checking MySQL liveness on mysql...
OnCall is looking for mysql server at host name mysql in your docker-compose.yaml it's set up as oncall-mysql.

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