Всем доброго времени суток.
Установил zabbix 6.4 из docker-compose командой:
После установки в логах zabbix-server следующее:
В логах контейнера mysql следующее:
Конфиг MySQL:
В конфиг сервера добавил вот эту строчку. Остальное без изменений:
Все контейнеры живы, статус UP. Вот на всякий случай ситуация по контейнерам:
Подскажите, где я накосячил ? Куда копать, чтобы система смогла жить ?
Установил zabbix 6.4 из docker-compose командой:
Code:
docker-compose -f docker-compose_v3_ubuntu_mysql_latest.yaml up -d
Code:
[WARN tini (7)] Tini is not running as PID 1 and isn't registered as a child subreaper. Zombie processes will not be re-parented to Tini, so zombie reaping won't work. To fix the problem, use the -s option or set the environment variable TINI_SUBREAPER to register Tini as a child subreaper, or run Tini as PID 1. ** Preparing Zabbix server ** Preparing database ** Using MYSQL_USER variable from secret file ** Using MYSQL_PASSWORD variable from secret file ** Using MYSQL_ROOT_PASSWORD variable from secret file ******************** * DB_SERVER_HOST: zabbix-docker_mysql-server_1 * DB_SERVER_PORT: 3306 * DB_SERVER_DBNAME: zabbix ******************** **** MySQL server is not available. Waiting 5 seconds... **** MySQL server is not available. Waiting 5 seconds... **** MySQL server is not available. Waiting 5 seconds... **** MySQL server is not available. Waiting 5 seconds... **** MySQL server is not available. Waiting 5 seconds... **** MySQL server is not available. Waiting 5 seconds... **** MySQL server is not available. Waiting 5 seconds... **** MySQL server is not available. Waiting 5 seconds... **** MySQL server is not available. Waiting 5 seconds... **** MySQL server is not available. Waiting 5 seconds... **** MySQL server is not available. Waiting 5 seconds...
Code:
2023-12-19 11:11:45+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.35-1.el8 started. 2023-12-19 11:11:45+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql' 2023-12-19 11:11:45+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.35-1.el8 started. '/var/lib/mysql/mysql.sock' -> '/var/run/mysqld/mysqld.sock' 2023-12-19T11:11:46.046623Z 0 [Warning] [MY-011068] [Server] The syntax '--skip-host-cache' is deprecated and will be removed in a future release. Please use SET GLOBAL host_cache_size=0 instead. 2023-12-19T11:11:46.048887Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.35) starting as process 1 2023-12-19T11:11:46.058638Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started. 2023-12-19T11:11:49.146868Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended. 2023-12-19T11:11:51.144838Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed. 2023-12-19T11:11:51.144928Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel. 2023-12-19T11:11:51.236168Z 0 [Warning] [MY-011810] [Server] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory. 2023-12-19T11:11:51.284501Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060, socket: /var/run/mysqld/mysqlx.sock 2023-12-19T11:11:51.284615Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: '8.0.35' socket: '/var/run/mysqld/mysqld.sock' port: 3306 MySQL Community Server - GPL.
Конфиг MySQL:
Code:
DB_SERVER_HOST=zabbix-docker_mysql-server_1 DB_SERVER_PORT=3306 # DB_SERVER_SOCKET=/var/run/mysqld/mysqld.sock # MYSQL_USER=zabbix MYSQL_USER_FILE=/run/secrets/MYSQL_USER # MYSQL_PASSWORD=zabbix MYSQL_PASSWORD_FILE=/run/secrets/MYSQL_PASSWORD # MYSQL_ROOT_PASSWORD= MYSQL_ROOT_PASSWORD_FILE=/run/secrets/MYSQL_ROOT_PASSWORD # MYSQL_ALLOW_EMPTY_PASSWORD=false # MYSQL_DATABASE=zabbix MYSQL_DATABASE=zabbix
Code:
DB_SERVER_HOST=zabbix-docker_mysql-server_1
Code:
NAMES STATUS zabbix-docker_zabbix-server_1 Up 20 hours zabbix-docker_zabbix-web-nginx-mysql_1 Up 20 hours (healthy) zabbix-docker_mysql-server_1 Up 20 hours zabbix-docker_grafana_1 Up 20 hours
Подскажите, где я накосячил ? Куда копать, чтобы система смогла жить ?
Comment