Debug Mode
Enabling Debug Mode
Wings supports debug mode which increases log verbosity to help diagnose issues. Via command-line flag:/etc/pterodactyl/config.yml:
/etc/systemd/system/wings.service:
The
--debug flag takes precedence over the configuration file setting. When enabled via flag, Wings will not save the debug state to disk to prevent always running in debug mode after restart.Debug Mode Output
When debug mode is enabled, Wings will:- Log at DEBUG level instead of INFO level (configured in
cmd/root.go:428-431) - Print “running in debug mode” on startup (
cmd/root.go:95) - Include detailed information about:
- Configuration loading
- Directory creation
- Server bootstrapping
- Docker operations
- Resource polling
- State changes
Log Files
Log Locations
Wings writes logs to multiple locations depending on configuration. Primary Wings log:config.yml:
Viewing Logs
Tail the main Wings log:Log Rotation
Wings automatically configures log rotation if/etc/logrotate.d exists (see config/config.go:695-737).
Default rotation settings:
- Rotate when log reaches 10M
- Keep logs for 7 days
- Compress old logs
- Use HUP signal to reload Wings
config.yml:
Diagnostics Command
Wings includes a built-in diagnostics command that collects system information for troubleshooting.Running Diagnostics
- Ask if you want to include endpoints (FQDNs/IPs)
- Ask if you want to include logs
- Ask if you want to review before uploading
- Collect system information
- Optionally upload to a hastebin service
Diagnostics Output
The diagnostics report includes: Version Information:- Wings version
- Docker version
- Kernel version
- Operating system
- Panel location (redacted by default)
- Webserver settings (host, port, SSL)
- SFTP server settings
- Directory paths
- System user
- Timezone
- Debug mode status
- Server version
- Storage driver and status
- Logging driver
- Cgroup driver
- System warnings
- List of all Docker containers
- Last 200 lines of Wings logs (configurable)
Diagnostics Options
Custom hastebin URL:Performance Profiling
Wings includes built-in support for Go’s pprof profiler to diagnose performance issues.Enabling pprof
Start Wings with profiling:localhost:6060 (configured in cmd/root.go:81-83).
Accessing pprof
Once enabled, pprof provides several endpoints: CPU Profile:Analyzing Profiles
Interactive mode:Diagnostic Commands
Check Wings Status
Check Docker Status
Check Server States
Check Disk Usage
Network Diagnostics
Common Log Messages
Startup Messages
Successful startup:Error Messages
Configuration errors:Crash Detection Messages
Debugging Server Issues
Server Won’t Start
-
Check server logs:
-
Check Wings logs:
-
Inspect container:
- Check for resource limits: Look for memory/CPU constraints in the server configuration.
-
Verify image exists:
Server Crashes Repeatedly
Wings has built-in crash detection with a configurable timeout (default: 60 seconds inconfig/config.go:270).
Check crash configuration:
Resource Usage Issues
Wings polls Docker stats continuously when a server is running (seeenvironment/docker/stats.go).
Monitor in real-time:
docker stats to match the Panel display. See environment/docker/stats.go:98-120 for details.
See Also
- Common Issues - Frequently encountered problems
- Performance Tuning - Optimize Wings performance
- Wings Configuration - Complete configuration reference
