jupyter / dashboards_server

[RETIRED] Server that runs and renders Jupyter notebooks as interactive dashboards
Other
181 stars 48 forks source link

Not rendering notebook #327

Closed mpekalski closed 7 years ago

mpekalski commented 7 years ago

I tried to build dockers by myself, following the ones provided in docker_deploy (those ones somehow did not want to work for me). What I struggle to understand is how kernel gateway knows which notebook server it has to communicate with? Is there an env that defines that?

I run JupyterHub that spawns containers with notebooks, I also managed to set up dashboard server and kernel gateway in a way that I can deploy notebook to dashboards server I get redirected to the dashboard, but the notebook in dashboard view does not get rendered there.

The javascript console reports an error that clearly says "cannot create kernel"

:3001/api/kernels?1495136591309 Failed to load resource: net::ERR_EMPTY_RESPONSE
21:47:11.474 dashboard.js:1 Error: Failed to create kernel: API request failed (0): 
    at dashboard.js:66
    at <anonymous>
(anonymous) @ dashboard.js:1

Dashboard server docker logs:

GET /favicon.ico 200 13.545 ms - 2218
GET /dashboards/Untitled22 304 99.490 ms - -
GET /components/require.js 304 2.602 ms - -
GET /css/style.css 304 3.423 ms - -
GET /components/dashboard.js 304 0.642 ms - -
GET /components/fonts/fontawesome-webfont.woff2?v=4.6.3 304 0.695 ms - -
GET /components/dashboard.js.map 304 2.161 ms - -
POST /api/kernels?1495138081579 - - ms - -
POST /api/kernels?1495138104880 - - ms - -
POST /api/kernels?1495138081579 - - ms - -
POST /api/kernels?1495138104880 - - ms - -

Dashboard kernel gateway docker logs:

[KernelGatewayApp] Jupyter Kernel Gateway at http://0.0.0.0:8888
mpekalski commented 7 years ago

We may close the issue, when i created docker I needed proxy to install packages through pip/npm, but those prevented containers from communication. I removed ENV declarations and user --proxy setting in pip and configured global proxy settings for npm.