`--export-config` and `--configure` as backup&restore not reliable

Aberta
#891 1 comentário 3 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
25/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Pouca atividade
Stack de tecnologia
python
Domínio
cli

Direção de pesquisa

Start with how the --export-config and --configure (--config) flags read and write settings in the CLI, and compare the exported YAML against what the device reports for channels, keys and favorited nodes. Reproducing needs a Meshtastic device connected over serial, and the issue does not say which code path drops the favorites, keys or channels. Done means a round trip export then import restores those fields, with the cause identified and a test or a documented limitation.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

I was expecting that --export-config i.c.w. a subsequent --configure was a suitable method to backup and restore node settings. While partially successful, there are some issues:

  • On my T-Deck running 2.7.18 alpha I did $ pipx run "meshtastic[cli]" --export-config > config.yaml. The resulting config seems mostly complete. However, favorited nodes are missing from the export.
  • After resetting my T-Deck, I tried to restore the configuration via $ pipx run "meshtastic[cli]" --config config.yaml.
    • The private and public key were not restored (properly). I had to restore them using MUI from on-device backup.
    • The channels were not configured.

The settings not imported (channels, keys) are part of the config.yaml. The output of --configure also indicates that they are set in the process.

I'm not using remote admin, so I don't know if those keys are properly backed-up and restored. Same goes for many other module settings.

I'm not sure if I'm just using it wrong, or due to incompatibility in protobufs (I'm using firmware 2.7.18), or if these are bugs. My main goal is to backup&restore settings, and this looked like the most promising method.

The T-Deck Plus is connected via USB serial, on Kubuntu 25.10. Using CLI version 2.7.6.

Linguagem predominante
Python
Estrelas
855
Forks
355
Merge médio
3d 3h
PRs com merge (30d)
12

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de meshtastic/python

Todas as issues de meshtastic/python

Issues semelhantes

Mais issues de Python

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.