Skip to content
This repository was archived by the owner on Jul 18, 2023. It is now read-only.
This repository was archived by the owner on Jul 18, 2023. It is now read-only.

Configuration with MQTT sink throws "packet_id exhausted error" after few hours of running #241

Open
@jaxer

Description

@jaxer

Hey full error below. It is repeated many many times.
I am running two agents both on separate Ubuntu machines (one on AWS EC2 and another in Docker container on windows host). Both exhausted packet_id's at about same time (overnight).

Part of agent.log

2022-12-06T11:53:11.440091Z (0x00007efeebb01640) [error] : AgentAdapter - Error occurred processing data: packet_id exhausted error
2022-12-06T11:53:11.440273Z (0x00007efeebb01640) [error] : Exception occurred in AgentAdapter::processData: Retry last failed request
2022-12-06T11:53:11.440300Z (0x00007efeebb01640) [error] : Stream body but no request: Retry last failed request
2022-12-06T11:53:11.440325Z (0x00007efeebb01640) [error] : Error getting response: system Bad file descriptor
2022-12-06T11:53:11.440338Z (0x00007efeebb01640) [error] : read: Retry last failed request

agent.cfg:

AllowPut = true
SchemaVersion = 1.5
Pretty = true
Port = 5222

Adapters {
   F900 {
      SourceDevice = F900
      Url = http://mtconnect.stratasys.com:5000
   }
   f370 {
      SourceDevice = f370
      Url = http://10.14.77.189:5000
   }
   H350 {
      SourceDevice = H350
      Url = http://10.14.77.165:5000
   }
}

Sinks {
    MqttService {
        MqttHost = localhost
        MqttPort = 8883
        MqttTls = true
        MqttCaCert = certs/ca.pem
        MqttCert = certs/cert.pem
        MqttPrivateKey = certs/key.pem
        MqttClientId = Alex_MTConnectAgent_Greengrass

        DeviceTopic = Device/
        AssetTopic = Asset/
        ObservationTopic = Observation/
    }
}

Full logs: logs.zip
Full Devices.xml: Devices.xml

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions