Docker Dicom Listener issue

Hello Guys,
I’m trying to start storage listener in Slicer in the web (docker version)

this is the error.

Problem trying to start DICOM listener:
[Errno 2] No such file or directory: ‘ps’

Any suggestion?

Best
Daniele

ps is the built in process list on linux that is used to tell if the listener is already running. It should be available in the docker os layer. You can investigate why it’s not available in your image or you can report back with more details about what image you are using and how you start it.

Thanks Steve for your reply.

I’m following repo instruction then:

docker run -p 8888:8888 -p 49053:49053  -v "$PWD":/home/sliceruser/work  --rm -ti lassoan/slicer-notebook:latest

and this in jupyter

import JupyterNotebooksLib as slicernb
import slicer
import ipywidgets
ipywidgets.HTML(f'<h1><center><a href="{slicernb.AppWindow.defaultDesktopUrl()}" target="_blank"><img src="https://www.slicer.org/assets/img/3D-Slicer-Mark.svg" width="100" height="100"/><br>Click here to open 3D Slicer in a new window</a></center></h1>')

Ah, yes, the jupyter server may not be running on a normal OS and may not be able to run the dicom listener.

This is where it tries to run ps. Maybe you need to find a different way to run external processes.

If you do get the listener running you will also need to map port 11112 if you want to communicate with it from your host machine.

Understood, thank you.

Do you have any web based alternative able to avoid this jupyter server issues?

The slicer-notebook is built on a regular linux as far as I can see. I’m not sure why ps won’t run, maybe there’s some permission lockdown.

I have some other docker images that might work differently.

The slice-notebook image uses a minimal linux installation. To get ps, we need to add sudo apt-get install procps to the dockerfile. I’ve done this for 5.0.2, 5.0.3, and latest tags, and it seems to work well, the DICOM listener does complain.

This is great!
Thanks a ton!

1 Like