woodpecker-ci / woodpecker

Woodpecker is a simple, yet powerful CI/CD engine with great extensibility.
https://woodpecker-ci.org
Apache License 2.0
4.31k stars 371 forks source link

Unable to connect to MariaDb #428

Closed Flying--Dutchman closed 3 years ago

Flying--Dutchman commented 3 years ago

Component

server

Describe the bug

Using the configuration from the docs, I'm unable to start woodpecker, using MariaDB.

Other containers on the same network can reach the database container without problems.

System Info

devops_woodpecker_ci:
    image: woodpeckerci/woodpecker-server:${WOODPECKER_TAG}
    restart: unless-stopped
    ports:
      - ${WOODPECKER_PORT}:8000
      - 9000
    networks:
      - devops_network
    environment:
      - WOODPECKER_DATABASE_DRIVER=mysql
      - WOODPECKER_DATABASE_DATASOURCE=DBUSER:DBPASSWORD@tcp(DBHOST:3306)/DATABASE?parseTime=true
      - WOODPECKER_OPEN=true
      - WOODPECKER_HOST=${WOODPECKER_URL}
      - WOODPECKER_GITEA=true
      - WOODPECKER_GITEA_URL=${GITEA_URL}
      - WOODPECKER_SECRET=${WOODPECKER_SECRET}
    depends_on:
      - devops_woodpecker_db

Additional context

Logs:
time="2021-10-10T10:59:20Z" level=error msg="unable to open database file: no such file or directory",
time="2021-10-10T10:59:57Z" level=fatal msg="database ping attempts failed"

Validations

6543 commented 3 years ago

@Flying--Dutchman what WOODPECKER_TAG did you use?!!

6543 commented 3 years ago

@Flying--Dutchman you comment on the wrong issue :laughing: but I think I can asume v0.14.1 is the revered version here too

ok that's easy to solve ... we are in transition from v0.14.x to v0.15.0 with breaking changes: https://woodpecker-ci.github.io/docs/migrations#0150

6543 commented 3 years ago

or switch image to "latest"

Flying--Dutchman commented 3 years ago

@Flying--Dutchman you comment on the wrong issue laughing but I think I can asume v0.14.1 is the revered version here too

Note to myself, never answer on a issue during commute, returning from Oktoberfest :sweat_smile:

ok that's easy to solve ... we are in transition from v0.14.x to v0.15.0 with breaking changes:

Ah thank you very much, will change my setup accordingly. Looking forward for v0.15.