question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Airflow Docker tutorial: Unhealthy container

See original GitHub issue

Environment: MacOs docker-compose version 1.27.4

What happened: I am following Airflow in Docker tutorial.

I did:

curl -LfO 'https://airflow.apache.org/docs/apache-airflow/2.0.1/docker-compose.yaml'
mkdir ./dags ./logs ./plugins
echo -e "AIRFLOW_UID=$(id -u)\nAIRFLOW_GID=0" > .env

Then, when initialising the docker compose with docker-compose up airflow-init I received the following error:

Creating network "airflow-local_default" with the default driver
Creating volume "airflow-local_postgres-db-volume" with default driver
Creating airflow-local_redis_1    ... done
Creating airflow-local_postgres_1 ... done

ERROR: for airflow-init  Container "768fe436ac8e" is unhealthy.
ERROR: Encountered errors while bringing up the project.

Container 768fe436ac8e corresponds to postgre docker when making a docker containers ps

If it was working correctly, I should have:

airflow-init_1       | Upgrades done
airflow-init_1       | Admin user airflow created
airflow-init_1       | 2.0.1
start_airflow-init_1 exited with code 0

image

Thank you very much for your help !

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
github-actions[bot]commented, May 19, 2021

This issue has been closed because it has not received response from the issue author.

0reactions
github-actions[bot]commented, May 12, 2021

This issue has been automatically marked as stale because it has been open for 30 days with no response from the author. It will be closed in next 7 days if no further activity occurs from the issue author.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Airflow Docker Unhealthy trigerrer - Stack Overflow
I followed all steps as described in this URL, every airflow component is working great but the airflow trigerrer shows an unhealthy status...
Read more >
Running Airflow in Docker
This quick-start guide will allow you to quickly get Airflow up and ... Docker to use at least 4.00 GB of memory for...
Read more >
[Solved]-Airflow Docker Unhealthy trigerrer-docker
Airflow settings to run Celery workers in different Docker container? Is there a way to deploy Airflow with Docker but using different workers?...
Read more >
[GitHub] [airflow] benoua opened a new issue #15291
benoua opened a new issue #15291: URL: https://github.com/apache/airflow/issues/15291 **Environment**: MacOs docker-compose version 1.27.4 ...
Read more >
Setting Up Apache Airflow with Docker-Compose in 5 Minutes
Step 2: Create a docker-compose file. Next, we need to get our hands on a docker-compose file that specifies the required services or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found