-
Notifications
You must be signed in to change notification settings - Fork 50
Description
[app-mqtt-export] Service stops exporting data after some time without errors
Description
The edgex-app-mqtt-export service intermittently stops exporting data after running for some time. There are no abnormal behaviors observed, such as high CPU or memory usage, and no error logs indicating the cause. The service appears to go into a dormant state or deadlock. The only way to restore functionality is by restarting the container.
Steps to Reproduce
- Start the
edgex-app-mqtt-exportservice. - Allow it to run for an extended period under normal conditions.
- Observe that after some time, the service stops exporting data without any errors or high resource usage.
- Restarting the container restores functionality.
Expected Behavior
The service should continuously export data without requiring manual intervention or a container restart.
Observations
- No error logs are generated when the issue occurs.
- CPU and memory usage remain stable.
- Restarting the container resolves the issue temporarily.
Environment
- EdgeX Version: 3.1.0 NAPA
- Deployment Method: Docker Compose,
- OS & Architecture: Ubuntu 22.04, x86_64
- MQTT Broker: EMQX
CustomConfiguartion : configuration.yaml:
Writable:
LogLevel: "DEBUG"
StoreAndForward:
Enabled: true
RetryInterval: "1m"
MaxRetryCount: 4320
Pipeline:
PerTopicPipelines:
M0001:
Id: "M0001"
Topics: "events/#"
ExecutionOrder: "Transform, MQTTExport"
Functions:
FilterByProfileName:
Parameters:
ProfileNames: ""
FilterOut: "false"
FilterByDeviceName1:
Parameters:
DeviceNames: "M0001"
FilterOut: "false"
FilterBySourceName:
Parameters:
SourceNames: ""
FilterOut: "false"
FilterByResourceName:
Parameters:
ResourceNames: ""
FilterOut: "false"
Transform:
Parameters:
Type: "json"
Compress:
Parameters:
Algorithm: "gzip"
Encrypt:
Parameters:
Algorithm: "aes256"
SecretName: "aes"
SecretValueKey: "key"
Batch:
Parameters:
Mode: "bytimecount" # can be "bycount", "bytime" or "bytimecount"
BatchThreshold: "30"
TimeInterval: "60s"
MergeOnSend: "false"
AddTags:
Parameters:
Tags: ""
MQTTExport:
Parameters:
BrokerAddress: "mqtts://$(vb):8884"
Topic: "{SOURCENAME}"
SecretName: "mqttsecret"
ClientId: ""
QOS: "1"
AutoReconnect: "true"
KeepAlive: "0s" # Empty indicates to use default value
ConnectTimeout: "" # Empty indicates to use default value
Retain: "false"
SkipVerify: "true"
AuthMode: "None"
PersistOnError: "true"
WillEnabled: "false"
WillPayload: ""
WillQos: "0"
WillRetained: "false"
WillTopic: ""
InsecureSecrets:
mqttsecret:
SecretName: "mqttsecret"
SecretData:
username: ""
password: ""
cacert: "cacert"
clientcert: "clientcert"
clientkey: "clientkey"
aes:
SecretName: "aes"
SecretData:
key: "217A24432646294A404E635266556A586E3272357538782F413F442A472D4B6150645367566B59703373367639792442264529482B4D6251655468576D5A7134"
Service:
Host: "localhost"
Port: 59703
StartupMsg: "app-mqtt-export has Started"
MessageBus:
Optional:
ClientId: "app-mqtt-export"
Using default Trigger config from common config
Additional Context
- Are there any particular conditions under which this issue occurs more frequently?
- Have you tried increasing log verbosity to debug the issue?
Logs
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
