Hi everyone.
I found a problem while deploying Zabbix with Podman. I deployed several times Zabbix using Podman in Debian and never had this issue before. I tried everything I know, and I'm still lost. Maybe someone could share some light about this problem.
Versions are:
Every container is up and running:
The first problem I detected was both server and frontend can not connect to database:
I checked and there was a Zabbix database created, but no tables:
So I created everything and checked again, and I see no problems with the database, everything was ready to accept connections:
Still, the problem persists and containers can not connect to database.
The problem when I try to connect to the front end is:
I also try to use this script:
But the same problems appeared.
Someone has the same troubles?
Thanks everyone.
I found a problem while deploying Zabbix with Podman. I deployed several times Zabbix using Podman in Debian and never had this issue before. I tried everything I know, and I'm still lost. Maybe someone could share some light about this problem.
Versions are:
- Debian v12.7
- Podman v4.3.1
- Lastest images for Zabbix server, Nginx frontend and PostgreSQL database.
Code:
podman run \ --name postgres-server -t \ -e POSTGRES_USER="zabbix" \ -e POSTGRES_PASSWORD="zabbix_pwd" \ -e POSTGRES_DB="zabbix" \ --restart unless-stopped \ -d postgres:latest podman run \ --name zabbix-server-pgsql -t \ -e DB_SERVER_HOST="postgres-server" \ -e POSTGRES_USER="zabbix" \ -e POSTGRES_PASSWORD="zabbix_pwd" \ -e POSTGRES_DB="zabbix" \ -p 10051:10051 \ --restart unless-stopped \ -d docker.io/zabbix/zabbix-server-pgsql:latest podman run \ --name zabbix-web-nginx-pgsql -t \ -e ZBX_SERVER_HOST="zabbix-server-pgsql" \ -e DB_SERVER_HOST="postgres-server" \ -e POSTGRES_USER="zabbix" \ -e POSTGRES_PASSWORD="zabbix_pwd" \ -e POSTGRES_DB="zabbix" \ -p 8443:8443 \ -p 8080:8080 \ --restart unless-stopped \ -d docker.io/zabbix/zabbix-web-nginx-pgsql:latest
Code:
podman ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 6089ee1e15a7 docker.io/library/postgres:latest postgres 2 hours ago Up 2 minutes ago postgres-server 26f0b71f989d docker.io/zabbix/zabbix-server-pgsql:latest /usr/sbin/zabbix_... 2 hours ago Up 2 minutes ago 0.0.0.0:10051->10051/tcp zabbix-server-pgsql 4a21dac97036 docker.io/zabbix/zabbix-web-nginx-pgsql:latest 2 hours ago Up 2 minutes ago 0.0.0.0:8080->8080/tcp, 0.0.0.0:8443->8443/tcp zabbix-web-nginx-pgsql
Code:
podman logs zabbix-web-nginx-pgsql podman logs zabbix-server-pgsql **** PostgreSQL server is not available. Waiting 5 seconds...
Code:
podman exec postgres-server psql -U zabbix zabbix -c "\dt"
Code:
podman logs postgres-server PostgreSQL Database directory appears to contain a database; Skipping initialization 2024-11-01 18:14:27.888 UTC [1] LOG: starting PostgreSQL 17.0 (Debian 17.0-1.pgdg120+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit 2024-11-01 18:14:27.889 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432 2024-11-01 18:14:27.889 UTC [1] LOG: listening on IPv6 address "::", port 5432 2024-11-01 18:14:27.900 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432" 2024-11-01 18:14:27.914 UTC [24] LOG: database system was shut down at 2024-11-01 18:14:27 UTC 2024-11-01 18:14:27.927 UTC [1] LOG: database system is ready to accept connections
The problem when I try to connect to the front end is:
Code:
curl http://192.168.1.138:8080 curl: (56) Recv failure: Connection reset by remote host
But the same problems appeared.
Someone has the same troubles?
Thanks everyone.
Comment