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

Project folder permissions won't let docker postgres work #640

Closed
alanwilter opened this issue Nov 10, 2021 · 4 comments · Fixed by gitpod-io/gitpod#10229
Closed

Project folder permissions won't let docker postgres work #640

alanwilter opened this issue Nov 10, 2021 · 4 comments · Fixed by gitpod-io/gitpod#10229
Assignees

Comments

@alanwilter
Copy link

Bug description

When starting a gitpod workspace, the project is checked out and the folder permissions are:

drwxr-x---

However, when starting a docker postgres container for the DB whose volume maps to the project folder to run some sql scripts to initialise the DB, this won't work unless folder permission is changed to drwxr-xr-x.

One may say that perhaps the way I'm doing these things is not the correct and gitpod has its own reasons to set the project folder permissions as it is, however, I noticed that umask in a gitpod session is set to 0022, which basically means any new folder would have permission drwxr-xr-x and I wouldn't have run into troubles like I had.

Steps to reproduce

One can try with our project https://github.com/phenopolis/phenopolis_genomics_browser

Start gitpod and run:

touch private.env
docker-compose up db

it will fail with

...
db_1        | psql: error: /app/db/import_schema.sql: Permission denied

now do:

chmod a+rx .
docker-compose down
docker volume rm phenopolis_genomics_browser_db
docker-compose up db

and it will work.

@princerachit
Copy link
Contributor

/team workspace

@princerachit
Copy link
Contributor

Hi, thanks you for sharing the detailed description. Due to ongoing work with dazzle v2 rewrite of workspace-images repo we will not pick this up and would schedule it once the said work is completed.

@princerachit princerachit transferred this issue from gitpod-io/gitpod Jan 24, 2022
@atduarte
Copy link
Contributor

Confirmed the problem still exists. Though I'm unsure whether there's any reason for the permissions to be set as drwxr-x---. @princerachit do you? Should this be classified as a "bug"?

@jenting
Copy link
Contributor

jenting commented Jun 1, 2022

This issue be addressed in #10229, let's wait it deployed to production.

@axonasif axonasif closed this as completed Nov 9, 2022
Repository owner moved this from Done to Awaiting Deployment in 🌌 Workspace Team Nov 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Archived in project
Development

Successfully merging a pull request may close this issue.

6 participants