smp-server v7.1.0: "error restoring messages: parsing error (endOfInput)" on messages log written by v7.0.1

Aberta
#2,103 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
3/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
50/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
docker, haskell
Domínio
backend, databases

Direção de pesquisa

Start at the restore path in src/Simplex/Messaging/Server.hs around line 2410, where smp-server-messages.log is read, then follow into the message log parser in src/Simplex/Messaging/Server/StoreLog.hs; that file also shows the line format v7.1.0 writes. Reproduce by pointing a v7.1.0 build at a log written by v7.0.1 and compare one line field by field — the failing sample ends right after the base64 body, so a field or version marker is probably missing. Done means v7.1.0 restores v7.0.1 logs, with a parser test covering the older line format.

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

Descrição

After upgrading the SMP server Docker image from simplexchat/smp-server:v7.0.1 to v7.1.0 (reported as v7.1.0.18) in https://github.com/ed-asriyan/simplex-servers-docker/pull/8, the server fails to restore messages on startup from smp-server-messages.log, which was written by v7.0.1. Rolling back the image to v7.0.1 with the same volumes fixed it immediately and the server started normally.

Environment

  • Image: simplexchat/smp-server:v7.1.0 (server reports SMP server v7.1.0.18), upgraded from v7.0.1
  • Deployment: Docker Compose
  • Store config:
    [STORE_LOG]
    enable: on
    expire_messages_days: 21
    expire_messages_on_start: on
    expire_ntfs_hours: 24
    log_stats: off
    restore_messages: on
    

What happened

  1. The server ran v7.0.1 with a populated smp-server-messages.log.
  2. The image tag was bumped to v7.1.0 (Dependabot) and the container was recreated.
  3. v7.1.0 started, then failed with log below
SMP server v7.1.0.18 /

...

Processed: 36891 log lines
[NOTE 2026-11-24 05:25:24 +0000 src/Simplex/Messaging/Server/Env/STM.hs:620] restoring queues from file /var/opt/simplex/smp-server-store.log
[NOTE 2026-11-24 05:25:24 +0000 src/Simplex/Messaging/Server/StoreLog.hs:319] compacting store log (do not terminate)...
[NOTE 2026-11-24 05:25:26 +0000 src/Simplex/Messaging/Server/StoreLog.hs:326] original state preserved as /var/opt/simplex/smp-server-store.log.2026-11-24T05:25:26.125569159Z
[NOTE 2026-11-24 05:25:26 +0000 src/Simplex/Messaging/Server.hs:2410] restoring messages from file /var/opt/simplex/smp-server-messages.log
[ERROR 2026-11-24 05:25:26 +0000 src/Simplex/Messaging/Server.hs:2426] error restoring messages: parsing error (endOfInput): v3 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB 1795372341 flags=F bW1tbW1tbW1t

Queue and message IDs above are replaced with placeholders of the same length.

Workaround

Downgrade to simplexchat/smp-server:v7.0.1 on the same volumes; the server starts normally.

Linguagem predominante
Haskell
Estrelas
869
Forks
128
Merge médio
1d 8h
PRs com merge (30d)
53

Preparar o ambiente

  • Inclui um Dockerfile ou arquivo Docker Compose
  • Sem modelo de pull request
  • Ler o guia de contribuição

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 simplex-chat/simplexmq

Todas as issues de simplex-chat/simplexmq

Issues semelhantes

Mais issues de Haskell

Receba novas issues na sua caixa de entrada

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