mtconnect / cppagent_dev

Private C++ Agent for Pending Release Development
Apache License 2.0
1 stars 1 forks source link

Agent stops when agent.cfg and devices.xml are changed from MTConnect spec 1.2 to 1.3 in RC22 release x86 #227

Closed hulinning2 closed 1 year ago

hulinning2 commented 2 years ago

Test:

Stop agent Run Adapter and configures to run MTConnect spec 1.2 Start Agent Check browser for correct MTConnect output using current command ==> All OK While adapter is running, adpater is configured to use MTConnect 1.3 ==> the content of agent.cfg and devices.xml are changed to MTConnect spec 1.3 Agent stops Note: It seems that agent can handle the changes without error if there is no browser (clients) connecting to MTConnect agent

Thanks

Microsoft Windows [Version 10.0.19044.2006] (c) Microsoft Corporation. All rights reserved.

C:\Users\lhuynh>d:

D:>cd D:\

D:>cd D:\

D:>cd D:\Program Files\Okuma\Okuma MT Connect Adapter

D:\Program Files\Okuma\Okuma MT Connect Adapter>agent debug Configuration search path: "D:\Program Files\Okuma\Okuma MT Connect Adapter" and "D:\Program Files\Okuma\Okuma MT Connect Adapter" MTConnect Agent Version 2.0.0.12 (_RC22) - built on Wed Jul 13 09:12:45 2022 [2022-10-26 13:40:31.738790] [0x000009ec] [info] Loading configuration from: "D:\Program Files\Okuma\Okuma MT Connect Adapter\agent.cfg" Loading configuration from:"D:\Program Files\Okuma\Okuma MT Connect Adapter\agent.cfg"2022-10-26T17:40:31.742789Z (0x000009ec) [info] MAIN->AgentConfiguration::initialize->AgentConfiguration::loadConfig: Starting agent on port 5000 2022-10-26T17:40:31.760788Z (0x000009ec) [warning] MAIN->AgentConfiguration::initialize->AgentConfiguration::loadConfig->AgentConfiguration::loadAdapters: Cannot locate device name 'OKUMA.Machine.Adapter', trying default 2022-10-26T17:40:31.761792Z (0x000009ec) [info] MAIN->AgentConfiguration::initialize->AgentConfiguration::loadConfig->AgentConfiguration::loadAdapters: Assigning default device OKUMA.Lathe to adapter 2022-10-26T17:40:31.761792Z (0x000009ec) [info] MAIN->AgentConfiguration::initialize->AgentConfiguration::loadConfig->AgentConfiguration::loadAdapters: shdr: Adding adapter for OKUMA.Lathe: OKUMA.Machine.Adapter 2022-10-26T17:40:31.762791Z (0x000009ec) [debug] MAIN: Waiting for monitor thread to exit to restart agent 2022-10-26T17:40:31.762791Z (0x000009ec) [debug] MAIN->AgentConfiguration::monitorThread: Monitoring files: "D:\Program Files\Okuma\Okuma MT Connect Adapter\agent.cfg" and D:\Program Files\Okuma\Okuma MT Connect Adapter\Devices.xml, will warm start if they change. 2022-10-26T17:40:31.764790Z (0x000009ec) [debug] MAIN->AgentConfiguration::monitorThread: Setting device and config times 2022-10-26T17:40:31.768791Z (0x000009ec) [warning] MAIN->Agent::start->pipeline.deliver: Could not find data item: _7714929c63_asset_update_rate, exiting metrics 2022-10-26T17:40:31.769789Z (0x000009ec) [warning] MAIN->Agent::start->pipeline.deliver: Could not find data item: _7714929c63_observation_update_rate, exiting metrics 2022-10-26T17:40:31.775789Z (0x000051c4) [debug] Connector::resolved->Connector::connect: Connecting to data source: localhost on port: 7878 2022-10-26T17:40:33.803824Z (0x000051c4) [info] Connector::connected: Connected with: 127.0.0.1:7878 2022-10-26T17:40:33.804791Z (0x000051c4) [debug] Connector::connected->Connector::sendCommand: (Port:19619) Sending PING 2022-10-26T17:40:33.810789Z (0x000051c4) [debug] Connector::reader->Connector::parseSocketBuffer->Connector::processLine->ShdrAdapter::protocolCommand: Processing command: adapterversion: adapterVersion:5.0.0.1 2022-10-26T17:40:33.812790Z (0x000051c4) [warning] Connector::reader->Connector::parseSocketBuffer->Connector::processLine->ShdrAdapter::protocolCommand: Cannot find data item for the Agent device when processing command adapterversion with value 5.0.0.1 for adapter _7714929c63 2022-10-26T17:40:33.814789Z (0x000051c4) [debug] Connector::reader->Connector::parseSocketBuffer->Connector::processLine->ShdrAdapter::protocolCommand: Processing command: adapterversion: adapterVersion:5.0.0.1 2022-10-26T17:40:33.815791Z (0x000051c4) [warning] Connector::reader->Connector::parseSocketBuffer->Connector::processLine->ShdrAdapter::protocolCommand: Cannot find data item for the Agent device when processing command adapterversion with value 5.0.0.1 for adapter _7714929c63 2022-10-26T17:40:33.817790Z (0x000051c4) [debug] Connector::reader->Connector::parseSocketBuffer->Connector::processLine->ShdrAdapter::protocolCommand: Processing command: mtconnectversion: *mtconnectVersion:1.2 2022-10-26T17:40:33.819790Z (0x000051c4) [warning] Connector::reader->Connector::parseSocketBuffer->Connector::processLine->ShdrAdapter::protocolCommand: Cannot find data item for the Agent device when processing command mtconnectversion with value 1.2 for adapter _7714929c63 2022-10-26T17:40:33.824790Z (0x000051c4) [debug] Connector::reader->Connector::parseSocketBuffer->Connector::processLine: (Port:19619) Received a PONG for localhost on port 7878 2022-10-26T17:40:33.827791Z (0x000051c4) [debug] Connector::reader->Connector::parseSocketBuffer->Connector::processLine->Connector::startHeartbeats: (Port:19619)Received PONG, starting heartbeats every 10000ms 2022-10-26T17:40:36.382791Z (0x000051c4) [info] SessionImpl::requested: ReST Request: From [127.0.0.1:19621]: GET /current 2022-10-26T17:40:41.767793Z (0x000051c4) [debug] AgentConfiguration::monitorThread: Monitoring files: "D:\Program Files\Okuma\Okuma MT Connect Adapter\agent.cfg" and D:\Program Files\Okuma\Okuma MT Connect Adapter\Devices.xml, will warm start if they change. 2022-10-26T17:40:43.844789Z (0x000051c4) [debug] Connector::heartbeat: Sending heartbeat 2022-10-26T17:40:43.844789Z (0x000051c4) [debug] Connector::heartbeat->Connector::sendCommand: (Port:19619) Sending PING 2022-10-26T17:40:43.846791Z (0x000051c4) [debug] Connector::reader->Connector::parseSocketBuffer->Connector::processLine: (Port:19619) Received a PONG for localhost on port 7878 2022-10-26T17:40:46.401788Z (0x000051c4) [info] SessionImpl::requested: ReST Request: From [127.0.0.1:19621]: GET /probe 2022-10-26T17:40:46.621822Z (0x000051c4) [info] SessionImpl::requested: ReST Request: From [127.0.0.1:19621]: GET /current 2022-10-26T17:40:46.627787Z (0x000051c4) [info] SessionImpl::requested: ReST Request: From [127.0.0.1:19621]: GET /sample?from=1&count=200&interval=500 2022-10-26T17:40:48.650823Z (0x000051c4) [info] SessionImpl::requested: ReST Request: From [127.0.0.1:19632]: GET /assets/123456.98 2022-10-26T17:40:51.775552Z (0x000051c4) [debug] AgentConfiguration::monitorThread: Monitoring files: "D:\Program Files\Okuma\Okuma MT Connect Adapter\agent.cfg" and D:\Program Files\Okuma\Okuma MT Connect Adapter\Devices.xml, will warm start if they change. 2022-10-26T17:40:53.862863Z (0x000051c4) [debug] Connector::heartbeat: Sending heartbeat 2022-10-26T17:40:53.863829Z (0x000051c4) [debug] Connector::heartbeat->Connector::sendCommand: (Port:19619) Sending PING 2022-10-26T17:40:53.865831Z (0x000051c4) [debug] Connector::reader->Connector::parseSocketBuffer->Connector::processLine: (Port:19619) Received a PONG for localhost on port 7878 2022-10-26T17:41:01.794343Z (0x000051c4) [debug] AgentConfiguration::monitorThread: Monitoring files: "D:\Program Files\Okuma\Okuma MT Connect Adapter\agent.cfg" and D:\Program Files\Okuma\Okuma MT Connect Adapter\Devices.xml, will warm start if they change. 2022-10-26T17:41:03.874341Z (0x000051c4) [debug] Connector::heartbeat: Sending heartbeat 2022-10-26T17:41:03.875344Z (0x000051c4) [debug] Connector::heartbeat->Connector::sendCommand: (Port:19619) Sending PING 2022-10-26T17:41:03.878342Z (0x000051c4) [debug] Connector::reader->Connector::parseSocketBuffer->Connector::processLine: (Port:19619) Received a PONG for localhost on port 7878 2022-10-26T17:41:07.997367Z (0x000051c4) [info] SessionImpl::requested: ReST Request: From [127.0.0.1:19649]: GET /current 2022-10-26T17:41:08.281349Z (0x000051c4) [info] SessionImpl::requested: ReST Request: From [127.0.0.1:19649]: GET /styles/Spec1_2/Streams.xsl 2022-10-26T17:41:08.338342Z (0x000051c4) [info] SessionImpl::requested: ReST Request: From [127.0.0.1:19649]: GET /styles/Streams.css 2022-10-26T17:41:08.339340Z (0x000051c4) [warning] SessionImpl::requested: Cannot find file: /styles/Streams.css 2022-10-26T17:41:08.341339Z (0x000051c4) [warning] SessionImpl::requested: Cannot find file: /styles/Streams.css 2022-10-26T17:41:08.342342Z (0x000051c4) [warning] SessionImpl::requested->Session::fail: Operation failed: 127.0.0.1: Cannot find handler for: GET /styles/Streams.css 2022-10-26T17:41:08.345343Z (0x000051c4) [debug] SessionImpl::requested->Session::fail: Returning error INVALID_REQUEST: 127.0.0.1: Cannot find handler for: GET /styles/Streams.css 2022-10-26T17:41:11.806341Z (0x000051c4) [debug] AgentConfiguration::monitorThread: Monitoring files: "D:\Program Files\Okuma\Okuma MT Connect Adapter\agent.cfg" and D:\Program Files\Okuma\Okuma MT Connect Adapter\Devices.xml, will warm start if they change. 2022-10-26T17:41:13.879339Z (0x000051c4) [debug] Connector::heartbeat: Sending heartbeat 2022-10-26T17:41:13.879339Z (0x000051c4) [debug] Connector::heartbeat->Connector::sendCommand: (Port:19619) Sending PING 2022-10-26T17:41:13.884345Z (0x000051c4) [debug] Connector::reader->Connector::parseSocketBuffer->Connector::processLine: (Port:19619) Received a PONG for localhost on port 7878 2022-10-26T17:41:14.362482Z (0x000051c4) [info] SessionImpl::requested: ReST Request: From [127.0.0.1:19649]: GET /current 2022-10-26T17:41:18.656346Z (0x000051c4) [warning] SessionImpl::requested->Session::fail: Operation failed: Could not read request 2022-10-26T17:41:18.659346Z (0x000051c4) [warning] SessionImpl::requested->Session::fail: Closing: The socket was closed due to a timeout - The socket was closed due to a timeout 2022-10-26T17:41:21.812345Z (0x000051c4) [debug] AgentConfiguration::monitorThread: Monitoring files: "D:\Program Files\Okuma\Okuma MT Connect Adapter\agent.cfg" and D:\Program Files\Okuma\Okuma MT Connect Adapter\Devices.xml, will warm start if they change. 2022-10-26T17:41:23.890348Z (0x000051c4) [debug] Connector::heartbeat: Sending heartbeat 2022-10-26T17:41:23.891345Z (0x000051c4) [debug] Connector::heartbeat->Connector::sendCommand: (Port:19619) Sending PING 2022-10-26T17:41:23.893344Z (0x000051c4) [debug] Connector::reader->Connector::parseSocketBuffer->Connector::processLine: (Port:19619) Received a PONG for localhost on port 7878 2022-10-26T17:41:31.828346Z (0x000051c4) [debug] AgentConfiguration::monitorThread: Monitoring files: "D:\Program Files\Okuma\Okuma MT Connect Adapter\agent.cfg" and D:\Program Files\Okuma\Okuma MT Connect Adapter\Devices.xml, will warm start if they change. 2022-10-26T17:41:33.900378Z (0x000051c4) [debug] Connector::heartbeat: Sending heartbeat 2022-10-26T17:41:33.900378Z (0x000051c4) [debug] Connector::heartbeat->Connector::sendCommand: (Port:19619) Sending PING 2022-10-26T17:41:33.903370Z (0x000051c4) [debug] Connector::reader->Connector::parseSocketBuffer->Connector::processLine: (Port:19619) Received a PONG for localhost on port 7878 2022-10-26T17:41:33.906345Z (0x000051c4) [error] Connector::reader: End of file: End of file 2022-10-26T17:41:33.907344Z (0x000051c4) [error] Connector::reader->Connector::reconnect->Connector::close: Closing localhost:7878 (Local Port:19619) 2022-10-26T17:41:33.908344Z (0x000051c4) [debug] Connector::reader->Connector::reconnect->Connector::close: Disconnected from adapter, setting all values to UNAVAILABLE 2022-10-26T17:41:33.910344Z (0x000051c4) [info] Connector::reader->Connector::reconnect: reconnect: retry connection in 10000ms 2022-10-26T17:41:38.028346Z (0x000051c4) [warning] SessionImpl::requested->Session::fail: Operation failed: Could not read request 2022-10-26T17:41:38.032346Z (0x000051c4) [warning] SessionImpl::requested->Session::fail: Closing: The socket was closed due to a timeout - The socket was closed due to a timeout 2022-10-26T17:41:38.263343Z (0x000051c4) [warning] SessionImpl::requested->Session::fail: Operation failed: Could not read request 2022-10-26T17:41:38.266346Z (0x000051c4) [warning] SessionImpl::requested->Session::fail: Closing: The socket was closed due to a timeout - The socket was closed due to a timeout 2022-10-26T17:41:41.838378Z (0x000051c4) [debug] AgentConfiguration::monitorThread: Monitoring files: "D:\Program Files\Okuma\Okuma MT Connect Adapter\agent.cfg" and D:\Program Files\Okuma\Okuma MT Connect Adapter\Devices.xml, will warm start if they change. 2022-10-26T17:41:41.838378Z (0x000051c4) [warning] AgentConfiguration::monitorThread: Detected change in configuration files. Will reload when youngest file is at least 1 seconds old 2022-10-26T17:41:41.842348Z (0x000009ec) [info] MAIN->Agent::receiveDevice: Updating device OKUMA.Lathe.123456 to new device model 2022-10-26T17:41:41.843348Z (0x000009ec) [info] MAIN->Agent::receiveDevice: Device OKUMA.Lathe.123456 changed, updating mappings 2022-10-26T17:41:43.913345Z (0x00000da4) [info] : reconnect: retrying connection 2022-10-26T17:41:43.914345Z (0x00000da4) [debug] Connector::connect: Connecting to data source: localhost on port: 7878 2022-10-26T17:41:44.370377Z (0x00000da4) [warning] SessionImpl::requested->Session::fail: Operation failed: Could not read request 2022-10-26T17:41:44.373346Z (0x00000da4) [warning] SessionImpl::requested->Session::fail: Closing: The socket was closed due to a timeout - The socket was closed due to a timeout 2022-10-26T17:41:45.926344Z (0x00000da4) [info] Connector::connected: Connected with: 127.0.0.1:7878 2022-10-26T17:41:45.927346Z (0x00000da4) [debug] Connector::connected->Connector::sendCommand: (Port:19673) Sending PING 2022-10-26T17:41:45.930347Z (0x00000da4) [debug] Connector::reader->Connector::parseSocketBuffer->Connector::processLine->ShdrAdapter::protocolCommand: Processing command: adapterversion: adapterVersion:5.0.0.1 2022-10-26T17:41:45.932345Z (0x00000da4) [warning] Connector::reader->Connector::parseSocketBuffer->Connector::processLine->ShdrAdapter::protocolCommand: Cannot find data item for the Agent device when processing command adapterversion with value 5.0.0.1 for adapter _7714929c63 2022-10-26T17:41:45.934347Z (0x00000da4) [debug] Connector::reader->Connector::parseSocketBuffer->Connector::processLine->ShdrAdapter::protocolCommand: Processing command: adapterversion: adapterVersion:5.0.0.1 2022-10-26T17:41:45.936346Z (0x00000da4) [warning] Connector::reader->Connector::parseSocketBuffer->Connector::processLine->ShdrAdapter::protocolCommand: Cannot find data item for the Agent device when processing command adapterversion with value 5.0.0.1 for adapter _7714929c63 2022-10-26T17:41:45.939343Z (0x00000da4) [debug] Connector::reader->Connector::parseSocketBuffer->Connector::processLine->ShdrAdapter::protocolCommand: Processing command: mtconnectversion: *mtconnectVersion:1.3 2022-10-26T17:41:45.941347Z (0x00000da4) [warning] Connector::reader->Connector::parseSocketBuffer->Connector::processLine->ShdrAdapter::protocolCommand: Cannot find data item for the Agent device when processing command mtconnectversion with value 1.3 for adapter _7714929c63 2022-10-26T17:41:45.945350Z (0x00000da4) [debug] Connector::reader->Connector::parseSocketBuffer->Connector::processLine: (Port:19673) Received a PONG for localhost on port 7878 2022-10-26T17:41:45.948349Z (0x00000da4) [debug] Connector::reader->Connector::parseSocketBuffer->Connector::processLine->Connector::startHeartbeats: (Port:19673)Received PONG, starting heartbeats every 10000ms 2022-10-26T17:41:46.462347Z (0x00000da4) [info] SessionImpl::requested: ReST Request: From [127.0.0.1:19674]: GET /assets/123456.98 2022-10-26T17:41:51.851344Z (0x00000da4) [debug] AgentConfiguration::monitorThread: Monitoring files: "D:\Program Files\Okuma\Okuma MT Connect Adapter\agent.cfg" and D:\Program Files\Okuma\Okuma MT Connect Adapter\Devices.xml, will warm start if they change. 2022-10-26T17:41:51.853369Z (0x00000da4) [debug] AgentConfiguration::monitorThread: Setting device and config times 2022-10-26T17:41:55.957378Z (0x00000da4) [debug] Connector::heartbeat: Sending heartbeat 2022-10-26T17:41:55.957378Z (0x00000da4) [debug] Connector::heartbeat->Connector::sendCommand: (Port:19673) Sending PING 2022-10-26T17:41:55.960348Z (0x00000da4) [debug] Connector::reader->Connector::parseSocketBuffer->Connector::processLine: (Port:19673) Received a PONG for localhost on port 7878 2022-10-26T17:42:01.866343Z (0x00000da4) [debug] AgentConfiguration::monitorThread: Monitoring files: "D:\Program Files\Okuma\Okuma MT Connect Adapter\agent.cfg" and D:\Program Files\Okuma\Okuma MT Connect Adapter\Devices.xml, will warm start if they change. 2022-10-26T17:42:05.967343Z (0x00000da4) [debug] Connector::heartbeat: Sending heartbeat 2022-10-26T17:42:05.967343Z (0x00000da4) [debug] Connector::heartbeat->Connector::sendCommand: (Port:19673) Sending PING 2022-10-26T17:42:05.969345Z (0x00000da4) [debug] Connector::reader->Connector::parseSocketBuffer->Connector::processLine: (Port:19673) Received a PONG for localhost on port 7878 2022-10-26T17:42:11.876345Z (0x00000da4) [debug] AgentConfiguration::monitorThread: Monitoring files: "D:\Program Files\Okuma\Okuma MT Connect Adapter\agent.cfg" and D:\Program Files\Okuma\Okuma MT Connect Adapter\Devices.xml, will warm start if they change. 2022-10-26T17:42:15.980405Z (0x00000da4) [debug] Connector::heartbeat: Sending heartbeat 2022-10-26T17:42:15.980405Z (0x00000da4) [debug] Connector::heartbeat->Connector::sendCommand: (Port:19673) Sending PING 2022-10-26T17:42:15.982409Z (0x00000da4) [debug] Connector::reader->Connector::parseSocketBuffer->Connector::processLine: (Port:19673) Received a PONG for localhost on port 7878 2022-10-26T17:42:16.479406Z (0x00000da4) [warning] SessionImpl::requested->Session::fail: Operation failed: Could not read request 2022-10-26T17:42:16.481410Z (0x00000da4) [warning] SessionImpl::requested->Session::fail: Closing: The socket was closed due to a timeout - The socket was closed due to a timeout 2022-10-26T17:42:17.993408Z (0x00000da4) [info] SessionImpl::requested: ReST Request: From [127.0.0.1:19691]: GET /current

D:\Program Files\Okuma\Okuma MT Connect Adapter>

wsobel commented 2 years ago

I just put together a fix for this. I found some issues with orphaned observations where the data item was removed or the component was changed and the observation could no longer get the data item information. I added a check and had to change the reference model for the data items to weak references. I should have a build out by the end of the day.

Best, W

On Oct 26, 2022, at 10:45, Linh Huynh @.***> wrote:

Test:

Stop agent Run Adapter and configures to run MTConnect spec 1.2 Start Agent Check browser for correct MTConnect output using current command ==> All OK While adapter is running, adpater is configured to use MTConnect 1.3 ==> the content of agent.cfg and devices.xml are changed to MTConnect spec 1.3 Agent stops Note: It seems that agent can handle the changes without error if there is no browser (clients) connecting to MTConnect agent

Thanks

Microsoft Windows [Version 10.0.19044.2006] (c) Microsoft Corporation. All rights reserved.

C:\Users\lhuynh>d:

D:>cd D:\

D:>cd D:\

D:>cd D:\Program Files\Okuma\Okuma MT Connect Adapter

D:\Program Files\Okuma\Okuma MT Connect Adapter>agent debug Configuration search path: "D:\Program Files\Okuma\Okuma MT Connect Adapter" and "D:\Program Files\Okuma\Okuma MT Connect Adapter" MTConnect Agent Version 2.0.0.12 (_RC22) - built on Wed Jul 13 09:12:45 2022 [2022-10-26 13:40:31.738790] [0x000009ec] [info] Loading configuration from: "D:\Program Files\Okuma\Okuma MT Connect Adapter\agent.cfg" Loading configuration from:"D:\Program Files\Okuma\Okuma MT Connect Adapter\agent.cfg"2022-10-26T17:40:31.742789Z (0x000009ec) [info] MAIN->AgentConfiguration::initialize->AgentConfiguration::loadConfig: Starting agent on port 5000 2022-10-26T17:40:31.760788Z (0x000009ec) [warning] MAIN->AgentConfiguration::initialize->AgentConfiguration::loadConfig->AgentConfiguration::loadAdapters: Cannot locate device name 'OKUMA.Machine.Adapter', trying default 2022-10-26T17:40:31.761792Z (0x000009ec) [info] MAIN->AgentConfiguration::initialize->AgentConfiguration::loadConfig->AgentConfiguration::loadAdapters: Assigning default device OKUMA.Lathe to adapter 2022-10-26T17:40:31.761792Z (0x000009ec) [info] MAIN->AgentConfiguration::initialize->AgentConfiguration::loadConfig->AgentConfiguration::loadAdapters: shdr: Adding adapter for OKUMA.Lathe: OKUMA.Machine.Adapter 2022-10-26T17:40:31.762791Z (0x000009ec) [debug] MAIN: Waiting for monitor thread to exit to restart agent 2022-10-26T17:40:31.762791Z (0x000009ec) [debug] MAIN->AgentConfiguration::monitorThread: Monitoring files: "D:\Program Files\Okuma\Okuma MT Connect Adapter\agent.cfg" and D:\Program Files\Okuma\Okuma MT Connect Adapter\Devices.xml, will warm start if they change. 2022-10-26T17:40:31.764790Z (0x000009ec) [debug] MAIN->AgentConfiguration::monitorThread: Setting device and config times 2022-10-26T17:40:31.768791Z (0x000009ec) [warning] MAIN->Agent::start->pipeline.deliver: Could not find data item: _7714929c63_asset_update_rate, exiting metrics 2022-10-26T17:40:31.769789Z (0x000009ec) [warning] MAIN->Agent::start->pipeline.deliver: Could not find data item: _7714929c63_observation_update_rate, exiting metrics 2022-10-26T17:40:31.775789Z (0x000051c4) [debug] Connector::resolved->Connector::connect: Connecting to data source: localhost on port: 7878 2022-10-26T17:40:33.803824Z (0x000051c4) [info] Connector::connected: Connected with: 127.0.0.1:7878 2022-10-26T17:40:33.804791Z (0x000051c4) [debug] Connector::connected->Connector::sendCommand: (Port:19619) Sending PING 2022-10-26T17:40:33.810789Z (0x000051c4) [debug] Connector::reader->Connector::parseSocketBuffer->Connector::processLine->ShdrAdapter::protocolCommand: Processing command: adapterversion: adapterVersion:5.0.0.1 2022-10-26T17:40:33.812790Z (0x000051c4) [warning] Connector::reader->Connector::parseSocketBuffer->Connector::processLine->ShdrAdapter::protocolCommand: Cannot find data item for the Agent device when processing command adapterversion with value 5.0.0.1 for adapter _7714929c63 2022-10-26T17:40:33.814789Z (0x000051c4) [debug] Connector::reader->Connector::parseSocketBuffer->Connector::processLine->ShdrAdapter::protocolCommand: Processing command: adapterversion: adapterVersion:5.0.0.1 2022-10-26T17:40:33.815791Z (0x000051c4) [warning] Connector::reader->Connector::parseSocketBuffer->Connector::processLine->ShdrAdapter::protocolCommand: Cannot find data item for the Agent device when processing command adapterversion with value 5.0.0.1 for adapter _7714929c63 2022-10-26T17:40:33.817790Z (0x000051c4) [debug] Connector::reader->Connector::parseSocketBuffer->Connector::processLine->ShdrAdapter::protocolCommand: Processing command: mtconnectversion: *mtconnectVersion:1.2 2022-10-26T17:40:33.819790Z (0x000051c4) [warning] Connector::reader->Connector::parseSocketBuffer->Connector::processLine->ShdrAdapter::protocolCommand: Cannot find data item for the Agent device when processing command mtconnectversion with value 1.2 for adapter _7714929c63 2022-10-26T17:40:33.824790Z (0x000051c4) [debug] Connector::reader->Connector::parseSocketBuffer->Connector::processLine: (Port:19619) Received a PONG for localhost on port 7878 2022-10-26T17:40:33.827791Z (0x000051c4) [debug] Connector::reader->Connector::parseSocketBuffer->Connector::processLine->Connector::startHeartbeats: (Port:19619)Received PONG, starting heartbeats every 10000ms 2022-10-26T17:40:36.382791Z (0x000051c4) [info] SessionImpl::requested: ReST Request: From [127.0.0.1:19621]: GET /current 2022-10-26T17:40:41.767793Z (0x000051c4) [debug] AgentConfiguration::monitorThread: Monitoring files: "D:\Program Files\Okuma\Okuma MT Connect Adapter\agent.cfg" and D:\Program Files\Okuma\Okuma MT Connect Adapter\Devices.xml, will warm start if they change. 2022-10-26T17:40:43.844789Z (0x000051c4) [debug] Connector:πŸ’“ Sending heartbeat 2022-10-26T17:40:43.844789Z (0x000051c4) [debug] Connector::heartbeat->Connector::sendCommand: (Port:19619) Sending PING 2022-10-26T17:40:43.846791Z (0x000051c4) [debug] Connector::reader->Connector::parseSocketBuffer->Connector::processLine: (Port:19619) Received a PONG for localhost on port 7878 2022-10-26T17:40:46.401788Z (0x000051c4) [info] SessionImpl::requested: ReST Request: From [127.0.0.1:19621]: GET /probe 2022-10-26T17:40:46.621822Z (0x000051c4) [info] SessionImpl::requested: ReST Request: From [127.0.0.1:19621]: GET /current 2022-10-26T17:40:46.627787Z (0x000051c4) [info] SessionImpl::requested: ReST Request: From [127.0.0.1:19621]: GET /sample?from=1&count=200&interval=500 2022-10-26T17:40:48.650823Z (0x000051c4) [info] SessionImpl::requested: ReST Request: From [127.0.0.1:19632]: GET /assets/123456.98 2022-10-26T17:40:51.775552Z (0x000051c4) [debug] AgentConfiguration::monitorThread: Monitoring files: "D:\Program Files\Okuma\Okuma MT Connect Adapter\agent.cfg" and D:\Program Files\Okuma\Okuma MT Connect Adapter\Devices.xml, will warm start if they change. 2022-10-26T17:40:53.862863Z (0x000051c4) [debug] Connector:πŸ’“ Sending heartbeat 2022-10-26T17:40:53.863829Z (0x000051c4) [debug] Connector::heartbeat->Connector::sendCommand: (Port:19619) Sending PING 2022-10-26T17:40:53.865831Z (0x000051c4) [debug] Connector::reader->Connector::parseSocketBuffer->Connector::processLine: (Port:19619) Received a PONG for localhost on port 7878 2022-10-26T17:41:01.794343Z (0x000051c4) [debug] AgentConfiguration::monitorThread: Monitoring files: "D:\Program Files\Okuma\Okuma MT Connect Adapter\agent.cfg" and D:\Program Files\Okuma\Okuma MT Connect Adapter\Devices.xml, will warm start if they change. 2022-10-26T17:41:03.874341Z (0x000051c4) [debug] Connector:πŸ’“ Sending heartbeat 2022-10-26T17:41:03.875344Z (0x000051c4) [debug] Connector::heartbeat->Connector::sendCommand: (Port:19619) Sending PING 2022-10-26T17:41:03.878342Z (0x000051c4) [debug] Connector::reader->Connector::parseSocketBuffer->Connector::processLine: (Port:19619) Received a PONG for localhost on port 7878 2022-10-26T17:41:07.997367Z (0x000051c4) [info] SessionImpl::requested: ReST Request: From [127.0.0.1:19649]: GET /current 2022-10-26T17:41:08.281349Z (0x000051c4) [info] SessionImpl::requested: ReST Request: From [127.0.0.1:19649]: GET /styles/Spec1_2/Streams.xsl 2022-10-26T17:41:08.338342Z (0x000051c4) [info] SessionImpl::requested: ReST Request: From [127.0.0.1:19649]: GET /styles/Streams.css 2022-10-26T17:41:08.339340Z (0x000051c4) [warning] SessionImpl::requested: Cannot find file: /styles/Streams.css 2022-10-26T17:41:08.341339Z (0x000051c4) [warning] SessionImpl::requested: Cannot find file: /styles/Streams.css 2022-10-26T17:41:08.342342Z (0x000051c4) [warning] SessionImpl::requested->Session::fail: Operation failed: 127.0.0.1: Cannot find handler for: GET /styles/Streams.css 2022-10-26T17:41:08.345343Z (0x000051c4) [debug] SessionImpl::requested->Session::fail: Returning error INVALID_REQUEST: 127.0.0.1: Cannot find handler for: GET /styles/Streams.css 2022-10-26T17:41:11.806341Z (0x000051c4) [debug] AgentConfiguration::monitorThread: Monitoring files: "D:\Program Files\Okuma\Okuma MT Connect Adapter\agent.cfg" and D:\Program Files\Okuma\Okuma MT Connect Adapter\Devices.xml, will warm start if they change. 2022-10-26T17:41:13.879339Z (0x000051c4) [debug] Connector:πŸ’“ Sending heartbeat 2022-10-26T17:41:13.879339Z (0x000051c4) [debug] Connector::heartbeat->Connector::sendCommand: (Port:19619) Sending PING 2022-10-26T17:41:13.884345Z (0x000051c4) [debug] Connector::reader->Connector::parseSocketBuffer->Connector::processLine: (Port:19619) Received a PONG for localhost on port 7878 2022-10-26T17:41:14.362482Z (0x000051c4) [info] SessionImpl::requested: ReST Request: From [127.0.0.1:19649]: GET /current 2022-10-26T17:41:18.656346Z (0x000051c4) [warning] SessionImpl::requested->Session::fail: Operation failed: Could not read request 2022-10-26T17:41:18.659346Z (0x000051c4) [warning] SessionImpl::requested->Session::fail: Closing: The socket was closed due to a timeout - The socket was closed due to a timeout 2022-10-26T17:41:21.812345Z (0x000051c4) [debug] AgentConfiguration::monitorThread: Monitoring files: "D:\Program Files\Okuma\Okuma MT Connect Adapter\agent.cfg" and D:\Program Files\Okuma\Okuma MT Connect Adapter\Devices.xml, will warm start if they change. 2022-10-26T17:41:23.890348Z (0x000051c4) [debug] Connector:πŸ’“ Sending heartbeat 2022-10-26T17:41:23.891345Z (0x000051c4) [debug] Connector::heartbeat->Connector::sendCommand: (Port:19619) Sending PING 2022-10-26T17:41:23.893344Z (0x000051c4) [debug] Connector::reader->Connector::parseSocketBuffer->Connector::processLine: (Port:19619) Received a PONG for localhost on port 7878 2022-10-26T17:41:31.828346Z (0x000051c4) [debug] AgentConfiguration::monitorThread: Monitoring files: "D:\Program Files\Okuma\Okuma MT Connect Adapter\agent.cfg" and D:\Program Files\Okuma\Okuma MT Connect Adapter\Devices.xml, will warm start if they change. 2022-10-26T17:41:33.900378Z (0x000051c4) [debug] Connector:πŸ’“ Sending heartbeat 2022-10-26T17:41:33.900378Z (0x000051c4) [debug] Connector::heartbeat->Connector::sendCommand: (Port:19619) Sending PING 2022-10-26T17:41:33.903370Z (0x000051c4) [debug] Connector::reader->Connector::parseSocketBuffer->Connector::processLine: (Port:19619) Received a PONG for localhost on port 7878 2022-10-26T17:41:33.906345Z (0x000051c4) [error] Connector::reader: End of file: End of file 2022-10-26T17:41:33.907344Z (0x000051c4) [error] Connector::reader->Connector::reconnect->Connector::close: Closing localhost:7878 (Local Port:19619) 2022-10-26T17:41:33.908344Z (0x000051c4) [debug] Connector::reader->Connector::reconnect->Connector::close: Disconnected from adapter, setting all values to UNAVAILABLE 2022-10-26T17:41:33.910344Z (0x000051c4) [info] Connector::reader->Connector::reconnect: reconnect: retry connection in 10000ms 2022-10-26T17:41:38.028346Z (0x000051c4) [warning] SessionImpl::requested->Session::fail: Operation failed: Could not read request 2022-10-26T17:41:38.032346Z (0x000051c4) [warning] SessionImpl::requested->Session::fail: Closing: The socket was closed due to a timeout - The socket was closed due to a timeout 2022-10-26T17:41:38.263343Z (0x000051c4) [warning] SessionImpl::requested->Session::fail: Operation failed: Could not read request 2022-10-26T17:41:38.266346Z (0x000051c4) [warning] SessionImpl::requested->Session::fail: Closing: The socket was closed due to a timeout - The socket was closed due to a timeout 2022-10-26T17:41:41.838378Z (0x000051c4) [debug] AgentConfiguration::monitorThread: Monitoring files: "D:\Program Files\Okuma\Okuma MT Connect Adapter\agent.cfg" and D:\Program Files\Okuma\Okuma MT Connect Adapter\Devices.xml, will warm start if they change. 2022-10-26T17:41:41.838378Z (0x000051c4) [warning] AgentConfiguration::monitorThread: Detected change in configuration files. Will reload when youngest file is at least 1 seconds old 2022-10-26T17:41:41.842348Z (0x000009ec) [info] MAIN->Agent::receiveDevice: Updating device OKUMA.Lathe.123456 to new device model 2022-10-26T17:41:41.843348Z (0x000009ec) [info] MAIN->Agent::receiveDevice: Device OKUMA.Lathe.123456 changed, updating mappings 2022-10-26T17:41:43.913345Z (0x00000da4) [info] : reconnect: retrying connection 2022-10-26T17:41:43.914345Z (0x00000da4) [debug] Connector::connect: Connecting to data source: localhost on port: 7878 2022-10-26T17:41:44.370377Z (0x00000da4) [warning] SessionImpl::requested->Session::fail: Operation failed: Could not read request 2022-10-26T17:41:44.373346Z (0x00000da4) [warning] SessionImpl::requested->Session::fail: Closing: The socket was closed due to a timeout - The socket was closed due to a timeout 2022-10-26T17:41:45.926344Z (0x00000da4) [info] Connector::connected: Connected with: 127.0.0.1:7878 2022-10-26T17:41:45.927346Z (0x00000da4) [debug] Connector::connected->Connector::sendCommand: (Port:19673) Sending PING 2022-10-26T17:41:45.930347Z (0x00000da4) [debug] Connector::reader->Connector::parseSocketBuffer->Connector::processLine->ShdrAdapter::protocolCommand: Processing command: adapterversion: adapterVersion:5.0.0.1 2022-10-26T17:41:45.932345Z (0x00000da4) [warning] Connector::reader->Connector::parseSocketBuffer->Connector::processLine->ShdrAdapter::protocolCommand: Cannot find data item for the Agent device when processing command adapterversion with value 5.0.0.1 for adapter _7714929c63 2022-10-26T17:41:45.934347Z (0x00000da4) [debug] Connector::reader->Connector::parseSocketBuffer->Connector::processLine->ShdrAdapter::protocolCommand: Processing command: adapterversion: adapterVersion:5.0.0.1 2022-10-26T17:41:45.936346Z (0x00000da4) [warning] Connector::reader->Connector::parseSocketBuffer->Connector::processLine->ShdrAdapter::protocolCommand: Cannot find data item for the Agent device when processing command adapterversion with value 5.0.0.1 for adapter _7714929c63 2022-10-26T17:41:45.939343Z (0x00000da4) [debug] Connector::reader->Connector::parseSocketBuffer->Connector::processLine->ShdrAdapter::protocolCommand: Processing command: mtconnectversion: *mtconnectVersion:1.3 2022-10-26T17:41:45.941347Z (0x00000da4) [warning] Connector::reader->Connector::parseSocketBuffer->Connector::processLine->ShdrAdapter::protocolCommand: Cannot find data item for the Agent device when processing command mtconnectversion with value 1.3 for adapter _7714929c63 2022-10-26T17:41:45.945350Z (0x00000da4) [debug] Connector::reader->Connector::parseSocketBuffer->Connector::processLine: (Port:19673) Received a PONG for localhost on port 7878 2022-10-26T17:41:45.948349Z (0x00000da4) [debug] Connector::reader->Connector::parseSocketBuffer->Connector::processLine->Connector::startHeartbeats: (Port:19673)Received PONG, starting heartbeats every 10000ms 2022-10-26T17:41:46.462347Z (0x00000da4) [info] SessionImpl::requested: ReST Request: From [127.0.0.1:19674]: GET /assets/123456.98 2022-10-26T17:41:51.851344Z (0x00000da4) [debug] AgentConfiguration::monitorThread: Monitoring files: "D:\Program Files\Okuma\Okuma MT Connect Adapter\agent.cfg" and D:\Program Files\Okuma\Okuma MT Connect Adapter\Devices.xml, will warm start if they change. 2022-10-26T17:41:51.853369Z (0x00000da4) [debug] AgentConfiguration::monitorThread: Setting device and config times 2022-10-26T17:41:55.957378Z (0x00000da4) [debug] Connector:πŸ’“ Sending heartbeat 2022-10-26T17:41:55.957378Z (0x00000da4) [debug] Connector::heartbeat->Connector::sendCommand: (Port:19673) Sending PING 2022-10-26T17:41:55.960348Z (0x00000da4) [debug] Connector::reader->Connector::parseSocketBuffer->Connector::processLine: (Port:19673) Received a PONG for localhost on port 7878 2022-10-26T17:42:01.866343Z (0x00000da4) [debug] AgentConfiguration::monitorThread: Monitoring files: "D:\Program Files\Okuma\Okuma MT Connect Adapter\agent.cfg" and D:\Program Files\Okuma\Okuma MT Connect Adapter\Devices.xml, will warm start if they change. 2022-10-26T17:42:05.967343Z (0x00000da4) [debug] Connector:πŸ’“ Sending heartbeat 2022-10-26T17:42:05.967343Z (0x00000da4) [debug] Connector::heartbeat->Connector::sendCommand: (Port:19673) Sending PING 2022-10-26T17:42:05.969345Z (0x00000da4) [debug] Connector::reader->Connector::parseSocketBuffer->Connector::processLine: (Port:19673) Received a PONG for localhost on port 7878 2022-10-26T17:42:11.876345Z (0x00000da4) [debug] AgentConfiguration::monitorThread: Monitoring files: "D:\Program Files\Okuma\Okuma MT Connect Adapter\agent.cfg" and D:\Program Files\Okuma\Okuma MT Connect Adapter\Devices.xml, will warm start if they change. 2022-10-26T17:42:15.980405Z (0x00000da4) [debug] Connector:πŸ’“ Sending heartbeat 2022-10-26T17:42:15.980405Z (0x00000da4) [debug] Connector::heartbeat->Connector::sendCommand: (Port:19673) Sending PING 2022-10-26T17:42:15.982409Z (0x00000da4) [debug] Connector::reader->Connector::parseSocketBuffer->Connector::processLine: (Port:19673) Received a PONG for localhost on port 7878 2022-10-26T17:42:16.479406Z (0x00000da4) [warning] SessionImpl::requested->Session::fail: Operation failed: Could not read request 2022-10-26T17:42:16.481410Z (0x00000da4) [warning] SessionImpl::requested->Session::fail: Closing: The socket was closed due to a timeout - The socket was closed due to a timeout 2022-10-26T17:42:17.993408Z (0x00000da4) [info] SessionImpl::requested: ReST Request: From [127.0.0.1:19691]: GET /current

D:\Program Files\Okuma\Okuma MT Connect Adapter>

β€” Reply to this email directly, view it on GitHub https://github.com/mtconnect/cppagent_dev/issues/227, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJ6BCKPP2EFGP7L77CJO4DWFFU2DANCNFSM6AAAAAARPHT2UY. You are receiving this because you are subscribed to this thread.

wsobel commented 2 years ago

Try RC23 just built. I made a change to skip the orphaned observations when the device file changes. The observations without a live data item were causing issues. Changed the referencing of data items from the observations across all modules so they should be cleaned up and we can detect orphaning.

hulinning2 commented 1 year ago

Fixed in RC25