-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow systemd-journal-remote to spawn http(s) server for multiple ports #29676
Comments
sudo journalctl --verify (with and without --merge and run for individual files with --file) said 100% PASS. |
Ran both sides (source and sink) with SYSTEMD_LOG_LEVEL=debug The interesting part (I think) of the sink log file:
I'm going to test to see what happens when that ip address is resolvable. The complete logfiles (8.5MB) are available on request. |
Making the IP address resolvable to a hostname makes no difference but for the name of the journalfile created. I keep getting the same 9K ' ... Ignoring invalid field: ... ' error messages. |
Root cause found, at least: as far as I can dig. The system running the sink is connected to two networks and is accepting journals from 1 system on one and 6 on the other network. All systems have the above mentioned versions (Debian 12.2, kernel 6.1.0-13-amd64, systemd 252.17-1~deb12u1), all are using the systemd-journal-upload. The six on the first network were working fine, dumping to their hearts content. The single system on the second was having the above mentioned problems. Working with precision, the systemd-journal-remote.socket's ListenStreams were configured to be listening on the ip addresses reserved for that specific purpose. This was done with the edit/override possibility on the socket:
Guess what: the 6 working clients were on the first ip, the 1 that didn't on the second.
Can someone look into this please? |
Thank you for the detailed report! I can reproduce this locally, will try to look into what's going on. |
Ah, so this is expected. From
The Currently there's no way to open the http server on multiple ports, and /cc @poettering in case there are some details I'm missing |
@mrc0mmand : Thanks for your clear explanation of where I went wrong. I do think that I have a valid use case though, so should I put in a RFE? |
No need, I switched this one to an RFE, since having the use case explanation is definitely helpful. |
Originally the bug was about DATA_SIZE_MAX being exceeded. Is this a side this issue? |
systemd version the issue has been seen with
252.17-1~deb12u1
Used distribution
Debian 12.2
Linux kernel version used
6.1.0-13-amd64
CPU architectures issue was seen on
x86_64
Component
systemd-journal-remote, systemd-journal-upload
Expected behaviour you didn't see
Journal upload succeeding.
Unexpected behaviour you saw
Journal upload failing.
Steps to reproduce the problem
systemctl restart systemd-journal-upload.service
Additional program output to the terminal or log subsystem illustrating the issue
The text was updated successfully, but these errors were encountered: