question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Pynetdicom Across Virtual Machine with Port Forwarding

See original GitHub issue

Description

QUESTION - How to access PACs server on Virtual Machine?

I have a linux box running on Virtual Box where i have setup Conquest Open Source PAC server. https://ingenium.home.xs4all.nl/dicom.html

Using pynetdicom on the virtual machine i can connect the to server and retrieve data. Then i have setup Port Forwarding on the VirtualBox instance so i should be able to access it from my local machine. Indeed, a connection is established, but no data is returned.

This is the script being run - https://pastebin.com/7tuqaX39

Expected behaviour

The connection is established and query status returns 0xff00, data is returned, status returns 00x000 and the connection is released.

image

Actual behaviour

The connection is established and query status returns 0x000 and the connection is released.

image

Association Established C-MOVE query status: 0x0000 Association Released

Steps to reproduce

Install conquest on linux virtual machine. Setup port forwarding. Run this script from the host machine - https://pastebin.com/7tuqaX39

Your environment

Please run the following and paste the output.

$ python -c "import platform; print(platform.platform())"
$ python -c "import sys; print('Python', sys.version)"
$ python -c "import pydicom; print('pydicom', pydicom.__version__)"
$ python -c "import pynetdicom; print('pynetdicom', pynetdicom.__version__)"

On the host machine

 python -c "import platform; print(platform.platform())"
Darwin-18.2.0-x86_64-i386-64bit
 python -c "import sys; print('Python', sys.version)"
Python 3.6.1 |Anaconda custom (64-bit)| (default, May 11 2017, 13:04:09) 
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)]
 python -c "import pydicom; print('pydicom', pydicom.__version__)"
pydicom 1.2.1
python -c "import pynetdicom; print('pynetdicom', pynetdicom.__version__)"
pynetdicom 1.1.0.dev0

On the Virtual Machine image

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:20 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
scaramallioncommented, Jan 10, 2019

Looking at your script the first part is for a C-FIND request, not C-MOVE. Is that correct? If so then I have no explanation on why you’re not getting any (0xFF00) pending responses before the (0x0000) success response. The simple fact that you are getting a success response tells me that everything on the pynetdicom side is working as expected, so I suspect its an SCP config issue.

Assuming thats the case:

  1. Could you confirm that your Conquest configuration is set up correctly for handling associations from the local machine (perhaps in the known DICOM providers)? I’m not familiar with Conquest, but perhaps confirm that access to the QR service has been permitted for the local machine’s SCU (if applicable).
  2. Are you able to run C-FIND requests as expected with DCMTK’s findscu?

If both those points are OK, could you run the SCU with a debug log level and post the output?

import logging
from pynetdicom import AE
etc...

LOGGER = logging.getLogger('pynetdicom')
LOGGER.setLevel(logging.DEBUG)

ae = AE()
etc...
0reactions
scaramallioncommented, Jan 16, 2019

So are you happy that things are working as expected? Can I close the issue?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Conquest on a Virtual Machine - K-PACS & ConQuest Forum
I am currently working with Conquest on a Virtual Machine. This seems good and appears to work as expected. However, when using Port...
Read more >
How to Setup Port Forward For a VM in Virtualbox - YouTube
Your browser can't play this video. Learn more. Switch camera.
Read more >
Writing your first SCU — pynetdicom 2.1.0.dev0 documentation
Writing your first SCU¶. This tutorial is intended for people who are new to pynetdicom. In it you'll: Learn a bit about the...
Read more >
How to Forward Ports to a Virtual Machine and Use It as a ...
If you want to run server software inside a virtual machine, you'll need to change its network type or forward ports through the...
Read more >
How to do port forwarding between two guest virtual machines?
1) Do you mean to connect to the Express server through SSH? I never heard of that. 2) About your recommendation for my...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found