-
Notifications
You must be signed in to change notification settings - Fork 93
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
[BUG] - conda environments fail to build #1409
Comments
@iameskild this has to do with a change that I made in the container default uid/gid. I'll provide a fix tomorrow morning |
@costrouc @viniciusdc moving our slack conversation here for posterity.
I think it makes sense to restrict the conda-store's permissions. As for how to go about ensuring we this isn't a breaking change, could we add an initContainers:
- command:
- /bin/chown
- -R
- "1000:1000"
- /home/conda
image: busybox:latest
name: chmod-er
securityContext:
privileged: true
volumeMounts:
- mountPath: /home/conda
mountPropagation: None
name: storage I've tested this today on quansight-beta.qhub.dev and it does appear to correctly change the permissions for the existing files/folders under
However I run into another permissions issue whenever I try to create a new env. The "default" gid still appears to be
Then when conda-store tries to change ownership, the following issue arises: Logs from the
I was able to get around this by adding securityContext:
fsGroup: 1000 |
The above solution works when updating existing deployments but fails when new users sign in and for fresh deployments. Although the deployment scripts complete successfully, the trouble is that new conda envs can't be created due to permissions issues. This is due to how the Changing this permission to anything other than |
OS system and architecture in which you are running QHub
Ubuntu on GCP
Expected behavior
Creating a conda environment in the
filesystem
namespace (from theqhub-config.yaml
) or my personal namespace should build my environment (provided that it is a valid env).Actual behavior
When a submitting a conda environment (in the
filesystem
namespace or in my personal namespace), it will fail to build with the following error message:(example of build failing in the
filesystem
ns)How to Reproduce the problem?
Build any valid conda env from the conda-store endpoint or by adding it to the
qhub-config.yaml
, and it will fail to build.Command output
No response
Versions and dependencies used.
qhub version:
v0.4.4rc3
conda-store version:
v0.4.9
orv0.4.11
Compute environment
No response
Integrations
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: