I'm getting issue with airbyte-temporal while conn...
# replication-troubleshooting
a
I'm getting issue with airbyte-temporal while connecting with postgreysql data base .. airbyte-temporal logs : showing nc bad address ' ' waiting for postgressql to startup airbyte-temporal: image: airbyte/temporal:0.63.1 environment: - DATABASE_HOST=active_stack_postgres - DATABASE_PORT=5432 - DATABASE_DB=temporal - DATABASE_USER=airbyte - DATABASE_PASSWORD=airbyte command: ["/usr/local/bin/wait-for-it.sh", "active_stack_postgres:5432", "--", "./update-and-start-temporal.sh"] volumes: - /home/vm01/lab_stack/wait-for-it.sh/usr/local/bin/wait for it.shro deploy: replicas: 1 restart_policy: condition: on-failure depends_on: - active_stack_postgres networks: - pipeline_net This is my airbyte service in docker yaml and I'm using docker swarm for network
k
The error message
nc: bad address 'active_stack_postgres'
and the repeated "Waiting for PostgreSQL to startup" in your airbyte-temporal logs indicate that the airbyte-temporal container cannot resolve the hostname
active_stack_postgres
. This is a common networking/DNS issue in Docker environments, especially when using Docker Swarm or custom networks. Key points and troubleshooting steps: 1. Service Name Resolution in Docker Swarm: - In Docker Compose (standalone), service names are automatically resolvable as hostnames. In Docker Swarm, you must ensure that the service
active_stack_postgres
is correctly defined and running on the same overlay network (
pipeline_net
) as
airbyte-temporal
. - Double-check that the
active_stack_postgres
service is up and healthy, and that both services are attached to the same network. 2. Network Configuration: - The error is often seen when the service name is misspelled, the service is not running, or the containers are not on the same network. Make sure your
active_stack_postgres
service is defined in the same
docker-compose.yml
and is using the
pipeline_net
network. 3. Logs and Service Health: - Check the logs of your
active_stack_postgres
service to ensure PostgreSQL is starting up correctly and listening on port 5432. - You can also try running a temporary container on the same network and use
nc
or
ping
to test connectivity to
active_stack_postgres:5432
. 4. Common Issues from Airbyte Community: - Similar issues have been reported when the database service is not available or not resolvable by name. For example, in [this forum post](https://discuss.airbyte.io/t/3899), users encountered the same "bad address" error due to DNS/networking misconfiguration in Docker/Podman environments. - Another common cause is that the database container is not starting properly, or another process is already using the required port (see [this post](https://discuss.airbyte.io/t/4336)), which can prevent the database from binding to the port. Summary of what to check: - Ensure
active_stack_postgres
is running and healthy. - Both services must be on the same Docker network (
pipeline_net
). - The service name must match exactly. - No port conflicts or startup failures in the database container. If you continue to see this issue after verifying the above, please provide the logs from your
active_stack_postgres
service for further troubleshooting. References: [DNS issue? - Unable to resolve host airbyte-temporal](https://discuss.airbyte.io/t/3899), [Unable to deploy due to airbyte-db not building properly](https://discuss.airbyte.io/t/4336)