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

rocker/binder broken (jupyter not in $PATH) #739

Closed
yuvipanda opened this issue Dec 22, 2023 · 4 comments
Closed

rocker/binder broken (jupyter not in $PATH) #739

yuvipanda opened this issue Dec 22, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@yuvipanda
Copy link
Contributor

Container image name

rocker/binder:4.3

Container image digest

sha256:64f7b60a8d03f291b42e76d8250aaa525c2fe30e5a9af2217965a9dd90557a93

What operating system are you seeing the problem on?

macOS

System information

Server: Docker Engine - Community
Engine:
Version: 24.0.7
API version: 1.43 (minimum version 1.12)
Go version: go1.20.10
Git commit: 311b9ff
Built: Thu Oct 26 09:07:41 2023
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.6.25
GitCommit: d8f198a4ed8892c764191ef7b3b06d8a2eeb5c7f
runc:
Version: 1.1.10
GitCommit: v1.1.10-0-g18a0cb0
docker-init:
Version: 0.19.0
GitCommit: de40ad0
rootlesskit:
Version: 1.1.1
ApiVersion: 1.1.1
NetworkDriver: slirp4netns
PortDriver: builtin
StateDir: /tmp/rootlesskit3151596074
slirp4netns:
Version: 1.0.1
GitCommit: 6a7b16babc95b6a3056b33fb45b74a6f62262dd4

Bug description

Since #718 was merged, jupyter is now installed in /opt/venv. However, the Dockerfile does not have the appropriate PATH variable set, so the rocker/binder image no longer starts as jupyter is no longer in $PATH and it's the default entrypoitn.

I'm not actually sure how to generate the Dockerfiles from the json, so not sure how to go about fixing it. I don't fully understand the JSON -> Dockerfile -> built images pipeline.

How to reproduce this bug?

$ docker run -it rocker/binder:4.3  jupyter lab
docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "jupyter": executable file not found in $PATH: unknown.
ERRO[0001] error waiting for container: context canceled 
@yuvipanda yuvipanda added the bug Something isn't working label Dec 22, 2023
@eitsupi
Copy link
Member

eitsupi commented Dec 23, 2023

This was caused by merging #718 automatically triggering a build even though that had not updated Dockerfiles correctly.
Actually the build should have taken place after the Dockerfiles were correctly updated by #738, but I only noticed it after the build was done.

@eitsupi
Copy link
Member

eitsupi commented Dec 23, 2023

@yuvipanda On second thought, unless we update all previous stack files, the next build will break all rocker/binder:4.X.X.
I am sorry, but could you please update all the stack files (by hand) and Dockerfiles (by the script)?

@yuvipanda
Copy link
Contributor Author

@eitsupi does #740 help?

I am sorry for not catching it either. I'll admit I still don't fully understand how the json / make interact together (#720) so am not still 100% sure I did the things I needed to do.

@eitsupi
Copy link
Member

eitsupi commented Dec 30, 2023

I think this has been solved.

@eitsupi eitsupi closed this as completed Dec 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants