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

Ouverte
#2,103 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
3/5
Temps estimé
1-2 jours
Accessibilité débutants
50/100
Type d'issue
Bug
Clarté
Plutôt claire
Activité
Active
Stack technique
docker, haskell
Domaine
backend, databases

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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.

Langage dominant
Haskell
Étoiles
869
Forks
128
Merge moyen
1 j 8 h
PR mergées (30 j)
53

Préparer son environnement

  • Fournit un Dockerfile ou un fichier Docker Compose
  • Aucun modèle de pull request
  • Lire le guide de contribution

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de simplex-chat/simplexmq

Toutes les issues de simplex-chat/simplexmq

Issues similaires

Plus d'issues Haskell

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.