This guide covers the most common problems encountered when setting up or running the Local AI Environment on Windows 11.
For each problem: check the Symptom to confirm it matches your situation, then follow the Solution steps.
Before investigating any issue, check the relevant logs:
Script logs — .\logs\<ScriptName>_<timestamp>.log
Each script creates a timestamped log file. Example: logs\03-Install-OpenWebUI_20260906-143022.log
Open-WebUI logs — printed to the terminal where open-webui serve is running.
If you used Start-OpenWebUI.ps1, the output appears in that PowerShell window.
$env:LOCALAPPDATA\Ollama\ollama.log
notepad "$env:LOCALAPPDATA\Ollama\ollama.log"
.\reports\validation-report.md
Run .\scripts\07-Validate-Environment.ps1 at any time to get a current health summary.Symptom:
.\scripts\00-System-Check.ps1 : File ... cannot be loaded because running scripts is
disabled on this system.
Cause: Windows defaults to a restrictive execution policy that blocks local scripts.
Solution:
# Run in PowerShell (no Administrator needed for CurrentUser scope)
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
# Verify
Get-ExecutionPolicy -Scope CurrentUser
# Should print: RemoteSigned
If you need it system-wide (all users), open PowerShell as Administrator and run:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachine
Symptom:
open-webui : The term 'open-webui' is not recognized as the name of a cmdlet, function,
script file, or operable program.
Cause: pip installs scripts into a Scripts directory that is not in your system PATH. This is a common Windows Python issue.
Solution:
Step 1 — Find the correct Scripts directory:
python -c "import sys; print(sys.prefix + r'\Scripts')"
# Example output: C:\Users\YourName\AppData\Local\Programs\Python\Python312\Scripts
Step 2 — Add it to your user PATH:
Win + R, type sysdm.cpl, press EnterStep 3 — Open a new PowerShell window (PATH changes don’t apply to existing windows):
open-webui --version
Alternative: Run Open-WebUI without PATH fix:
python -m open_webui serve --port 3000
Symptom:
ollama : The term 'ollama' is not recognized...
Cause: Ollama was just installed and the PATH change has not taken effect in the current terminal session, or Ollama was installed per-user and its directory is not in PATH.
Solution:
Step 1 — Close and reopen PowerShell. Most of the time, this is sufficient.
Step 2 — If still not found, check the default install location:
$ollamaPath = "$env:LOCALAPPDATA\Programs\Ollama"
Test-Path $ollamaPath
# If True, add to PATH:
[System.Environment]::SetEnvironmentVariable(
"Path",
"$([System.Environment]::GetEnvironmentVariable('Path','User'));$ollamaPath",
"User"
)
Step 3 — Open a new terminal and verify:
ollama --version
Symptom:
07-Validate-Environment.ps1 reports ❌ FAIL for Ollama APITest-NetConnection localhost 11434 returns TcpTestSucceeded: FalseCause: The Ollama service is not running. Ollama auto-starts with Windows after the first reboot post-install, but may not have started yet after initial installation.
Solution:
Option A — Use the system tray icon:
Option B — Start Ollama manually from terminal:
# Run in a separate terminal window (this is a blocking process)
ollama serve
Option C — Check if Ollama Windows service exists:
Get-Service ollama -ErrorAction SilentlyContinue
Start-Service ollama
After starting Ollama, wait ~5 seconds and verify:
Invoke-RestMethod http://localhost:11434
# Expected: "Ollama is running"
Symptom: Open-WebUI loads in the browser at http://localhost:3000, but the model selector is empty or shows “Connection Error” when trying to chat.
Cause: OLLAMA_BASE_URL environment variable is missing or incorrect, or Ollama is not running.
Solution:
Step 1 — Verify Ollama is running:
Invoke-RestMethod http://localhost:11434
# Should return: "Ollama is running"
Step 2 — Check the environment variable:
[System.Environment]::GetEnvironmentVariable("OLLAMA_BASE_URL", "User")
# Should return: http://localhost:11434
Step 3 — Set it if missing:
[System.Environment]::SetEnvironmentVariable("OLLAMA_BASE_URL", "http://localhost:11434", "User")
Step 4 — Restart Open-WebUI (the new env var only takes effect for new processes):
# Stop existing Open-WebUI process
Get-Process -Name "open-webui","uvicorn","python" -ErrorAction SilentlyContinue |
Where-Object { $_.CommandLine -like "*open_webui*" } |
Stop-Process -Force
# Start again
.\Start-OpenWebUI.ps1
Step 5 — Re-run the configuration script:
.\scripts\06-Configure-OpenWebUI.ps1
Symptom:
ollama pull <model> shows very low speed or stopsCause A: Slow internet connection (models are 1–10 GB).
Cause B: Insufficient disk space.
Cause C: Temporary server-side issue with Ollama’s model registry.
Solution for Cause A: Be patient. Ollama resumes partial downloads automatically:
# Just re-run the pull — it will continue from where it stopped
ollama pull qwen2.5:7b
Solution for Cause B — Check disk space:
Get-PSDrive C | Select-Object Name, Used, Free
# Free should be at least 10 GB
Free space by removing large files, or choose a smaller model:
ollama pull qwen2.5:0.5b # Only ~400 MB
Solution for Cause C: Wait a few minutes and retry.
Symptom: Machine becomes unresponsive after starting a model. High RAM/swap usage in Task Manager. Fan noise. Model response is extremely slow or system locks up.
Cause: The selected model requires more RAM than available. Ollama loads the full model into memory (or VRAM) at inference time.
Solution:
Step 1 — Check available RAM:
$mem = Get-CimInstance Win32_OperatingSystem
"Free: $([math]::Round($mem.FreePhysicalMemory / 1MB, 1)) GB of $([math]::Round($mem.TotalVisibleMemorySize / 1MB, 1)) GB"
Step 2 — Remove the oversized model:
ollama rm qwen2.5:7b # Replace with your model name
Step 3 — Install a smaller model:
ollama pull qwen2.5:1.5b # ~1 GB, runs on 4 GB RAM
ollama pull phi4-mini # ~2.5 GB, very capable for its size
Step 4 — Re-run model configuration:
.\scripts\05-Configure-Local-LLM.ps1
Symptom: Inference is very slow (1-2 tokens/second). Ollama output or logs say “using CPU” or GPU utilization stays at 0%.
Cause: GPU drivers missing or incompatible, or GPU VRAM is insufficient for the model.
Solution for NVIDIA GPUs:
nvidia-smi (should show GPU utilization table)ollama serve) — it will auto-detect CUDA on next startSolution for AMD GPUs:
Verify GPU is being used:
# Watch GPU memory usage in Task Manager → Performance → GPU
# Or with PowerShell:
(Get-CimInstance Win32_VideoController | Select-Object -First 1).AdapterRAM / 1GB
Note: If model size > GPU VRAM, Ollama will use CPU+RAM as fallback. This is expected behavior, not an error.
Symptom: 01-Docker-Audit.ps1 or 07-Validate-Environment.ps1 shows Docker as WARNING.
Cause: Docker Desktop is not installed or not running. Docker is optional for Phase 1.
Solution: Docker is not needed for the AI stack (Open-WebUI + Ollama). The WARNING is expected and can be ignored until Phase 2 (n8n deployment).
If you want Docker running:
docker ps should return an empty table (not an error)Symptom:
ERROR: Python 3.11 or newer is required. Found: 3.9.x
Or pip install open-webui fails with package compatibility errors.
Cause: An older Python version is installed.
Solution:
Step 1 — Check all installed Python versions:
py --list-paths # Python Launcher (Windows)
# Or:
where python
Step 2 — Install Python 3.11+:
py -3.12 --version # Use explicit version
py -3.12 -m pip install open-webui
Step 3 — Verify:
python --version # Should show 3.11.x or higher
Symptom:
pip : The term 'pip' is not recognized...
Or:
ERROR: Could not find a version that satisfies the requirement open-webui
Cause: pip is not installed, or the Scripts directory is not in PATH.
Solution:
Step 1 — Bootstrap pip:
python -m ensurepip --upgrade
python -m pip install --upgrade pip
Step 2 — Use python -m pip instead of bare pip:
python -m pip install open-webui
Step 3 — If pip is found but install fails, check for proxy or certificate issues:
python -m pip install open-webui --trusted-host pypi.org --trusted-host files.pythonhosted.org
Symptom:
ERROR: Address already in use: 0.0.0.0:3000
Or Open-WebUI / Ollama fails to start silently.
Cause: Another application is using the same port. Common culprits: a previous crashed instance, another web server, or a development tool.
Solution:
Step 1 — Find what is using the port:
# Replace 3000 with 11434 for Ollama
netstat -ano | findstr :3000
# Note the PID in the last column (e.g., 12345)
# Identify the process
Get-Process -Id 12345
Step 2 — Stop the conflicting process:
Stop-Process -Id 12345 -Force
Step 3 — If you cannot stop it, use an alternate port for Open-WebUI:
# Start on port 3001 instead
open-webui serve --port 3001
# Then access at http://localhost:3001
Update config/environment.psd1 to change the default:
OpenWebUIPort = 3001
Symptom:
Access to the path 'C:\...' is denied.
Or installer scripts fail partway through.
Cause: Some operations (installing system-wide software, writing to protected paths) require Administrator privileges.
Solution:
Step 1 — Open PowerShell as Administrator:
Win + Xcd C:\Local-AI-EnvironmentScripts that may need Administrator:
03-Install-OpenWebUI.ps1 — pip install (usually not needed for user-scope Python)04-Install-Ollama.ps1 — winget install or .exe installerScripts that do NOT need Administrator:
00-System-Check.ps1 — read-only01-Docker-Audit.ps1 — read-only06-Configure-OpenWebUI.ps1 — sets user-scope env variable07-Validate-Environment.ps1 — read-onlyNote: If pip was installed per-user (default on Windows), pip install open-webui does NOT require Administrator. Running as Admin may install to a different Python environment than your user Python — this can cause the open-webui command to not be found in your normal terminal. Prefer running pip install as your normal user.