If you're using version v0.9.11 of the United Manufacturing Hub and encounter the error message "Failed to send Kafka message: microservice name is empty" while using the Sensorconnect microservice, don't worry!
{"log.level":"error","@timestamp":"2023-02-21T14:40:04.652Z","log.origin":{"file.name":"internal/kafkaMessageTrace.go","file.line":25},"message":"SerialNumber is empty","ecs.version":"1.6.0"}
{"log.level":"error","@timestamp":"2023-02-21T14:40:04.652Z","log.origin":{"file.name":"sensorconnect/kafka.go","file.line":43},"message":"Failed to send Kafka message: microservice name is empty","ecs.version":"1.6.0"}
This error is caused by a bug on our side and is fixed in the later versions of the Hub. However, if you want to continue using v0.9.11 and need a quick fix for the issue, follow the step-by-step instructions below to resolve the error.
Instructions
- Open UMHLens / OpenLens
- Go to StatefulSets and then press on the
united-manufacturing-hub-sensorconnect
StatefulSet - Press Edit on the top right
- Press
Ctrl + F
and search forenv:
- The second result should be the correct one. Add a new environment variable:
- name: SERIAL_NUMBER value: default
- Press Save