Error Message and Logs
Description
After a server reboot, Coolify's WebSocket connections fail when accessing the UI via HTTPS. The terminal feature and real-time updates are not working. The browser console shows repeated WebSocket connection failures.
Environment
- Coolify Version: 4.0.0-beta.418
- Installation Method: Docker
- OS: Ubuntu (Linux)
- Browser: All browsers tested
Current Behavior
When accessing Coolify via HTTPS, the following errors appear in browser console:
WebSocket connection to 'wss://admin.domain.com:6001/app/cffeaf583e1404e00276097c0e104e9f19582edb08d65d4a4e6bf23e567788ba?protocol=7&client=js&version=8.3.0&flash=false' failed
The UI shows: "WARNING: Cannot connect to real-time service"
Expected Behavior
WebSocket connections should work over HTTPS as they did before the server reboot. Terminal access and real-time updates should function normally.
Docker Container Status
bash# All containers are healthy and running
coolify - Up About an hour (healthy)
coolify-realtime - Up 7 minutes (healthy) # Note: This container restarts frequently
coolify-db - Up 13 days (healthy)
coolify-redis - Up 13 days (healthy)
coolify-proxy - Up 2 hours (healthy)
Relevant Logs
Browser Console:
javascript[Terminal] WebSocket connection established. Cool cool cool cool cool cool.
[Terminal] WebSocket connection closed.
WebSocket connection to 'wss://admin.domain.com:6001/app/...' failed
[Terminal] Attempting to reconnect...
coolify-realtime logs show repeated restarts:
2025-06-11 15:15:03 [TERMINAL] Coolify realtime terminal server listening on port 6002. Let the hacking begin!
2025-06-11 15:16:00 [TERMINAL] Coolify realtime terminal server listening on port 6002. Let the hacking begin!
Configuration Details
The container was started with these environment variables:
bash
PUSHER_HOST=admin.domain.com
PUSHER_PORT=6001
PUSHER_SCHEME=http
APP_URL=http://admin.domain.com:8000
What I've Tried
✅ Verified port 6001 is accessible: Connection to admin.domain.com: 6001 port [tcp/x11-1] succeeded!
✅ Recreated containers with proper environment variables
✅ Checked that all services are healthy
❌ WebSocket still tries to connect via wss:// (secure) to an http:// endpoint
Steps to Reproduce
- Access Coolify via HTTPS (https://domain.com:8000/)
- Navigate to any application
- Click on "Terminal" tab
- Observe WebSocket connection failures in browser console
Example Repository URL
No response
Coolify Version
v4.0.0-beta.418
Are you using Coolify Cloud?
No (self-hosted)
Operating System and Version (self-hosted)
No response
Additional Information
No response
Error Message and Logs
Description
After a server reboot, Coolify's WebSocket connections fail when accessing the UI via HTTPS. The terminal feature and real-time updates are not working. The browser console shows repeated WebSocket connection failures.
Environment
Current Behavior
When accessing Coolify via HTTPS, the following errors appear in browser console:
WebSocket connection to 'wss://admin.domain.com:6001/app/cffeaf583e1404e00276097c0e104e9f19582edb08d65d4a4e6bf23e567788ba?protocol=7&client=js&version=8.3.0&flash=false' failedThe UI shows: "WARNING: Cannot connect to real-time service"
Expected Behavior
WebSocket connections should work over HTTPS as they did before the server reboot. Terminal access and real-time updates should function normally.
Docker Container Status
Relevant Logs
Browser Console:
coolify-realtime logs show repeated restarts:
Configuration Details
The container was started with these environment variables:
✅ Verified port 6001 is accessible: Connection to admin.domain.com: 6001 port [tcp/x11-1] succeeded!
✅ Recreated containers with proper environment variables
✅ Checked that all services are healthy
❌ WebSocket still tries to connect via wss:// (secure) to an http:// endpoint
Steps to Reproduce
Example Repository URL
No response
Coolify Version
v4.0.0-beta.418
Are you using Coolify Cloud?
No (self-hosted)
Operating System and Version (self-hosted)
No response
Additional Information
No response