Skip to main content

Troubleshooting

This guide provides solutions to common Director deployment and operational issues. Issues are organized by category with step-by-step resolution procedures.

Installation Issues​

Director Service Fails to Start​

Symptoms:

  • Service does not start after installation
  • Error messages during service startup
  • Director not appearing in management console

Resolution Steps:

  1. Check System Requirements

    • Verify supported operating system version
    • Ensure minimum hardware requirements are met
    • Confirm administrator/root privileges for installation
  2. Permission Validation

    • Ensure installation user has sufficient privileges
    • Check file and directory permissions in installation path
    • Verify service account permissions if using dedicated account
  3. Port Availability

    • Confirm required ports are not in use by other services
    • Check local firewall settings
    • Identify port conflicts using network tools
  4. Review Service Logs

    • Check installation script output for error messages
    • Review system event logs for service startup failures
    • Examine Director logs for specific error details

Diagnostic Commands:

# Check service status
Get-Service vmetric-director

# Check port usage
Get-NetTCPConnection -LocalPort 443 -ErrorAction SilentlyContinue
netstat -an | Select-String ":443"

# View service events
Get-EventLog -LogName System -Source "Service Control Manager" -Newest 20 |
Where-Object { $_.Message -like "*vmetric*" }

Director Waiting for Its First Configuration​

Symptoms:

  • A newly installed Director starts cleanly and connects to the platform, but ingests nothing
  • Log message: "No configuration on disk. Waiting for the platform to deliver it before building the pipeline, because the storage tier is latched from it."
  • A Warning every two minutes: "Still waiting for the platform configuration after 2m0s. The pipeline is not started until it arrives."
  • The health endpoint reports "startup_phase": "awaiting_config"

This is a legitimate state rather than a failure. A Director's processing mode — In-memory, Persistent, or Crash-resistant — is chosen when the Director is created, read from the configuration the platform delivers, and fixed for the life of the process. Everything the pipeline is built from follows it: where records are buffered, whether the queues are backed by memory or disk, and whether a failed delivery is retried or discarded. A Director booting for the first time with nothing on disk therefore waits for that configuration instead of guessing at the mode.

Only a first boot waits:

DirectorOn startup
Receives its configuration from the platform, and has none on disk yetWaits for the platform to deliver one. There is no time limit.
Receives its configuration from the platform, and already has one on diskStarts immediately. The processing mode cannot have changed, so what is on disk is correct.
Self-managedStarts immediately on its local configuration.
Standalone, with no fleet configurationStarts immediately on its local configuration.

The wait adds nothing to the restart of a Director that already has a configuration.

Resolution Steps:

  1. Confirm the Director is waiting rather than stuck

    • The message queue is already running and the Director is already connected to the platform — only the pipeline is held
    • awaiting_config sits between starting_message_queue and initializing_pipeline, so a Director reporting it has passed every earlier step
  2. Check the link to the platform, not the Director

  3. Have the platform deliver a configuration

    • On a first boot the Director asks the platform once, and nothing asks again if that request or its reply is lost
    • Any change to the Director in the web interface pushes a configuration, which ends the wait
  4. If a configuration arrived but could not be used

    • The log reads "Can not use the delivered configuration for <director>", naming either the parse error or that the delivered configuration carries no environment
    • This is reported once and the Director waits for the next delivery, so correct the Director in the web interface and save it again

Diagnostic Commands:

# Check how far startup has progressed
(Invoke-WebRequest -Uri "http://127.0.0.1:15551/health").Content

The health endpoint is served on the loopback address only, at the port set by debug.remote_console.port, which defaults to 15551.

VMMQ Connection Not Initialized​

Symptoms:

  • Log message: "vmmq connection is not initialized"
  • Director starts but cannot process data
  • Internal communication failures

Resolution Steps:

  1. Verify NATS JetStream Configuration

    • Check that NATS server is running and accessible
    • Verify JetStream is enabled in the configuration
    • Confirm storage paths exist and have correct permissions
  2. Check Storage Directory

    • Verify <vm_root>/Director/storage/nats/ directory exists
    • Ensure adequate disk space for JetStream storage
    • Check directory permissions
  3. Review Configuration File

    • Validate YAML syntax in vmetric.yml
    • Confirm VMMQ settings are correctly specified
    • Check for configuration file corruption

Connection Issues​

Director Cannot Connect to Cloud Platform​

Symptoms:

  • Director status shows "Not connected" in the web interface
  • Connection verification fails during setup
  • Timeout errors in Director logs

Resolution Steps:

  1. Identify Your Regional Endpoint

    Your Director connects to the same regional cloud platform where you created it. To identify your region, check the URL in your browser when logged into VirtualMetric:

    RegionEndpoint
    Europehttps://app.eu-west.cloud.virtualmetric.com
    UShttps://app.us-east.cloud.virtualmetric.com
    Australiahttps://app.aus-east.cloud.virtualmetric.com
    info

    If you need to switch regions, log out and select a different region.

  2. Validate Network Connectivity

    • Ensure port 443 is open for outbound HTTPS connections from the Director host
    • Verify DNS resolution is working properly
    • Test connectivity to your regional endpoint using the diagnostic commands below
  3. Check Firewall Configuration

    • Allow outbound HTTPS/WebSocket Secure (443) to the VirtualMetric Cloud platform. For Layer 7 (application-aware) firewalls, a single rule for *.cloud.virtualmetric.com is sufficient. For firewalls without Layer 7 support — or security teams that require stricter, explicit rules — allow your regional service endpoint instead:
      • Europe: api-service.eu-west.cloud.virtualmetric.com
      • US: api-service.us-east.cloud.virtualmetric.com
      • Australia: api-service.aus-east.cloud.virtualmetric.com
      • Qatar: api-service.me-qatar.cloud.virtualmetric.com
    • Ensure no SSL/TLS inspection is blocking certificate validation
    • Verify proxy configurations if applicable
  4. Validate API Key

    • Confirm the installation script was copied and executed correctly
    • Check for extra spaces or line breaks if you manually edited the script
    • Regenerate the API key from the Director's Connection tab in the web interface if corruption is suspected
  5. Review System Time

    • Ensure system clock is synchronized
    • Use NTP to maintain accurate time synchronization
    warning

    TLS certificate validation requires accurate system time. A clock skew of more than a few minutes can cause silent connection failures.

Diagnostic Commands:

Use your regional endpoint (identified above) in the following commands:

# Set your regional endpoint
$region = "eu-west" # Change to: us-east or aus-east

# Test DNS resolution
Resolve-DnsName "app.$region.cloud.virtualmetric.com"

# Check outbound connectivity
Test-NetConnection -ComputerName "app.$region.cloud.virtualmetric.com" -Port 443

# Verify TLS connectivity
Invoke-WebRequest -Uri "https://app.$region.cloud.virtualmetric.com" -Method Head -UseBasicParsing

Connection Drops Intermittently​

Symptoms:

  • Director alternates between Connected and Not Connected states
  • Periodic timeout errors in logs
  • Data processing interruptions

Resolution Steps:

  1. Network Stability Check

    • Monitor network latency and packet loss to your regional endpoint
    • Verify network equipment stability
    • Check for bandwidth limitations or throttling
  2. Resource Monitoring

    • Ensure adequate CPU and memory resources
    • Monitor disk I/O performance
    • Check for resource contention with other services
  3. Proxy Configuration

    • Verify proxy server stability and configuration
    • Check proxy authentication credentials
    • Consider bypassing proxy for VirtualMetric endpoints

Director's Machines Wait and Form No Cluster​

Symptoms:

  • Every machine of an Orchestrated Director was replaced, for example after an outage
  • The Cluster card on the Director's Health tab shows The machines wait for the earlier machines

Only the earlier machines held the records of the Director's built-in queue, so the new machines wait for them. The card names the earlier machines, with when each one was last seen. It also says when the new machines start a new cluster by themselves, or that they wait until someone decides.

Resolution Steps:

  1. An earlier machine still runs somewhere

    • Connect it to the platform again
    • It hands its records over, and the cluster forms again by itself
  2. The earlier machines are gone for good

    • Use Start a new cluster on the Cluster card
    • Records that only the earlier machines held are lost, unless one of them comes back
  3. The card says that fewer than 3 machines wait

    • Add machines to the Director, or use Go on without a cluster
    • With Go on without a cluster, each machine keeps its records only on its own disk, with no copies on other machines

Both buttons need permission to edit Directors. See Health Tab in Management.

Data Processing Issues​

Director Not Receiving Data​

Symptoms:

  • No data appearing in target destinations
  • Zero throughput metrics in monitoring
  • Source systems showing successful transmission

Resolution Steps:

  1. Source Configuration Verification

    • Confirm correct Director IP address in source system configuration
    • Verify port numbers match between source and Director
    • Check protocol settings (TCP/UDP for syslog, HTTP/HTTPS for APIs)
  2. Network Connectivity Testing

    • Test connection from source system to Director
    • Verify routing and firewall rules allow traffic
    • Use packet capture tools to confirm data transmission
  3. Director Input Configuration

    • Review device configuration in Director settings
    • Verify enabled protocols and listening ports
    • Check for configuration syntax errors
  4. Log Analysis

    • Examine Director logs for input processing errors
    • Check for data parsing or validation failures
    • Review error messages for specific issues

Diagnostic Commands:

# Test syslog connectivity (UDP)
$udpClient = New-Object System.Net.Sockets.UdpClient
$bytes = [Text.Encoding]::ASCII.GetBytes("<14>Test message from PowerShell")
$udpClient.Send($bytes, $bytes.Length, "<director_ip>", 514)
$udpClient.Close()

# Check listening ports
Get-NetTCPConnection -LocalPort 514 -ErrorAction SilentlyContinue
Get-NetUDPEndpoint -LocalPort 514 -ErrorAction SilentlyContinue

Router Queue Errors​

Symptoms:

  • Log message: "There is no available log file for [logtype] in the router queue"
  • Data processing appears stalled
  • Empty storage/logs directory

Resolution Steps:

  1. Verify Storage Configuration

    • Check that <vm_root>/Director/storage/ directory exists
    • Ensure subdirectories (data, logs, queue, sender) are present
    • Verify write permissions on storage directories
  2. Check Disk Space

    • Ensure adequate free disk space for queue operations
    • Monitor disk usage during high-volume periods
    • Configure log rotation if disk space is limited
    warning

    If disk space is exhausted, queued data may be lost. Monitor storage usage proactively in high-volume environments.

  3. Review Route Configuration

    • Verify routes are properly configured and enabled
    • Check that devices and targets are correctly linked
    • Validate pipeline configuration syntax

Data Processing Errors​

Symptoms:

  • Partial data processing with error messages
  • Data transformation failures
  • Inconsistent output formatting

Resolution Steps:

  1. Pipeline Configuration Review

    • Validate YAML syntax in processing pipelines
    • Check field mappings and transformation rules
    • Verify regular expressions and parsing patterns
  2. Data Format Validation

    • Examine sample input data for format consistency
    • Check for unexpected characters or encoding issues
    • Verify timestamp formats match expected patterns
  3. Resource Monitoring

    • Monitor CPU and memory usage during processing
    • Check for disk space availability
    • Ensure adequate processing capacity for data volume

Director's Disk Is Full​

Symptoms:

  • The Recovery card on the Director's Health tab shows the warning "The director's disk is full"
  • The built-in queue has stopped, and no records flow through it
  • The card lists repairs that say "The director deleted files to free space on its disk."

The Director frees space by itself, and the queue starts again once the disk has room. It deletes, in this order: folders that repairs kept aside and that are past their keep time, the content of its log file, buffer files older than the Retention period, and its reserve file. Only as a last step, after a warning of 5 minutes, does it delete the oldest folder kept aside. After the queue starts again, the Director drops its oldest stored records, but only as many as it needs to keep running. See A Full Disk in Recovery.

Resolution Steps:

  1. Free disk space, or give the Director a larger disk

    • The queue starts again by itself once the disk has room
    • When the warning reads "The director's disk is full, and nothing is left to delete", the Director can't free more space by itself
  2. Keep a folder that the Director warns about

    • The warning "The director will delete a folder that a repair kept aside" names the folder and the time
    • Free disk space before that time, or copy the folder to another place first
  3. Leave the reserve file alone

    • queue-disk.reserve in <vm_root>/Director/storage holds no data. The Director gives its space back when the disk is full
    • If you delete it, the Director makes it again

Director Waits for Support​

Symptoms:

  • The Recovery card on the Director's Health tab shows Waiting for support and the warning "This director is waiting for support"
  • The Director takes no new logs. HTTP senders get the answer 503, and records from UDP devices can be lost
  • The alert Director waits for support is open

The Director found a problem that it can repair only by losing data, and it doesn't make that repair until a person acts. Meanwhile it makes no repair that changes its disk. The warning says why the Director waits.

Resolution Steps:

  1. Read why the Director waits

    • The warning on the Recovery card says what the problem is, and the Director's own report gives the details
  2. Fix the cause, or use Recover now

    • When the cause is fixed, the Director goes on by itself
    • Recover now on the Recovery card ends the wait. The Director takes new logs again and makes the repairs that it held back. The card lists what each repair lost
    • Recover now needs permission to edit Directors
  3. Check the recovery setting

    • With Stop and wait for support, the Director waits each time a repair would lose data
    • With the default, Save a copy of the data and start clean, the Director makes such a repair by itself. It waits only in a few cases, which the warning names
    • See The Recovery Setting in Recovery

A Stream Takes No Records After a Restart​

Symptoms:

  • A Director that runs as a store cluster in Persistent mode restarted, and only some of its replicas came back
  • The Recovery card on the Director's Health tab shows the warning "No director leads the stream or reader", and the Director reports that it waits for the other members of the in-sync set
  • After 2 minutes, the store_cluster component of the replica's health endpoint is degraded and names the stream

In Persistent mode, a replica doesn't sync its disk before the Director confirms a record, so a crash can cut the end of its copy of a stream. A replica that led a stream and comes back alone doesn't lead it until another replica with an up-to-date copy answers, or until 5 minutes have passed. See When Replicas Fail and Come Back in Persistent Storage.

Resolution Steps:

  1. Bring back another replica that held the stream

    • The stream gets a leader within seconds once a replica with an up-to-date copy answers
  2. Or wait

    • After 5 minutes, the replica takes the stream over with the records that it holds
    • If its copy lacks records that only the other replicas held, those records are lost, and the Data loss card counts the loss
  3. To avoid the wait on machines

    • In Crash-resistant mode, a machine syncs each record to its disk before it counts the record, so a replica that comes back alone leads at once

A Stream Waits for Its New Copies​

Symptoms:

  • The witness and store_cluster components of a replica's health endpoint are degraded, with the message "Stream … takes no records yet, because new copies are waiting for their data."

A stream that gets a new copy, for example when a replica joins or comes back, first hands its records to the new copy. It can refuse records meanwhile. The Director keeps each record that the stream refused and tries it again, so no record is lost. This normally ends within a second, and the health endpoint says so only after 10 seconds. See When Replicas Fail and Come Back in Persistent Storage.

Resolution Steps:

  1. Check that the stream has a leader

    • A stream without one shows the warning "No director leads the stream or reader" on the Recovery card, with the reason that the Director reports
  2. Check that the new replica runs

    • The new copy is on the replica that joined or came back. The stream waits until that replica holds its records

A Stream Is Held Back​

Symptoms:

  • The Recovery card on the Director's Health tab shows the warning "The stream … is held back"
  • The witness and store_cluster components of the health endpoint are degraded, with a message that begins "Stream … has stopped, because a director holds confirmed records that the leader lacks, and it could not hand them to the leader by itself."
  • The stream takes no records

A replica whose copy holds confirmed records that the stream's leader lacks normally hands them to the leader by itself. Rarely, it can't. It then stops the stream and keeps the records on its disk, and the stream waits for a person. The Data loss card counts a loss.

This isn't the same as Director Waits for Support. Only the held stream stops. The Director goes on with its other streams.

Resolution Steps:

  1. Contact support

    • Give support the name of the stream from the warning
  2. Start the replica that should lead once with -recover=accept-loss, when support tells you to

    • What the other replica holds alone is then lost
    • The start also takes over every other stream on that replica that has no leader, with the records that it holds. Whatever it doesn't hold is lost. It takes over no stream that has a leader
    • See Starting a Director Once with -recover in Recovery, which also says how to do this in a container

Performance Issues​

High Resource Usage​

Symptoms:

  • Excessive CPU or memory consumption
  • System performance degradation
  • Out of memory errors

Resolution Steps:

  1. Configuration Tuning

    • Adjust buffer sizes and queue lengths
    • Optimize processing batch sizes
    • Configure appropriate timeout values
  2. Pipeline Optimization

    • Identify resource-intensive transformation operations
    • Optimize data parsing and enrichment logic
    • Consider sampling for high-volume data streams
  3. System Monitoring

    • Implement comprehensive resource monitoring
    • Set up alerts for resource threshold breaches
    • Plan capacity upgrades based on usage patterns

Slow Data Processing​

Symptoms:

  • High latency between data ingestion and output
  • Growing backlog of unprocessed data
  • Timeout errors in processing pipeline

Resolution Steps:

  1. Resource Optimization

    • Increase CPU and memory allocation to Director
    • Monitor resource utilization patterns
    • Consider vertical scaling for improved performance
  2. Pipeline Efficiency

    • Review processing pipeline for optimization opportunities
    • Simplify complex transformation rules where possible
    • Optimize regular expressions and parsing logic
  3. Output Destination Performance

    • Check target system capacity and response times
    • Verify network connectivity to destination systems
    • Consider batch processing for improved throughput

Target Uploads Starving​

Symptoms:

  • A Warning in section SenderUploadStarvation: "Upload starvation: target <name> (<type>): flushes averaged <x>% of batch_size <n>, …"
  • The health endpoint reports sender_upload_starvation as warning, while the top-level status stays ready
  • The same Warning appears in the health endpoint's recent_errors

A target starves its uploads when it sends batches far smaller than it could while its work piles up. Left alone, this ends in a hard stall: the in-memory payload store's router stage quota fills, routing blocks, and ingestion stops, while the health endpoint still reads ready. The Director reports it before that point.

It is measured on the in-memory payload store only, meaning the In-memory processing mode or persistent_storage.payload.type: memory. That store has the router stage quota that fills, and it is the only one that reports how much it holds. With the NATS object store, the default for persistent storage, or with inline payloads, which a Kafka or Event Hubs pipeline bus requires, the component stays ok.

A target is reported when all of these hold over the last 10 minutes:

ConditionThreshold
Its flushes are smallAt least 3 flushes, averaging under 5% of its batch_size
Its own queue growsBy at least 10 notifications (payloads waiting for it)
The payload store growsBy at least 1 MiB

A down target is never reported, and neither are the healthy targets beside it. A target that is down piles up work but flushes nothing. Its own queue is what ties the store's growth to a target, so a healthy target that sends small batches is not blamed for another target's outage. For a target that is down, see Target Delivery Errors.

Resolution Steps:

  1. Set a flush interval on the target

    • Set interval on the reported target so it accumulates records and sends fuller batches. See Scheduling and Pool Behavior
    • If the target already has an interval, lengthen it. sentinel, azmon and sentineldatalake default to a 30-second flush and can still be reported
  2. Wait for the report to clear

    • The Warning repeats every 10 minutes while the condition lasts
    • The report clears after 10 minutes without the condition, with the Information line Target "<name>" is no longer starving its uploads.
    • A target removed or renamed while reported drops off without a clear line
    • If a configuration change moves the Director off the in-memory store, each reported target gets Target "<name>" is no longer reported for upload starvation: the payload store is no longer the in-memory one, where it is measured. (Information), and the component returns to ok

In the health endpoint, each reported target is one entry in the component's message, separated by semicolons:

"sender_upload_starvation": {"status":"warning","message":"<name> (<type>): flushes averaged …; <next target> …"}

warning is advisory. It never changes the top-level status, which stays ready, and probes do not restart the Director for it.

Measured target types are those that close a batch at a record count:

  • Storage: awss3 and the other S3-compatible storage targets, azblob, gcpstorage, file
  • Staging: azdx, and the Databricks, Redshift and Snowflake targets
  • sentinel, azmon, sentineldatalake
  • elastic, amazonopensearch, elasticsecurity
  • splunk, splunksecurity, crowdstrike
  • clickhouse, bigquery, gcpchronicle, gcplogging, gcpsecops, ibmcloudlogs
  • mqtt, nats, synadia, rabbitmq, amqp, amazonmq
  • http, https, otlp, tcp, datadog, sumologic, rapid7, xsiam, splunks2s

Targets that batch by bytes or send each record on its own are not measured, such as kafka, eventhubs, azservicebus, gcppubsub, amazonkinesis, amazonsqs, amazonsns, amazoncloudwatch, syslog and udp.

Diagnostic Commands:

# Check the sender_upload_starvation component
(Invoke-WebRequest -Uri "http://127.0.0.1:15551/health").Content

Log Analysis​

Director Log Locations​

Windows:

<vm_root>\Director\storage\logs\

Linux:

<vm_root>/Director/storage/logs/

Azure Container Apps: the container app's Log stream in the Azure portal, and Log Analytics. By default, they keep only the Director's Error and Warning lines, and its startup lines. To see every line of the Director's log level there while you investigate, set the environment variable VMETRIC_CONSOLE_LEVEL=all on the container, and remove it afterwards. To debug the message queue there, set it to debug, or to all for the trace lines. Each change starts a new revision. See Logs on Azure Container Apps in Deployment.

Common Log Messages​

MessageMeaningAction
vmmq connection is not initializedNATS JetStream not availableCheck NATS configuration and storage. A VMMQ: line near it usually names the cause
Can not update device stateDevice status update failedVerify VMMQ connectivity
Health check failedDevice collector unhealthyService will auto-restart collector
Can not fetch messagesMessage queue read errorCheck NATS server health
Failed to start VMMQ serverInternal messaging startup failedReview configuration and permissions. A VMMQ: line near it usually names the cause
Durable <durable> on stream <stream> can not be loaded: its saved position (<file>, <n> bytes, last written <time>) is not a consumer state file, which a hard stop of the host leaves behind. Removing it and creating the durable again, starting at …Warning. The host stopped hard around <time>, and the Director is recovering the durable. See the note on durable recovery belowNone. To learn why the host stopped, look in the Windows System event log for Event ID 41 (Kernel-Power) or 6008 near <time>
Durable <durable> on stream <stream> was created again and starts at stream sequence <N>.Information. The durable was recoveredNone
Can not remove the saved position of durable <durable> on stream <stream>. Details: <error>Error. The durable's store directory could not be removed, for example because antivirus locks a file or permissions deny it. The durable stays down, and the recovery is retriedCheck the permissions on <vm_root>/Director/storage/nats/ and the antivirus exclusions
VMMQ: Error adding consumer '<account> > <stream> > <durable>': error creating store for consumer: corrupt state file (10104)Warning. Logged at startup. This is the cause behind the durable recovery lines aboveNone. The Director recovers the durable
VMMQ: Filestore [<stream>] Stream state detected prior state, could not locate msg block <N>Warning. After a hard stop: the messages in a block that never reached the disk were lostNone
VMMQ: Filestore [<stream>] Stream state outdated, last block has additional entries, will rebuild or … Recovering stream state from index errored: prior state fileInformation. After any unclean stop, the stream's index is rebuilt from its messages. Nothing is lostNone
VMMQ: <n> server log lines were dropped: they came faster than the log is written.Warning. The message queue logged faster than the log file is writtenNone
Can not hand a payload of <N> <type> records on, and it is kept to be handed on at the next rotation; …Error. The payload store or NATS refused a listener's payload. It is kept and retried at every rotation, and nothing written after it is handed on before it. Repeated every ten minutes while it lasts, with (<N> attempts over <duration>, <M> since this was last logged)Check NATS and the payload store. The listener slows or refuses its source once its buffer fills. See Listener Memory Sizing
A payload of <N> <type> records that could not be handed on is handed on, after <N> attempts over <duration>.Information. The failure cleared and the kept payload went throughNone
A payload of <N> <type> records could not be handed on in <N> attempts over <duration>, and the stream is stopping: it is dropped, …Error. The collector stopped while the payload was still refused. Its records are dropped unacknowledgedNone. A source that acknowledges after delivery sends the records again
A payload of <N> <type> records can never be handed on. It is held until the collector stops, …Error. A listener that acknowledges holds a payload the store will never accept. The device ingests nothing until it is restartedRestart the device. With persistent_storage.payload.type: inline, raise persistent_storage.payload.max_size
A payload of <N> <type> records can never be handed on, and it is dropped. Error: <reason>Error. A listener that acknowledges nothing dropped a payload the store will never accept. At most every ten minutes per device, with (<M> more dropped since this was last logged)With persistent_storage.payload.type: inline, raise persistent_storage.payload.max_size
Upload starvation: target <name> (<type>): flushes averaged <x>% of batch_size <n>, …Warning. The target sends batches far smaller than its batch_size while its queue and the in-memory payload store grow. Repeated every 10 minutes while it lastsSet a flush interval (interval) on the target, or lengthen it. See Target Uploads Starving
Target "<name>" is no longer starving its uploads.Information. The upload starvation report cleared after 10 minutes without the conditionNone
Pipeline bus cannot commit (stage sender): <reason>Error. On a Kafka or Event Hubs pipeline bus, a save of the bus's position failed or ran out of time. Repeated at most once a minute while it lastsCheck the broker's health and throttling. The next save retries. Nothing is lost, but a crash meanwhile reads more data again. See Saved Position
Pipeline bus, stage sender: the record at offset <N> of <topic>, partition <P>, for "<target>", has been unfinished for <time>. <M> records after it have finished, but the bus can save its place only up to the first unfinished record. If the director restarts now, it reads those <M> records again and sends their data a second time.Warning. On a Kafka or Event Hubs pipeline bus, one record has held a partition's saved position back for 15 minutes while later records finished. Repeated every 15 minutes while it lastsLook at the named target. Avoid restarting the Director until it clears, or expect those records to be sent again
persistent_storage.pipeline_bus.type is "<type>". The Kafka and Event Hubs pipeline bus is deprecated, …Warning. The Director uses Apache Kafka or Azure Event Hubs as its pipeline bus, which is deprecated. Logged once each time the Director starts or reloads. The Director keeps workingNone is needed now. See Apache Kafka and Azure Event Hubs for how to leave the bus
note

The Director service includes automatic recovery for transient failures. Messages like "Health check failed" are often followed by automatic collector restart without manual intervention.

Durable recovery after a hard stop

A hard stop of a Windows host can leave the saved position of a durable consumer on the Director's message queue unreadable. Power loss, a forced VM reset and a bugcheck do this; a service restart or a killed process does not. The message queue then refuses that durable, and the Director recovers it: it removes the unreadable position, creates the durable again, and starts it where it had stopped, so old requests are not acted on again and stats and agent data are not forwarded twice. Automation requests and fleet replies start at the first message since the message queue started, stats forwarding and agent data at the first message since the durable's position was last saved, and the ingester, router and sender queues at the first message still queued.

This applies only to a standalone Director's embedded message queue. A clustered Director's durables are kept by raft and are not touched, and a durable that an agent creates on the Director's message queue is not recovered.

The payload lines above carry the source FlushQueue. The upload starvation lines carry the section SenderUploadStarvation and the target's name. The pipeline bus lines carry the section PipelineBus, and the line about the deprecated bus carries InitPipelineBus. The durable recovery lines carry the section RecoverConsumer. Lines that start with VMMQ: come from the embedded message queue itself and carry the section VMMQServerLog. Its warnings and errors are always logged, and also appear in the health endpoint's recent_errors. A line that repeats is logged at most once every 30 seconds, followed by (<N> more like it since this was last logged). The message queue's notices are logged only with vmmq.debug.status: true. The message queue indents some of its lines, so in the log Error adding consumer follows VMMQ: after five spaces rather than one. Search for the text after the prefix. Failed to publish file notification for <locator> (source PublishFileNotification) is no longer logged: the rotation's line carries the error instead.

Target Delivery Errors​

Every target sends through the same sender pool, so five message shapes wrap the target-specific reason. In the JSON log these entries carry "Section":"SenderPool" and the target name. The part after Reason:, or after the last colon, is the actual cause. Each target page explains its own causes in its Troubleshooting section.

MessageWhenWhat happens to the data
ValidateConfig failed for target "<name>": <reason>The configuration was rejectedNothing is sent. The check repeats about every 30 seconds until the configuration changes.
Failed to reinitialize target "<name>" (attempt N). Reason: <reason>Startup or reconnect failedRetried after 5, 10, 20 and 40 seconds, then every 60 seconds. Only the first failure, and a failure whose reason changed, is logged as an Error. Repeats are Debug, and a Warning summary with the count of failed attempts follows at most every 15 minutes. See Reinitialize Failure Lines. Data waits in the queue and comes back about a second after the next attempt. The web interface shows the target as connection failed for <name>: <reason>.
Sender worker N ThreadSafeInit on reinit failed for "<name>": <reason>A worker could not initializeThe worker retries. Targets that connect lazily often report a bad credential here for the first time while the connection status still shows connected.
Sender worker N execute() failed for <payload>: <reason>Delivery failed in immediate modeThe payload is redelivered about every 5 seconds until it succeeds or the target classifies it as rejected. This holds while the target can initialize. A target that cannot initialize follows the reinitialize timing above. When the endpoint rejects the batch, it is dropped after 4 deliveries with deterministic failure for <payload> after 4 attempts — dropping (giving up). When the target refuses a single record before sending it, that record alone is dropped on the fourth delivery with Target "<name>" rejected record <n> of <payload> on its last delivery attempt — dropping that record and delivering the rest of the payload: <reason>, and the rest of the payload is delivered.
Sender worker N Finalize failed on flush for target "<name>": <reason>A scheduled flush failedThe batch in memory is discarded, pending payloads are redelivered, and the target reinitializes. Rejected records are dropped after 4 deliveries with dropping <payload> for target "<name>" after 4 rejected flush attempts.

Two rules follow from this table:

  • Retrying until fixed is the default. Only what the target classifies as rejected is ever dropped, after 4 deliveries: a batch the endpoint refuses with a permanent status is dropped whole, and a single record the target refuses before sending it is dropped alone. Any other refusal, even a deterministic one, for example a record that is too large or does not match the schema but is not classified as rejected, is retried indefinitely, and in immediate mode each retry reinitializes the target.
  • A connected status does not prove the credentials work. Several targets make no network call at startup, so the first flush is the first real test of a credential or a permission.

Queued data is kept for queue.limit seconds (48 hours by default), and with the In-memory storage tier it does not survive a Director restart. See Persistent Storage.

Reinitialize Failure Lines​

A target that cannot initialize logs its failed attempts per failure episode, which runs from the first failure until the target initializes again. Only the first failure and any change of reason are logged as an Error, so a single target that stays down does not fill the health endpoint's recent_errors on its own.

LineLevelWhen
Failed to reinitialize target "<name>" (attempt N). Reason: <reason>ErrorThe first failure of the episode
Failed to reinitialize target "<name>" (attempt N, reason changed). Reason: <reason>ErrorA failure whose reason differs from the previous one
Failed to reinitialize target "<name>" (attempt N). Reason: <reason>DebugEvery repeat of the same reason
Target "<name>" still failing to reinitialize: <count> failed attempts since <time> (last at <time>). Reason: <reason>WarningAt most once every 15 minutes while the same reason lasts
Target "<name>" reinitialized successfully (generation G) after <count> failed attempts since <time>.InformationOn recovery. One failure reads after 1 failed attempt, and the clause is left out when no attempt failed

Times are RFC 3339 in UTC.

  • The attempt count is in the Warning and the recovery line. The Error shows only the first attempt, or the attempt at which the reason changed.
  • Repeats appear only at debug.level 4 or higher, or in a live capture session. They are not kept in recent_errors.
  • A reason that changes on every attempt stays at Error. Reasons are compared as whole text, so a reason carrying a changing part, such as a port, a request or statement ID, or a timestamp, logs every attempt as an Error tagged reason changed.
  • Log-severity statistics count one Error per episode or reason change, plus a Warning at most every 15 minutes, rather than one Error per attempt. This matters for an alert rule that counts errors.

While the target is down, data queued for it is sent back to wait. Each message is due again about 1 second after the target's next reinitialize attempt can complete, never sooner than 5 seconds and never later than 2 minutes. At the 60-second retry interval, queued data comes back about once per attempt, and within about a second of the attempt that succeeds.

Log Analysis Commands​

# Monitor real-time logs
Get-Content "<vm_root>\Director\storage\logs\director.log" -Wait -Tail 50

# Search for errors
Select-String -Path "<vm_root>\Director\storage\logs\*.log" -Pattern "error|failed" -AllMatches

Support and Escalation​

Clustered Deployments

For Directors in a cluster, troubleshoot each Director individually using the procedures above. Cluster health is an aggregation of individual Director states.

Meta Group May Be Split​

The Directors of a cluster share one message queue. Its meta group is the set of Directors that agree on which streams the cluster holds, and one of them, the meta leader, leads it. In a split cluster, one Director leads the meta group alone, and the other Directors follow it.

Symptoms:

  • A Director logs the Warning "The meta group of this server counts only this server, but the server knows <N> other servers with JetStream. …"
  • The meta leader does not know the streams that the cluster made before. The other Directors still hold them
  • New streams go only to that one Director
  • Every Director of the cluster names that Director as cluster.meta_leader in its health endpoint

The full Warning names the number of other Directors and the meta group folder, and says what to do:

The meta group of this server counts only this server, but the server knows <N> other servers with JetStream. While a second server joins a cluster of one, this is expected for a short time. Otherwise the meta group may be split from the cluster, and the other servers hold streams that this server does not know. In that case stop this server, delete its meta group folder <path> and start it again, before any other server restarts or is upgraded. The server then joins the others as a new member.

A Director in a cluster logs it when its meta group counts only this Director, and the Director knows at least one other Director of its cluster that runs JetStream:

  • It looks for the first time 5 seconds after its meta group starts, then every minute, and repeats the Warning at most every 5 minutes.
  • It is expected for a short time while a second Director joins a cluster of one.
  • A Director that knows no other Director with JetStream, such as a standalone Director, never logs it.
  • The Warning changes no behaviour. The Director goes on running as before.
  • It shows only while the Director counts itself alone. Once the other Directors have restarted under it, it counts them too and the Warning stops, so act on it before any other Director restarts.

Resolution Steps:

First rule out a join. While a second Director joins a cluster of one, the Warning is expected for a short time and stops by itself. A Director whose meta group stays split logs it again about 5 minutes later, and about every 5 minutes after that. Repair the cluster only when both hold:

  • The Director has logged the Warning at least twice, about 5 minutes apart
  • Every Director of the cluster names that Director as cluster.meta_leader in its health endpoint

Every other Director of the cluster must be running before you start, because they elect the new meta leader among themselves.

Repairing the cluster discards what the lone Director confirmed while it led alone. Repair it in this order:

  1. Stop the Director that leads alone

    • That is the Director that logs the Warning
    • Windows: Stop-Service vmetric-director
    • Linux: systemctl stop vmetric-director
  2. Delete its meta group folder

    • The Warning prints the path. It is $SYS/_js_/_meta_ under the message queue's JetStream store folder
  3. Start it again

    • Windows: Start-Service vmetric-director
    • Linux: systemctl start vmetric-director
    • The other Directors elect a leader that holds the cluster's state, and this Director joins them as a new member
    • Before you go on, read this Director's health endpoint. cluster.meta_leader names one of the other Directors once they have elected a leader. While the field is missing, they have not: do not restart them, and see Escalation
  4. Only then restart or update the other Directors

warning

A healthy Director that restarts or is updated while the lone Director still leads follows it and drops what it had committed. That is why the other Directors restart last. When you update a cluster, update its meta leader first. See Updates.

Diagnostic Commands:

# Show the meta leader that this Director names (cluster.meta_leader)
(Invoke-WebRequest -Uri "http://127.0.0.1:15551/health").Content

The health endpoint's cluster.size is the configured number of members, not the number that the meta group counts. No command shows that number, so the Warning is the check.

Cluster Has No Meta Leader​

A cluster's Directors are listed by name. In a cluster without a witness, the meta group of a new cluster starts with every listed Director as a member, and when the first meta leader stops, the other Directors elect a new one, as long as a majority of the listed Directors still runs. Until the cluster's first change has taken effect, the election needs every listed Director but one. A cluster with a witness, and a store cluster, do not form this way.

Symptoms:

  • No Director of the cluster names a cluster.meta_leader in its health endpoint
  • A Director logs a Warning that a server is not in its list of the cluster's servers
  • A Director logs a Warning that it refused the vote of a term to another server

Every Director of a new cluster must start with the same list. A Director of a new cluster that hears from a Director outside its own list logs a Warning, at most once a minute. When the other Director asked for a vote:

The server with peer ID "<id>" is not in this server's list of the cluster's servers, and it asked for a vote. This server does not vote for it. Every server of a new cluster must start with the same list of servers.

When the other Director sent it entries:

The server with peer ID "<id>" is not in this server's list of the cluster's servers, and it sent this server entries of the meta group. Every server of a new cluster must start with the same list of servers.

A new cluster forms with one listed Director down. A cluster of 3 or 5 Directors forms while one listed Director is down. Its first change then waits 2 seconds, once, for the missing Director. A cluster of 5 does not form with 2 Directors down.

A refused vote. A Director that refuses its vote to another Director logs this Warning, once for each Director and term:

Refused the vote of term <T> to the server with peer ID "<id>". Its log ends at entry <N> of term <A>, and this server holds a committed entry of term <B> at that position. So that server lacks an entry that this group committed, and it must not lead. It takes the group's entries once another server leads.

It shows up after a Director that lost data, or whose clock was far ahead, comes back. Another Director leads, and the Director that was refused takes the cluster's data from it.

Long term numbers. The meta group of such a cluster takes its Raft term from the clock when it forms. The term is the number of milliseconds since 1970, a 13-digit number such as 1794550000000, in the logs and in the monitor's /raftz output. That is normal and not a fault.

Resolution Steps:

  1. Lists that differ - Fix the lists of the cluster's Directors so that they match.
  2. A listed Director that never started - Start every listed Director, or take it off the list. A listed Director that never starts still counts as a member. If another Director then loses its disk, the cluster has no meta leader until the missing Director starts, even with an empty disk. Nothing is lost while it waits.
  3. A cluster that was already stuck - On an earlier version, a new cluster whose first meta leader stopped right after the cluster formed could stay without a meta leader until that Director came back. Such a cluster stays stuck after the update, because its Directors already hold their membership. Start the first meta leader again.
  4. A refused vote - No action is needed when a meta leader is elected. If the Warning repeats and the cluster has no meta leader, collect the logs of every Director and contact support. See Escalation.

Escalation​

When standard troubleshooting procedures don't resolve issues:

  1. Gather Diagnostic Information

    • Collect relevant log files and error messages
    • Document system configuration and environment details
    • Note specific symptoms and reproduction steps
  2. Contact Support

    • Include Director version (vmetric-director -version)
    • Provide timeline of when issues first occurred
    tip

    Submit support tickets at support.virtualmetric.com. Include log excerpts and configuration snippets to expedite resolution.

  3. Emergency Escalation

    • For critical production issues, use emergency contact procedures
    • Follow your organization's incident management processes