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

Problem running RStudio server with podman #838

Open
bernt-matthias opened this issue Aug 5, 2024 · 7 comments
Open

Problem running RStudio server with podman #838

bernt-matthias opened this issue Aug 5, 2024 · 7 comments
Labels
help wanted Extra attention is needed needs more info Further information is requested question

Comments

@bernt-matthias
Copy link

I'm trying to get rocker running with podman (our HPC does only support podman).

podman run     --rm     -ti     -p 8787:8787     -e DISABLE_AUTH=true     rocker/rstudio:latest-daily

This gives me the following output:

s6-supervise s6-fdholderd: fatal: unable to mkfifodir event: Value too large for data type
s6-supervise s6-fdholderd: fatal: unable to mkfifodir event: Permission denied
s6-supervise s6-fdholderd: fatal: unable to mkfifodir event: Permission denied
s6-supervise s6-fdholderd: fatal: unable to mkfifodir event: Permission denied
s6-supervise s6-fdholderd: fatal: unable to mkfifodir event: Permission denied

Any ideas that help me understand / solve the issue?

As far as I see (curl http://localhost:8787/ gives me curl: (56) Recv failure: Connection reset by peer) the RStudio server is not up.

@eitsupi eitsupi transferred this issue from rocker-org/rocker Aug 5, 2024
@cboettig
Copy link
Member

cboettig commented Aug 5, 2024

can you try with rocker/rstudio:latest instead? (unfortunately the daily tag is not successfully building at this time, cc @eitsupi )

@bernt-matthias
Copy link
Author

Thanks for the fast reply. Same problem with rocker/rstudio:latest (stumbled over this problem when I tried to get this running .. so it was unlikely that latest works).

@eitsupi
Copy link
Member

eitsupi commented Aug 6, 2024

unfortunately the daily tag is not successfully building at this time

The latest-daily tag is obsolete.

@cboettig
Copy link
Member

cboettig commented Aug 6, 2024

@bernt-matthias looks like you may be running in an environment where root is blocked? Can you test rocker/binder instead?

podman run --rm -p 8888:8888 docker.io/rocker/binder

(apologies for all the suggestions, shooting a bit in the dark here. binder runs without root via jupyterhub and may thus sidestep the issue).

@eitsupi eitsupi changed the title Problem running rocker (RStudio server) with podman Problem running RStudio server with podman Aug 7, 2024
@eitsupi eitsupi added help wanted Extra attention is needed needs more info Further information is requested labels Aug 7, 2024
@bernt-matthias
Copy link
Author

@bernt-matthias looks like you may be running in an environment where root is blocked?

I would guess so. Given that our HPC system (or its admins) is quiet restrictive.

Can you test rocker/binder instead?

podman run --rm -p 8888:8888 docker.io/rocker/binder

This gives me.

Writing manifest to image destination
WARN[0411] Additional gid=50 is not present in the user namespace, skip setting it 
Error: OCI runtime error: crun: cannot setresgid to `1000`: Invalid argument

So I guess that means that you are right?

(apologies for all the suggestions, shooting a bit in the dark here. binder runs without root via jupyterhub and may thus sidestep the issue).

Nothing to worry about. Anything is highly appreciated and I'm happy to try any suggestion.

@benz0li
Copy link
Contributor

benz0li commented Aug 7, 2024

@bernt-matthias Does podman run -ti --rm debian work?

You could give glcr.b-data.ch/jupyterlab/r/geospatial a try, i.e.

podman run --rm \
  -p 8888:8888 \
  glcr.b-data.ch/jupyterlab/r/geospatial

or

podman run --rm \
  -p 8888:8888 \
  -u root \
  -e NB_USER=root \
  -e NB_UID=0 \
  -e NB_GID=0 \
  -e NOTEBOOK_ARGS="--allow-root" \
  glcr.b-data.ch/jupyterlab/r/geospatial

@bernt-matthias
Copy link
Author

Does podman run -ti --rm debian work?

Yes.

You could give glcr.b-data.ch/jupyterlab/r/geospatial a try, i.e.

podman run --rm \
  -p 8888:8888 \
  glcr.b-data.ch/jupyterlab/r/geospatial

This just gives me: Error: OCI runtime error: crun: cannot setresgid to 100: Invalid argument

podman run --rm \
  -p 8888:8888 \
  -u root \
  -e NB_USER=root \
  -e NB_UID=0 \
  -e NB_GID=0 \
  -e NOTEBOOK_ARGS="--allow-root" \
  glcr.b-data.ch/jupyterlab/r/geospatial

This seems to do much more:

Entered start.sh with args: start-notebook.sh
Running hooks in: /usr/local/bin/start-notebook.d as uid: 0 gid: 0
Sourcing shell script: /usr/local/bin/start-notebook.d/10-populate.sh
Done running hooks in: /usr/local/bin/start-notebook.d
Updated the jovyan user:
- username: jovyan       -> root
- home dir: /home/jovyan -> /home/root
Attempting to copy /home/jovyan to /home/root...
Success!
Changing working directory to /home/root/
Running hooks in: /usr/local/bin/before-notebook.d as uid: 0 gid: 0
Sourcing shell script: /usr/local/bin/before-notebook.d/10-env.sh
Sourcing shell script: /usr/local/bin/before-notebook.d/11-home.sh

But there is an error in the "end": runuser: cannot set groups: Operation not permitted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed needs more info Further information is requested question
Projects
None yet
Development

No branches or pull requests

4 participants