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

Issue #336 wontfix
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/socket.py in meth, line 224
Python Executable:  /var/conquest/openrem/bin/python
Python Version: 2.7.4
Python Path:    ['/var/conquest/openrem',
 '/var/conquest/openrem20131031/bin',
 '/var/conquest/openrem/local/lib/python2.7/site-packages/openrem',
 '/var/conquest/openrem20131031',
 '/var/conquest/openrem/lib/python2.7',
 '/var/conquest/openrem/lib/python2.7/plat-x86_64-linux-gnu',
 '/var/conquest/openrem/lib/python2.7/lib-tk',
 '/var/conquest/openrem/lib/python2.7/lib-old',
 '/var/conquest/openrem/lib/python2.7/lib-dynload',
 '/usr/lib/python2.7',
 '/usr/lib/python2.7/plat-x86_64-linux-gnu',
 '/usr/lib/python2.7/lib-tk',
 '/var/conquest/openrem/local/lib/python2.7/site-packages',
 '/var/conquest/openrem20131031']
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/base.py 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/csrf.py in wrapped_view 
                    return view_func(*args, **kwargs) ...
 Local vars 
/var/conquest/openrem/local/lib/python2.7/site-packages/django/contrib/auth/decorators.py in _wrapped_view 
                            return view_func(request, *args, **kwargs) ...
 Local vars 
/var/conquest/openrem/local/lib/python2.7/site-packages/openrem/remapp/netdicom/dicomviews.py in run_store 
                    storetask = web_store(store_pk=pk) ...
 Local vars 
/var/conquest/openrem/local/lib/python2.7/site-packages/openrem/remapp/netdicom/storescp.py 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 (5)

  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