Docker installation doesn’t start

Hello, i need a help, my web interface not open and my docker logs cms-web is showing that the service is restarting whole time

docker-compose logs cms-web

Attaching to xibo_cms-web_1
cms-web_1 | Waiting for MySQL to start - max 300 seconds
cms-web_1 | MySQL started
cms-web_1 | Updating settings.php
cms-web_1 | ERROR 2005 (HY000): Unknown MySQL server host ‘mysql’ (-2)
cms-web_1 | New install
cms-web_1 | Provisioning Database
cms-web_1 | ERROR 2005 (HY000): Unknown MySQL server host ‘mysql’ (-2)
cms-web_1 | Phinx by CakePHP - https://phinx.org. 0.9.2
cms-web_1 |
cms-web_1 | using config file .varwwwcmsphinx.php
cms-web_1 | using config parser php
cms-web_1 | using migration paths
cms-web_1 | - /var/www/cms/db/migrations
cms-web_1 | warning no environment specified, defaulting to: production
cms-web_1 | using adapter mysql
cms-web_1 | using database cms
cms-web_1 |
cms-web_1 |
cms-web_1 | [InvalidArgumentException]
cms-web_1 | There was a problem connecting to the database: SQLSTATE[HY000] [2002] php_
cms-web_1 | network_getaddresses: getaddrinfo failed: Name does not resolve
cms-web_1 |
cms-web_1 |
cms-web_1 | migrate [-c|–configuration CONFIGURATION] [-p|–parser PARSER] [-e|–environment ENVIRONMENT] [-t|–target TARGET] [-d|–date DATE] [-x|–dry-run]
cms-web_1 |
cms-web_1 | Configuring Database Settings
cms-web_1 | ERROR 2005 (HY000): Unknown MySQL server host ‘mysql’ (-2)
cms-web_1 | ERROR 2005 (HY000): Unknown MySQL server host ‘mysql’ (-2)
cms-web_1 | ERROR 2005 (HY000): Unknown MySQL server host ‘mysql’ (-2)
cms-web_1 | ERROR 2005 (HY000): Unknown MySQL server host ‘mysql’ (-2)
cms-web_1 | ERROR 2005 (HY000): Unknown MySQL server host ‘mysql’ (-2)
cms-web_1 | ERROR 2005 (HY000): Unknown MySQL server host ‘mysql’ (-2)
cms-web_1 | Setting up Maintenance
cms-web_1 | Protected Maintenance
cms-web_1 | ERROR 2005 (HY000): Unknown MySQL server host ‘mysql’ (-2)
cms-web_1 | ERROR 2005 (HY000): Unknown MySQL server host ‘mysql’ (-2)
cms-web_1 | Importing ca-certs
cms-web_1 | cp: can’t stat ‘/var/www/cms/ca-certs/.pem’: No such file or directory
cms-web_1 | cp: can’t stat '/var/www/cms/ca-certs/
.crt’: No such file or directory
cms-web_1 | WARNING: ca-certificates.crt does not contain exactly one certificate or CRL: skipping
cms-web_1 | Configuring Maintenance
cms-web_1 | Removing web/install/index.php from production container
cms-web_1 | Starting cron
cms-web_1 | Starting webserver
cms-web_1 | AH00558: httpd: Could not reliably determine the server’s fully qualified domain name, using 172.21.0.4. Set the ‘ServerName’ directive globally to suppress this message
root@vps66426:/opt/xibo#

I need help, the docker container mysql:5.6 “docker-entrypoint.s…” is restarting.

The first thing that jumps out at me is that it cannot connect to the MySQL database specified in the configuration settings. I’d double check the MySQL address and username/password. Then try restarting your docker container.

The funny thing is that after a few minutes the mysql ends up starting in brute force, with the restart, but it takes a long time and it is fickle

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.