Issue running dcm2niix container: “Unable to find any DICOM images in /input (or subfolders 5 deep)”

23 views
Skip to first unread message

Filippo Manini

unread,
Oct 6, 2025, 4:04:30 AM (8 days ago) Oct 6
to xnat_discussion

Hello everyone,

Here’s my setup:

  • XNAT: 1.8.10

  • Container Service: 3.5.0

  • OHIF Viewer: 3.7.1

  • OS: Linux

  • Installation: via Docker using NRG XNAT Docker Compose

I installed the following container: NRG XNAT dcm2niix

However, when I try to run it on a DICOM session, I get this error in Command History:

View stdout (from file):

Immagine 2025-10-06 095959.png

However, when I try to run it on a DICOM session, I get this error in Command History:

View stdout (from file):

Compression will be faster with 'pigz' installed Chris Rorden's dcm2niiX version v1.0.20211006 (JP2:OpenJPEG) GCC9.3.0 x86-64 (64-bit Linux)

View stderr (from file):

Error: Unable to find any DICOM images in /input (or subfolders 5 deep)

  File organization:image.png

To verify if the problem was with my DICOM data, I also installed dcm2niix locally, and it successfully generated the .nii file.

So I suspect the issue is not with XNAT itself, but with the dcm2niix container.
It seems that the /input directory mounted by XNAT doesn’t contain valid DICOMs, or it’s not being mounted as expected inside the container.

Has anyone experienced a similar issue?
How did you solve it?

Thanks in advance for your help!  

Moore, Charlie

unread,
Oct 6, 2025, 10:26:49 AM (7 days ago) Oct 6
to xnat_di...@googlegroups.com
Hi there,

Have you set up Path Translation for the container service? There's a section in the readme of the docker compose project explaining why it's needed and how to set it up.

Thanks,
Charlie Moore

From: 'Filippo Manini' via xnat_discussion <xnat_di...@googlegroups.com>
Sent: Monday, October 6, 2025 3:04 AM
To: xnat_discussion <xnat_di...@googlegroups.com>
Subject: [XNAT Discussion] Issue running dcm2niix container: “Unable to find any DICOM images in /input (or subfolders 5 deep)”
 
--
You received this message because you are subscribed to the Google Groups "xnat_discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xnat_discussi...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/xnat_discussion/2a5ce3c7-d9ca-419e-858a-9faf019a0ce2n%40googlegroups.com.

 


The materials in this message are private and may contain Protected Healthcare Information or other information of a sensitive nature. If you are not the intended recipient, be advised that any unauthorized use, disclosure, copying or the taking of any action in reliance on the contents of this information is strictly prohibited. If you have received this email in error, please immediately notify the sender via telephone or return mail.

Filippo Manini

unread,
Oct 10, 2025, 6:54:39 AM (4 days ago) Oct 10
to xnat_discussion

Hi Charlie,

thanks — I’ve resolved the issue by configuring the path translation as follows:

XNAT Path Prefix: /data/xnat
Server Path Prefix: /home/myName/projects/xnat-docker-compose/xnat-data

Everything works correctly now.

Thanks again for your help!

Filippo

Reply all
Reply to author
Forward
0 new messages