📝 "Erweitert die Protokolldateien mit detaillierten Debug-Informationen zur Installation und Systemanalyse (🐛)"
This commit is contained in:
@ -1 +1,202 @@
|
||||
|
||||
# MYP Setup-Skript Verbesserungen v5.1.0
|
||||
|
||||
## Übersicht der Korrekturen
|
||||
|
||||
Das Setup-Skript wurde vollständig überarbeitet, um die automatische Anmeldung und das Kiosk-System zuverlässig zu implementieren. Die wichtigsten Verbesserungen:
|
||||
|
||||
## 🧹 PHASE 1: Vollständige Umgebungsbereinigung
|
||||
|
||||
### `complete_environment_cleanup()`
|
||||
- **Vollständige Desktop-Environment-Entfernung**: GNOME, KDE, XFCE, LXDE, MATE, Cinnamon
|
||||
- **Python-Bereinigung**: Entfernt alte Python-Installationen und pip-Pakete
|
||||
- **Snap/Flatpak-Bereinigung**: Entfernt alle Snap- und Flatpak-Pakete
|
||||
- **Cache-Bereinigung**: Leert alle System-Caches und temporäre Dateien
|
||||
|
||||
```bash
|
||||
# Beispiel der Bereinigung
|
||||
apt-get remove --purge -y gnome* kde* xfce4* lxde* mate* cinnamon*
|
||||
rm -rf /usr/local/lib/python3.*/dist-packages/*
|
||||
rm -rf /var/cache/apt/archives/*
|
||||
```
|
||||
|
||||
## 🐍 PHASE 2: Saubere Python-Umgebung
|
||||
|
||||
### `setup_clean_python_environment()`
|
||||
- **Python 3.11 Installation**: Über deadsnakes PPA
|
||||
- **pip-Konfiguration**: Automatische `--break-system-packages` Konfiguration
|
||||
- **Alternative-System**: Python 3.11 als Standard gesetzt
|
||||
- **Entwicklungstools**: Alle notwendigen Header und Build-Tools
|
||||
|
||||
```bash
|
||||
# pip-Konfiguration für System-Pakete
|
||||
[global]
|
||||
break-system-packages = true
|
||||
trusted-host = pypi.org
|
||||
pypi.python.org
|
||||
files.pythonhosted.org
|
||||
timeout = 60
|
||||
retries = 3
|
||||
```
|
||||
|
||||
### `install_python_packages_with_break_system()`
|
||||
- **Robuste Installation**: Mehrere Fallback-Strategien
|
||||
- **Einzelpaket-Installation**: Falls Batch-Installation fehlschlägt
|
||||
- **Modul-Validierung**: Überprüfung aller essentiellen Module
|
||||
- **Python 3.11 spezifisch**: Verwendet explizit `python3.11 -m pip`
|
||||
|
||||
## 🖥️ PHASE 3: Minimales Desktop-Environment
|
||||
|
||||
### `install_minimal_desktop_environment()`
|
||||
- **X11-Basis**: Xorg, xinit, x11-xserver-utils
|
||||
- **Window Manager**: OpenBox als leichtgewichtiger WM
|
||||
- **Display Manager**: LightDM mit automatischer Konfiguration
|
||||
- **Browser**: Chromium mit Fallback auf Firefox-ESR
|
||||
- **Audio-Support**: PulseAudio und ALSA
|
||||
- **Schriftarten**: Vollständige Font-Sammlung
|
||||
|
||||
```bash
|
||||
# LightDM Autologin-Konfiguration
|
||||
[Seat:*]
|
||||
autologin-user=kiosk
|
||||
autologin-user-timeout=0
|
||||
user-session=openbox
|
||||
```
|
||||
|
||||
## 🔐 PHASE 4: Robuste Autologin-Konfiguration
|
||||
|
||||
### `configure_autologin_robust()`
|
||||
- **Mehrfache Methoden**: Getty, LightDM, nodm parallel
|
||||
- **Getty-Service**: Systemd-Override für tty1
|
||||
- **LightDM-Integration**: Automatische Konfiguration falls verfügbar
|
||||
- **Nodm-Fallback**: Minimaler Display Manager als Backup
|
||||
- **Passwort-Entfernung**: Automatischer Login ohne Passwort
|
||||
|
||||
```bash
|
||||
# Getty-Service Override
|
||||
[Service]
|
||||
ExecStart=
|
||||
ExecStart=-/sbin/agetty --autologin kiosk --noclear %I $TERM
|
||||
Type=idle
|
||||
Restart=always
|
||||
RestartSec=0
|
||||
```
|
||||
|
||||
## 🚀 PHASE 5: Robuste Kiosk-Autostart-Konfiguration
|
||||
|
||||
### `configure_kiosk_autostart_robust()`
|
||||
- **Mehrfache Fallback-Strategien**: X11-Server, Browser, Backend
|
||||
- **Lock-Mechanismus**: Verhindert mehrfache Ausführung
|
||||
- **X11-Server-Management**: Automatischer Start und Überwachung
|
||||
- **Backend-Verfügbarkeit**: Wartet auf MYP-Backend (120s timeout)
|
||||
- **Browser-Optimierung**: Chromium mit vollständigen Kiosk-Parametern
|
||||
|
||||
```bash
|
||||
# Robuste .bashrc mit Fallback-Strategien
|
||||
start_x11_server() {
|
||||
# Alte X-Prozesse beenden
|
||||
pkill -f "X :0" 2>/dev/null || true
|
||||
|
||||
# X11-Server starten (mehrere Methoden)
|
||||
if [ -x /usr/local/bin/start-x11-kiosk ]; then
|
||||
/usr/local/bin/start-x11-kiosk &
|
||||
else
|
||||
startx /home/kiosk/.xinitrc -- :0 vt7 -novtswitch &
|
||||
fi
|
||||
}
|
||||
```
|
||||
|
||||
### Kiosk-Watchdog-Service
|
||||
- **Prozess-Überwachung**: X11-Server und Browser
|
||||
- **Automatischer Neustart**: Bei Prozess-Ausfall
|
||||
- **Logging**: Vollständige Protokollierung in `/var/log/kiosk-watchdog.log`
|
||||
- **Systemd-Integration**: Als Service mit automatischem Restart
|
||||
|
||||
## 📦 PHASE 6: Phasenbasierte Installation
|
||||
|
||||
### Neue Installationsstruktur
|
||||
```bash
|
||||
# PHASE 1: UMGEBUNGSBEREINIGUNG
|
||||
complete_environment_cleanup
|
||||
setup_clean_python_environment
|
||||
|
||||
# PHASE 2: DESKTOP-ENVIRONMENT
|
||||
install_minimal_desktop_environment
|
||||
configure_x11_for_raspberry_pi
|
||||
|
||||
# PHASE 3: ANWENDUNGS-INSTALLATION
|
||||
install_python_packages_with_break_system
|
||||
deploy_application
|
||||
|
||||
# PHASE 4: KIOSK-SYSTEM
|
||||
configure_autologin_robust
|
||||
configure_kiosk_autostart_robust
|
||||
|
||||
# PHASE 5: SERVICES UND OPTIMIERUNG
|
||||
install_systemd_services
|
||||
enable_and_start_services
|
||||
|
||||
# PHASE 6: SYSTEM-TESTS
|
||||
test_application
|
||||
```
|
||||
|
||||
## 🔧 Technische Verbesserungen
|
||||
|
||||
### Python 3.11 Integration
|
||||
- **Explizite Verwendung**: Alle pip-Befehle verwenden `python3.11 -m pip`
|
||||
- **System-Pakete**: `--break-system-packages` automatisch konfiguriert
|
||||
- **Alternative-System**: Python 3.11 als Standard-Python3 gesetzt
|
||||
|
||||
### X11-Konfiguration
|
||||
- **Raspberry Pi spezifisch**: Framebuffer-Konfiguration
|
||||
- **Mehrfache Treiber**: fbdev und modesetting als Fallback
|
||||
- **Fehlerbehandlung**: Robuste X11-Server-Starts
|
||||
|
||||
### Browser-Konfiguration
|
||||
- **Chromium-Optimierung**: Vollständige Kiosk-Parameter
|
||||
- **Memory-Management**: Optimiert für Raspberry Pi
|
||||
- **Sicherheit**: Deaktivierte Sicherheitsfeatures für Kiosk
|
||||
- **Vollbild-Modus**: Echte Kiosk-Erfahrung
|
||||
|
||||
## 🚨 Wichtige Hinweise
|
||||
|
||||
### Nach der Installation
|
||||
1. **Neustart erforderlich**: Für vollständige Kiosk-Aktivierung
|
||||
2. **Automatischer Login**: Kiosk-User loggt sich automatisch ein
|
||||
3. **Browser-Start**: Chromium startet automatisch im Kiosk-Modus
|
||||
4. **Backend-Abhängigkeit**: Wartet auf MYP-Backend auf Port 5000
|
||||
|
||||
### Fehlerbehebung
|
||||
- **Logs prüfen**: `/var/log/kiosk-watchdog.log`
|
||||
- **X11-Fehler**: `/tmp/x11-error.log`
|
||||
- **Service-Status**: `systemctl status kiosk-watchdog`
|
||||
- **Manual-Start**: `/usr/local/bin/kiosk-watchdog.sh`
|
||||
|
||||
### Fallback-Mechanismen
|
||||
- **X11-Server**: Mehrere Start-Methoden
|
||||
- **Browser**: Chromium → Firefox-ESR Fallback
|
||||
- **Display Manager**: LightDM → nodm → Getty Fallback
|
||||
- **Backend**: Startet auch ohne Backend-Verfügbarkeit
|
||||
|
||||
## 📋 Checkliste für erfolgreiche Installation
|
||||
|
||||
- [ ] Vollständige Umgebungsbereinigung durchgeführt
|
||||
- [ ] Python 3.11 als Standard installiert
|
||||
- [ ] pip mit --break-system-packages konfiguriert
|
||||
- [ ] Minimales Desktop-Environment installiert
|
||||
- [ ] Autologin für kiosk-User konfiguriert
|
||||
- [ ] Kiosk-Autostart-Mechanismus implementiert
|
||||
- [ ] Watchdog-Service aktiviert
|
||||
- [ ] System-Neustart durchgeführt
|
||||
- [ ] Automatischer Kiosk-Start funktioniert
|
||||
- [ ] Browser öffnet MYP-Anwendung
|
||||
|
||||
## 🎯 Ergebnis
|
||||
|
||||
Nach der Installation:
|
||||
1. System startet automatisch
|
||||
2. Kiosk-User loggt sich automatisch ein
|
||||
3. X11-Server startet automatisch
|
||||
4. Browser öffnet automatisch http://localhost:5000
|
||||
5. Vollständiger Kiosk-Modus ohne Benutzerinteraktion
|
||||
|
||||
Das System ist jetzt vollständig automatisiert und benötigt keine manuelle Konfiguration mehr.
|
@ -2,3 +2,39 @@
|
||||
MYP Installation DEBUG Log - 2025-06-10 09:33:12
|
||||
=================================================================
|
||||
|
||||
[2025-06-10 09:33:20] DEBUG von setup.sh:860
|
||||
Debian erkannt über /etc/debian_version: 12.11
|
||||
---
|
||||
|
||||
[2025-06-10 09:33:20] DEBUG von setup.sh:928
|
||||
Kein Raspberry Pi erkannt. Hardware-Info:
|
||||
---
|
||||
|
||||
[2025-06-10 09:33:20] DEBUG von setup.sh:929
|
||||
- Device Tree: nicht verfügbar
|
||||
---
|
||||
|
||||
[2025-06-10 09:33:20] DEBUG von setup.sh:930
|
||||
- CPU Hardware: nicht verfügbar
|
||||
---
|
||||
|
||||
[2025-06-10 09:33:20] DEBUG von setup.sh:970
|
||||
Vollständige Kernel-Info: Linux raspberrypi 6.1.0-37-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.140-1 (2025-05-22) x86_64 GNU/Linux
|
||||
---
|
||||
|
||||
[2025-06-10 09:33:20] DEBUG von setup.sh:1026
|
||||
DNS-Test Details: Teste DNS für 8.8.8.8: Erfolg mit nslookup.
|
||||
---
|
||||
|
||||
[2025-06-10 09:33:20] DEBUG von setup.sh:1127
|
||||
Externe IP ermittelt über ifconfig.me: 163.116.178.113
|
||||
---
|
||||
|
||||
[2025-06-10 09:35:06] DEBUG von setup.sh:1391
|
||||
flask erfolgreich importiert
|
||||
---
|
||||
|
||||
[2025-06-10 09:35:06] DEBUG von setup.sh:1391
|
||||
requests erfolgreich importiert
|
||||
---
|
||||
|
||||
|
@ -20,3 +20,184 @@ Log-Verzeichnis: /mnt/logs
|
||||
[0;32m[2025-06-10 09:33:12] === AUTOMATISCHE INSTALLATIONSMODUS-ERKENNUNG ===[0m
|
||||
[0;32m[2025-06-10 09:33:12] 🔍 Viel RAM ( MB) erkannt (+1 Punkt für Entwicklung)[0m
|
||||
[0;32m[2025-06-10 09:33:12] 🔍 Kein Desktop-Environment erkannt (+1 Punkt für Produktion)[0m
|
||||
[0;32m[2025-06-10 09:33:13] 📊 Bewertung: Produktion=1, Entwicklung=1[0m
|
||||
[0;32m[2025-06-10 09:33:13] ⚖️ Unentschieden - Standard: ENTWICKLUNGS-INSTALLATION[0m
|
||||
[0;32m[2025-06-10 09:33:13] → Verwenden Sie --production für Kiosk-Installation[0m
|
||||
[0;32m[2025-06-10 09:33:20] 🔧 Starte ENTWICKLUNGS-INSTALLATION...[0m
|
||||
[0;32m[2025-06-10 09:33:20] === AUTOMATISCHE ENTWICKLUNGS-INSTALLATION ===[0m
|
||||
[0;32m[2025-06-10 09:33:20] === SYSTEM-RESSOURCEN PRÜFUNG ===[0m
|
||||
[0;35m[FORTSCHRITT] Prüfe RAM...[0m
|
||||
[0;35m[FORTSCHRITT] Verfügbarer RAM: 3914MB[0m
|
||||
[0;36m[ERFOLG] ✅ Ausreichend RAM verfügbar (3914MB)[0m
|
||||
[0;35m[FORTSCHRITT] Prüfe Festplattenplatz...[0m
|
||||
[0;35m[FORTSCHRITT] Verfügbarer Festplattenplatz: 12,0GB (12284MB)[0m
|
||||
[0;36m[ERFOLG] ✅ Ausreichend Festplattenplatz verfügbar (12,0GB)[0m
|
||||
[0;35m[FORTSCHRITT] Prüfe CPU...[0m
|
||||
[0;35m[FORTSCHRITT] CPU: 4 Kern(e) - 11th Gen Intel(R) Core(TM) i7-11850H @ 2.50GHz[0m
|
||||
[0;36m[ERFOLG] ✅ CPU-Information erfolgreich ermittelt[0m
|
||||
[0;32m[2025-06-10 09:33:20] ✅ System-Ressourcen-Prüfung abgeschlossen[0m
|
||||
[0;35m[FORTSCHRITT] Prüfe Debian/Raspbian-System...[0m
|
||||
[0;34m[DEBUG] Debian erkannt über /etc/debian_version: 12.11[0m
|
||||
[0;32m[2025-06-10 09:33:20] ✅ Debian/Raspbian-basiertes System erkannt (Version: 12.11)[0m
|
||||
[0;35m[FORTSCHRITT] Prüfe Raspberry Pi Hardware...[0m
|
||||
[0;34m[INFO] 💻 Standard-PC/Server System (kein Raspberry Pi)[0m
|
||||
[0;34m[DEBUG] Kein Raspberry Pi erkannt. Hardware-Info:[0m
|
||||
[0;34m[DEBUG] - Device Tree: nicht verfügbar[0m
|
||||
[0;34m[DEBUG] - CPU Hardware: nicht verfügbar[0m
|
||||
[0;35m[FORTSCHRITT] Prüfe System-Architektur...[0m
|
||||
[0;34m[INFO] 📐 System-Architektur: x86_64[0m
|
||||
[0;34m[INFO] → 64-Bit x86 Architektur erkannt[0m
|
||||
[0;35m[FORTSCHRITT] Prüfe Kernel-Version...[0m
|
||||
[0;34m[INFO] 🐧 Kernel-Version: 6.1.0-37-amd64[0m
|
||||
[0;34m[DEBUG] Vollständige Kernel-Info: Linux raspberrypi 6.1.0-37-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.140-1 (2025-05-22) x86_64 GNU/Linux[0m
|
||||
[0;32m[2025-06-10 09:33:20] ✅ System-Analyse abgeschlossen[0m
|
||||
[0;35m[FORTSCHRITT] Prüfe Internetverbindung (erweiterte Methoden)...[0m
|
||||
[0;35m[FORTSCHRITT] Teste DNS-Auflösung...[0m
|
||||
[0;34m[DEBUG] DNS-Test Details: Teste DNS für 8.8.8.8: Erfolg mit nslookup. [0m
|
||||
[0;36m[ERFOLG] ✅ Internetverbindung verfügbar[0m
|
||||
[0;34m[INFO] 🔍 Erkannt via: DNS-Auflösung (nslookup: 8.8.8.8)[0m
|
||||
[0;35m[FORTSCHRITT] Ermittle externe IP-Adresse...[0m
|
||||
[0;34m[INFO] 🌐 Externe IP: 163.116.178.113[0m
|
||||
[0;34m[DEBUG] Externe IP ermittelt über ifconfig.me: 163.116.178.113[0m
|
||||
[0;32m[2025-06-10 09:33:20] === KONFIGURIERE HOSTNAME ===[0m
|
||||
[0;32m[2025-06-10 09:33:20] ✅ Hostname bereits korrekt: 'raspberrypi'[0m
|
||||
[0;32m[2025-06-10 09:33:20] ✅ Hostname-Auflösung funktioniert: raspberrypi -> 127.0.1.1[0m
|
||||
[0;32m[2025-06-10 09:33:20] === ANTI-HÄNGE SYSTEM-UPDATE MIT TIMEOUTS ===[0m
|
||||
[0;35m[FORTSCHRITT] Konfiguriere APT für bessere Zuverlässigkeit (timeout-gesichert)...[0m
|
||||
[0;35m[FORTSCHRITT] Validiere APT-Repositories (timeout-gesichert)...[0m
|
||||
[0;35m[FORTSCHRITT] Bereinige APT-Lock-Dateien...[0m
|
||||
[0;35m[FORTSCHRITT] Aktualisiere Paketlisten (max 60s timeout)...[0m
|
||||
[0;36m[ERFOLG] ✅ APT Update erfolgreich[0m
|
||||
[0;35m[FORTSCHRITT] Führe System-Upgrade durch (max 120s timeout)...[0m
|
||||
[0;36m[ERFOLG] ✅ System Upgrade erfolgreich[0m
|
||||
[0;35m[FORTSCHRITT] Installiere essenzielle System-Tools...[0m
|
||||
[0;35m[FORTSCHRITT] Installiere Pakete: ca-certificates[0m
|
||||
[0;35m[FORTSCHRITT] Installiere Pakete: gnupg[0m
|
||||
[0;35m[FORTSCHRITT] Installiere Pakete: curl[0m
|
||||
[0;35m[FORTSCHRITT] Installiere Pakete: wget[0m
|
||||
[0;35m[FORTSCHRITT] Installiere Pakete: git[0m
|
||||
[0;35m[FORTSCHRITT] Installiere Pakete: nano[0m
|
||||
[0;35m[FORTSCHRITT] Installiere Pakete: htop[0m
|
||||
[0;35m[FORTSCHRITT] Installiere Pakete: rsync[0m
|
||||
[0;35m[FORTSCHRITT] Installiere Pakete: unzip[0m
|
||||
[0;35m[FORTSCHRITT] Installiere Pakete: sudo[0m
|
||||
[0;35m[FORTSCHRITT] Installiere Pakete: systemd[0m
|
||||
[0;35m[FORTSCHRITT] Installiere Pakete: lsb-release[0m
|
||||
[0;35m[FORTSCHRITT] Installiere Pakete: apt-transport-https[0m
|
||||
[0;35m[FORTSCHRITT] Installiere Pakete: software-properties-common[0m
|
||||
[0;35m[FORTSCHRITT] Installiere Pakete: bc[0m
|
||||
[0;35m[FORTSCHRITT] Installiere Pakete: dbus[0m
|
||||
[0;35m[FORTSCHRITT] Installiere Pakete: systemd-timesyncd[0m
|
||||
[0;35m[FORTSCHRITT] Synchronisiere Systemzeit...[0m
|
||||
[0;32m[2025-06-10 09:33:27] ✅ Robustes System-Update abgeschlossen[0m
|
||||
[0;32m[2025-06-10 09:33:27] === SIMPLE NETZWERK-SICHERHEIT (ANTI-HÄNGE VERSION) ===[0m
|
||||
[0;34m[INFO] 🚀 Netzwerk-Sicherheit übersprungen für schnellere Installation[0m
|
||||
[0;34m[INFO] 📝 Kann später manuell aktiviert werden mit: SKIP_NETWORK_SECURITY=0[0m
|
||||
[0;32m[2025-06-10 09:33:27] === ROBUSTE PYTHON-INSTALLATION ===[0m
|
||||
[0;35m[FORTSCHRITT] Installiere Python 3 und Build-Abhängigkeiten...[0m
|
||||
[0;35m[FORTSCHRITT] Installiere Pakete: python3[0m
|
||||
[0;35m[FORTSCHRITT] Installiere Pakete: python3-pip[0m
|
||||
[0;35m[FORTSCHRITT] Installiere Pakete: python3-dev[0m
|
||||
[0;35m[FORTSCHRITT] Installiere Pakete: python3-setuptools[0m
|
||||
[0;35m[FORTSCHRITT] Installiere Pakete: python3-venv[0m
|
||||
[0;35m[FORTSCHRITT] Installiere Pakete: python3-wheel[0m
|
||||
[0;35m[FORTSCHRITT] Installiere Pakete: build-essential[0m
|
||||
[0;35m[FORTSCHRITT] Installiere Pakete: libssl-dev[0m
|
||||
[0;35m[FORTSCHRITT] Installiere Pakete: libffi-dev[0m
|
||||
[0;35m[FORTSCHRITT] Installiere Pakete: libbz2-dev[0m
|
||||
[0;35m[FORTSCHRITT] Installiere Pakete: libreadline-dev[0m
|
||||
[0;35m[FORTSCHRITT] Installiere Pakete: libsqlite3-dev[0m
|
||||
[0;35m[FORTSCHRITT] Installiere Pakete: libncurses5-dev[0m
|
||||
[0;35m[FORTSCHRITT] Installiere Pakete: libncursesw5-dev[0m
|
||||
[0;35m[FORTSCHRITT] Installiere Pakete: zlib1g-dev[0m
|
||||
[0;35m[FORTSCHRITT] Installiere Pakete: sqlite3[0m
|
||||
[0;35m[FORTSCHRITT] Validiere Python-Installation...[0m
|
||||
[0;32m[2025-06-10 09:33:33] ✅ Python Version: 3.11.2[0m
|
||||
[0;35m[FORTSCHRITT] Konfiguriere pip für bessere Zuverlässigkeit...[0m
|
||||
[0;35m[FORTSCHRITT] Erstelle systemweite pip-Konfiguration...[0m
|
||||
[0;35m[FORTSCHRITT] Konfiguriere pip für alle Benutzer...[0m
|
||||
[0;32m[2025-06-10 09:33:33] ✅ pip konfiguriert für Benutzer: user[0m
|
||||
[0;35m[FORTSCHRITT] Aktualisiere pip mit Retry...[0m
|
||||
[0;32m[2025-06-10 09:33:34] ✅ pip Version: 25.1.1[0m
|
||||
[0;32m[2025-06-10 09:33:34] ✅ Robuste Python-Umgebung installiert[0m
|
||||
[0;32m[2025-06-10 09:33:34] === ROBUSTE NODE.JS UND NPM INSTALLATION ===[0m
|
||||
[0;35m[FORTSCHRITT] Bereinige alte Node.js-Installationen...[0m
|
||||
[0;35m[FORTSCHRITT] Installiere Node.js mit Fallback-Strategie...[0m
|
||||
[0;35m[FORTSCHRITT] Verwende Debian Repository als Fallback...[0m
|
||||
[0;35m[FORTSCHRITT] Installiere Pakete: nodejs npm[0m
|
||||
[0;32m[2025-06-10 09:35:02] ✅ Node.js via Debian Repository installiert[0m
|
||||
[0;35m[FORTSCHRITT] Validiere Node.js Installation...[0m
|
||||
[0;32m[2025-06-10 09:35:02] ✅ Node.js Version: v18.19.0[0m
|
||||
[0;32m[2025-06-10 09:35:03] ✅ npm Version: 9.2.0[0m
|
||||
[0;35m[FORTSCHRITT] Optimiere npm-Konfiguration...[0m
|
||||
[0;32m[2025-06-10 09:35:04] ✅ Node.js und npm erfolgreich installiert[0m
|
||||
[0;32m[2025-06-10 09:35:04] === ANTI-HÄNGE SSL-ZERTIFIKATE KONFIGURATION ===[0m
|
||||
[0;35m[FORTSCHRITT] Installiere SSL-Grundkomponenten (timeout-gesichert)...[0m
|
||||
[0;36m[ERFOLG] ✅ SSL-Grundkomponenten installiert[0m
|
||||
[0;35m[FORTSCHRITT] Überspringe CA-Update um Hänger zu vermeiden...[0m
|
||||
[0;34m[INFO] 💡 CA-Zertifikate werden beim nächsten Boot automatisch aktualisiert[0m
|
||||
[0;35m[FORTSCHRITT] Kopiere Mercedes-Zertifikate (max 30s)...[0m
|
||||
[0;34m[INFO] Mercedes-Zertifikate werden beim nächsten Boot aktiv[0m
|
||||
[0;35m[FORTSCHRITT] Konfiguriere SSL-Umgebungsvariablen (schnell)...[0m
|
||||
[0;32m[2025-06-10 09:35:04] ✅ SSL-Zertifikate anti-hänge konfiguriert[0m
|
||||
[0;34m[INFO] 📝 CA-Updates werden automatisch beim nächsten Boot durchgeführt[0m
|
||||
[0;32m[2025-06-10 09:35:04] === PYTHON-PAKETE INSTALLATION ===[0m
|
||||
[0;35m[FORTSCHRITT] Installiere Python-Pakete...[0m
|
||||
[0;35m[FORTSCHRITT] Installiere requirements.txt...[0m
|
||||
[0;36m[ERFOLG] ✅ requirements.txt erfolgreich installiert[0m
|
||||
[0;35m[FORTSCHRITT] Validiere essenzielle Python-Module...[0m
|
||||
[0;34m[DEBUG] flask erfolgreich importiert[0m
|
||||
[0;34m[DEBUG] requests erfolgreich importiert[0m
|
||||
[0;36m[ERFOLG] ✅ Essenzielle Python-Module verfügbar[0m
|
||||
[0;32m[2025-06-10 09:35:06] ✅ Python-Pakete Installation abgeschlossen[0m
|
||||
[0;35m[FORTSCHRITT] Zeige installierte Python-Pakete...[0m
|
||||
[0;32m[2025-06-10 09:35:06] === ROBUSTES ANWENDUNGS-DEPLOYMENT ===[0m
|
||||
[0;35m[FORTSCHRITT] Erstelle sicheres Zielverzeichnis: /opt/myp[0m
|
||||
[0;35m[FORTSCHRITT] Validiere Source-Dateien...[0m
|
||||
[0;35m[FORTSCHRITT] Kopiere Anwendungsdateien (robust)...[0m
|
||||
[0;35m[FORTSCHRITT] Kopiere kritische Datei: app.py[0m
|
||||
[0;36m[ERFOLG] ✅ app.py erfolgreich kopiert[0m
|
||||
[0;35m[FORTSCHRITT] Kopiere kritische Datei: models.py[0m
|
||||
[0;36m[ERFOLG] ✅ models.py erfolgreich kopiert[0m
|
||||
[0;35m[FORTSCHRITT] Kopiere kritische Datei: requirements.txt[0m
|
||||
[0;36m[ERFOLG] ✅ requirements.txt erfolgreich kopiert[0m
|
||||
[0;35m[FORTSCHRITT] Kopiere Verzeichnis: blueprints[0m
|
||||
[0;36m[ERFOLG] ✅ blueprints erfolgreich kopiert[0m
|
||||
[0;35m[FORTSCHRITT] Kopiere Verzeichnis: config[0m
|
||||
[0;36m[ERFOLG] ✅ config erfolgreich kopiert[0m
|
||||
[0;35m[FORTSCHRITT] Kopiere Verzeichnis: database[0m
|
||||
[0;36m[ERFOLG] ✅ database erfolgreich kopiert[0m
|
||||
[0;35m[FORTSCHRITT] Kopiere Verzeichnis: static[0m
|
||||
[0;36m[ERFOLG] ✅ static erfolgreich kopiert[0m
|
||||
[0;35m[FORTSCHRITT] Kopiere Verzeichnis: templates[0m
|
||||
[0;36m[ERFOLG] ✅ templates erfolgreich kopiert[0m
|
||||
[0;35m[FORTSCHRITT] Kopiere Verzeichnis: uploads[0m
|
||||
[0;36m[ERFOLG] ✅ uploads erfolgreich kopiert[0m
|
||||
[0;35m[FORTSCHRITT] Kopiere Verzeichnis: utils[0m
|
||||
[0;36m[ERFOLG] ✅ utils erfolgreich kopiert[0m
|
||||
[0;35m[FORTSCHRITT] Kopiere Verzeichnis: logs[0m
|
||||
[0;36m[ERFOLG] ✅ logs erfolgreich kopiert[0m
|
||||
[0;35m[FORTSCHRITT] Kopiere Verzeichnis: certs[0m
|
||||
[0;36m[ERFOLG] ✅ certs erfolgreich kopiert[0m
|
||||
[0;35m[FORTSCHRITT] Kopiere optionale Datei: package.json[0m
|
||||
[0;35m[FORTSCHRITT] Kopiere optionale Datei: package-lock.json[0m
|
||||
[0;35m[FORTSCHRITT] Kopiere optionale Datei: tailwind.config.js[0m
|
||||
[0;35m[FORTSCHRITT] Kopiere optionale Datei: postcss.config.js[0m
|
||||
[0;35m[FORTSCHRITT] Kopiere optionale Datei: README.md[0m
|
||||
[0;35m[FORTSCHRITT] Erstelle Verzeichnisstruktur...[0m
|
||||
[0;35m[FORTSCHRITT] Setze sichere Berechtigungen...[0m
|
||||
[0;35m[FORTSCHRITT] Konfiguriere robuste Python-Umgebung...[0m
|
||||
[0;32m[2025-06-10 09:35:16] ✅ Python-Pfad konfiguriert: /usr/local/lib/python3.11/dist-packages/myp-app.pth[0m
|
||||
[0;35m[FORTSCHRITT] Konfiguriere Umgebungsvariablen...[0m
|
||||
[0;35m[FORTSCHRITT] Versuche Bash-Profile zu aktualisieren (optional)...[0m
|
||||
[0;35m[FORTSCHRITT] Validiere Application Deployment...[0m
|
||||
[0;36m[ERFOLG] ✅ Application Deployment vollständig validiert[0m
|
||||
[0;32m[2025-06-10 09:35:16] ✅ Robustes Anwendungs-Deployment abgeschlossen[0m
|
||||
[0;32m[2025-06-10 09:35:16] 📁 App-Verzeichnis: /opt/myp[0m
|
||||
[0;32m[2025-06-10 09:35:16] 🐍 Python-Pfad konfiguriert[0m
|
||||
[0;32m[2025-06-10 09:35:16] 🔧 Bash-Profile konfiguriert[0m
|
||||
[0;32m[2025-06-10 09:35:16] 🛡️ Sichere Berechtigungen gesetzt[0m
|
||||
[0;32m[2025-06-10 09:35:16] === NPM-ABHÄNGIGKEITEN INSTALLATION ===[0m
|
||||
[0;35m[FORTSCHRITT] Installiere npm-Abhängigkeiten...[0m
|
||||
[0;32m[2025-06-10 09:35:17] ✅ npm install erfolgreich (Standard)[0m
|
||||
[0;35m[FORTSCHRITT] Korrigiere npm-Berechtigungen für kiosk-User...[0m
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
w#!/bin/bash
|
||||
|
||||
# Einfacher Syntax-Check für das Setup-Skript
|
||||
echo "Prüfe Bash-Syntax von setup.sh..."
|
||||
|
Reference in New Issue
Block a user