jupyterhub / binderhub

Run your code in the cloud, with technology so advanced, it feels like magic!
https://binderhub.readthedocs.io
BSD 3-Clause "New" or "Revised" License
2.52k stars 386 forks source link

sagemath mybinder error #1409

Open mmosmond opened 2 years ago

mmosmond commented 2 years ago

Bug description

Hello! Thanks for the great resource. I was using mybinder to host Jupyter Notebooks with SageMath kernels over at https://github.com/mmosmond/eeb430, but this stopped working sometime in September. Other repos with SageMath + mybinder have stopped working as well: https://github.com/calculuslab/Calculus_Lab, https://github.com/sagemath/sage-binder-env

Expected behaviour

In early September my binder badge (https://mybinder.org/v2/gh/mmosmond/eeb430/HEAD) successfully launched my notebooks in the browser.

Actual behaviour

Now binder gets stuck and never opens the notebook.

How to reproduce

  1. Go to https://mybinder.org/v2/gh/mmosmond/eeb430/HEAD
  2. The logs are:
    Found built image, launching...
    Launching server...
    Server requested
    2021-10-06T20:09:04.129014Z [Normal] Successfully assigned prod/jupyter-mmosmond-2deeb430-2dupce478r to gke-prod-user-202009-b9c03ca0-22tw
    2021-10-06T20:09:05Z [Normal] Container image "jupyterhub/mybinder.org-tc-init:2020.12.4-n655.hfe65496" already present on machine
    2021-10-06T20:09:05Z [Normal] Created container tc-init
    2021-10-06T20:09:05Z [Normal] Started container tc-init
    2021-10-06T20:09:06Z [Normal] Container image "gcr.io/binderhub-288415/r2d-staging-g5b5b759-mmosmond-2deeb430-159f2f:8a9a33ff11965174a9ef9ed7173ebf64a3bf62a4" already present on machine
    2021-10-06T20:09:06Z [Normal] Created container notebook
    2021-10-06T20:09:06Z [Normal] Started container notebook

Your personal set up

My Dockerfile is:

FROM sagemath/sagemath:latest
COPY --chown=sage:sage . ${HOME}

I've tried multiple versions of sagemath as well as jupyterlab, but alas...

There was some suspicion over at https://github.com/sagemath/sage-binder-env/issues/9 that this was a mybinder issue.

Thanks for any help you can give!

welcome[bot] commented 2 years ago

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively. welcome You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! :wave:
Welcome to the Jupyter community! :tada:

betatim commented 2 years ago

This is probably related to mybinder.org switching to Jupyter Lab by default. I don't know how to fix it though. There are a few threads in the forum http://discourse.jupyter.org/ about how to move a repo to the new setup/make it compatible with the new setup. That is where I'd go digging