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

🛠️ Neighborhood: Contributors can use DevContainers and Codespaces #1433

Open
KellyAH opened this issue May 4, 2023 · 7 comments
Open

Comments

@KellyAH
Copy link
Contributor

KellyAH commented May 4, 2023

Convene's DevContainer streamlines the contributor experience by:

  • Allowing anyone with a Github account to contribute using a Codespace
  • Provide a "clean" developer environment without requiring Contributors to modify their local environment

Known Issues

Could not open directory "pg_logical/snapshots": Permission denied

convene-db-1     | 2023-05-04 02:08:31.233 UTC [60] LOG:  checkpoint starting: time
convene-db-1     | 2023-05-04 02:08:31.233 UTC [60] ERROR:  could not open directory "pg_logical/snapshots": Permission denied

Screenshot 2023-05-03 at 7 18 14 PM

Current Workaround

When my CodeSpace was in this state, I was able to run docker-compose down and then ./.devcontainer/startup.bash and it initialized correctly.

Why it wouldn't do this correctly upon the first starup/attach, I don't know...
It almost seems to be some race condition between the database container startup and some user startup in the surrounding devcontainer, but I'll have to look into it more at some point.

@daltonrpruitt
Copy link
Contributor

daltonrpruitt commented May 4, 2023

Current Workaround

When my CodeSpace was in this state, I was able to run
docker-compose down
and then
./.devcontainer/startup.bash
and it initialized correctly.

Why it wouldn't do this correctly upon the first starup/attach, I don't know...
It almost seems to be some race condition between the database container startup and some user startup in the surrounding devcontainer, but I'll have to look into it more at some point.

@zspencer zspencer changed the title Codespace - postgres permissions issues 🛠️ Neighborhood: Contributor DevContainer and Codespaces May 6, 2023
@zspencer zspencer changed the title 🛠️ Neighborhood: Contributor DevContainer and Codespaces 🛠️ Neighborhood: Contributors can use DevContainers and Codespaces May 6, 2023
@daltonrpruitt
Copy link
Contributor

daltonrpruitt commented May 18, 2023

Forked repos cannot use the devcontainer due to it being private to the organization. Should be able to fix by making it either public or somehow linked to forked repos. Needs further investigation and/or testing.
Any thoughts on these options? @zspencer

@zspencer
Copy link
Member

@daltonrpruitt - Nice catch! I've made it public.

@KellyAH
Copy link
Contributor Author

KellyAH commented Jun 26, 2023

Darn I keep encountering a variation of this issue where permission is denied to a specific file. Thanks @daltonrpruitt for the workaround to get me unstuck.

I just spun up a fresh code space instance on my feature branch #1602 and hit this error loading the front end.
Screenshot 2023-06-25 at 8 10 13 PM

@daltonrpruitt
Copy link
Contributor

Hmm. I am annoyed the fresh CodeSpace instances aren't working suddenly for some reason. I will have to look into this later. Thank you for the info!

@KellyAH
Copy link
Contributor Author

KellyAH commented Jun 26, 2023

Thanks so much for all your hard work on improving the code spaces @daltonrpruitt! ❤️ It's been a huge help when my local dev enviro gets messed up. It feels great knowing I can use code spaces as my primary or back up dev enviro/coding space.

@zspencer
Copy link
Member

Glad you were able to find a workaround; bummer that our current codespaces are a touch brittle but I'm glad we're using them and learning how to debrittle them!!!

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

3 participants