csaket opened a new issue, #25515:
URL: https://github.com/apache/airflow/issues/25515

   ### Apache Airflow version
   
   2.3.3 (latest released)
   
   ### What happened
   
   Using the default 
https://airflow.apache.org/docs/apache-airflow/2.3.3/docker-compose.yaml I am 
trying to run airflow for the first time doing init.
   `docker-compose up airflow-init`
   I get this error after some time:
   ```
   airflow-init_1       | sqlalchemy.exc.OperationalError: 
(psycopg2.OperationalError) could not translate host name "postgres" to 
address: Temporary failure in name resolution
   ```
   
   I am able to run postgres by itself without errors.
   `docker-compose up postgres`
   
   ```
   postgres_1           | 2022-08-03 16:55:49.479 UTC [1] LOG:  database system 
is ready to accept connections
   ```
   
   ### What you think should happen instead
   
   Setup should complete without error as listed in 
https://airflow.apache.org/docs/apache-airflow/stable/start/docker.html#initialize-the-database
   
   
   ### How to reproduce
   
   I have had this issue happen on 20.04 as well.
   
   ### Operating System
   
   windows 11 / wsl 2 / ubuntu 22.04 lts
   
   ### Versions of Apache Airflow Providers
   
   none
   
   ### Deployment
   
   Docker-Compose
   
   ### Deployment details
   
   _No response_
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to