vatlab / sos-notebook

Multi-language Jupyter Notebook
http://vatlab.github.io/SoS
BSD 3-Clause "New" or "Revised" License
177 stars 17 forks source link

%get mtcars --from R fails on live server. #282

Closed BoPeng closed 4 years ago

BoPeng commented 4 years ago

It certainly worked before.

BoPeng commented 4 years ago

Not sure what is going on, but it appears that the second attempt to start the kernel would succeed. This might be related to a warning message Address already in use from command line, but I am not sure what is going on here.

[W 09:39:57.817 LabApp] Got events for closed stream None
R_zmq_bind errno: 48 strerror: Address already in use
[W 09:40:24.769 LabApp] Couldn't authenticate WebSocket connection
[W 09:40:24.770 LabApp] 403 GET /api/kernels/8ac752fa-7bd7-4e03-8759-6990d61a37d4/channels?session_id=dad3576d-9570-47eb-9d75-bb9b8f7d18ac&token=aa6c103098df227321900b477703a1fca2e7607d93a20e67 (127.0.0.1) 2.81ms referer=None
Warning message:
In zmq.bind(sockets$shell, url_with_port("shell_port")) :
  zmq.bind fails, tcp://127.0.0.1:62456
BoPeng commented 4 years ago

This is not the case for the live server.

BoPeng commented 4 years ago

To reproduce, go to https://vatlab.github.io/sos-docs/doc/user_guide/sos_javascript.html, click edit, and then run the first two code cells. Running the docker image directly could also reproduce the problem.

Whatever the problem could be with the docker environment, sos should generate proper error messages, but it simply hangs in this case.

BoPeng commented 4 years ago

The problem was the missing feather library for R....