Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MTConnect Agent Win32, version 2.0.0.2, could not be running as service #214

Closed
hulinning2 opened this issue May 26, 2022 · 1 comment · Fixed by #219
Closed

MTConnect Agent Win32, version 2.0.0.2, could not be running as service #214

hulinning2 opened this issue May 26, 2022 · 1 comment · Fixed by #219

Comments

@hulinning2
Copy link
Collaborator

hulinning2 commented May 26, 2022

It seems it is running ok in debug with some issues but it cannot be started as service from Windows Services.
Windows 10 x64, and x32
Configured to use MTConnect spec 1.3
Thanks

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.2 - built on Wed May 25 16:42:41 2022
[2022-05-26 10:33:03.797083] [0x000057d0] [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-05-26T14:33:03.800080Z (0x000057d0) [info] MAIN->AgentConfiguration::initialize->AgentConfiguration::loadConfig: Starting agent on port 5000
2022-05-26T14:33:03.806081Z (0x000057d0) [warning] MAIN->AgentConfiguration::initialize->AgentConfiguration::loadConfig->Agent::initialize->Agent::loadXMLDeviceFile: Failed to create DataItem: DataItem(): nativeUnits given, but no units
2022-05-26T14:33:03.806081Z (0x000057d0) [warning] MAIN->AgentConfiguration::initialize->AgentConfiguration::loadConfig->Agent::initialize->Agent::loadXMLDeviceFile: Unexpected element: DataItem
2022-05-26T14:33:03.807082Z (0x000057d0) [warning] MAIN->AgentConfiguration::initialize->AgentConfiguration::loadConfig->Agent::initialize->Agent::loadXMLDeviceFile: Error parsing device: DataItem: nativeUnits given, but no units
2022-05-26T14:33:03.808081Z (0x000057d0) [warning] MAIN->AgentConfiguration::initialize->AgentConfiguration::loadConfig->Agent::initialize->Agent::loadXMLDeviceFile: Error parsing device: DataItems: Invalid element 'DataItem'
2022-05-26T14:33:03.817081Z (0x000057d0) [warning] MAIN->AgentConfiguration::initialize->AgentConfiguration::loadConfig->AgentConfiguration::loadAdapters: Cannot locate device name 'OKUMA.Machine.Adapter', trying default
2022-05-26T14:33:03.817081Z (0x000057d0) [info] MAIN->AgentConfiguration::initialize->AgentConfiguration::loadConfig->AgentConfiguration::loadAdapters: Assigning default device OKUMA to adapter
2022-05-26T14:33:03.818081Z (0x000057d0) [info] MAIN->AgentConfiguration::initialize->AgentConfiguration::loadConfig->AgentConfiguration::loadAdapters: shdr: Adding adapter for OKUMA: OKUMA.Machine.Adapter
2022-05-26T14:33:03.824082Z (0x000057d0) [debug] MAIN->Agent::start->Connector::connect: Connecting to data source: localhost on port: 7878
2022-05-26T14:33:03.825082Z (0x000057d0) [warning] MAIN->Agent::start->pipeline.deliver: Could not find data item: _7714929c63_asset_update_rate, exiting metrics
2022-05-26T14:33:03.826082Z (0x000057d0) [warning] MAIN->Agent::start->pipeline.deliver: Could not find data item: _7714929c63_observation_update_rate, exiting metrics
2022-05-26T14:33:05.855621Z (0x0000174c) [info] Connector::connected: Connected with: 127.0.0.1:7878
2022-05-26T14:33:05.856622Z (0x0000174c) [debug] Connector::connected->Connector::sendCommand: (Port:2524) Sending PING
2022-05-26T14:33:05.861620Z (0x0000174c) [debug] Connector::reader->Connector::parseSocketBuffer->Connector::processLine: (Port:2524) Received a PONG for localhost on port 7878
2022-05-26T14:33:05.861620Z (0x0000174c) [debug] Connector::reader->Connector::parseSocketBuffer->Connector::processLine->Connector::startHeartbeats: (Port:2524)Received PONG, starting heartbeats every 10000ms
2022-05-26T14:33:05.862620Z (0x0000174c) [info] Connector::reader->Connector::parseSocketBuffer->Connector::processLine->DataItemMapper.ShdrTokenMapper.operator->DataItemMapper.ShdrTokenMapper.mapTokensToDataItem: Could not find data item: B1actw
2022-05-26T14:33:15.871614Z (0x0000174c) [debug] Connector::heartbeat: Sending heartbeat
2022-05-26T14:33:15.871614Z (0x0000174c) [debug] Connector::heartbeat->Connector::sendCommand: (Port:2524) Sending PING
2022-05-26T14:33:15.872615Z (0x0000174c) [debug] Connector::reader->Connector::parseSocketBuffer->Connector::processLine: (Port:2524) Received a PONG for localhost on port 7878
2022-05-26T14:33:25.883702Z (0x0000174c) [debug] Connector::heartbeat: Sending heartbeat
2022-05-26T14:33:25.884701Z (0x0000174c) [debug] Connector::heartbeat->Connector::sendCommand: (Port:2524) Sending PING
2022-05-26T14:33:25.884701Z (0x0000174c) [debug] Connector::reader->Connector::parseSocketBuffer->Connector::processLine: (Port:2524) Received a PONG for localhost on port 7878
2022-05-26T14:33:35.890738Z (0x0000174c) [debug] Connector::heartbeat: Sending heartbeat
2022-05-26T14:33:35.891697Z (0x0000174c) [debug] Connector::heartbeat->Connector::sendCommand: (Port:2524) Sending PING
2022-05-26T14:33:35.892697Z (0x0000174c) [debug] Connector::reader->Connector::parseSocketBuffer->Connector::processLine: (Port:2524) Received a PONG for localhost on port 7878
2022-05-26T14:33:45.892724Z (0x0000174c) [debug] Connector::heartbeat: Sending heartbeat
2022-05-26T14:33:45.893690Z (0x0000174c) [debug] Connector::heartbeat->Connector::sendCommand: (Port:2524) Sending PING
2022-05-26T14:33:45.894689Z (0x0000174c) [debug] Connector::reader->Connector::parseSocketBuffer->Connector::processLine: (Port:2524) Received a PONG for localhost on port 7878
2022-05-26T14:33:55.909720Z (0x0000174c) [debug] Connector::heartbeat: Sending heartbeat
2022-05-26T14:33:55.910734Z (0x0000174c) [debug] Connector::heartbeat->Connector::sendCommand: (Port:2524) Sending PING
2022-05-26T14:33:55.910734Z (0x0000174c) [debug] Connector::reader->Connector::parseSocketBuffer->Connector::processLine: (Port:2524) Received a PONG for localhost on port 7878
2022-05-26T14:34:05.914297Z (0x0000174c) [debug] Connector::heartbeat: Sending heartbeat
2022-05-26T14:34:05.914297Z (0x0000174c) [debug] Connector::heartbeat->Connector::sendCommand: (Port:2524) Sending PING
2022-05-26T14:34:05.915297Z (0x0000174c) [debug] Connector::reader->Connector::parseSocketBuffer->Connector::processLine: (Port:2524) Received a PONG for localhost on port 7878
^C
D:\Program Files\Okuma\Okuma MT Connect Adapter>

@hulinning2 hulinning2 changed the title MTConnect Agent Win32, version 2.0.0.2, could be not running as service MTConnect Agent Win32, version 2.0.0.2, could not be running as service May 27, 2022
@wsobel wsobel linked a pull request May 27, 2022 that will close this issue
@wsobel
Copy link
Member

wsobel commented May 27, 2022

Found the issue with the command line argument parsing. Fix tested on windows 10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants