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.

Random association aborts with Windows Server over network

See original GitHub issue

Association gets aborted with Pynetdicom on windows server when tried from network. Let me describe what happens:

On my windows server:

> python -m pynetdicom storescp 5253 -v --ignore
I: Accepting Association
I: Association Aborted (A-P-ABORT)

IP of my server is 192.168.0.119. What I did on my client over wifi.

$ echoscu -v 192.168.0.119 5253
I: Requesting Association
I: Association Accepted (Max Send PDV: 16370)
I: Sending Echo Request (MsgID 1)
E: Echo Failed: 0006:0317 Peer aborted Association (or never connected)
I: Peer Aborted Association

I have tried to reproduce the same thing with dcmtk’s storescp and there was no issue. Also run pynetdicom inside a ubunut docker on windows and there was no issue either.

Surprisingly if I use pynetdicom’s echoscu client, it works

$ python -m pynetdicom echoscu -v 192.168.0.119 5253
I: Requesting Association
I: Association Accepted
I: Sending Echo Request: MsgID 1
I: Received Echo Response (Status: Success)
I: Releasing Association

If I did echoscu from the windows server, it works!

.\bin\echoscu.exe -v localhost 5253
I: Requesting Association
I: Association Accepted (Max Send PDV: 16370)
I: Sending Echo Request (MsgID 1)
I: Received Echo Response (Success)
I: Releasing Association

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:26 (25 by maintainers)

github_iconTop GitHub Comments

1reaction
scaramallioncommented, Jul 6, 2021

And change to self.ae = ae = AE() so it get’s cleaned up properly if it fails.

1reaction
scaramallioncommented, Jul 6, 2021

test_transport.py::TestAssociationServer

You’ll have to add a_associate_rq to the imports from .encoded_pdu_items as well

Read more comments on GitHub >

github_iconTop Results From Across the Web

Server 2012 R2 File Server Stops Responding to SMB ...
I am running the servers on hyper-v 2012 r2 and have sr-iov enabled on the server nics to rule out the microsoft hyper-v...
Read more >
Service overview and network port requirements for Windows
These ports are also informally known as random RPC ports. In these cases, RPC clients rely on the RPC endpoint mapper to tell...
Read more >
Troubleshooting WINS error event ID 4102, 4243, 4242, and ...
Describes how to troubleshoot Windows Internet Name Service (WINS) replication-related error messages.
Read more >
Microsoft's PrintNightmare update is causing a lot of problems ...
Microsoft's PrintNightmare update is causing a lot of problems with network printers mapped on a print server.
Read more >
Client, service, and program issues can occur if you change ...
Microsoft Network Client for MS-DOS, Windows 95, Windows 98, Windows NT 4.0, Windows 2000, Windows XP, Windows Server 2003: Non-administrators who try to...
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