Skip to content

mqtts backup fails with MD5 mismatch #90

@mflamm

Description

@mflamm

Describe the bug

Hi there,
I'm trying to backup my tasmota configuration, running on a NOUS A1T
image

To Reproduce

Steps to reproduce the behavior:

  1. Program parameter:
decode-config.py -s mqtts://<mqtt_user>:<mqtt_pw>@<xyz>.s1.eu.hivemq.cloud:8883 --fulltopic tele/my_topic --backup-file MyBackup.json

Note: User, password and the actual hostname of the mqtt broker are obscured...

  1. Result:
INFO: Load data by mqtt using 'mqtts://mqtt_user:mqtt_pw@<xyz>.s1.eu.hivemq.cloud'
/root/decode-config/./decode-config.py:4389: DeprecationWarning: Callback API version 1 is deprecated, update to latest version
  client = mqtt.Client()
ERROR 10 (@4448): Error during MQTT data processing: MD5 mismatch
Premature exit - #10 Download error

Expected behavior

I'm expecting a file called MyBackup.json to be created in my current directory

Version Information

>>> decode-config.py v14.1.0.3 [50d9a81] by Norbert Richter nr@prsolution.eu

Script:   decode-config.py
Version:  14.1.0.3 [50d9a81]
Python:   3.11.2
Platform: Linux-6.6.31+rpt-rpi-v6-armv6l-with-glibc2.36 - armv6l
OS:       Linux 6.6.31+rpt-rpi-v6 #1 Raspbian 1:6.6.31-1+rpt1 (2024-05-29)
Time:     2024-07-18 15:04:42 <<<

System' information of your Tasmota data

{
    "bootcount": 25,
    "bootcount_reset_time": 1718539168,
    "cfg_crc": "0x81c1",
    "cfg_crc32": "0xd8ab6f66",
    "cfg_holder": 4617,
    "cfg_size": 4096,
    "cfg_timestamp": 1721253600,
    "header": {
        "data": {
            "crc": "0x27ad",
            "crc32": "0xd8ab6f66",
            "hardware": "ESP82",
            "size": 4096,
            "version": {
                "id": "0xe010000",
                "name": "14.1.0"
            }
        },
        "env": {
            "platform": "Linux-5.15.153.1-microsoft-standard-WSL2-x86_64-with-glibc2.31",
            "python": "3.11.5",
            "script": "decode-config.py v14.1.0.0 [dcd18e5]",
            "system": "Linux x86_64 5.15.153.1-microsoft-standard-WSL2 #1 SMP Fri Mar 29 23:14:13 UTC 2024"
        },
        "template": {
            "crc": "0x81c1",
            "crc32": "0xd8ab6f66",
            "size": 4096,
            "version": {
                "id": "0xe010000",
                "name": "14.1.0"
            }
        },
        "timestamp": "2024-07-17 22:00:00"
    },
    "version": "0xe010000"
}

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds reproductionRequires reproduction situations

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions