Skip to content

Debug a Windows problem

Most Windows problems show up during setup or the first start. Work through these steps in order. They take you from a report to a fix you've proved on a Windows runner.

This page uses the words defined in Windows desktop: profile, background service, private computer, and runtime pack.

flowchart TD
  report[Startup log and bug report]:::accent --> step[Find the step and the code]
  step --> known{{Known cause?}}
  known -- yes --> fix[Fix the cause]
  known -- no --> repro[Reproduce it on a runner]
  repro --> fix
  fix --> prove[Prove it on a runner]:::go
  1. Get the startup log and the bug report.

    When setup fails, the error screen offers Show startup log and Report bug. Ask the user for both. The log is %APPDATA%\nod\profiles\local\logs\startup.log. The bug report carries the failed step, the error code, the exit code, and the WSL code, but not the log itself.

    In the log, these lines show how far Nod got:

    Line Means
    Database opened. or Database failed. The database opened, or why it didn't
    Background service step: <step> The background service reached that step
    Local runtime prepared. or Local runtime failed. The private computer is ready, or why it isn't
  2. Find the step that failed.

    The bug report names the step. The log shows the background service's steps by name. For the private computer, it shows the last progress message instead.

    Step Progress message in the log What Nod was doing
    None Database failed. with a NOD_DATABASE_ code Opening the database, before every other step
    wsl None Checking WSL and finding the private computer
    profile None Locking the profile folder
    assets None Checking the runtime pack and free space
    download Downloading your private computer… Downloading the runtime pack
    extract, import, update Installing your private computer… Installing or updating the private computer
    start Starting your private computer… Starting the private computer
    storage, workspace, browser A Preparing message, such as Preparing your workspace… Starting Docker and the containers
    loading to listening Background service step: <step> Starting the background service
  3. Match the code to a known cause.

    You see Likely cause What to check
    NOD_WSL_REQUIRED, and the screen offers Install WSL WSL is missing, turned off, or out of date, or wsl.exe failed. The end of the message, which holds the Windows error. Whether the user can approve an administrator request.
    Exit code 4294967295 with a WSL code, such as E_ACCESSDENIED WSL works but refused this action, so Nod doesn't offer Install WSL. The WSL code. It comes from the Wsl/…/<code> text that wsl.exe printed.
    A small exit code, such as 1 A command inside the private computer, Docker, or a PowerShell step failed. The end of the message. It holds the last 300 characters the command printed.
    NOD_COMPUTER_STORAGE_FULL The drive doesn't have room for the private computer during first setup. Later, a full drive shows the same message without the code. Free space on the drive that holds the profile, or the folder the user chose.
    NOD_DATABASE_SETUP_FAILED with exit code 3221225781 initdb.exe couldn't find a DLL from the Visual C++ runtime. Nod 0.10.3 and earlier don't include it. Whether the PC has the Visual C++ runtime. On later versions, whether the app's resources\engine\postgres\bin has vcruntime140.dll.
    Nod’s background service did not respond. The service didn't reach its next step in time. It gets 10 minutes for loading, then two minutes for each later step. Defender scanning slows the first start after an install or update. Last startup step: in the log, and whether Try again works.
    Nod’s background service stopped before it was ready, with a code The service crashed while it started. The log lines just before Engine exited with code.

    Windows exit codes are shown as unsigned numbers. To look one up, convert it to hexadecimal: 3221225781 is 0xC0000135, a missing DLL.

  4. Reproduce it on a runner.

    If the cause isn't clear, reproduce it on a windows-2025 runner:

    • Install the version the user had. Release tags look like nod-v0.10.2.
    • Recreate what's different about their PC. Runners run every process elevated and don't scan files, so rule those two out first.
    • Keep the startup log.

    See Try something on a probe branch and Make the runner behave like a real computer.

  5. Fix the cause, then prove it.

    Fix the cause in the one place every case passes through, not one report at a time. Then start CI on your branch. The Windows first setup, update and next start job installs the latest release, updates it to your build, and starts it again. See Run CI on your branch.

    CI runs elevated. If your fix depends on something CI doesn't recreate, such as a user without elevation, prove it in a probe too. In the pull request, report what you saw as counts, such as "setup finished in three of three runs", not "fixed".

  • Runners run everything elevated. Real PCs don't. On a real PC, Nod runs without elevation, even for administrators. Locking the profile once failed on every launch after the first, because it needed a privilege only elevated processes have. CI missed it until the check dropped those privileges.
  • Runners don't scan files. With Defender scanning on, an idle runner took 56 to 85 seconds to load the background service, instead of 11. A fixed two-minute wait failed on slower PCs, so Nod now waits up to 10 minutes for loading.
  • PostgreSQL refuses some settings on Windows. It rejects client_connection_check_interval, so every chat turn failed in Nod 0.10.1 and 0.10.2. The Windows check now runs the same kind of stoppable transaction a chat turn uses, not only setup.
  • A detached PowerShell started by Nod exits before it runs. Start PowerShell without detached: true, and let it call Start-Process. Until this was fixed, Windows updates never installed.