[INSTRM-1607] ginga does not display images Created: 16/May/22  Updated: 10/Feb/23  Resolved: 10/Feb/23

Status: Won't Fix
Project: Instrument control development
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Normal
Reporter: fmadec Assignee: arnaud.lefur
Resolution: Won't Fix Votes: 0
Labels: SPS
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

I don't know if it is a bug or not but we had to restart the machine and we cannot have the realtime display anymore

2022-05-16 13:36:36.522Z actor            20 main.py:38 attaching callbacks cams=b1,b2,b3,b4,r1,r2,r3,r4
KeyVar('ccd_r3', filepath=(String('/data/raw'), String('2022-05-16'), String('PFLA03594532.fits'))) functools.partial(<bound method GingaActor.ccdFilepath of <__main__.GingaActor object at 0x7f56d0a3cfd0>>, 'r3')(*(KeyVar('ccd_r3', filepath[Types[String, String, String]]=(String('/data/raw'), String('2022-05-16'), String('PFLA03594532.fits')) isCurrent=True),), **{}) failed: [Errno 104] Connection reset by peer
Traceback (most recent call last):
  File "/software/mhs/products/Linux64/tron_actorcore/2.3.1/python/RO/AddCallback.py", line 80, in safeCall2
    return func(*args, **kwargs)
  File "python/gingaActor/main.py", line 56, in ccdFilepath
    self.loadHdu(filepath, chname='%s_RAW' % cam.upper(), hdu=1)
  File "python/gingaActor/main.py", line 71, in loadHdu
    channel.load_hdu(fname, hdulist, hdu)
  File "/software/conda/envs/conda-ics/lib/python3.7/site-packages/ginga/util/grc.py", line 123, in load_hdu
    num_hdu, {})
  File "/software/conda/envs/conda-ics/lib/python3.7/site-packages/ginga/util/grc.py", line 189, in call
    res = self._proxy.dispatch_call(method_name, p_args, p_kwdargs)
  File "/software/conda/envs/conda-ics/lib/python3.7/xmlrpc/client.py", line 1112, in __call__
    return self.__send(self.__name, args)
  File "/software/conda/envs/conda-ics/lib/python3.7/xmlrpc/client.py", line 1452, in __request
    verbose=self.__verbose
  File "/software/conda/envs/conda-ics/lib/python3.7/xmlrpc/client.py", line 1154, in request
    return self.single_request(host, handler, request_body, verbose)
  File "/software/conda/envs/conda-ics/lib/python3.7/xmlrpc/client.py", line 1166, in single_request
    http_conn = self.send_request(host, handler, request_body, verbose)
  File "/software/conda/envs/conda-ics/lib/python3.7/xmlrpc/client.py", line 1279, in send_request
    self.send_content(connection, request_body)
  File "/software/conda/envs/conda-ics/lib/python3.7/xmlrpc/client.py", line 1309, in send_content
    connection.endheaders(request_body)
  File "/software/conda/envs/conda-ics/lib/python3.7/http/client.py", line 1272, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/software/conda/envs/conda-ics/lib/python3.7/http/client.py", line 1071, in _send_output
    self.send(chunk)
  File "/software/conda/envs/conda-ics/lib/python3.7/http/client.py", line 993, in send
    self.sock.sendall(data)
ConnectionResetError: [Errno 104] Connection reset by peer




 Comments   
Comment by arnaud.lefur [ 17/May/22 ]

yes, it's a ginga bug actually, something is jammed on the server side.
and for some reason, the server does not want to start on another port.
So you get either a ConnectionResetError or ConnectionRefusedError

Comment by arnaud.lefur [ 10/Feb/23 ]

sometime ginga server get stuck, in that case, reassign another port and retry.

Generated at Sat Feb 10 16:37:30 JST 2024 using Jira 8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b.