Skip to content
This repository was archived by the owner on Sep 3, 2022. It is now read-only.
This repository was archived by the owner on Sep 3, 2022. It is now read-only.

Notebooks don't connect to kernel when run via gateway #1083

Closed
@moczkowski

Description

@moczkowski

Since last week I've had all kinds of trouble using Datalab via a gateway VM. So today I tried from scratch. Using the latest images with a brand-new gateway VM following the quickstart instructions exactly and running on a Mac with the latest Docker installed, any notebook I open fails to connect to a kernel. Running Datalab locally works perfectly fine.

In the debug output there is an error each time:
{"name":"app","hostname":"1a994dcf2881","pid":202,"type":"jupyter","level":30,"msg":"[9000]: 200 GET /api/contents/datalab/docs/intro/Introduction%20to%20Notebooks.ipynb/checkpoints?_=1481647861344 (127.0.0.1) 7.96ms\n","time":"2016-12-13T16:51:01.985Z","v":0} {"name":"app","hostname":"1a994dcf2881","pid":202,"type":"jupyter","level":30,"msg":"[9000]: Unhandled error in API request\n Traceback (most recent call last):\n File \"/usr/local/lib/python2.7/dist-packages/notebook/base/handlers.py\", line 481, in wrapper\n result = yield gen.maybe_future(method(self, *args, **kwargs))\n File \"/usr/local/lib/python2.7/dist-packages/tornado/gen.py\", line 1015, in run\n value = future.result()\n File \"/usr/local/lib/python2.7/dist-packages/tornado/concurrent.py\", line 237, in result\n raise_exc_info(self._exc_info)\n File \"/usr/local/lib/python2.7/dist-packages/tornado/gen.py\", line 1021, in run\n yielded = self.gen.throw(*exc_info)\n File \"/usr/local/lib/python2.7/dist-packages/notebook/services/sessions/handlers.py\", line 75, in post\n type=mtype))\n File \"/usr/local/lib/python2.7/dist-packages/tornado/gen.py\", line 1015, in run\n value = future.result()\n File \"/usr/local/lib/python2.7/dist-packages/tornado/concurrent.py\", line 237, in result\n raise_exc_info(self._exc_info)\n File \"/usr/local/lib/python2.7/dist-packages/tornado/gen.py\", line 270, in wrapper\n result = func(*args, **kwargs)\n TypeError: create_session() got an unexpected keyword argument 'name'\n","time":"2016-12-13T16:51:01.987Z","v":0} {"name":"app","hostname":"1a994dcf2881","pid":202,"type":"request","level":30,"url":"/api/sessions","method":"POST","status":500,"msg":"","time":"2016-12-13T16:51:01.988Z","v":0} {"name":"app","hostname":"1a994dcf2881","pid":202,"type":"jupyter","level":30,"msg":"[9000]: {\n \"Origin\": \"http://localhost:8081\", \n \"Content-Length\": \"127\", \n \"Accept-Language\": \"en-US,en;q=0.8\", \n \"Accept-Encoding\": \"gzip, deflate, br\", \n \"Connection\": \"close\", \n \"Accept\": \"application/json, text/javascript, */*; q=0.01\", \n \"User-Agent\": \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.98 Safari/537.36\", \n \"Host\": \"localhost:8081\", \n \"X-Requested-With\": \"XMLHttpRequest\", \n \"Referer\": \"http://localhost:8081/notebooks/datalab/docs/intro/Introduction%20to%20Notebooks.ipynb\", \n \"Cookie\": \"_ga=GA1.1.169860604.1481054659\", \n \"Content-Type\": \"application/json\"\n }\n500 POST /api/sessions (127.0.0.1) 2.21ms referer=http://localhost:8081/notebooks/datalab/docs/intro/Introduction%20to%20Notebooks.ipynb\n","time":"2016-12-13T16:51:01.989Z","v":0}

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions