aws / aws-mwaa-local-runner

This repository provides a command line interface (CLI) utility that replicates an Amazon Managed Workflows for Apache Airflow (MWAA) environment locally.
MIT No Attribution
672 stars 683 forks source link

Postgres-related error upon starting container, on Windows with WSL #391

Closed garrett-groff-ch closed 1 month ago

garrett-groff-ch commented 1 month ago

Summary: Docker image built successfully. But when I try to run, I get postgres-related errors. Ideas??

Command: /mnt/c/git/aws-mwaa-local-runner$ ./mwaa-local-env start

Result (snippet):

postgres-1      | initdb: error: could not change permissions of directory "/var/lib/postgresql/data": Operation not permitted
postgres-1      | fixing permissions on existing directory /var/lib/postgresql/data ...
postgres-1 exited with code 1
local-runner-1  | Wed Aug 21 21:58:20 UTC 2024 - waiting for Postgres... 1/20
local-runner-1  | Wed Aug 21 21:58:31 UTC 2024 - waiting for Postgres... 2/20
local-runner-1  | Wed Aug 21 21:58:43 UTC 2024 - waiting for Postgres... 3/20
local-runner-1  | Wed Aug 21 21:58:56 UTC 2024 - waiting for Postgres... 4/20
local-runner-1  | Wed Aug 21 21:59:07 UTC 2024 - waiting for Postgres... 5/20
local-runner-1  | Wed Aug 21 21:59:20 UTC 2024 - waiting for Postgres... 6/20
local-runner-1  | Wed Aug 21 21:59:32 UTC 2024 - waiting for Postgres... 7/20
local-runner-1  | Wed Aug 21 21:59:44 UTC 2024 - waiting for Postgres... 8/20
local-runner-1  | Wed Aug 21 21:59:55 UTC 2024 - waiting for Postgres... 9/20
local-runner-1  | Wed Aug 21 22:00:06 UTC 2024 - waiting for Postgres... 10/20
local-runner-1  | Wed Aug 21 22:00:19 UTC 2024 - waiting for Postgres... 11/20
local-runner-1  | Wed Aug 21 22:00:31 UTC 2024 - waiting for Postgres... 12/20
local-runner-1  | Wed Aug 21 22:00:43 UTC 2024 - waiting for Postgres... 13/20
local-runner-1  | Wed Aug 21 22:00:54 UTC 2024 - waiting for Postgres... 14/20
local-runner-1  | Wed Aug 21 22:01:07 UTC 2024 - waiting for Postgres... 15/20
local-runner-1  | Wed Aug 21 22:01:16 UTC 2024 - waiting for Postgres... 16/20
local-runner-1  | Wed Aug 21 22:01:24 UTC 2024 - waiting for Postgres... 17/20
local-runner-1  | Wed Aug 21 22:01:36 UTC 2024 - waiting for Postgres... 18/20
local-runner-1  | Wed Aug 21 22:01:47 UTC 2024 - waiting for Postgres... 19/20
local-runner-1  | Wed Aug 21 22:01:59 UTC 2024 - postgres:5432 still not reachable, giving up
local-runner-1 exited with code 0
garrett-groff-ch commented 1 month ago

Resolved this issue using the proposed solution, here: https://github.com/aws/aws-mwaa-local-runner/issues/45