Docker Issues
502 Bad Gateway Errors
502 Bad Gateway Errors
Symptoms:Alternative hostnames:
n8n_health_checkreturns 502 error- All n8n management API calls fail
- n8n web UI is accessible but API is not
Solutions
When n8n runs in Docker on same machine
Use Docker’s special hostnames:host.docker.internal(Docker Desktop on macOS/Windows)172.17.0.1(Default Docker bridge IP on Linux)- Your machine’s IP address (e.g.,
192.168.1.100)
When both containers are in same Docker network
For Docker Compose
Container Cleanup Issues
Container Cleanup Issues
Symptoms:Manual cleanup:
- Containers accumulate after Claude Desktop restarts
- Containers show as “unhealthy”
--rmflag doesn’t work as expected
--init flag:Webhooks to Local n8n Fail
Webhooks to Local n8n Fail
Symptoms:Security Modes:
n8n_test_workflowfails with “SSRF protection” error- Error: “Localhost access is blocked”
strict(default): Blocks localhost + private IPs (production)moderate: Allows localhost, blocks private IPs (local dev)permissive: Allows localhost + private IPs (testing only)
Custom Database Path Not Working
Custom Database Path Not Working
Symptoms:
NODE_DB_PATHenvironment variable ignored- Database always at
/app/data/nodes.db
.db:Docker Configuration File Issues
Docker Configuration File Issues
Symptoms:
- Config file mounted but variables not set
- “Permission denied” errors
- Mount correctly:
- Validate JSON:
- Check logs:
- Common issues:
- Invalid JSON syntax
- Wrong mount path (must be
/app/config.json) - File not readable
- Dangerous variables blocked (PATH, LD_PRELOAD)
Workflow Validation Issues
fixedCollection Errors
fixedCollection Errors
Error: Solution: Validation provides auto-fix:
propertyValues[itemName] is not iterableCause: Incorrect fixedCollection structure (object instead of array)Example:Bad
Good
Invalid Resource/Operation
Invalid Resource/Operation
Error: Invalid resource or operation valueCause: Typo or incorrect value for node’s resource/operationSolution: Validation suggests similar values:
Missing Required Fields
Missing Required Fields
Error: Required property missingCause: Configuration incomplete for the operationSolution:
- Use
mode: 'minimal'to quickly check required fields:
- Get operation details:
- Use full validation for guidance:
Type Mismatch Errors
Type Mismatch Errors
Error: Invalid type for propertyExamples:Solution: Check property type in node details:
Bad
Good
Connection Issues
Wrong Connection Syntax
Wrong Connection Syntax
Error: Source node not found or connection failsCause: Incorrect connection syntax for Correct format:
addConnectionWrong formats:Object Format (fails)
Combined String (fails)
Four String Parameters
IF Node Routing Issues
IF Node Routing Issues
Problem: Both branches connect to wrong outputsSolution: Use
branch parameter:Circular Dependencies
Circular Dependencies
Error: Connection would create a loopCause: Attempting to create a connection that loops backSolution:
- Redesign workflow to eliminate loop
- Use Split in Batches node for iteration
- Consider using separate workflows connected by webhooks
AI Agent Issues
Missing Language Model
Missing Language Model
Error: AI Agent missing language model connectionSolution:
Tool Not Accessible
Tool Not Accessible
Error: Tool node not connected to agentSolution:
Streaming Conflicts
Streaming Conflicts
Warning: Streaming incompatible with output parserSolution:
- Disable streaming in language model:
streaming: false - OR remove output parser if streaming is required
Template Issues
Template Validation Fails
Template Validation Fails
Issue: Template doesn’t work with current n8n versionSolution:
- Validate template:
- Fix issues from validation
- Use auto-fix deployment:
Missing Template Attribution
Missing Template Attribution
Requirement: Templates must include author creditSolution:Always provide:
Performance Issues
Validation Too Slow
Validation Too Slow
Problem: Full validation takes too longSolution: Use progressive validation:
Too Many Tool Calls
Too Many Tool Calls
Problem: Excessive serial tool callsSolution: Execute independent operations in parallel:
Large Workflow Updates
Large Workflow Updates
Problem: Full workflow updates use too many tokensSolution: Use diff operations:80-90% token reduction vs full updates.
Debugging Steps
Platform-Specific Notes
Docker Desktop (macOS/Windows)
host.docker.internalworks out of the box- Ensure Docker Desktop is running
- Check Docker Desktop → Settings → Resources → Network
Linux
host.docker.internalrequires Docker 20.10+- Alternative: Use
--add-host=host.docker.internal:host-gateway - Or use Docker bridge IP:
172.17.0.1
Windows with WSL2
- Use
host.docker.internalor WSL2 IP - Check firewall rules for port 5678
- Ensure n8n binds to
0.0.0.0not127.0.0.1
Getting Help
GitHub Issues
Report bugs and request features
Discussions
Ask questions and share solutions
Documentation
Complete n8n-MCP documentation
Docker Guide
Detailed Docker troubleshooting
Useful Commands
Cleanup
Test API
Debug Session
Network Check
Next Steps
Building Workflows
Learn the complete workflow building process
Validation Strategies
Understand validation modes and profiles
Batch Operations
Efficient workflow updates
AI Agent Workflows
Building AI Agent workflows