-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
"iperf3: interrupt - the server has terminated" immediately upon server start #1016
Comments
If you run It works for me running from the command line on my CentOS 7 dev VM. So I know this feature isn't totally broken. I'm thinking about what kinds of differences there are between your startup script runtime environment and what I just did from a shell. Haven't thought of anything obvious yet. |
@bmah888, I disabled the iperf service, rebooted the server, then ran However, I still do not get expected behavior connecting from remote clients. When I do However, I AM able to get expected behavior running iperf3 client on same machine as server. I assume this means iperf3 server is not binding to correct interface. I see in the man page it says:
On this server,
I then killed the daemon and tried same with However, is it expected behavior that in this case it would only bind to localhost by default? I'm pretty sure I had this same configuration working on other machines without having to use the The version of iperf3 we are using on the machines involved in the OP are from debian buster repository:
I will next experiment with explicitly specifying |
So far, things appear to be working correctly now that I'm explicitly specifying Another odd thing I'm noticing, however, is that I'm not seeing verbose output to the specified log file during (or after) running these client tests. The full command my service script is uttering is:
I did see this log output when I was running the above command in normal shell instead of as a service. Any ideas on this? Thanks. |
So it sounds like you're seeing two different problems...one is a permissions issue (probably?) about not being able to write the log file, and another about only being bound to the loopback interface. You're able to work around the second problem but not the first. Since iperf3 seems to be running fine if it's run manually, I'm going to make the unsurprising guess it has something to do with running as a service. This is a little outside my area (I'm more of a BSD person), and as I might have mentioned upthread, this is not a use case that we exercise at ESnet. I do know that people are running iperf3 as a service (see some other issues here in the issue tracker), so I'm hoping someone knowledgeable sees this and can chime in. |
Context
iperf server running on:
Bug Report
iperf3 daemon logs the following to its --logfile (with --debug and --forceflush) and never logs again.
The daemon process still exists after this point:
however, it doesn't accept connections using iperf3 clients using UDP/TCP, and a few different ports I have tried (5201, 8000).
Expected Behavior
iperf3 daemon should accept connections and run perf tests as indicated by command line args. It should also log details in the specified --logfile, and do so at every "interval" since I used --forceflush.
Actual Behavior
See Bug Report above.
Steps to Reproduce
Simply boot my server and look at the iperf3 logfile. I am starting the daemon by installing the following init script which is run at boot. I know I need to add better support for managing this service, but for now, if I make a change to the script I just reboot the server to enact the change.
The text was updated successfully, but these errors were encountered: