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

Launching server fails #193

Closed
lsterzinger opened this issue Oct 1, 2021 · 11 comments
Closed

Launching server fails #193

lsterzinger opened this issue Oct 1, 2021 · 11 comments

Comments

@lsterzinger
Copy link

Recently, when trying to launch a notebook on https://binder.pangeo.io, the image builds/uploads fine but I keep erroring on launch. I don't know where/if there is additional log info so I can't tell anything more than what the error message below shows:
image

For reference the notebook I'm trying to launch is: https://binder.pangeo.io/v2/gh/lsterzinger/maptimedavis-fsspec/HEAD

@rabernat
Copy link
Member

rabernat commented Oct 1, 2021

Possibly related to #192

@lsterzinger
Copy link
Author

Possibly. I have not encountered any issues generating an image, only launching the server

@lsterzinger
Copy link
Author

Though updating repo2docker might help in this instance, as @choldgraf mentioned in #192

@scottyhq
Copy link
Member

scottyhq commented Oct 4, 2021

@lsterzinger unfortunately all logs are not exposed to users, if i try and launch your repository I notice the following:

      File "/srv/conda/envs/notebook/lib/python3.8/site-packages/jupyterlab/__init__.py", line 7, in <module>
        from .labapp import LabApp
      File "/srv/conda/envs/notebook/lib/python3.8/site-packages/jupyterlab/labapp.py", line 15, in <module>
        from jupyter_server.serverapp import flags
      File "/srv/conda/envs/notebook/lib/python3.8/site-packages/jupyter_server/serverapp.py", line 52, in <module>
        raise ImportError(_i18n("The Jupyter Server requires tornado >=%s.%s.%s") % MIN_TORNADO) from e
    ImportError: The Jupyter Server requires tornado >=6.1.0

Looking at your repository configuration I don't see a Dockerfile, we should document this better here https://github.com/pangeo-data/pangeo-docker-images#how-to-use-the-base-image-with-a-pangeo-binder, but if you want a fully custom environment that works on the pangeo binders (with dask gateway), I recommend following the pangeo binder template. At a minimum you'll want

  1. a Dockerfile that points to a specific pin of the pangeo base image (FROM pangeo/base-image:2021.09.21)
  2. you then need to make sure you have the pangeo-notebook metapackage in your environment.yml

NOTE that if you just want an additional package or two that is not in the pangeo-notebook environment you can simply modify the Dockerfile as is done here https://github.com/rabernat/pangeo-interactive-talks/blob/binder/binder/Dockerfile

Hope that helps explain things a bit. cc @scollis

@lsterzinger
Copy link
Author

Using the pangeo binder template fixed my issue and I'm able build/deploy on https://binder.pangeo.io error free now. Thanks @scottyhq

@acocac
Copy link
Member

acocac commented Dec 8, 2021

@scottyhq, I've just found the same launch error even with the template,
repo: https://github.com/acocac/pangeo-binder-template

@rabernat
Copy link
Member

rabernat commented Dec 8, 2021

The Pangeo Binder has been shut down due to crypto mining - see #195

@acocac - can you do what you need to do on mybinder.org?

@scollis
Copy link

scollis commented Dec 8, 2021 via email

@acocac
Copy link
Member

acocac commented Dec 8, 2021

@rabernat sorry I just saw the issue of the crypto mining 😭 Apart from dask, my main reason of using Pangeo binder is a larger memory (8MB) than the regular mybinder.org (2MB). I'm positive the improvement led by 2i2c engineers will bring a faster binder with more stability and security 💪 🌎

@lsterzinger
Copy link
Author

@acocac I ran into the same issue w/ needing more memory than what MyBinder allocates. When I couldn't get the pangeo binder working, I looked into Google Colab (https://colab.research.google.com/) as a slightly inconvenient but doable alternative.

@acocac
Copy link
Member

acocac commented Dec 8, 2021

@lsterzinger, thanks for the suggestion! I'm temporarily exploring GESIS, not optimal for dask as the Pangeo binder, but at least fits the memory requirement. I'm strongly convinced we'll have a fast and robust Pangeo binder after the migration to 2i2c 🤞 💨 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants