# Running Slicer on headless server (Installing Extensions and more...)

**URL:** https://discourse.slicer.org/t/running-slicer-on-headless-server-installing-extensions-and-more/11689
**Category:** Support
**Created:** [May 25, 2020, 9:42am UTC](https://discourse.slicer.org/t/running-slicer-on-headless-server-installing-extensions-and-more/11689 "2020-05-25T09:42:50Z")
**Posts on this page:** 1
**Showing post:** 9

<div class="post-metadata">

### Author: ![Davide\_Cester](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/davide_cester/32/6564_2.png) [@Davide\_Cester](https://discourse.slicer.org/u/Davide_Cester)
#### Post date: [May 25, 2020, 5:19pm UTC](https://discourse.slicer.org/t/running-slicer-on-headless-server-installing-extensions-and-more/11689/9 "2020-05-25T17:19:04Z")

</div>

Ok, I moved to Slicer 4.11. Same procedure as before: installed slicer, installed extension, installed kernel. Kernel is available in Jupyter, but hangs in the connection and never becomes operational.

Usually when a kernel is hanging in the init / conn stage it’s a websocket issue, I had it before. But here the Python kernels are working, and Slicer 4.10 was working with the same webserver configuration. If I manually run the headless slicer it doesn’t crash, so it looks really like a communication problem.

Is there anything different between the two versions of Slicer and the extension?

Something I’ve noticed is that v. 4.11 has a kernel-configure.py script. Is that important? How do I run it?  
Here’s my kernel.json:

```
{
    "display_name": "Slicer 4.11",
    "language" : "python",
    "argv": [
        "xvfb-run",
        "-a",
        "/opt/slicer/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()"
    ]
}

```

My revision number is now 29074.

EDIT: it’s definitely a websocket problem, I get Javascript errors on the browser’s console.

EDIT #2: I have re-installed Slicer 4.10 in parallel, now I see both kernels. 4.10 works, 4.11 has WS issues.

---

_[View the full topic](https://discourse.slicer.org/t/running-slicer-on-headless-server-installing-extensions-and-more/11689)._
