Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: error building, (re)creating or starting [postgres] project containers (possibly Mac and/or colima/lima only) #1

Open
hanleybrand opened this issue Oct 18, 2024 · 1 comment
Assignees

Comments

@hanleybrand
Copy link

hanleybrand commented Oct 18, 2024

When setting up the repo with astro-cli I ran into this error (using an M1 Mac with colima instead of docker):

Error: error building, (re)creating or starting project containers: 
    Error response from daemon: error while creating mount source path '~/dev/ebook-etl-elt/include/postgres': 
        chown ~/dev/ebook-etl-elt/include/postgres: permission denied

tldr:

If you hit that error, try a astro dev restart before digging into the weeds trying to troubleshoot docker volume mount permissions

More context

I did a slight amount of digging after getting the error up top, and it may be related to this rancher-desktop issue.

In that issue discussion someone mentioned that the combo of error while creating mount source path & chown ... permission denied might indicate that the directory ${PWD}/include/postgres isn't created when chown is executed.

Long story short, I checked my repo and the directory had been created, so I tried astro dev restart and airflow started up without issues.

Hopefully the simple restart works for others, because the thicket of weeds otherwise looks like it's been growing a while -- maybe consider trying podman instead (if not actual factual docker) before bushwhacking in 😆), especially as it turns out it's already been discovered the problem affects astro-cli

@TJaniF
Copy link
Collaborator

TJaniF commented Nov 20, 2024

Hi @hanleybrand

Thank you so much for adding this issue, including a fix suggestion and more troubleshooting context!!! I personally don't use colima, so I haven't encountered this. But it sounds like a way you can spend an afternoon 😅

Let me see if I can add the possibility to run this repository in GitHub Codespaces as an alternative for people with Docker/container related issues. :)

@TJaniF TJaniF self-assigned this Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants