You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Found and resolved a production issue where 72,172 executions were displaying as errors in the UI default view, but showed correct statuses when date filters were applied. Investigation revealed that executions with status='error' had finished=false despite having valid stoppedAt timestamps.
Environment
n8n Version: 1.94.1
Database: PostgreSQL 15
Deployment: Docker
Affected Period: April 30, 2025 - May 29, 2025
Problem Details
Symptoms
Execution history page shows all executions as errors when no filters applied
Applying date filters shows correct mix of success/error statuses
Database contains correct execution data with valid timestamps
Root Cause
Database records had inconsistent state:
-- 72,172 executions found with this condition:
status ='error'AND finished = false AND"stoppedAt"IS NOT NULL
Investigation Findings
Issue started April 30, 2025 (first occurrence: 2025-04-30 20:48:52.035+00)
Primarily affected webhook-triggered workflows
Application logs show n8n intentionally saving with finished=false:
Save execution data to database for execution ID 1113281
{"finished":false,"stoppedAt":"2025-05-29T23:52:17.081Z"}
Most Affected Workflows
"3️⃣ real-time transcript -> G Docs" - 49,134 errors
"2️⃣ meeting bot webhook" - 8,846 errors
"(4am) new ticket" - 4,539 errors
Related Issues
This appears related to #15293 which I filed on May 12, 2025. Both issues:
Affect execution history display
Work correctly when date filters are applied
Started around the same time (late April 2025)
Suggest a common underlying issue with execution history queries
Temporary Resolution
Fixed by updating database:
UPDATE execution_entity
SET finished = true
WHERE status ='error'AND finished = false
AND"stoppedAt"IS NOT NULL;
-- Updated 72,172 records
Expected Behavior
Executions with error status and valid stoppedAt timestamps should have finished=true.
Actual Behavior
Error executions are saved with finished=false despite being completed, causing UI to filter them incorrectly.
Reproduction Steps
Monitor execution_entity table for executions where status='error' AND finished=false AND stoppedAt IS NOT NULL
These executions will appear as errors in default UI view
Apply date filter to see correct statuses
Remove filter to see all as errors again
Additional Context
This issue, combined with #15293, suggests that an n8n update around April 30, 2025 introduced multiple bugs in the execution history system. The unfiltered query path appears to have different behavior than filtered queries, leading to various display issues.
The text was updated successfully, but these errors were encountered:
Description
Found and resolved a production issue where 72,172 executions were displaying as errors in the UI default view, but showed correct statuses when date filters were applied. Investigation revealed that executions with
status='error'
hadfinished=false
despite having validstoppedAt
timestamps.Environment
Problem Details
Symptoms
Root Cause
Database records had inconsistent state:
Investigation Findings
finished=false
:Most Affected Workflows
Related Issues
This appears related to #15293 which I filed on May 12, 2025. Both issues:
Temporary Resolution
Fixed by updating database:
Expected Behavior
Executions with error status and valid stoppedAt timestamps should have
finished=true
.Actual Behavior
Error executions are saved with
finished=false
despite being completed, causing UI to filter them incorrectly.Reproduction Steps
status='error' AND finished=false AND stoppedAt IS NOT NULL
Additional Context
This issue, combined with #15293, suggests that an n8n update around April 30, 2025 introduced multiple bugs in the execution history system. The unfiltered query path appears to have different behavior than filtered queries, leading to various display issues.
The text was updated successfully, but these errors were encountered: