Skip to content

helmwrapper issue with rootless env : try to create /.cache #638

@clopnis

Description

@clopnis

On OKD, when you try to spawn a service it fail with this error :

2025-11-23T17:04:19.344Z  INFO 2 --- [nio-8080-exec-9] i.g.i.helmwrapper.utils.Command          : /usr/local/bin/helm upgrade --install --history-max 0 jupyter-python-548908 ide/jupyter-python -n ai --version 2.3
.24 -f /tmp/values1551710929998758534.yaml --output json                                                                                                                                                            
Error: mkdir /.cache: permission denied                                                                                                                                                                             
2025-11-23T17:04:19.416Z ERROR 2 --- [nio-8080-exec-9] o.a.c.c.C.[.[.[.[dispatcherServlet]      : Servlet.service() for servlet [dispatcherServlet] in context with path [/api] threw exception

If /.cache is exist as extramount volume, it fail with :

2025-11-23T16:59:36.274Z  INFO 2 --- [nio-8080-exec-9] i.g.i.helmwrapper.utils.Command          : /usr/local/bin/helm upgrade --install --history-max 0 jupyter-python-268589 ide/jupyter-python -n ai --version 2.3
.24 -f /tmp/values6422124428214452133.yaml --output json                                                                                                                                                            
Error: repo ide not found                                                                                                                                                                                           
2025-11-23T16:59:36.373Z ERROR 2 --- [nio-8080-exec-9] o.a.c.c.C.[.[.[.[dispatcherServlet]      : Servlet.service() for servlet [dispatcherServlet] in context with path [/api] threw exception

I guess onyxia-api should use something like /tmp/cache instead of /.cache

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions