Troubleshooting Guide
This guide covers common issues and solutions for all DataFlood Suite components.
General Issues
.NET Runtime Issues
Problem: "dotnet: command not found"
Solution:
- Install .NET 9.0 SDK from Microsoft
- Verify installation:
dotnet --version
- Ensure PATH includes dotnet:
# Linux/macOS export PATH=$PATH:/usr/local/share/dotnet # Windows # Add to System PATH via Environment Variables
Problem: "The framework 'Microsoft.NETCore.App', version '9.0.0' was not found"
Solution:
- Update to .NET 9.0:
# Check current version dotnet --list-runtimes # Install .NET 9.0 # Download from Microsoft website
File and Permission Issues
Problem: "Access to the path is denied"
Solution:
- Check file permissions:
# Linux/macOS ls -la filename chmod 644 filename # For read/write # Windows # Right-click → Properties → Security
- Run with appropriate permissions
- Ensure output directory exists and is writable
Problem: "File not found" when file exists
Solution:
- Use absolute paths instead of relative
- Check working directory:
pwd # Linux/macOS cd # Windows
- Verify file extension (hidden extensions on Windows)
- Check for special characters in path
DataFlood CLI Issues
Schema Generation Problems
Problem: "No JSON or CSV files found in directory"
Solution:
- Verify directory contains .json or .csv files:
ls *.json *.csv
- Check file extensions are correct
- Ensure files are valid JSON/CSV
- Try with a single file first
Problem: "Invalid JSON in file"
Solution:
- Validate JSON syntax:
# Using jq cat file.json | jq . # Or online validator
- Common JSON issues:
- Missing commas between elements
- Trailing commas (not allowed)
- Unmatched brackets/braces
- Unquoted keys
Problem: Generated schema has no statistical models
Solution:
- Provide more sample data (minimum 10-20 samples)
- Ensure sample data has variety
- Check data types are consistent
- Use import in DataFloodEditor for better control
Document Generation Problems
Problem: "Schema validation failed"
Solution:
- Validate schema structure:
DataFlood generate schema.json --count 1
- Check for:
- Valid property types
- Logical constraints (min < max)
- Valid regex patterns
- Compatible format specifications
Problem: "Out of memory" with large generation
Solution:
- Reduce document count:
# Instead of DataFlood generate schema.json --count 100000 # Use batches DataFlood generate schema.json --count 10000 --seed 1 DataFlood generate schema.json --count 10000 --seed 2
- Use
--separate
flag for individual files - Generate CSV instead of JSON (more memory efficient)
- Increase heap size if needed
Problem: Generated values don't match expectations
Solution:
- Check entropy settings:
# More predictable DataFlood generate schema.json --entropy 1.0 # More random DataFlood generate schema.json --entropy 4.0
- Verify statistical models in schema
- Test with smaller count first
- Review constraints and patterns
Sequence Execution Problems
Problem: "Model file not found" in sequence
Solution:
- Use relative paths from sequence file location
- Or use absolute paths
- Verify all model files exist:
# List all model paths in sequence grep modelPath sequence.json
- Check file permissions
Problem: "Invalid sequence configuration"
Solution:
- Validate sequence structure
- Ensure all step IDs are unique
- Verify parent steps exist for transactions
- Check time ranges are logical
DataFloodEditor Issues
Startup Problems
Problem: Application won't start
Solution:
- Check .NET 9.0 is installed
- Look for error logs:
# Windows %APPDATA%\DataFloodEditor\logs # macOS ~/Library/Application Support/DataFloodEditor/logs # Linux ~/.config/DataFloodEditor/logs
- Try running from terminal for error messages:
DataFloodEditor
- Check display requirements (GUI needs display server)
Problem: "Unable to load DLL 'libSkiaSharp'"
Solution:
- Install SkiaSharp dependencies:
# Ubuntu/Debian sudo apt-get install libfontconfig1 # macOS brew install fontconfig # Windows - usually works out of box
Editor Issues
Problem: Can't add properties to schema
Solution:
- Ensure parent is selected (object or array)
- Check property name is unique
- Verify schema is not read-only
- Try right-click → Add Property
Problem: Drag and drop not working
Solution:
- Ensure source and target are compatible
- Check if property is locked
- Try copy-paste instead (Ctrl+C, Ctrl+V)
- Restart application if frozen
Problem: Generation from editor fails
Solution:
- Validate schema first (F5)
- Reduce document count (GUI limit: 10,000)
- Check all required fields have models
- Verify constraints are satisfiable
Import/Export Issues
Problem: CSV import creates wrong types
Solution:
- Ensure CSV has header row
- Provide more sample rows (>10)
- Check for consistent data in columns
- Manually adjust types after import
Problem: Can't save project
Solution:
- Check disk space
- Verify write permissions
- Try Save As to different location
- Check for invalid characters in filename
FloodGate API Issues
Startup Problems
Problem: "Port 5000 is already in use"
Solution:
- Change port in configuration:
# floodgate.config.yaml server: port: 5001
- Or find and stop process using port:
# Linux/macOS lsof -i :5000 kill -9 <PID> # Windows netstat -ano | findstr :5000 taskkill /PID <PID> /F
Problem: API returns 404 for all endpoints
Solution:
- Verify API is running:
curl http://localhost:5000/api/documentgenerator/health
- Check URL format (include /api/ prefix)
- Verify Swagger UI loads: http://localhost:5000/swagger
- Check logs for startup errors
Request/Response Issues
Problem: "Request body too large"
Solution:
- Increase limit in configuration:
server: maxRequestBodySize: 104857600 # 100MB
- Or reduce schema/document size
- Use file upload endpoint instead of inline
Problem: "Timeout" on large generation
Solution:
- Increase timeout:
limits: requestTimeout: 600 # 10 minutes
- Use smaller batches
- Use async/download endpoints
- Consider using CLI for very large batches
Problem: CORS errors from browser
Solution:
- Enable CORS in configuration:
api: enableCors: true corsOrigins: - "http://localhost:3000" - "https://yourapp.com"
- Or use proxy in development
- Check browser console for specific error
Serving Mode Issues
Problem: "Model not found" in serving mode
Solution:
- Check file exists in Serving/Models:
ls Serving/Models/
- Include or omit .json extension consistently
- Check for case sensitivity
- Verify file is valid JSON
Problem: Can't list serving models
Solution:
- Create Serving directories:
mkdir -p Serving/Models mkdir -p Serving/Sequences
- Add at least one model file
- Check permissions on directories
Performance Issues
Slow Generation
Problem: Generation takes too long
Solutions:
Reduce complexity:
- Simplify schema structure
- Reduce nesting depth
- Use fewer properties
Optimize models:
- Reduce histogram bins
- Simplify string patterns
- Lower entropy values
Batch strategies:
# Instead of one large batch DataFlood generate schema.json --count 100000 # Use parallel smaller batches for i in {1..10}; do DataFlood generate schema.json --count 10000 --seed $i & done
Memory Issues
Problem: High memory usage
Solutions:
Use streaming:
# FloodGate download endpoint curl -X POST "http://localhost:5000/api/serving/generate/Model/download" \ -d '{"count": 100000}' \ --output data.jsonl
Generate separate files:
DataFlood generate schema.json --separate --count 1000
Use CSV format (more memory efficient than JSON)
Increase heap size:
# Set max heap size export DOTNET_GCHeapHardLimit=2147483648 # 2GB
Validation Errors
Schema Validation
Problem: "Invalid schema structure"
Common causes and solutions:
Missing required fields:
// Bad { "properties": { ... } } // Good { "type": "object", "properties": { ... } }
Invalid constraints:
// Bad - min > max { "type": "integer", "minimum": 100, "maximum": 50 } // Good { "type": "integer", "minimum": 50, "maximum": 100 }
Invalid patterns:
// Bad - invalid regex { "type": "string", "pattern": "[invalid(" } // Good { "type": "string", "pattern": "^[A-Z][a-z]+$" }
Getting Additional Help
Diagnostic Steps
Enable verbose logging:
# DataFlood CLI export DATAFLOOD_LOG_LEVEL=Debug # FloodGate API # In floodgate.config.yaml logging: level: Debug
Check system resources:
# Memory free -h # Linux vm_stat # macOS # Disk space df -h # Process info top
Capture error details:
- Full error message
- Stack trace if available
- Steps to reproduce
- Sample files (if shareable)
Log Locations
- DataFlood CLI: Console output or test-run folder
- DataFloodEditor:
- Windows:
%APPDATA%\DataFloodEditor\logs
- macOS:
~/Library/Application Support/DataFloodEditor/logs
- Linux:
~/.config/DataFloodEditor/logs
- Windows:
- FloodGate API: Console output or configured log file
Common Log Messages
Message | Meaning | Action |
---|---|---|
"Schema validation failed" | Invalid schema structure | Check schema syntax and constraints |
"Insufficient samples" | Too few examples for statistics | Provide more sample data |
"Constraint conflict" | Incompatible constraints | Review min/max, patterns |
"Memory limit exceeded" | Out of memory | Reduce batch size |
"Timeout exceeded" | Operation took too long | Increase timeout or reduce complexity |
Prevention Tips
- Always validate before generating
- Start with small batches for testing
- Keep backups of working schemas
- Use version control for schemas
- Document custom patterns and models
- Monitor resource usage during generation
- Test sequences with short time ranges first