Ad Widget

Collapse

Fresh Docker install fails on connecting to db server

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jlgarnier
    Junior Member
    • Oct 2022
    • 3

    #1

    Fresh Docker install fails on connecting to db server

    Dear Community,

    I've heard of Zabbix recently and decided to give it a try. As I always do, I went for a Docker installation on my lab server and chose to use docker-compose_v3_alpine_mysql_latest.yml​.

    I first tried to create a Portainer stack from the YML file and changed all ./env_var/* with the absolute path /srv/dev-disk/docker/zabbix/env_vars/*. I got an error from Portainer for all the env files: "failed to deploy a stack: open /srv/dev-disk/docker/zabbix/env_vars/.env_db_mysql: no such file or directory" although files exist. Access rights look good, so I don't have any clue on this issue...

    I then tried to run the normal
    Code:
    docker-compose up -d
    from the command line and the whole stuff began to install but soon reached a kind of dead-loop, saying "** MySQL server is not available. Waiting 5 seconds" (alternatively from zabbix-nginx and zabbix-server containers) without going any further...

    I'm stuck then, so any help would be greatly appreciated!

    Thanks in advance!
  • Markku
    Senior Member
    Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
    • Sep 2018
    • 1781

    #2
    Hi, do you have the database running and the Zabbix server and frontend containers configured correctly to use that database?

    There is the container installation guide in Zabbix manual: https://www.zabbix.com/documentation...ion/containers

    Markku

    Comment

    • jlgarnier
      Junior Member
      • Oct 2022
      • 3

      #3
      Hi Marku,

      I just can't follow the installation process step by step, as I'm using the docker-compose file from
      Code:
      https://github.com/zabbix/zabbix-docker.git
      . I'm using the
      Code:
      docker-compose_v3_alpine_mysql_latest.yaml
      ​ file for my setup. As far as I know, the database server seems to be installed but not responsive. I have to abort the installation process in the dead loop, so there's no docker logs...

      Thanks for help!

      Comment

      • jlgarnier
        Junior Member
        • Oct 2022
        • 3

        #4
        Hi Marku,

        What do you advise to resume the installation, still using the original YAML file? The only things I changed were the user account name and the relative password, so I'm a bit lost as which step is failing...

        Thanks in advance for your help!

        Comment

        • Markku
          Senior Member
          Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
          • Sep 2018
          • 1781

          #5
          Oh unfortunately I haven't used Zabbix in containers so much that I could give any specific advice to anyone about those.

          Markku

          Comment

          Working...