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

Aperta
#2,103 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
50/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
docker, haskell
Ambito
backend, databases

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Haskell
Stelle
869
Fork
128
Merge medio
1g 8h
PR unite (30g)
53

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Leggi la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di simplex-chat/simplexmq

Tutte le issue di simplex-chat/simplexmq

Issue simili

Altre issue su Haskell

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.