-
Notifications
You must be signed in to change notification settings - Fork 1.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
vector validate
causes the dnstap
socket file to get removed & recreated, preventing further connections
#19064
Comments
NOTE: this bug only happens if the To reproduce this & see it happening you can just run
To see it actually causing a problem
Unfortunately, for the application I am working on, this means |
Yes, I agree this could get annoying! It's likely this could be fixed my moving the code that binds to the socket into the In the meantime, you may find the |
I've pulled the config option naming out into a separate issue #19074. Whilst it may seem minor, details matter! |
I didn't have the heart to create a separate issue for it, it seemed so minor. thank you. |
While you're playing with copying code from Seems to me all it needs is the full socket code copied from |
A note for the community
Problem
When you run
vector validate
the unix socket file specified for adnstap
source will get removed & recreated, so the running instance ofvector
is now no longer able to accept connections on that socket name until you restart it.This does not happen for vector's
syslog
unix socket files.The file will also get recreated as owned by the user that ran the validation, e.g.
root:root
, instead of the user that vector is running under (vector:vector
by default in the supplied RPM).Only tested on RHEL9 using the supplied RPM.
We regularly run server validations which includes running
vector validate
, we also runvector validate
as part of a standard ansible run, even when vector's config file has not changed. This causes our DNS software to be no longer able to connect to thednstap
source and so we are no longer able to record DNS data.We are seeing this issue with both
unbound
anddnsdist
.unbound
will actually syslogConnection refused
for the new sock file, butdnsdist
doesn't log any error.Although this is quite a minor issue, it's quite annoying.
Incredibly minor, but also a little annoying, is
but
socket_path
for both would be a little nicer ;)(told you it was incredibly minor)
Configuration
Version
vector 0.33.1 (x86_64-unknown-linux-gnu 3cc27b9 2023-10-30 16:50:49.747931844)
Debug Output
No response
Example Data
No response
Additional Context
No response
References
No response
The text was updated successfully, but these errors were encountered: