-
-
Notifications
You must be signed in to change notification settings - Fork 69.1k
[Bug]: Gateway restart infinite loop with zombie process on config change #33103
Copy link
Copy link
Closed
Closed
Copy link
Description
Summary
Gateway enters infinite restart loop when configuration changes require restart, with zombie process holding port.
Steps to reproduce
- Gateway running normally
- Make config change requiring restart (e.g.,
gateway.controlUi.allowedOrigins) - Config reload triggers SIGUSR1 signal
- New process fails to start: 'port 18789 already in use'
- Systemd retries indefinitely, old PID still holding port
Expected behavior
Gateway cleanly stops old process before starting new one
Actual behavior
30+ restart attempts, all failing with 'port already in use'
Old PID remains listening on 18789
Only recoverable via manual pkill -9 openclaw-gateway
Environment
- OpenClaw 2026.3.2
- Ubuntu 24.04 LTS
- Port 18789 (default)
Logs
Error message: 'Gateway failed to start: another gateway instance is already listening on ws://127.0.0.1:18789'
Systemd restart counter reaches 30+
Related issues
See #28134 (Gateway restart failed - similar startup issues)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Fields
Give feedbackNo fields configured for issues without a type.