NCAR / cesm-lens-aws

Examples of analysis of CESM LENS data publicly available on Amazon S3 (us-west-2 region) using xarray and dask
https://doi.org/10.26024/wt24-5j82
BSD 3-Clause "New" or "Revised" License
43 stars 23 forks source link

Update binder-bot configuration #45

Closed andersy005 closed 4 years ago

andersy005 commented 4 years ago

Waiting on https://github.com/pangeo-gallery/binderbot/issues/8

The timeout doesn't seem to be an issue for the time being. I am now getting aiohttp.client_exceptions.ClientResponseError. I tried changing the binder_url from https://aws-uswest2-binder.pangeo.io to https://staging.aws-uswest2-binder.pangeo.io without success.

To reproduce the error locally, I ran:

python -m binderbot.cli --binder-url https://staging.aws-uswest2-binder.pangeo.io --repo NCAR/cesm-lens-aws --ref master ../../ncar/cesm-lens-aws/notebooks/*.ipynb
```python 2020-04-11 17:42.35 Binder: Got token and url (https://hub.staging.aws-uswest2-binder.pangeo.io/user/ncar-cesm-lens-aws-3x6q4puq/) action=binder-ready duration=181.252989863 phase=build-token 2020-04-11 17:42.35 Kernel: Starting action=kernel-start phase=start 2020-04-11 17:42.36 Kernel: Started action=kernel-start phase=complete ✅ Binder and kernel started successfully. ⌛️ Uploading ../../ncar/cesm-lens-aws/notebooks/kay-et-al-2015.v3.ipynb...Traceback (most recent call last): File "/Users/abanihi/opt/miniconda3/envs/dev/lib/python3.7/runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "/Users/abanihi/opt/miniconda3/envs/dev/lib/python3.7/runpy.py", line 85, in _run_code exec(code, run_globals) File "/Users/abanihi/devel/pangeo/binderbot/binderbot/cli.py", line 77, in sys.exit(main()) # pragma: no cover File "/Users/abanihi/opt/miniconda3/envs/dev/lib/python3.7/site-packages/click/core.py", line 764, in __call__ return self.main(*args, **kwargs) File "/Users/abanihi/opt/miniconda3/envs/dev/lib/python3.7/site-packages/click/core.py", line 717, in main rv = self.invoke(ctx) File "/Users/abanihi/opt/miniconda3/envs/dev/lib/python3.7/site-packages/click/core.py", line 956, in invoke return ctx.invoke(self.callback, **ctx.params) File "/Users/abanihi/opt/miniconda3/envs/dev/lib/python3.7/site-packages/click/core.py", line 555, in invoke return callback(*args, **kwargs) File "/Users/abanihi/devel/pangeo/binderbot/binderbot/cli.py", line 17, in wrapper return loop.run_until_complete(f(*args, **kwargs)) File "/Users/abanihi/opt/miniconda3/envs/dev/lib/python3.7/asyncio/base_events.py", line 583, in run_until_complete return future.result() File "/Users/abanihi/devel/pangeo/binderbot/binderbot/cli.py", line 56, in main await jovyan.upload_local_notebook(fname) File "/Users/abanihi/devel/pangeo/binderbot/binderbot/binderbot.py", line 286, in upload_local_notebook await self.put_contents(notebook_filename, nb) File "/Users/abanihi/devel/pangeo/binderbot/binderbot/binderbot.py", line 150, in put_contents resp.raise_for_status() File "/Users/abanihi/opt/miniconda3/envs/dev/lib/python3.7/site-packages/aiohttp/client_reqrep.py", line 946, in raise_for_status headers=self.headers) aiohttp.client_exceptions.ClientResponseError: 404, message='Not Found', url=URL('https://hub.staging.aws-uswest2-binder.pangeo.io/user/ncar-cesm-lens-aws-3x6q4puq/ncar/cesm-lens-aws/notebooks/kay-et-al-2015.v3.ipynb') ```

Cc @rabernat in case he has suggestions on how to diagnose this issue.

rabernat commented 4 years ago

Thanks for trying this. I believe the error is the same as https://github.com/pangeo-gallery/binderbot/issues/6. We think it's related to some API changes in Jupyter. Binderbot works with some notebook servers and not others.

andersy005 commented 4 years ago

Thank you for the clarification, @rabernat! I just re-run the GitHub actions after https://github.com/pangeo-gallery/binderbot/pull/10 was merged, and it seems to be working.