gsusanto / airflow

10 stars 8 forks source link

Creating airflow-main_webserver_1 ... error #1

Open Denny2020 opened 2 years ago

Denny2020 commented 2 years ago

Hey I am getting this error when I tried to run this command docker-compose up --build (Creating airflow-main_postgres_1 ... done Creating airflow-main_scheduler_1 ... done Creating airflow-main_webserver_1 ... error

ERROR: for airflow-main_webserver_1 Cannot start service webserver: OCI runtime create failed: container_linux.go:380: starting container process caused: exec: "./scripts/entrypoint.sh": permission denied: unknown

ERROR: for webserver Cannot start service webserver: OCI runtime create failed: container_linux.go:380: starting container process caused: exec: "./scripts/entrypoint.sh": permission denied: unknown ERROR: Encountered errors while bringing up the project)

What could be the problem.

gsusanto commented 2 years ago

You need executable permission on the entrypoint.sh file. You can do it by setting up permission on the host (where you have entrypoint.sh) using the chmod command. Like:

chmod +x scripts/entrypoint.sh

Then rebuild it.

Denny2020 commented 2 years ago

Thanks, it worked. but how do you access the the db?

gsusanto commented 2 years ago

In your host port 5432. But you first need to download PostgreSQL if you have not.

Denny2020 commented 2 years ago

Thanks. All worked.