Impossible to initiliaze a run with the monitoring enabled
Summary
As soon as the monitoring application is included into a xDAQ configuration tailored to take a run (i.e. including the GEMSupervisor
), initialization is impossible, the transition goes into a infinite loop with the error messages shown below.
Steps to reproduce
- Start xDAQ with a configuration including both the
GEMSupervisor
and monitoring application - Take all your time to make yourself a coffee...
☕
What is the expected correct behavior?
The initialize transition should succeed.
Relevant logs and/or screenshots
The error message outputs
01 May 2020 09:47:14.804 [140501399369472] ERROR ch.cern.gem904daq04.p:20502.gem::supervisor::GEMSupervisor.instance(0) <> - SOAP fault getting state:
SOAP request:
<env:Envelope env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<env:Header/>
<env:Body>
<xdaq:ParameterGet xmlns:xdaq="urn:xdaq-soap:3.0">
<app:properties xmlns:app="urn:xdaq-application:gem::monitor::ShelfMonitor" xsi:type="soapenc:Struct">
<app:StateMessage xsi:type="xsd:string"/>
<app:StateProgress xsi:type="xsd:double"/>
<app:StateName xsi:type="xsd:string"/></app:properties></xdaq:ParameterGet></env:Body></env:Envelope>
01 May 2020 09:47:14.804 [140501399369472] ERROR ch.cern.gem904daq04.p:20502.gem::supervisor::GEMSupervisor.instance(0) <> - SOAP fault getting state:
SOAP reply:
Failed to serialize application parameters
<env:Envelope env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Header/>
<env:Body>
<env:Fault>
<faultcode>Server</faultcode>
<faultstring>Failed to serialize application parameters</faultstring>
<detail>
<error qualifiedErrorSchemaURI="http://xdaq.web.cern.ch/xdaq/xsd/2005/QualifiedSoftwareErrorRecord-10.xsd" sessionID="" xmlns:qns="http://xdaq.web.cern.ch/xdaq/xsd/2005/QualifiedSoftwareErrorRecord-10.xsd" xmlns:un0="xdaq-application" xmlns:xen="http://xdaq.web.cern.ch/xdaq/xsd/2005/ErrorNotification-11.xsd">
<xen:dateTime>2020-05-01T09:47:14.803461Z</xen:dateTime>
<qns:function>ParameterGet</qns:function>
<xen:identifier>xoap::exception::Exception</xen:identifier>
<qns:line>334</qns:line>
<qns:message>Failed to serialize application parameters</qns:message>
<qns:module>/gitlab-ci_git_clone_and_software_build_directory/cmsos/core/xdaq/src/common/Application.cc</qns:module>
<xen:notifier>http://gem904daq04.cern.ch:20502/urn:xdaq-application:lid=18</xen:notifier>
<xen:severity>error</xen:severity>
<qns:tag></qns:tag>
<qns:uniqueid>af7c0e5d-b330-4d75-b1a0-44d5a07b5e01</qns:uniqueid>
<un0:class>gem::monitor::ShelfMonitor</un0:class>
<un0:context>http://gem904daq04.cern.ch:20502</un0:context>
<un0:group>default</un0:group>
<un0:id>18</un0:id>
<un0:instance>0</un0:instance>
<un0:service></un0:service>
<un0:uuid>cbe42fdf-8944-4138-938f-b0a2ed1a14ab</un0:uuid>
<un0:zone>default</un0:zone>
<error qualifiedErrorSchemaURI="http://xdaq.web.cern.ch/xdaq/xsd/2005/QualifiedSoftwareErrorRecord-10.xsd" sessionID="undefined" xmlns:qns="http://xdaq.web.cern.ch/xdaq/xsd/2005/QualifiedSoftwareErrorRecord-10.xsd" xmlns:xen="http://xdaq.web.cern.ch/xdaq/xsd/2005/ErrorNotification-11.xsd">
<xen:dateTime>2020-05-01T09:47:14.803392Z</xen:dateTime>
<qns:function>exportQualified</qns:function>
<xen:identifier>xdata::exception::Exception</xen:identifier>
<qns:line>108</qns:line>
<qns:message>Bag member StateMessage not exported in tag name app:properties</qns:message>
<qns:module>/gitlab-ci_git_clone_and_software_build_directory/cmsos/core/xdata/src/common/soap/InfoSpaceSerializer.cc</qns:module>
<xen:notifier>undefined</xen:notifier>
<xen:severity>undefined</xen:severity>
<qns:tag></qns:tag>
<qns:uniqueid>8427ef6f-1a55-499b-aa01-bcb2dc99a5f5</qns:uniqueid></error></error></detail></env:Fault></env:Body></env:Envelope>
Environment
- Version used: 81035f14 with !14 (merged) merged
- Operation System:
cc7
ongem904daq04
Possible fixes
- Fix the state retrieval in the monitoring applications (FSM is different than for data-taking applications)
- Exclude the monitoring application from the supervised applications