-
-
Notifications
You must be signed in to change notification settings - Fork 306
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
Metrics server is listening on IPv6 interface and not shutting down #5768
Comments
@wemeetagain Looks like the metrics server listening on ipv6 is unrelated, also happens when checking out previous commit e3eb055. Still trying to find out what was going on with the process hanging, I've never seen this before that not even force closing helps. Maybe it was just an issue on my server, although it happened multiple times. I will try to figure out if this really just started to happen after merging IPv6 changes. Possibly a worker thread which is not shut down correctly? That could keep the main process alive but not receive any process signals which could explain why |
@wemeetagain as you suspected in standup this is unrelated to IPv6 changes, which makes sense, would be hard to explain this based on the IPv6 changes done. That the metrics server is still running was just a coincidence because the shutdown sequence was not fully executed due to #5775 and I did some more testing with
|
Just leaving some more context here: It looks like by default if no address is provided the metrics server is listening on IPv6 interface (at least on my server)
Whereas for the REST API server where I set
This is a bit surprising to me as the default host/address should be We should only expose server externally if listen address is explicitly set to something like |
Describe the bug
It looks like Lodestar beacon node metrics server starts listening on IPv6 interface.
It is also no longer possible to shut down the process, even force closing does not help. Had to use
kill -9
to close process as justkill
didn't do anything.Expected behavior
Metrics server should not be listening on IPv6 and beacon node should cleanly shut down when receiving SIGTERM / SIGINT.
Steps to reproduce
Running with default network and listen options, metrics are enabled
./lodestar beacon \ --dataDir /home/devops/goerli/data/beacon \ --metrics \ --execution.urls http://localhost:8551 \ --jwt-secret /home/devops/goerli/data/jwtsecret \ --logLevel info \ --network goerli \ --checkpointSyncUrl "https://beaconstate-goerli.chainsafe.io/"
The metrics server listen on IPv6 happens consistently but I am not able to reproduce the process not shutting down all the time.
Additional context
Related PR that likely introduced problem
Operating system
Linux
Lodestar version or commit hash
ec81531
The text was updated successfully, but these errors were encountered: