From 4f98c782f3a0472c4499f871d22bd7fd6b818019 Mon Sep 17 00:00:00 2001 From: "Torsten Schulz (local)" Date: Sun, 16 Nov 2025 09:41:48 +0100 Subject: [PATCH] Update Socket.IO deployment documentation to reflect new testing and SSL certificate error handling This commit revises the deployment documentation for Socket.IO, updating the section numbers for clarity and adding detailed instructions for resolving SSL certificate permission errors. A new troubleshooting script is introduced to manage certificate access, ensuring the HTTPS server operates correctly on port 3051. These enhancements improve the overall guidance for deploying and testing the Socket.IO service. --- DEPLOYMENT_SOCKET_IO.md | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/DEPLOYMENT_SOCKET_IO.md b/DEPLOYMENT_SOCKET_IO.md index 0757448..e284034 100644 --- a/DEPLOYMENT_SOCKET_IO.md +++ b/DEPLOYMENT_SOCKET_IO.md @@ -76,7 +76,7 @@ Dieses Skript prüft: - Ob Port 3051 geöffnet ist - Ob der Server erreichbar ist -### 6. Testen +### 7. Testen Im Browser sollte Socket.IO jetzt direkt zu `wss://tt-tagebuch.de:3051` verbinden. @@ -107,7 +107,17 @@ Im Browser sollte Socket.IO jetzt direkt zu `wss://tt-tagebuch.de:3051` verbinde - Suche in den Logs nach: `🚀 HTTPS-Server für Socket.IO läuft auf Port 3051` - Falls nicht vorhanden, prüfe auf Fehler: `⚠️ HTTPS-Server konnte nicht gestartet werden` -### SSL-Zertifikat-Fehler +### SSL-Zertifikat-Fehler / Berechtigungsfehler + +**Fehler:** `EACCES: permission denied, open '/etc/letsencrypt/live/tt-tagebuch.de/privkey.pem'` + +**Lösung:** +```bash +cd /var/www/tt-tagebuch.de/backend +chmod +x scripts/fixCertPermissions.sh +sudo ./scripts/fixCertPermissions.sh +sudo systemctl restart tt-tagebuch +``` Stelle sicher, dass die Zertifikate existieren: ```bash