Suddenly my mqtt doesn't receive any messages anymore. After that, i also migrated the whole thing to another NUC. But the mqtt broker still doesn't receive anything from dsmr reader (tho, it receives from other software).
I'm seeing this in the logs of the mqtt broker:
2024-06-12 13:27:56: New client connected from 192.168.XX.XX:51573 as DSMR-reader (p2, c1, k60, u'USERNAME').
2024-06-12 13:29:26: Client DSMR-reader has exceeded timeout, disconnecting.
But in the logs of the dsmr_backend.log i see:
2024-06-12 14:26:24,711 ERROR apps _on_electricity_consumption_created_signal 104 | publish_split_topic_period_totals() failed: integer out of range
2024-06-12 14:27:25,744 ERROR apps _on_electricity_consumption_created_signal 94 | publish_day_consumption() failed: integer out of range
After that, i'd checked the database with HeidiSQL. And by change i found the issue.
I entered in table dsmr_mqtt_message an entry. But after saving it displayed the same error: integer out of range.
It's a known flaw and the solution is moving from integers to UUID's, but it's quite some work to implement, so your workaround should suffice, for now!
Language / Voertaal
🇬🇧 English
Help yourself
Inquiry
Feature or idea
Description
Hi there,
Suddenly my mqtt doesn't receive any messages anymore. After that, i also migrated the whole thing to another NUC. But the mqtt broker still doesn't receive anything from dsmr reader (tho, it receives from other software).
I'm seeing this in the logs of the mqtt broker:
2024-06-12 13:27:56: New client connected from 192.168.XX.XX:51573 as DSMR-reader (p2, c1, k60, u'USERNAME'). 2024-06-12 13:29:26: Client DSMR-reader has exceeded timeout, disconnecting.
But in the logs of the dsmr_backend.log i see:
After that, i'd checked the database with HeidiSQL. And by change i found the issue. I entered in table dsmr_mqtt_message an entry. But after saving it displayed the same error: integer out of range.
So i fixed the auto increment:
SELECT setval(pg_get_serial_sequence('dsmr_mqtt_message', 'id'), 1, false);
And that did the trick! I'm pretty sure the auto increment value exeeds the integer limit after 3-4 years of publishing.
Regards!
Leon
DSMR-reader version
v5.11
DSMR-reader platform
Native (e.g. manual installation)
Optional: Debug info dump (of DSMR-reader)
Optional: Smart meter telegram