-
Notifications
You must be signed in to change notification settings - Fork 42
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
Kernel dying out repeatedly #49
Comments
Can you check if you can launch Slicer successfully on that system (without Jupyter) and maybe get a stack trace? |
Okay, it looks like it isn't even starting properly ... dying right after connecting. |
Most common issue in a server environment is wrong X or OpenGL configuration. See all the questions on the Slicer forum about running Slicer on a headless system. |
@pieper I guess your experience is needed here. |
Sorry, I've never used a Partners Jupyter server, but I probably have access if you need help debugging. @tashrifbillah can you describe exactly what system you are using? |
|
@pieper if you please hold, I am looking at |
Never mind. If I try the following on a Linux terminal: [tb571@grx04 slicer-4.11]$ cat kernel.json
{
"display_name": "Slicer 4.11",
"language" : "python",
"argv": [
"/data/pnl/soft/pnlpipe3/Slicer-4.11.0-linux-amd64/bin/../SlicerWithExtensions.sh",
"--no-splash",
"--python-code",
"connection_file=r'{connection_file}'; print('Jupyter connection file: ['+connection_file+']'); slicer.modules.jupyterkernel.startKernel(connection_file);slicer.util.mainWindow().showMinimized()"
]
} I get this:
Is this expected? |
Jupyter replaces |
Hi @pieper , did you get a chance to look at it? This is a way around NoMachine in case you don't have that setup. Happy to work with you over a call as well. |
Hi @lassoan , is there a log where I may find the events during kernel initiation and failure that I described in the above? |
Hi @tashrifbillah - I don't really use partner's jupyterhub or slicerjupyter much myself, so not sure I can do anything other than you will be able to do. Let's see what @lassoan suggests for debugging techniques and I can jump in if needed. |
Slicer logs everything into the Slicer log files. |
I confirm that it is an OpenGL issue. https://jupyterhub.partners.org/ X environment is probably not set up properly. |
Hi, I am still trying to find a way out of this problem. The following pops up Slicer-4.11 GUI and stays there: (base) [tb571@grx05 slicer-4.11]$ jupyter console --kernel slicer-4.11
Switch to module: "Welcome"
Jupyter connection file: [/PHShome/tb571/.local/share/jupyter/runtime/kernel-55305.json]
Run with XEUS 0.23.13
Starting Jupyter kernel server
Jupyter console 6.1.0
__ _____ _ _ ___
\ \/ / _ \ | | / __|
> < __/ |_| \__ \
/_/\_\___|\__,_|___/
xeus-python: a Jupyter kernel for Python
Python 3.6.7
In [1]: Is there a way to suppress that? |
The same happens if I open the kernel from http://localhost:8889/tree . |
Can you post a screenshot? |
The ascii word art is displayed the Jupyter client calls kernel_info_request. I don't remember any of the Jupyter clients calling this or at least it did not display the result. What Jupyter client do you use? |
(base) [tb571@grx05 slicer-4.11]$ jupyter --version
jupyter core : 4.6.3
jupyter-notebook : 6.0.3
qtconsole : 4.7.4
ipython : 7.8.0
ipykernel : 5.3.0
jupyter client : 6.1.3
jupyter lab : not installed
nbconvert : 5.6.1
ipywidgets : 7.5.1
nbformat : 5.0.7
traitlets : 4.3.2
|
The problem is, we do not have any GUI access to the server other than Jupyter notebook where Slicer-4.11 Kernel would be running. And coming back to the issue I opened, the kernel fails to start attempting to launch Slicer-4.11 and failing. |
Well, I think that is the default behavior as specified by "slicer.util.mainWindow().showMinimized()": "/PHShome/tb571/tmp/Slicer-4.11.0-linux-amd64/Slicer",
"--no-splash",
"--python-code",
"connection_file=r'{connection_file}'; print('Jupyter connection file: ['+connection_file+']'); slicer.modules.jupyterkernel.startKernel(connection_file);slicer.util.mainWindow().showMinimized()" |
I don't remember ever seeing this XEUS graphics, but Slicer starting up minimized is the expected behavior. You don't need GUI access to the server, you should be able to do visualizations, processing, etc. all just using the Jupyter interface. The server has to provide minimal graphics resources, but if even the free binder service can meet these requirements it is hard to imagine how a dedicated, more powerful server would have any problem with this. |
@tashrifbillah are you able to run Slicer on the remote server using Xvfb or Xdummy? |
Followed your video, copied command to clipboard and installed on a Terminal that I launched from Notebook:
Installation went fine.
Error snapshot:
It's dying every three seconds or so.
@pieper might be able to reproduce this error.
Since our data are on the ERIS cluster, we won't be able to use public binder to run SlicerJupyter on. On the other hand, we won't have docker. So, we are left with making use of Parters Jupyter server to run SlicerJupyter on.
The text was updated successfully, but these errors were encountered: