Errors
Common error messages and their solutions.
Note that we are using podman-compose, everywhere, and not podman compose (note the dash/whitespace difference). Using the latter will result in different behavior!
Creating container storage: the container name is already in use by...
If you see an error like this when (re)starting DSMR-reader with podman-compose up -d:
Error: creating container storage: the container name "dsmrdb" is already
in use by 520d7e8b1ec65d5a1b69967338e9d98671aa05d6f483481a243657c3ab92a2a1.
You have to remove that container to be able to reuse that name: that name
is already in use, or use --replace to instruct Podman to do so.
dsmrdb
Error: creating container storage: the container name "dsmr" is already
in use by ae51bc4715d50c31be5cd5c6f48023518dd2e53b1f696791e6eaaa1dd8da40f9.
You have to remove that container to be able to reuse that name: that name
is already in use, or use --replace to instruct Podman to do so.
dsmr
Just use --force-recreate instead:
podman-compose up -d --force-recreate
Key (id) already exists
Key (id)=(1292) already exists.
This depends on the situation, but you can always try the following yourself first:
sudo su - dsmrreader
podman-compose exec dsmr /app/manage.py dsmr_sqlsequencereset
Tip
See also: If it does not resolve your issue, ask for support on GitHub.
Day statistics are lagging behind
Day statistics are lagging behind (1 day, 16 hours ago)
This means that the statistics process did not run (successfully) or lacks new data. This module runs once a day, by default at midnight.
Due to unforeseen circumstances the process may have not run. But it can also just wait for new data to arrive. E.g. caused by power outage or server restart.
Wait until the next scheduled run and see if the problem gets resolved automatically. Alternatively:
- Go to
/admin/dsmr_backend/scheduledprocess/. - Change the scheduled time of the
Generate day and hour statisticstask into the past (or "now"). It should run shortly. - If that doesn't resolve the issue, try Logs and debugging.
Tip
Check the logs for Stats: statements, which may identify a root cause.
Warning "Too many outgoing MQTT messages queued for transit"
If this happens, either DSMR-reader is creating MQTT-messages faster than your MQTT broker can handle, or your MQTT broker is not reachable.
Whatever the reason, if you want to clear the queue which will permanently delete all those pending messages, you can do so by running:
sudo su - dsmrreader
podman-compose exec dsmr /app/manage.py dsmr_mqtt_clear_queue
Warning "Too many outgoing InfluxDB measurements queued for transit"
Similar to MQTT above, this will clear the InfluxDB queue permanently deleting all those pending measurements:
sudo su - dsmrreader
podman-compose exec dsmr /app/manage.py dsmr_influxdb_clear_queue