'Access error' reported in client as 'Unspecified error'
As reported on computing/helpdesk#3469 and computing/helpdesk#3558 when the client receives a DAQD_ACCESS
(Access error) response from the server, the user is presented with Unspecified error
:
$ NDS_LOGGING=TRACE_ENTRY_EXIT:VERBOSE_ERRORS=-2 python3 -c "import nds2; nds2.connection('nds.ligo.caltech.edu', 31200)"
INFO: daq_private_srvr_connect: On exit: connect_rc: 2
INFO: daq_send: entry
INFO: daq_send: exit
INFO: nds_authenticate: mechanism: GSSAPI
INFO: daq_send: entry
ERROR: daq_send: Server response error: Access error (no privilege), command: server-protocol-version;
INFO: daq_send: exit
INFO: daq_private_srvr_connect: On exit: connect_rc: 2
INFO: daq_send: entry
ERRNO: read_server_response_wait: Timed out: errno: 62 - Timer expiredERROR: daq_send: Server error: Unspecified error
INFO: daq_send: exit
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/python3/dist-packages/nds2.py", line 1140, in __init__
_nds2.connection_swiginit(self, _nds2.new_connection(*args))
RuntimeError: Failed to establish a connection[INFO: Unspecified error]
It is possible to propagate the Access error (no privilege)
message to the user instead?