smp-server v7.1.0: "error restoring messages: parsing error (endOfInput)" on messages log written by v7.0.1
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 50/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Haskell
- Star
- 869
- Fork
- 128
- Merge trung bình
- 1 ngày 8 giờ
- Pull request đã merge (30 ngày)
- 53
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của simplex-chat/simplexmq
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
simplex-chat/simplexmq#1853 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
simplex-chat/simplexmq#1781 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 32/100
simplex-chat/simplexmq#2074 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
simplex-chat/simplexmq#2017 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 30/100
simplex-chat/simplexmq#1864 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của simplex-chat/simplexmq
Issue tương tự
-
area:client bug priority-low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
bug triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 91/100
simplex-chat/simplex-chat#8372 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
compiler-explorer/compiler-explorer#9710 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
agda/agda#8965 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
http-semantics-0.5.0Đang mởfailure: bounds
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
commercialhaskell/stackage#8187 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày