#22339·vector

Vector does not skip healthchecks on config validation - just ignores their results causing a hang

Author: nulli3Created Jan 31, 2025Updated Sep 29, 2026
Labelsdomain: configdomain: healthchecks

A note for the community

  • Please vote on this issue by adding a reaction to the original issue to help the community and maintainers prioritize this request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Problem

vector validate ignores --skip-healthchecks argument and still checks health of components, just ignores their results. This causes a 130 second hang on my build machine which validates configuration file before deploying it due to timeout (build machine does not have access to elasticsearch cluster, obviously)

docker build output:

#12 [syntax-validator 5/6] COPY ./vector.yaml /val/vector.yaml
#12 DONE 0.0s
#13 [syntax-validator 6/6] RUN ["/usr/bin/vector", "validate", "--deny-warnings", "--skip-healthchecks", "--config-yaml", "/val/vector.yaml"]
#13 0.507 2025-01-31T11:59:06.147293Z  WARN vector::config: Source has acknowledgements enabled by a sink, but acknowledgements are not supported by this source. Silent data loss could occur. source="startup_event_raw" sink="elastic"
#13 0.507 √ Loaded ["/val/vector.yaml"]
#13 131.6 2025-01-31T12:01:17.237003Z  WARN sink{component_kind="sink" component_id=elastic component_type=elasticsearch}: vector::internal_events::http_client: HTTP error. error=error trying to connect: tcp connect error: Connection timed out (os error 110) error_type="request_failed" stage="processing" internal_log_rate_limit=true
#13 131.6 2025-01-31T12:01:17.238480Z  WARN sink{component_kind="sink" component_id=elastic component_type=elasticsearch}: vector::sinks::elasticsearch::common: Failed to determine Elasticsearch API version. Please fix the reported error or set an API version explicitly via `api_version`. assumed_version=8 error=Failed to get Elasticsearch API version: Failed to make HTTP(S) request: error trying to connect: tcp connect error: Connection timed out (os error 110)
#13 131.7 √ Component configuration
#13 131.7 -----------------------------
#13 131.7                     Validated
#13 DONE 131.8s

Configuration

# The only part of my config that actually matters to reproduce the error:

sinks:
  elastic:
    type: elasticsearch
    mode: bulk
    compression: gzip
    bulk:
      index: myindexname
    inputs:
      - myinputname
    acknowledgements:
      enabled: true
    endpoints:
      - http://elastic.somewhere:9200

Version

vector 0.43.1 (x86_64-unknown-linux-gnu e30bf1f 2024-12-10 16:14:47.175528383)

Debug Output

Not needed.

Example Data

Not needed.

Additional Context

Not needed.

References

No response