Download:

Troubleshooting Guide

Cross-guide index of all known issues -- each entry links directly to the embedded resolution in the relevant guide. Includes a Diagnostic Quick Reference at the bottom.

How to Use This Page

Each issue below is documented in full inside the guide where it is most contextually relevant. Click the -> Go to resolution link to jump to the step-by-step fix. The Diagnostic Quick Reference at the bottom of this page is useful for initial triage when you don't yet know which category an error falls into.

ℹ️
Can't find your issue?
Enable Debug Mode (Admin Panel -> top nav bar -> Debug toggle) for verbose logs, then email support@flowsquad.ai with your FlowSquad version, the exact error message, and the last 50 lines of your log file.

Installation Issues

SymptomLikely CauseResolution
Windows: FlowSquad.exe does nothing or exits immediately Port 5000 already in use, or missing dependencies -> Install Guide -- Troubleshooting
Docker: container shows "Exited (1)" immediately after start Volume permission issue or bad DATABASE_URL -> Install Guide -- Troubleshooting
SSL / TLS browser warning ("Not Secure" or NET::ERR_CERT_AUTHORITY_INVALID) Self-signed certificate or expired Let's Encrypt certificate -> Install Guide -- Troubleshooting
WebSocket connection failing; real-time features not working Nginx not forwarding Upgrade / Connection headers -> Install Guide -- Troubleshooting
Linux: systemd service fails to start Binary not executable, data directory permissions, or missing dependencies -> Install Guide -- Linux Installer

Database Connection Problems

SymptomLikely CauseResolution
PostgreSQL: could not connect to server: Connection refused PostgreSQL service not running, wrong port, or firewall blocking connection -> Setup Guide -- Troubleshooting
MySQL: Access denied for user 'flowsquad'@'localhost' Incorrect password or user lacks permissions -> Setup Guide -- Troubleshooting
OperationalError: database is locked Using SQLite under concurrent write load -- not supported for multi-user use Migrate to PostgreSQL or MySQL. See Setup Guide -- Step 1
Docker: could not translate host name "postgres" to address Service name in DATABASE_URL doesn't match the docker-compose service name -> Install Guide -- Docker Troubleshooting
Slow queries; product list takes 10+ seconds to load Missing database indexes or PostgreSQL misconfiguration -> Admin Guide -- Performance Troubleshooting

Setup Wizard Issues

SymptomLikely CauseResolution
Setup Wizard does not appear on first load Previous partial setup or wizard in intermediate state -> Setup Guide -- Troubleshooting
Database Test Connection fails in Step 1 Service not running, firewall, or wrong credentials -> Setup Guide -- Troubleshooting
LLM "Invalid API Key" (401) in Step 3 API key invalid, expired, or has leading/trailing spaces -> Setup Guide -- Troubleshooting
License "Machine ID Mismatch" in Step 8 FLOWSQUAD_CLUSTER_ID not set correctly for Docker/Kubernetes -> Setup Guide -- Troubleshooting

Authentication Failures

SymptomLikely CauseResolution
LDAP: correct password still returns "Invalid credentials" Wrong Bind DN format, expired service account password, or LDAPS cert not trusted -> Setup Guide -- LDAP Troubleshooting
SAML / OAuth2: clicking “Login with SAML” or “Login with Keycloak” gives a 404 on the IdP URL The reverse proxy (nginx or IIS ARR) is rewriting the Location header of FlowSquad’s 302 redirect, replacing the IdP hostname with the FlowSquad hostname. The browser follows the rewritten redirect back to FlowSquad, which has no /realms/... route. nginx: add proxy_redirect off; inside the location / block — see Reference Guide — nginx.
IIS ARR: (1) in IIS Manager → server node → Application Request Routing Cache → Server Proxy Settings → uncheck “Reverse rewrite host in response headers” → Apply; (2) add the FlowSquad-PreserveIdPLocation outbound rule to web.config — see Reference Guide — IIS.
SAML: "Invalid SAML response" or "Signature validation failed" SP Entity ID mismatch, SP certificate not imported in IdP, or wrong attribute mapping -> Setup Guide — SAML Troubleshooting • Reference Guide — Keycloak SAML
SAML: [Errno 2] No such file or directory: …onelogin\saml2\schemas\saml-schema-protocol-2.0.xsd Running a build older than v1.1 where the onelogin package XML schema files were not bundled into the installer. The frozen executable cannot find the schema files it needs to validate the SAML response. Upgrade to the latest FlowSquad build. The fix is in all three installer specs (collect_all('onelogin')) and the custom_base_path passed to OneLogin_Saml2_Auth.
OAuth2: SSLError: certificate verify failed: self-signed certificate The Identity Provider (Keycloak, Okta, etc.) is using a self-signed TLS certificate. FlowSquad verifies SSL by default when calling the token and userinfo endpoints. In Setup Wizard → Step 4 → OAuth2, uncheck “Verify SSL certificate when connecting to Identity Provider” and save. Only do this in non-production environments; the correct long-term fix is to install a CA-signed certificate on the IdP.
OAuth2: "Invalid client ID" or "Unauthorized client" Wrong Client ID/Secret, redirect URI mismatch, or Azure admin consent not granted -> Setup Guide -- OAuth2 Troubleshooting
SAML: Keycloak redirect loop SP Entity ID / ACS URL port mismatch between Keycloak and FlowSquad -> Reference Guide — Keycloak SAML Troubleshooting

LLM API Errors

SymptomLikely CauseResolution
OpenAI 429 "Rate limit exceeded" Tier 1 account limits (3 RPM) or token budget exhausted -> Admin Guide -- Performance / LLM
Anthropic 401 "Invalid API key" Key expired, wrong workspace, or billing inactive -> Admin Guide -- LLM Configuration
GitHub Models "Free tier limit exceeded" 15 RPM / 150 RPD free tier exhausted -> Admin Guide -- LLM Configuration
Generation returns empty or partial output LLM returned incomplete response; no session context loaded -> User Guide -- Troubleshooting

SSL / TLS Certificate Issues

SymptomLikely CauseResolution
Browser "Your connection is not private" (NET::ERR_CERT_AUTHORITY_INVALID) Self-signed certificate not trusted by browser -> Install Guide -- Security / TLS
Certificate expired (NET::ERR_CERT_DATE_INVALID) Let's Encrypt auto-renewal failed, or commercial certificate not renewed -> Install Guide -- Security / TLS
Certificate chain incomplete -- some browsers show warning Intermediate CA certificate not concatenated into full-chain PEM -> Install Guide -- Deployment Models

Performance Problems

SymptomLikely CauseResolution
Requirement refinement takes 30+ seconds Using GPT-4o for high-volume operations; long input; high LLM latency -> Admin Guide -- Performance Troubleshooting
Product list or dashboard loads slowly (10+ seconds) Missing PostgreSQL indexes or insufficient connection pool size -> Admin Guide -- Performance Troubleshooting

Integration Failures

SymptomLikely CauseResolution
Jira Push -> 401 Unauthorized Jira API token expired or wrong email used -> User Guide -- Troubleshooting
GitHub "Repository not found" for private repo PAT missing repo scope or org SSO not authorized -> User Guide -- Troubleshooting
Confluence URL shows as blank in Analyze tab Settings tested before being saved -> Integration Guide -- Confluence
Webhook events not being delivered Endpoint URL unreachable or HMAC secret mismatch -> Integration Guide -- Webhooks

Docker-Specific Issues

SymptomLikely CauseResolution
PermissionError: [Errno 13] Permission denied: '/data/logs/flowsquad.log' Volume owned by root instead of container user (UID 1000) -> Install Guide -- Docker Troubleshooting
Cannot connect to PostgreSQL on postgres:5432 DB service not started or service name mismatch in DATABASE_URL -> Install Guide -- Docker Troubleshooting

License Issues

SymptomLikely CauseResolution
Red banner: "License expired on [date]" License validity date has passed -> Admin Guide -- License Upload Errors
Upload error: "Invalid signature" License file corrupted or tampered -> Admin Guide -- License Upload Errors
Upload error: "Machine ID mismatch" License issued for a different machine or cluster ID -> Admin Guide -- License Upload Errors

Tab & UI Behavior

SymptomLikely CauseResolution
Generation returns empty results or spinner never stops No codebase loaded, no session context, or LLM rate-limited -> User Guide -- Troubleshooting
Quality Score tab returns error immediately No codebase loaded in Analyze tab -> User Guide -- Analyze Tab
AskProduct: "no knowledge sources found" No codebase or documents loaded for this product -> User Guide -- Analyze Tab
Session artifacts lost after page refresh Session data is in-memory only; page refresh clears unsaved session -> User Guide -- Session Data Lost
Confluence URL blank in Analyze tab even after configuring Confluence settings were tested before being saved -> Integration Guide -- Confluence
Design tab "Load from Database" does not populate session Browser cached old scripts after an upgrade Hard-reload: Ctrl+Shift+R (Windows/Linux) or Cmd+Shift+R (Mac)
Session shows { original_text, refined_text } as raw JSON Artifact saved in old format from a previous version Re-open Refine tab -> load from DB -> Save to Session again
Product Admin cannot see the Analyze tab Admin assignment registered by old version; needs re-save Admin Panel -> Products -> Edit -> re-save the admin list

Diagnostic Quick Reference

Log File Locations

Deployment TypeLog Location / Command
Windows Portable / Installer%LOCALAPPDATA%\FlowSquad\logs\flowsquad.log
Windows ServiceC:\Program Files\FlowSquad\logs\flowsquad.log
Linux (systemd)sudo journalctl -u flowsquad -f
Linux (Nginx access)/var/log/nginx/flowsquad-access.log
Linux (Nginx errors)/var/log/nginx/flowsquad-error.log
Dockerdocker compose logs -f flowsquad

Enabling Debug Mode

Global Admins see a Debug toggle in the top navigation bar. Click it to enable verbose logging -- the indicator turns green when active. Debug logs include detailed API call timing, LLM request/response summaries, and database query information.

⚠️
Production Warning -- Debug mode exposes sensitive request details in logs. Enable only during active troubleshooting and disable immediately afterwards.

Quick Health Checks

CheckWhere
LLM provider connectivityAdmin Panel -> LLM Configuration -> Test button next to each provider
Database connection statusAdmin Panel -> Database Settings -> Connection Status
License validity and expiryAdmin Panel -> License Management
Active user sessionsAdmin Panel -> Analytics -> Active Users
Audit log for suspicious activityAdmin Panel -> Audit Logs -> filter by severity: Warning / Error

Common Error Strings -> Root Cause Map

Error String (in logs or UI)Root CauseWhere to Fix
License validation failed: Machine ID does not matchServer migrated or wrong cluster IDAdmin Guide
could not connect to server: Connection refusedPostgreSQL not running or wrong portSetup Guide
LDAP bind failedWrong Bind DN, expired service account, or LDAPS cert untrustedSetup Guide
Invalid SAML response / Signature validation failedSP Entity ID mismatch or SP cert not imported in IdPSetup Guide
Rate limit exceeded (429)OpenAI / GitHub Models free tier or Tier 1 limitsAdmin Guide -- LLM Config
Authentication error: Invalid API key (401 -- Anthropic)API key expired or wrong workspaceAdmin Guide -- LLM Config
PermissionError: [Errno 13] Permission denied (Docker)Volume owned by root; container user (1000) cannot writeInstall Guide
Jira API call failed: 401 UnauthorizedJira API token expired or wrong Jira type (Cloud vs. Server)User Guide

Contacting Support

Email support@flowsquad.ai and include:

  1. FlowSquad version (Admin Panel -> License Management)
  2. Exact error message text (copy from the UI or log)
  3. Log file excerpt -- last 50 lines from the log file location above
  4. Deployment type: Windows / Linux / Docker / Kubernetes
  5. Steps to reproduce the issue

Response times: 24 hours (Enterprise), 7 days (Evaluation).