Troubleshooting Non-Containerized Windows Deployments: A Practical Guide

    Non-containerized deployments on Windows place the application, vector search engine, relational database, plugin runtime, and local inference processes directly on the same host. This removes an orchestration layer and shortens the troubleshooting path, but it also exposes networking, environment variables, interpreter versions, and startup order directly to operators. When an all-in-one package or manual installation misbehaves, don't assume the whole bundle is broken—troubleshoot by failure layer instead. This guide covers common failure scenarios in order: model lists not appearing in the UI, vector engines failing to start on public-facing hosts, plugin environment initialization failures, runtime conflicts during database initialization, and errors when connecting to local inference services. For each, it explains the root cause, how to verify it, and how to close it out.

    Troubleshooting Non-Containerized Windows Deployments: A Practical Guide

    Non-containerized deployments put the application service, vector search engine, relational database, plugin runtime, and local inference processes directly on the same Windows host. This approach removes an orchestration layer and shortens the troubleshooting path, but it also exposes networking, environment variables, interpreter versions, and startup order directly to the operator. When an all-in-one package or manual installation misbehaves, don’t start by guessing that “the whole bundle is corrupted.” Instead, troubleshoot by failure layer: the UI shows no models, the vector engine won’t start on a public-facing host, plugin installation fails during environment initialization, database initialization reports a runtime conflict, or adding models fails even after the local inference service is up. This guide walks through these scenarios in order, covering causes, verification steps, and fixes.

    1. Establish Minimal Observability First

    Before touching any scripts, confirm three things. First, check whether each process is listening on its expected port—the application API, vector engine, and admin interface must not conflict with each other. Second, verify that the current working directory matches the directory containing the startup script; relative paths often behave differently when a script is double-clicked in File Explorer versus run from a command line. Third, determine whether environment variables only apply to the current window or are being overwritten by subsequent startup scripts. Many “my change didn’t take effect” issues are actually caused by editing an unused copy of the script, or by not restarting the relevant background process.

    Split the startup into individually executable steps: set variables, initialize the database, start the vector engine, start the application, start local inference. If a step fails, stop there and keep the window output. Don’t use a single monolithic script that swallows errors and only shows you the final page. Messages like “model list is empty” or “plugin initialization failed” on the page are often just downstream symptoms of an upstream process or network that isn’t ready.

    2. Model Plugin Shows an Empty Model List

    If a plugin is installed but the model list is empty, it’s usually not a rendering issue—the plugin failed to complete “provider discovery.” Common causes include: the plugin process didn’t read the correct service address, the discovery endpoint timed out, the response structure doesn’t match what the current plugin expects, or the plugin cached a previous failure. If the logs don’t yet reveal the specific error, don’t repeatedly uninstall and reinstall. Instead, get the chain working first with manual registration.

    When registering manually, verify four things: the protocol and host address point to loopback or an actually reachable address; the port matches the inference service’s listening port; the model name exactly matches the name loaded in the inference service, including case and namespace; and if the service requires authentication, the key is written in the plugin configuration, not only in system environment variables. After registration, validate with a minimal chat call for generation and a vector write for the embedding model. Seeing a name appear in a dropdown does not mean the call chain works.

    Manual registration solves “availability,” not “discovery logic.” Keep the plugin logs from the failure and compare whether the manual configuration and the automatic discovery use the same address. If discovery consistently returns nothing while manual configuration works reliably, treat the manual entry as the standard setup for the current version, and run a regression check before upgrading the plugin so a new version doesn’t overwrite a verified configuration.

    3. Vector Engine on a Public or Cross-Network Host

    When a vector engine starts in cluster mode, it advertises its reachable address to other nodes. On a development machine with only loopback, the default address often works. But once the host has multiple network interfaces, serves traffic through remote desktop or port forwarding, the engine may pick up the wrong interface address, or fail to resolve the expected public-side address at all—causing startup errors or nodes that can’t discover each other.

    The fix is to explicitly set the “cluster advertised address” rather than relying on automatic detection. Before startup, read the host’s IPv4 address from the system network configuration, select the interface actually used for external communication, write it into the advertised address variable, then start the engine with an explicit listening address and port. The listener can bind to all interfaces, but the advertised address must be one that clients or other nodes can connect back to. Don’t conflate the two: a listener that’s too narrow makes the node unreachable remotely, while a wrong advertised address makes cluster members look for the wrong machine.

    On multi-interface machines, naively grabbing the first IPv4 address may pick up a virtual adapter, Bluetooth, or a tunnel interface. A more reliable approach is to pin a known interface in the startup script, or have an administrator hard-code the address in a variables file, so every startup produces the same result. After changing this, restart the vector engine process—saving the script alone doesn’t affect the running instance. If a reverse proxy sits in front, the advertised address should be consistent with the proxy’s external hostname or address policy; otherwise health checks may pass while writes fail.

    The startup logic can stay short—the key is resolving the address first, then injecting it:

    1. Read the local IPv4 address used for external communication
    2. Set the cluster advertised address to that address
    3. Start the vector engine with the specified host, port, and plaintext or encrypted scheme
    4. If startup fails, stop at the current window and do not launch the application

    Never concatenate remote commands of unknown origin into the script. Addresses should only come from the local network configuration or a controlled variables file.

    4. Plugin Installation Fails During Environment Initialization

    Plugin installation often creates an isolated environment and installs dependencies. If the network can’t reach the default package index, initialization fails at the dependency resolution stage, and the UI shows only a vague environment initialization error. Distinguish between an unreachable index, certificate interception, and insufficient disk space or permissions—the first is the most common.

    Add a package index mirror address at the end of a shared variables script so all subsequent installations use a reachable mirror, then restart the background process so the new environment variable reaches the plugin installation process. Setting the variable only in a temporary window means it’s lost the next time the app is launched via a shortcut. Choose a mirror with stable connectivity and a clear sync policy with the official index; in corporate networks, administrators should distribute it centrally rather than letting each user write their own address.

    A mirror only solves “getting the packages”—it doesn’t resolve version constraint conflicts. If the error message clearly points to a specific dependency version, lock to the version range the plugin requires instead of endlessly switching mirrors. Also, corporate proxies may rewrite certificates; in that case, configure the trusted certificate into the runtime environment, or the mirror switch won’t help. After installation, spot-check that the plugin directory was created and the process reloaded, so the page doesn’t report success while the runtime is still using the old environment.

    5. Existing Interpreter Conflicts with the Bundled Runtime

    If the host already has another interpreter version, environment manager, or global script path installed, initializing the relational database may invoke the wrong executable. The typical symptom is that the initialization script, once inside the application directory, uses a system runtime instead of the bundled one—missing drivers, encoding support, or dynamic libraries—and initialization aborts.

    The fix is to explicitly activate the bundled environment after entering the application directory but before running initialization. The activation must happen within the same script process; it can’t rely on the user having manually opened a terminal beforehand. Use paths relative to the script’s location rather than machine-specific absolute paths, so the deployment stays portable.

    Initialization scripts usually declare “run once only.” Re-running may overwrite an existing data directory. So after modifying the activation logic, first check whether the data directory already exists: if this was a first-run failure and the database was never usable, back up the empty directory and re-run; if the database already contains business data, only fix the startup script and do not initialize again. The sign that environment activation succeeded is that the interpreter path in the current session points to the bundled directory, not the system-wide path. Verify with a command that only prints the path and version, then run the actual database creation step.

    6. Local Inference Service Connected but Adding Models Still Fails

    The local inference service is running, but adding a model on the application side fails. Troubleshoot in this order and don’t change multiple things at once.

    First, confirm the model name is exactly what has been pulled or loaded in the inference service—not an alias from a model marketplace. Then confirm the service address is loopback or the actual listening address, the port matches the inference service, and the protocol isn’t mistakenly set to HTTPS. Use a browser or a simple probe request against the service root path or model list endpoint to prove connectivity without going through the application plugin.

    If all of the above is correct and it still fails, suspect plugin incompatibility with the current inference API rather than a corrupted model. Roll the plugin back to a smaller, previously verified version and try adding the model again. Before rolling back, export the current plugin configuration; after rollback, restore only the address and model name—don’t copy back old caches. Version rollback is a compatibility tool: record the “working plugin version + inference service version” pair, and re-run the add-model and chat tests whenever either side is upgraded.

    Validate embedding models and chat models separately. If chat works but knowledge base indexing fails, the issue is usually the embedding endpoint path or a vector dimension mismatch—not the same “model addition” problem.

    7. Turn Temporary Fixes into Operating Standards

    The fixes above—manually registering models, hard-coding the advertised address, specifying a package index, activating the bundled runtime, locking plugin versions—are environment constraints, not one-off tricks. Manage them centrally in a variables script: advertised address, package index, data directory, inference service address. Fix the startup order: database first, then vector engine, then application, then verify the inference service. If any step fails, don’t proceed to the next.

    In a change window, modify only one thing and keep a copy of the script. When exposing services publicly, tighten both the listening scope and access control at the same time—a correct advertised address doesn’t mean the admin port should be open to the whole internet. Keep at least three sets of logs: plugin initialization, database initialization, and vector engine startup, so the next “list is empty” can be traced back to a concrete upstream error.

    Following this order, most non-containerized Windows deployments can be restored to a state where models can be registered manually, the vector engine advertises correctly, plugins finish installing dependencies, the database uses the bundled runtime, and local inference connects through a pinned plugin version. For future upgrades, run the same checklist as a regression instead of digging through scripts after a failure recurs.