Stops forwarding after "Failed to get cursor" with a large journal backlog
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 48/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- c, linux
- Lĩnh vực
- backend, networking
Hướng nghiên cứu
Start by reproducing the failure with a large journal backlog and the supplied systemd-netlogd configuration, then trace journal iteration and cursor persistence, especially the state file at /var/lib/systemd/journal-netlogd/state. Compare the behavior with issues #14 and #17. Done means the backlog is forwarded once, forwarding continues for new entries, and the cursor errors no longer occur.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
systemd-netlogd version
Output of systemd-netlogd --version:
1.4.4 (Debian package 1.4.4-1)
OS and systemd version
- Distribution: Debian 13 (trixie)
- systemd version (
systemctl --version): systemd 257 (257.13-1~deb13u1)
Configuration
[Network]
Address=127.0.0.1:5140
Protocol=tcp
LogFormat=rfc5424
Describe the bug
When netlogd starts with a large backlog in the journal, it stops forwarding after a few seconds, with "Failed to get cursor: Cannot assign requested address". Before it stops, it sends many entries more than once.
Steps to reproduce
- Write about 100,000 entries to the journal, e.g.
seq 100000 | systemd-cat -t loadtest. - Remove
/var/lib/systemd/journal-netlogd/stateand run a TCP listener on 127.0.0.1:5140 that counts the lines it receives. - Start systemd-netlogd.
- After it stops, write a few more entries with
logger.
Expected behavior
All journal entries are forwarded once, and forwarding continues with new entries.
Actual behavior
- Forwarding stops about 10 seconds after start.
- About 340,000 lines are received, while the journal has about 100,000 entries.
- When new entries are written, netlogd sends the whole journal again from the beginning and stops again.
- With a small journal (about 3,000 entries written at a steady rate), all entries arrive once and no errors are logged.
Logs
Failed to get cursor: Cannot assign requested address
Failed to get cursor: Cannot assign requested address
...
Failed to iterate through journal: Invalid argument
Failed to get cursor: Invalid argument
Additional context
- Same behavior with netlogd 1.4.4 on IncusOS 202611080229, sending to a remote host over TCP.
- Looks similar to #14 and #17.
- Ngôn ngữ chính
- C
- Star
- 99
- Fork
- 35
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- 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 systemd/systemd-netlogd
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 77/100
systemd/systemd-netlogd#150 ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
systemd/systemd-netlogd#149 · 1 bình luận ·
Tất cả issue của systemd/systemd-netlogd
Issue tương tự
-
[compiler-rt][ASan][Darwin] dispatch_apply_f interceptor leaks its context (24 bytes per call)Đang mởcompiler-rt:asan
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
llvm/llvm-project#242921 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Missing gcc __builtin_stdc_bit_width/floor/ceil signature makes intellisense wrongly report error 70Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
microsoft/vscode-cpptools#14874 ·
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 70/100
FujiNetWIFI/fujinet-firmware#2401 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[simdutf] update to 9.4.0Đang mởcategory:port-update
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 2 ngày
-
polish
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
ChupathingyCE/chupathingyce#1366 ·
Maintainer thường phản hồi trong vòng 1 ngày