smp-server v7.1.0: "error restoring messages: parsing error (endOfInput)" on messages log written by v7.0.1
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 50/100
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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 reportsSMP server v7.1.0.18), upgraded fromv7.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
- The server ran v7.0.1 with a populated
smp-server-messages.log. - The image tag was bumped to v7.1.0 (Dependabot) and the container was recreated.
- 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.
- 主要言語
- Haskell
- スター
- 869
- フォーク
- 128
- 平均マージ
- 1日 8時間
- マージ済み PR(30日)
- 53
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
simplex-chat/simplexmq のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
simplex-chat/simplexmq#1853 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
simplex-chat/simplexmq#1781 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 32/100
simplex-chat/simplexmq#2074 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
simplex-chat/simplexmq#2017 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
simplex-chat/simplexmq#1864 ·
メンテナーはふだん 1 日以内に返信
simplex-chat/simplexmq の issue をすべて見る
似ている issue
-
area:client bug priority-low
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
bug triage
難易度 2/5 1〜3時間 初心者へのやさしさ 91/100
simplex-chat/simplex-chat#8372 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
compiler-explorer/compiler-explorer#9710 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
http-semantics-0.5.0オープンfailure: bounds
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
commercialhaskell/stackage#8187 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信