Echo fails when SCP running, doesn't handle Port in Use error

Issue #336 new
Ed McDonagh created an issue
error at /openrem/admin/dicomstore/1/start/
[Errno 98] Address already in useRequest Method:    GET
Request URL:    http://frp-dose/openrem/admin/dicomstore/1/start/
Django Version: 1.8.6
Exception Type: error
Exception Value:    [Errno 98] Address already in use
Exception Location: /usr/lib/python2.7/ in meth, line 224
Python Executable:  /var/conquest/openrem/bin/python
Python Version: 2.7.4
Python Path:    ['/var/conquest/openrem',
Server time:    Tue, 22 Dec 2015 11:31:15 +0000

Traceback  Switch to copy-and-paste view 
/var/conquest/openrem/local/lib/python2.7/site-packages/django/core/handlers/ in get_response 
                                response = wrapped_callback(request, *callback_args, **callback_kwargs) ...
 Local vars 
/var/conquest/openrem/local/lib/python2.7/site-packages/django/views/decorators/ in wrapped_view 
                    return view_func(*args, **kwargs) ...
 Local vars 
/var/conquest/openrem/local/lib/python2.7/site-packages/django/contrib/auth/ in _wrapped_view 
                            return view_func(request, *args, **kwargs) ...
 Local vars 
/var/conquest/openrem/local/lib/python2.7/site-packages/openrem/remapp/netdicom/ in run_store 
                    storetask = web_store(store_pk=pk) ...
 Local vars 
/var/conquest/openrem/local/lib/python2.7/site-packages/openrem/remapp/netdicom/ in web_store 

    # logging.basicConfig(level=logging.INFO)

    # setup AE
    MyAE = AE(
        aet, port, [],
        [StorageSOPClass, VerificationSOPClass],
                    [ExplicitVRLittleEndian, ImplicitVRLittleEndian] ...
    MyAE.OnAssociateRequest = OnAssociateRequest
    MyAE.OnAssociateResponse = OnAssociateResponse
    MyAE.OnReceiveStore = OnReceiveStore
    MyAE.OnReceiveEcho = OnReceiveEcho

 Local vars

Comments (4)

  1. Ed McDonagh reporter

    Echo fails when SCP running may be in part due to the issues discussed in these two groups discussions.

    After a few days of running, using echoscu from OFFIS tells me that the association was rejected due to Local Limit Exceeded. Looking at htop, there are 11 processes for the storescp which between them have taken 56 hours of processor time, even though it is apparently not working!

  2. Ed McDonagh reporter

    Attempt to a/ kill any long-running associations that weren't correctly released and b/ increase the number of simultaneous connections. Don't know if setting the values here has the required effect. Refs #336

    → <<cset 6d636d150230>>

  3. Log in to comment