🔧 Update: Enhance error handling in API responses

**Änderungen:**
-  admin_unified.py: Hinzugefügt, um detaillierte Fehlermeldungen beim Cache-Clearing zu liefern.
-  jobs.py: Fehlerbehandlung optimiert, um sicherzustellen, dass die Datenbankverbindung korrekt geschlossen wird.
-  printers.py: Verbesserte Fehlerantworten für unerwartete Fehler in der Drucker-API.

**Ergebnis:**
- Verbesserte Benutzererfahrung durch klarere Fehlermeldungen und robustere Fehlerbehandlung in den API-Endpunkten.

🤖 Generated with [Claude Code](https://claude.ai/code)
This commit is contained in:
2025-06-16 01:04:23 +02:00
parent 124953049b
commit ed1b0e9125
153 changed files with 1958 additions and 41 deletions

View File

@ -35566,3 +35566,895 @@ jinja2.exceptions.UndefinedError: 'maintenance_info' is undefined
2025-06-16 00:54:21 - [app] app - [DEBUG] DEBUG - Request: POST /api/printers
2025-06-16 00:54:21 - [app] app - [WARNING] WARNING - Method Not Allowed (405): POST http://127.0.0.1:5000/api/printers
2025-06-16 00:54:21 - [app] app - [DEBUG] DEBUG - Response: 405
2025-06-16 00:54:22 - [app] app - [DEBUG] DEBUG - Request: GET /api/printers
2025-06-16 00:54:22 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen (include_inactive=False)
2025-06-16 00:54:22 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 00:54:22 - [app] app - [DEBUG] DEBUG - Request: GET /api/printers
2025-06-16 00:54:22 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-16 00:54:22 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen (include_inactive=False)
2025-06-16 00:54:22 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 00:54:22 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 00:54:34 - [app] app - [INFO] INFO - [SHUTDOWN] 🧹 Cleanup wird ausgeführt...
2025-06-16 00:54:34 - [app] app - [INFO] INFO - [SHUTDOWN] ✅ Queue Manager gestoppt
2025-06-16 00:54:34 - [app] app - [ERROR] ERROR - [SHUTDOWN] ❌ Cleanup-Fehler: 'BackgroundTaskScheduler' object has no attribute 'shutdown'
2025-06-16 00:54:37 - [app] app - [INFO] INFO - Optimierte SQLite-Engine erstellt: ./database/myp.db
2025-06-16 00:54:38 - [app] app - [INFO] INFO - [CONFIG] Erkannte Umgebung: development
2025-06-16 00:54:38 - [app] app - [INFO] INFO - [CONFIG] Production-Modus: False
2025-06-16 00:54:38 - [app] app - [INFO] INFO - [CONFIG] Verwende Development-Konfiguration
2025-06-16 00:54:38 - [app] app - [INFO] INFO - [DEVELOPMENT] Aktiviere Development-Konfiguration
2025-06-16 00:54:38 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ MYP Development Environment Konfiguration aktiviert
2025-06-16 00:54:38 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Environment: Development/Testing
2025-06-16 00:54:38 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Debug Mode: True
2025-06-16 00:54:38 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ SQL Echo: True
2025-06-16 00:54:38 - [app] app - [INFO] INFO - SQLite für Raspberry Pi optimiert (reduzierte Cache-Größe, SD-Karten I/O)
2025-06-16 00:54:38 - [app] app - [INFO] INFO - Admin-Berechtigungen beim Start korrigiert: 0 erstellt, 0 aktualisiert
2025-06-16 00:54:38 - [app] app - [INFO] INFO - [STARTUP] 🚀 Starte MYP DEVELOPMENT-Umgebung
2025-06-16 00:54:38 - [app] app - [INFO] INFO - [STARTUP] 🏢 Mercedes-Benz TBA Marienfelde
2025-06-16 00:54:38 - [app] app - [INFO] INFO - [STARTUP] 🔒 Air-Gapped: True
2025-06-16 00:54:38 - [app] app - [INFO] INFO - [STARTUP] Initialisiere Datenbank...
2025-06-16 00:54:38 - [app] app - [INFO] INFO - Datenbank mit Optimierungen initialisiert
2025-06-16 00:54:38 - [app] app - [INFO] INFO - [STARTUP] ✅ Datenbank initialisiert
2025-06-16 00:54:38 - [app] app - [INFO] INFO - [STARTUP] Prüfe Initial-Admin...
2025-06-16 00:54:39 - [app] app - [INFO] INFO - Admin-Benutzer admin (admin@mercedes-benz.com) existiert bereits. Passwort wurde zurückgesetzt.
2025-06-16 00:54:39 - [app] app - [INFO] INFO - [STARTUP] ✅ Admin-Benutzer geprüft
2025-06-16 00:54:39 - [app] app - [INFO] INFO - [STARTUP] Initialisiere statische Drucker...
2025-06-16 00:54:39 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 1 (192.168.0.100)
2025-06-16 00:54:39 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 2 (192.168.0.101)
2025-06-16 00:54:39 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 3 (192.168.0.102)
2025-06-16 00:54:39 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 4 (192.168.0.103)
2025-06-16 00:54:39 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 5 (192.168.0.104)
2025-06-16 00:54:39 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 6 (192.168.0.106)
2025-06-16 00:54:39 - [app] app - [INFO] INFO - ✅ Statische Drucker-Initialisierung abgeschlossen: 0 erstellt, 6 aktualisiert
2025-06-16 00:54:39 - [app] app - [INFO] INFO - 📍 Alle Drucker sind für Standort 'TBA Marienfelde' konfiguriert
2025-06-16 00:54:39 - [app] app - [INFO] INFO - 🌐 IP-Bereich: 192.168.0.100-106 (außer .105)
2025-06-16 00:54:39 - [app] app - [INFO] INFO - [STARTUP] ✅ Statische Drucker konfiguriert
2025-06-16 00:54:39 - [app] app - [INFO] INFO - [STARTUP] Starte Queue Manager...
2025-06-16 00:54:39 - [app] app - [INFO] INFO - [STARTUP] ✅ Queue Manager gestartet
2025-06-16 00:54:39 - [app] app - [INFO] INFO - [STARTUP] Starte Job Scheduler...
2025-06-16 00:54:39 - [app] app - [INFO] INFO - [STARTUP] ✅ Job Scheduler gestartet
2025-06-16 00:54:39 - [app] app - [INFO] INFO - [STARTUP] 🌐 Server startet auf http://0.0.0.0:5000
2025-06-16 00:54:49 - [app] app - [INFO] INFO - [SHUTDOWN] 🧹 Cleanup wird ausgeführt...
2025-06-16 00:54:49 - [app] app - [INFO] INFO - [SHUTDOWN] ✅ Queue Manager gestoppt
2025-06-16 00:54:49 - [app] app - [ERROR] ERROR - [SHUTDOWN] ❌ Cleanup-Fehler: 'BackgroundTaskScheduler' object has no attribute 'shutdown'
2025-06-16 00:54:51 - [app] app - [INFO] INFO - Optimierte SQLite-Engine erstellt: ./database/myp.db
2025-06-16 00:54:53 - [app] app - [INFO] INFO - [CONFIG] Erkannte Umgebung: development
2025-06-16 00:54:53 - [app] app - [INFO] INFO - [CONFIG] Production-Modus: False
2025-06-16 00:54:53 - [app] app - [INFO] INFO - [CONFIG] Verwende Development-Konfiguration
2025-06-16 00:54:53 - [app] app - [INFO] INFO - [DEVELOPMENT] Aktiviere Development-Konfiguration
2025-06-16 00:54:53 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ MYP Development Environment Konfiguration aktiviert
2025-06-16 00:54:53 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Environment: Development/Testing
2025-06-16 00:54:53 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Debug Mode: True
2025-06-16 00:54:53 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ SQL Echo: True
2025-06-16 00:54:54 - [app] app - [INFO] INFO - SQLite für Raspberry Pi optimiert (reduzierte Cache-Größe, SD-Karten I/O)
2025-06-16 00:54:54 - [app] app - [INFO] INFO - Admin-Berechtigungen beim Start korrigiert: 0 erstellt, 0 aktualisiert
2025-06-16 00:54:54 - [app] app - [INFO] INFO - [STARTUP] 🚀 Starte MYP DEVELOPMENT-Umgebung
2025-06-16 00:54:54 - [app] app - [INFO] INFO - [STARTUP] 🏢 Mercedes-Benz TBA Marienfelde
2025-06-16 00:54:54 - [app] app - [INFO] INFO - [STARTUP] 🔒 Air-Gapped: True
2025-06-16 00:54:54 - [app] app - [INFO] INFO - [STARTUP] Initialisiere Datenbank...
2025-06-16 00:54:54 - [app] app - [INFO] INFO - Datenbank mit Optimierungen initialisiert
2025-06-16 00:54:54 - [app] app - [INFO] INFO - [STARTUP] ✅ Datenbank initialisiert
2025-06-16 00:54:54 - [app] app - [INFO] INFO - [STARTUP] Prüfe Initial-Admin...
2025-06-16 00:54:54 - [app] app - [INFO] INFO - Admin-Benutzer admin (admin@mercedes-benz.com) existiert bereits. Passwort wurde zurückgesetzt.
2025-06-16 00:54:54 - [app] app - [INFO] INFO - [STARTUP] ✅ Admin-Benutzer geprüft
2025-06-16 00:54:54 - [app] app - [INFO] INFO - [STARTUP] Initialisiere statische Drucker...
2025-06-16 00:54:54 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 1 (192.168.0.100)
2025-06-16 00:54:55 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 2 (192.168.0.101)
2025-06-16 00:54:55 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 3 (192.168.0.102)
2025-06-16 00:54:55 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 4 (192.168.0.103)
2025-06-16 00:54:55 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 5 (192.168.0.104)
2025-06-16 00:54:55 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 6 (192.168.0.106)
2025-06-16 00:54:55 - [app] app - [INFO] INFO - ✅ Statische Drucker-Initialisierung abgeschlossen: 0 erstellt, 6 aktualisiert
2025-06-16 00:54:55 - [app] app - [INFO] INFO - 📍 Alle Drucker sind für Standort 'TBA Marienfelde' konfiguriert
2025-06-16 00:54:55 - [app] app - [INFO] INFO - 🌐 IP-Bereich: 192.168.0.100-106 (außer .105)
2025-06-16 00:54:55 - [app] app - [INFO] INFO - [STARTUP] ✅ Statische Drucker konfiguriert
2025-06-16 00:54:55 - [app] app - [INFO] INFO - [STARTUP] Starte Queue Manager...
2025-06-16 00:54:55 - [app] app - [INFO] INFO - [STARTUP] ✅ Queue Manager gestartet
2025-06-16 00:54:55 - [app] app - [INFO] INFO - [STARTUP] Starte Job Scheduler...
2025-06-16 00:54:55 - [app] app - [INFO] INFO - [STARTUP] ✅ Job Scheduler gestartet
2025-06-16 00:54:55 - [app] app - [INFO] INFO - [STARTUP] 🌐 Server startet auf http://0.0.0.0:5000
2025-06-16 00:54:57 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen (include_inactive=False)
2025-06-16 00:54:57 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen (include_inactive=False)
2025-06-16 00:55:22 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen (include_inactive=False)
2025-06-16 00:55:22 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen (include_inactive=False)
2025-06-16 00:55:52 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen (include_inactive=False)
2025-06-16 00:55:52 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen (include_inactive=False)
2025-06-16 00:56:22 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen (include_inactive=False)
2025-06-16 00:56:22 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen (include_inactive=False)
2025-06-16 00:56:52 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen (include_inactive=False)
2025-06-16 00:56:52 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen (include_inactive=False)
2025-06-16 00:57:22 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen (include_inactive=False)
2025-06-16 00:57:22 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen (include_inactive=False)
2025-06-16 00:59:47 - [app] app - [INFO] INFO - Optimierte SQLite-Engine erstellt: ./database/myp.db
2025-06-16 00:59:48 - [app] app - [INFO] INFO - [CONFIG] Erkannte Umgebung: development
2025-06-16 00:59:48 - [app] app - [INFO] INFO - [CONFIG] Production-Modus: False
2025-06-16 00:59:48 - [app] app - [INFO] INFO - [CONFIG] Verwende Development-Konfiguration
2025-06-16 00:59:48 - [app] app - [INFO] INFO - [DEVELOPMENT] Aktiviere Development-Konfiguration
2025-06-16 00:59:48 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ MYP Development Environment Konfiguration aktiviert
2025-06-16 00:59:48 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Environment: Development/Testing
2025-06-16 00:59:48 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Debug Mode: True
2025-06-16 00:59:48 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ SQL Echo: True
2025-06-16 00:59:49 - [app] app - [INFO] INFO - SQLite für Raspberry Pi optimiert (reduzierte Cache-Größe, SD-Karten I/O)
2025-06-16 00:59:49 - [app] app - [INFO] INFO - Admin-Berechtigungen beim Start korrigiert: 0 erstellt, 0 aktualisiert
2025-06-16 00:59:49 - [app] app - [INFO] INFO - [STARTUP] 🚀 Starte MYP DEVELOPMENT-Umgebung
2025-06-16 00:59:49 - [app] app - [INFO] INFO - [STARTUP] 🏢 Mercedes-Benz TBA Marienfelde
2025-06-16 00:59:49 - [app] app - [INFO] INFO - [STARTUP] 🔒 Air-Gapped: True
2025-06-16 00:59:49 - [app] app - [INFO] INFO - [STARTUP] Initialisiere Datenbank...
2025-06-16 00:59:49 - [app] app - [INFO] INFO - Datenbank mit Optimierungen initialisiert
2025-06-16 00:59:49 - [app] app - [INFO] INFO - [STARTUP] ✅ Datenbank initialisiert
2025-06-16 00:59:49 - [app] app - [INFO] INFO - [STARTUP] Prüfe Initial-Admin...
2025-06-16 00:59:49 - [app] app - [INFO] INFO - Admin-Benutzer admin (admin@mercedes-benz.com) existiert bereits. Passwort wurde zurückgesetzt.
2025-06-16 00:59:49 - [app] app - [INFO] INFO - [STARTUP] ✅ Admin-Benutzer geprüft
2025-06-16 00:59:49 - [app] app - [INFO] INFO - [STARTUP] Initialisiere statische Drucker...
2025-06-16 00:59:49 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 1 (192.168.0.100)
2025-06-16 00:59:49 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 2 (192.168.0.101)
2025-06-16 00:59:49 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 3 (192.168.0.102)
2025-06-16 00:59:49 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 4 (192.168.0.103)
2025-06-16 00:59:49 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 5 (192.168.0.104)
2025-06-16 00:59:49 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 6 (192.168.0.106)
2025-06-16 00:59:49 - [app] app - [INFO] INFO - ✅ Statische Drucker-Initialisierung abgeschlossen: 0 erstellt, 6 aktualisiert
2025-06-16 00:59:49 - [app] app - [INFO] INFO - 📍 Alle Drucker sind für Standort 'TBA Marienfelde' konfiguriert
2025-06-16 00:59:49 - [app] app - [INFO] INFO - 🌐 IP-Bereich: 192.168.0.100-106 (außer .105)
2025-06-16 00:59:49 - [app] app - [INFO] INFO - [STARTUP] ✅ Statische Drucker konfiguriert
2025-06-16 00:59:49 - [app] app - [INFO] INFO - [STARTUP] Starte Queue Manager...
2025-06-16 00:59:49 - [app] app - [INFO] INFO - [STARTUP] ✅ Queue Manager gestartet
2025-06-16 00:59:49 - [app] app - [INFO] INFO - [STARTUP] Starte Job Scheduler...
2025-06-16 00:59:49 - [app] app - [INFO] INFO - [STARTUP] ✅ Job Scheduler gestartet
2025-06-16 00:59:49 - [app] app - [INFO] INFO - [STARTUP] 🌐 Server startet auf http://0.0.0.0:5000
2025-06-16 00:59:50 - [app] app - [INFO] INFO - Optimierte SQLite-Engine erstellt: ./database/myp.db
2025-06-16 00:59:51 - [app] app - [INFO] INFO - [CONFIG] Erkannte Umgebung: development
2025-06-16 00:59:51 - [app] app - [INFO] INFO - [CONFIG] Production-Modus: False
2025-06-16 00:59:51 - [app] app - [INFO] INFO - [CONFIG] Verwende Development-Konfiguration
2025-06-16 00:59:51 - [app] app - [INFO] INFO - [DEVELOPMENT] Aktiviere Development-Konfiguration
2025-06-16 00:59:51 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ MYP Development Environment Konfiguration aktiviert
2025-06-16 00:59:51 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Environment: Development/Testing
2025-06-16 00:59:51 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Debug Mode: True
2025-06-16 00:59:51 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ SQL Echo: True
2025-06-16 00:59:52 - [app] app - [INFO] INFO - SQLite für Raspberry Pi optimiert (reduzierte Cache-Größe, SD-Karten I/O)
2025-06-16 00:59:52 - [app] app - [INFO] INFO - Admin-Berechtigungen beim Start korrigiert: 0 erstellt, 0 aktualisiert
2025-06-16 00:59:52 - [app] app - [INFO] INFO - [STARTUP] 🚀 Starte MYP DEVELOPMENT-Umgebung
2025-06-16 00:59:52 - [app] app - [INFO] INFO - [STARTUP] 🏢 Mercedes-Benz TBA Marienfelde
2025-06-16 00:59:52 - [app] app - [INFO] INFO - [STARTUP] 🔒 Air-Gapped: True
2025-06-16 00:59:52 - [app] app - [INFO] INFO - [STARTUP] Initialisiere Datenbank...
2025-06-16 00:59:52 - [app] app - [INFO] INFO - Datenbank mit Optimierungen initialisiert
2025-06-16 00:59:52 - [app] app - [INFO] INFO - [STARTUP] ✅ Datenbank initialisiert
2025-06-16 00:59:52 - [app] app - [INFO] INFO - [STARTUP] Prüfe Initial-Admin...
2025-06-16 00:59:52 - [app] app - [INFO] INFO - Admin-Benutzer admin (admin@mercedes-benz.com) existiert bereits. Passwort wurde zurückgesetzt.
2025-06-16 00:59:52 - [app] app - [INFO] INFO - [STARTUP] ✅ Admin-Benutzer geprüft
2025-06-16 00:59:52 - [app] app - [INFO] INFO - [STARTUP] Initialisiere statische Drucker...
2025-06-16 00:59:52 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 1 (192.168.0.100)
2025-06-16 00:59:52 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 2 (192.168.0.101)
2025-06-16 00:59:52 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 3 (192.168.0.102)
2025-06-16 00:59:52 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 4 (192.168.0.103)
2025-06-16 00:59:52 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 5 (192.168.0.104)
2025-06-16 00:59:52 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 6 (192.168.0.106)
2025-06-16 00:59:52 - [app] app - [INFO] INFO - ✅ Statische Drucker-Initialisierung abgeschlossen: 0 erstellt, 6 aktualisiert
2025-06-16 00:59:52 - [app] app - [INFO] INFO - 📍 Alle Drucker sind für Standort 'TBA Marienfelde' konfiguriert
2025-06-16 00:59:52 - [app] app - [INFO] INFO - 🌐 IP-Bereich: 192.168.0.100-106 (außer .105)
2025-06-16 00:59:52 - [app] app - [INFO] INFO - [STARTUP] ✅ Statische Drucker konfiguriert
2025-06-16 00:59:52 - [app] app - [INFO] INFO - [STARTUP] Starte Queue Manager...
2025-06-16 00:59:52 - [app] app - [INFO] INFO - [STARTUP] ✅ Queue Manager gestartet
2025-06-16 00:59:52 - [app] app - [INFO] INFO - [STARTUP] Starte Job Scheduler...
2025-06-16 00:59:52 - [app] app - [INFO] INFO - [STARTUP] ✅ Job Scheduler gestartet
2025-06-16 00:59:52 - [app] app - [INFO] INFO - [STARTUP] 🌐 Server startet auf http://0.0.0.0:5000
2025-06-16 00:59:54 - [app] app - [INFO] INFO - Locating template 'dashboard.html':
1: trying loader of application '__main__'
class: jinja2.loaders.FileSystemLoader
encoding: 'utf-8'
followlinks: False
searchpath:
- /cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates
-> found ('/cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates/dashboard.html')
2025-06-16 00:59:54 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen (include_inactive=False)
2025-06-16 00:59:54 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 00:59:54 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-16 00:59:54 - [app] app - [INFO] INFO - Locating template 'base.html':
1: trying loader of application '__main__'
class: jinja2.loaders.FileSystemLoader
encoding: 'utf-8'
followlinks: False
searchpath:
- /cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates
-> found ('/cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates/base.html')
2025-06-16 00:59:54 - [app] app - [DEBUG] DEBUG - Request: GET /api/printers
2025-06-16 00:59:54 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen (include_inactive=False)
2025-06-16 00:59:54 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 00:59:54 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 00:59:54 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 00:59:54 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-16 00:59:54 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 00:59:56 - [app] app - [DEBUG] DEBUG - Request: GET /sw.js
2025-06-16 00:59:56 - [app] app - [DEBUG] DEBUG - Response: 304
2025-06-16 00:59:56 - [app] app - [DEBUG] DEBUG - Request: GET /printers
2025-06-16 00:59:56 - [app] app - [INFO] INFO - Locating template 'printers.html':
1: trying loader of application '__main__'
class: jinja2.loaders.FileSystemLoader
encoding: 'utf-8'
followlinks: False
searchpath:
- /cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates
-> found ('/cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates/printers.html')
2025-06-16 00:59:56 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 00:59:57 - [app] app - [DEBUG] DEBUG - Request: GET /api/printers
2025-06-16 00:59:57 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen (include_inactive=False)
2025-06-16 00:59:57 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 00:59:57 - [app] app - [DEBUG] DEBUG - Request: GET /api/printers
2025-06-16 00:59:57 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen (include_inactive=False)
2025-06-16 00:59:57 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 00:59:57 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-16 00:59:57 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 00:59:59 - [app] app - [DEBUG] DEBUG - Request: GET /calendar
2025-06-16 00:59:59 - [app] app - [INFO] INFO - Locating template 'calendar.html':
1: trying loader of application '__main__'
class: jinja2.loaders.FileSystemLoader
encoding: 'utf-8'
followlinks: False
searchpath:
- /cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates
-> found ('/cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates/calendar.html')
2025-06-16 00:59:59 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 00:59:59 - [app] app - [DEBUG] DEBUG - Request: GET /sw.js
2025-06-16 00:59:59 - [app] app - [DEBUG] DEBUG - Response: 304
2025-06-16 00:59:59 - [app] app - [DEBUG] DEBUG - Request: GET /api/calendar/events
2025-06-16 01:00:00 - [app] app - [DEBUG] DEBUG - Request: GET /api/calendar/statistics
2025-06-16 01:00:00 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-16 01:00:00 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 01:00:00 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 01:00:02 - [app] app - [DEBUG] DEBUG - Request: GET /sw.js
2025-06-16 01:00:02 - [app] app - [DEBUG] DEBUG - Response: 304
2025-06-16 01:00:02 - [app] app - [INFO] INFO - Steckdosen-Status geloggt: Drucker 1, Status: unreachable, Quelle: system
2025-06-16 01:00:02 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 01:00:02 - [app] app - [DEBUG] DEBUG - Request: GET /api/calendar/statistics
2025-06-16 01:00:02 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 01:00:06 - [app] app - [INFO] INFO - [SHUTDOWN] 🧹 Cleanup wird ausgeführt...
2025-06-16 01:00:06 - [app] app - [INFO] INFO - [SHUTDOWN] ✅ Queue Manager gestoppt
2025-06-16 01:00:06 - [app] app - [ERROR] ERROR - [SHUTDOWN] ❌ Cleanup-Fehler: 'BackgroundTaskScheduler' object has no attribute 'shutdown'
2025-06-16 01:00:14 - [app] app - [INFO] INFO - Optimierte SQLite-Engine erstellt: ./database/myp.db
2025-06-16 01:00:16 - [app] app - [INFO] INFO - [CONFIG] Erkannte Umgebung: development
2025-06-16 01:00:16 - [app] app - [INFO] INFO - [CONFIG] Production-Modus: False
2025-06-16 01:00:16 - [app] app - [INFO] INFO - [CONFIG] Verwende Development-Konfiguration
2025-06-16 01:00:16 - [app] app - [INFO] INFO - [DEVELOPMENT] Aktiviere Development-Konfiguration
2025-06-16 01:00:16 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ MYP Development Environment Konfiguration aktiviert
2025-06-16 01:00:16 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Environment: Development/Testing
2025-06-16 01:00:16 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Debug Mode: True
2025-06-16 01:00:16 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ SQL Echo: True
2025-06-16 01:00:16 - [app] app - [INFO] INFO - SQLite für Raspberry Pi optimiert (reduzierte Cache-Größe, SD-Karten I/O)
2025-06-16 01:00:16 - [app] app - [INFO] INFO - Admin-Berechtigungen beim Start korrigiert: 0 erstellt, 0 aktualisiert
2025-06-16 01:00:16 - [app] app - [INFO] INFO - [STARTUP] 🚀 Starte MYP DEVELOPMENT-Umgebung
2025-06-16 01:00:16 - [app] app - [INFO] INFO - [STARTUP] 🏢 Mercedes-Benz TBA Marienfelde
2025-06-16 01:00:16 - [app] app - [INFO] INFO - [STARTUP] 🔒 Air-Gapped: True
2025-06-16 01:00:16 - [app] app - [INFO] INFO - [STARTUP] Initialisiere Datenbank...
2025-06-16 01:00:16 - [app] app - [INFO] INFO - Datenbank mit Optimierungen initialisiert
2025-06-16 01:00:16 - [app] app - [INFO] INFO - [STARTUP] ✅ Datenbank initialisiert
2025-06-16 01:00:16 - [app] app - [INFO] INFO - [STARTUP] Prüfe Initial-Admin...
2025-06-16 01:00:17 - [app] app - [INFO] INFO - Admin-Benutzer admin (admin@mercedes-benz.com) existiert bereits. Passwort wurde zurückgesetzt.
2025-06-16 01:00:17 - [app] app - [INFO] INFO - [STARTUP] ✅ Admin-Benutzer geprüft
2025-06-16 01:00:17 - [app] app - [INFO] INFO - [STARTUP] Initialisiere statische Drucker...
2025-06-16 01:00:17 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 1 (192.168.0.100)
2025-06-16 01:00:17 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 2 (192.168.0.101)
2025-06-16 01:00:17 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 3 (192.168.0.102)
2025-06-16 01:00:17 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 4 (192.168.0.103)
2025-06-16 01:00:17 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 5 (192.168.0.104)
2025-06-16 01:00:17 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 6 (192.168.0.106)
2025-06-16 01:00:17 - [app] app - [INFO] INFO - ✅ Statische Drucker-Initialisierung abgeschlossen: 0 erstellt, 6 aktualisiert
2025-06-16 01:00:17 - [app] app - [INFO] INFO - 📍 Alle Drucker sind für Standort 'TBA Marienfelde' konfiguriert
2025-06-16 01:00:17 - [app] app - [INFO] INFO - 🌐 IP-Bereich: 192.168.0.100-106 (außer .105)
2025-06-16 01:00:17 - [app] app - [INFO] INFO - [STARTUP] ✅ Statische Drucker konfiguriert
2025-06-16 01:00:17 - [app] app - [INFO] INFO - [STARTUP] Starte Queue Manager...
2025-06-16 01:00:17 - [app] app - [INFO] INFO - [STARTUP] ✅ Queue Manager gestartet
2025-06-16 01:00:17 - [app] app - [INFO] INFO - [STARTUP] Starte Job Scheduler...
2025-06-16 01:00:17 - [app] app - [INFO] INFO - [STARTUP] ✅ Job Scheduler gestartet
2025-06-16 01:00:17 - [app] app - [INFO] INFO - [STARTUP] 🌐 Server startet auf http://0.0.0.0:5000
2025-06-16 01:00:18 - [app] app - [INFO] INFO - Optimierte SQLite-Engine erstellt: ./database/myp.db
2025-06-16 01:00:19 - [app] app - [INFO] INFO - [CONFIG] Erkannte Umgebung: development
2025-06-16 01:00:19 - [app] app - [INFO] INFO - [CONFIG] Production-Modus: False
2025-06-16 01:00:19 - [app] app - [INFO] INFO - [CONFIG] Verwende Development-Konfiguration
2025-06-16 01:00:19 - [app] app - [INFO] INFO - [DEVELOPMENT] Aktiviere Development-Konfiguration
2025-06-16 01:00:19 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ MYP Development Environment Konfiguration aktiviert
2025-06-16 01:00:19 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Environment: Development/Testing
2025-06-16 01:00:19 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Debug Mode: True
2025-06-16 01:00:19 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ SQL Echo: True
2025-06-16 01:00:19 - [app] app - [INFO] INFO - SQLite für Raspberry Pi optimiert (reduzierte Cache-Größe, SD-Karten I/O)
2025-06-16 01:00:19 - [app] app - [INFO] INFO - Admin-Berechtigungen beim Start korrigiert: 0 erstellt, 0 aktualisiert
2025-06-16 01:00:19 - [app] app - [INFO] INFO - [STARTUP] 🚀 Starte MYP DEVELOPMENT-Umgebung
2025-06-16 01:00:19 - [app] app - [INFO] INFO - [STARTUP] 🏢 Mercedes-Benz TBA Marienfelde
2025-06-16 01:00:19 - [app] app - [INFO] INFO - [STARTUP] 🔒 Air-Gapped: True
2025-06-16 01:00:19 - [app] app - [INFO] INFO - [STARTUP] Initialisiere Datenbank...
2025-06-16 01:00:19 - [app] app - [INFO] INFO - Datenbank mit Optimierungen initialisiert
2025-06-16 01:00:19 - [app] app - [INFO] INFO - [STARTUP] ✅ Datenbank initialisiert
2025-06-16 01:00:19 - [app] app - [INFO] INFO - [STARTUP] Prüfe Initial-Admin...
2025-06-16 01:00:20 - [app] app - [INFO] INFO - Admin-Benutzer admin (admin@mercedes-benz.com) existiert bereits. Passwort wurde zurückgesetzt.
2025-06-16 01:00:20 - [app] app - [INFO] INFO - [STARTUP] ✅ Admin-Benutzer geprüft
2025-06-16 01:00:20 - [app] app - [INFO] INFO - [STARTUP] Initialisiere statische Drucker...
2025-06-16 01:00:20 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 1 (192.168.0.100)
2025-06-16 01:00:20 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 2 (192.168.0.101)
2025-06-16 01:00:20 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 3 (192.168.0.102)
2025-06-16 01:00:20 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 4 (192.168.0.103)
2025-06-16 01:00:20 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 5 (192.168.0.104)
2025-06-16 01:00:20 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 6 (192.168.0.106)
2025-06-16 01:00:20 - [app] app - [INFO] INFO - ✅ Statische Drucker-Initialisierung abgeschlossen: 0 erstellt, 6 aktualisiert
2025-06-16 01:00:20 - [app] app - [INFO] INFO - 📍 Alle Drucker sind für Standort 'TBA Marienfelde' konfiguriert
2025-06-16 01:00:20 - [app] app - [INFO] INFO - 🌐 IP-Bereich: 192.168.0.100-106 (außer .105)
2025-06-16 01:00:20 - [app] app - [INFO] INFO - [STARTUP] ✅ Statische Drucker konfiguriert
2025-06-16 01:00:20 - [app] app - [INFO] INFO - [STARTUP] Starte Queue Manager...
2025-06-16 01:00:20 - [app] app - [INFO] INFO - [STARTUP] ✅ Queue Manager gestartet
2025-06-16 01:00:20 - [app] app - [INFO] INFO - [STARTUP] Starte Job Scheduler...
2025-06-16 01:00:20 - [app] app - [INFO] INFO - [STARTUP] ✅ Job Scheduler gestartet
2025-06-16 01:00:20 - [app] app - [INFO] INFO - [STARTUP] 🌐 Server startet auf http://0.0.0.0:5000
2025-06-16 01:00:23 - [app] app - [INFO] INFO - Locating template 'admin_advanced_settings.html':
1: trying loader of application '__main__'
class: jinja2.loaders.FileSystemLoader
encoding: 'utf-8'
followlinks: False
searchpath:
- /cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates
-> found ('/cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates/admin_advanced_settings.html')
2025-06-16 01:00:23 - [app] app - [INFO] INFO - Locating template 'base.html':
1: trying loader of application '__main__'
class: jinja2.loaders.FileSystemLoader
encoding: 'utf-8'
followlinks: False
searchpath:
- /cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates
-> found ('/cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates/base.html')
2025-06-16 01:00:23 - [app] app - [ERROR] ERROR - Unhandled Exception - ID: 20250616_010023
2025-06-16 01:00:23 - [app] app - [ERROR] ERROR - URL: http://127.0.0.1:5000/admin/advanced-settings
2025-06-16 01:00:23 - [app] app - [ERROR] ERROR - Method: GET
2025-06-16 01:00:23 - [app] app - [ERROR] ERROR - User: admin
2025-06-16 01:00:23 - [app] app - [ERROR] ERROR - Exception Type: UndefinedError
2025-06-16 01:00:23 - [app] app - [ERROR] ERROR - Exception: 'maintenance_info' is undefined
2025-06-16 01:00:23 - [app] app - [ERROR] ERROR - Traceback: Traceback (most recent call last):
File "/cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/blueprints/admin_unified.py", line 326, in advanced_settings
return render_template('admin_advanced_settings.html', stats=stats, optimization_settings=optimization_settings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/core/.local/lib/python3.11/site-packages/flask/templating.py", line 152, in render_template
return _render(app, template, context)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/core/.local/lib/python3.11/site-packages/flask/templating.py", line 133, in _render
rv = template.render(context)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/core/.local/lib/python3.11/site-packages/jinja2/environment.py", line 1301, in render
self.environment.handle_exception()
File "/home/core/.local/lib/python3.11/site-packages/jinja2/environment.py", line 936, in handle_exception
raise rewrite_traceback_stack(source=source)
File "/cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates/admin_advanced_settings.html", line 1, in top-level template code
{% extends "base.html" %}
File "/cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates/base.html", line 459, in top-level template code
{% block content %}{% endblock %}
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates/admin_advanced_settings.html", line 532, in block 'content'
<span class="text-slate-900 dark:text-white font-semibold">{{ maintenance_info.last_backup }}</span>
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/core/.local/lib/python3.11/site-packages/jinja2/environment.py", line 485, in getattr
return getattr(obj, attribute)
^^^^^^^^^^^^^^^^^^^^^^^
jinja2.exceptions.UndefinedError: 'maintenance_info' is undefined
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/core/.local/lib/python3.11/site-packages/flask/app.py", line 867, in full_dispatch_request
rv = self.dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^
File "/home/core/.local/lib/python3.11/site-packages/flask/app.py", line 852, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/core/.local/lib/python3.11/site-packages/flask_login/utils.py", line 290, in decorated_view
return current_app.ensure_sync(func)(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/blueprints/admin_unified.py", line 88, in decorated_function
return f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^
File "/cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/blueprints/admin_unified.py", line 350, in advanced_settings
return render_template('admin_advanced_settings.html', stats=stats, optimization_settings=optimization_settings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/core/.local/lib/python3.11/site-packages/flask/templating.py", line 152, in render_template
return _render(app, template, context)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/core/.local/lib/python3.11/site-packages/flask/templating.py", line 133, in _render
rv = template.render(context)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/core/.local/lib/python3.11/site-packages/jinja2/environment.py", line 1301, in render
self.environment.handle_exception()
File "/home/core/.local/lib/python3.11/site-packages/jinja2/environment.py", line 936, in handle_exception
raise rewrite_traceback_stack(source=source)
File "/cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates/admin_advanced_settings.html", line 1, in top-level template code
{% extends "base.html" %}
File "/cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates/base.html", line 459, in top-level template code
{% block content %}{% endblock %}
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates/admin_advanced_settings.html", line 532, in block 'content'
<span class="text-slate-900 dark:text-white font-semibold">{{ maintenance_info.last_backup }}</span>
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/core/.local/lib/python3.11/site-packages/jinja2/environment.py", line 485, in getattr
return getattr(obj, attribute)
^^^^^^^^^^^^^^^^^^^^^^^
jinja2.exceptions.UndefinedError: 'maintenance_info' is undefined
2025-06-16 01:00:23 - [app] app - [INFO] INFO - Locating template 'errors/500.html':
1: trying loader of application '__main__'
class: jinja2.loaders.FileSystemLoader
encoding: 'utf-8'
followlinks: False
searchpath:
- /cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates
-> found ('/cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates/errors/500.html')
2025-06-16 01:00:23 - [app] app - [DEBUG] DEBUG - Response: 500
2025-06-16 01:00:25 - [app] app - [DEBUG] DEBUG - Request: GET /admin/advanced-settings
2025-06-16 01:00:25 - [app] app - [ERROR] ERROR - Unhandled Exception - ID: 20250616_010025
2025-06-16 01:00:25 - [app] app - [ERROR] ERROR - URL: http://127.0.0.1:5000/admin/advanced-settings
2025-06-16 01:00:25 - [app] app - [ERROR] ERROR - Method: GET
2025-06-16 01:00:25 - [app] app - [ERROR] ERROR - User: admin
2025-06-16 01:00:25 - [app] app - [ERROR] ERROR - Exception Type: UndefinedError
2025-06-16 01:00:25 - [app] app - [ERROR] ERROR - Exception: 'maintenance_info' is undefined
2025-06-16 01:00:25 - [app] app - [ERROR] ERROR - Traceback: Traceback (most recent call last):
File "/cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/blueprints/admin_unified.py", line 326, in advanced_settings
return render_template('admin_advanced_settings.html', stats=stats, optimization_settings=optimization_settings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/core/.local/lib/python3.11/site-packages/flask/templating.py", line 152, in render_template
return _render(app, template, context)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/core/.local/lib/python3.11/site-packages/flask/templating.py", line 133, in _render
rv = template.render(context)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/core/.local/lib/python3.11/site-packages/jinja2/environment.py", line 1301, in render
self.environment.handle_exception()
File "/home/core/.local/lib/python3.11/site-packages/jinja2/environment.py", line 936, in handle_exception
raise rewrite_traceback_stack(source=source)
File "/cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates/admin_advanced_settings.html", line 1, in top-level template code
{% extends "base.html" %}
File "/cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates/base.html", line 459, in top-level template code
{% block content %}{% endblock %}
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates/admin_advanced_settings.html", line 532, in block 'content'
<span class="text-slate-900 dark:text-white font-semibold">{{ maintenance_info.last_backup }}</span>
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/core/.local/lib/python3.11/site-packages/jinja2/environment.py", line 485, in getattr
return getattr(obj, attribute)
^^^^^^^^^^^^^^^^^^^^^^^
jinja2.exceptions.UndefinedError: 'maintenance_info' is undefined
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/core/.local/lib/python3.11/site-packages/flask/app.py", line 867, in full_dispatch_request
rv = self.dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^
File "/home/core/.local/lib/python3.11/site-packages/flask/app.py", line 852, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/core/.local/lib/python3.11/site-packages/flask_login/utils.py", line 290, in decorated_view
return current_app.ensure_sync(func)(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/blueprints/admin_unified.py", line 88, in decorated_function
return f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^
File "/cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/blueprints/admin_unified.py", line 350, in advanced_settings
return render_template('admin_advanced_settings.html', stats=stats, optimization_settings=optimization_settings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/core/.local/lib/python3.11/site-packages/flask/templating.py", line 152, in render_template
return _render(app, template, context)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/core/.local/lib/python3.11/site-packages/flask/templating.py", line 133, in _render
rv = template.render(context)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/core/.local/lib/python3.11/site-packages/jinja2/environment.py", line 1301, in render
self.environment.handle_exception()
File "/home/core/.local/lib/python3.11/site-packages/jinja2/environment.py", line 936, in handle_exception
raise rewrite_traceback_stack(source=source)
File "/cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates/admin_advanced_settings.html", line 1, in top-level template code
{% extends "base.html" %}
File "/cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates/base.html", line 459, in top-level template code
{% block content %}{% endblock %}
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates/admin_advanced_settings.html", line 532, in block 'content'
<span class="text-slate-900 dark:text-white font-semibold">{{ maintenance_info.last_backup }}</span>
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/core/.local/lib/python3.11/site-packages/jinja2/environment.py", line 485, in getattr
return getattr(obj, attribute)
^^^^^^^^^^^^^^^^^^^^^^^
jinja2.exceptions.UndefinedError: 'maintenance_info' is undefined
2025-06-16 01:00:25 - [app] app - [DEBUG] DEBUG - Response: 500
2025-06-16 01:00:25 - [app] app - [DEBUG] DEBUG - Request: GET /sw.js
2025-06-16 01:00:25 - [app] app - [DEBUG] DEBUG - Response: 304
2025-06-16 01:00:26 - [app] app - [DEBUG] DEBUG - Request: GET /sw.js
2025-06-16 01:00:26 - [app] app - [DEBUG] DEBUG - Response: 304
2025-06-16 01:00:31 - [app] app - [DEBUG] DEBUG - Request: GET /request
2025-06-16 01:00:31 - [app] app - [INFO] INFO - Locating template 'guest_request.html':
1: trying loader of application '__main__'
class: jinja2.loaders.FileSystemLoader
encoding: 'utf-8'
followlinks: False
searchpath:
- /cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates
-> found ('/cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates/guest_request.html')
2025-06-16 01:00:31 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 01:00:31 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-16 01:00:31 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 01:00:33 - [app] app - [DEBUG] DEBUG - Request: GET /sw.js
2025-06-16 01:00:33 - [app] app - [DEBUG] DEBUG - Response: 304
2025-06-16 01:00:34 - [app] app - [DEBUG] DEBUG - Request: GET /stats
2025-06-16 01:00:34 - [app] app - [INFO] INFO - Locating template 'stats.html':
1: trying loader of application '__main__'
class: jinja2.loaders.FileSystemLoader
encoding: 'utf-8'
followlinks: False
searchpath:
- /cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates
-> found ('/cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates/stats.html')
2025-06-16 01:00:34 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 01:00:35 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-16 01:00:35 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 01:00:36 - [app] app - [DEBUG] DEBUG - Request: GET /sw.js
2025-06-16 01:00:36 - [app] app - [DEBUG] DEBUG - Response: 304
2025-06-16 01:00:36 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-16 01:00:36 - [app] app - [DEBUG] DEBUG - Request: GET /api/energy/dashboard
2025-06-16 01:00:36 - [app] app - [DEBUG] DEBUG - Request: GET /api/energy/statistics
2025-06-16 01:00:36 - [app] app - [DEBUG] DEBUG - Request: GET /api/energy/live
2025-06-16 01:00:36 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 01:00:36 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 01:00:36 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 01:00:36 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 01:00:37 - [app] app - [DEBUG] DEBUG - Request: GET /calendar
2025-06-16 01:00:37 - [app] app - [INFO] INFO - Locating template 'calendar.html':
1: trying loader of application '__main__'
class: jinja2.loaders.FileSystemLoader
encoding: 'utf-8'
followlinks: False
searchpath:
- /cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates
-> found ('/cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates/calendar.html')
2025-06-16 01:00:37 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 01:00:37 - [app] app - [DEBUG] DEBUG - Request: GET /api/calendar/events
2025-06-16 01:00:37 - [app] app - [DEBUG] DEBUG - Request: GET /api/calendar/statistics
2025-06-16 01:00:37 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-16 01:00:37 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 01:00:37 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 01:00:38 - [app] app - [DEBUG] DEBUG - Request: GET /sw.js
2025-06-16 01:00:38 - [app] app - [DEBUG] DEBUG - Response: 304
2025-06-16 01:00:38 - [app] app - [DEBUG] DEBUG - Request: GET /printers
2025-06-16 01:00:38 - [app] app - [INFO] INFO - Locating template 'printers.html':
1: trying loader of application '__main__'
class: jinja2.loaders.FileSystemLoader
encoding: 'utf-8'
followlinks: False
searchpath:
- /cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates
-> found ('/cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates/printers.html')
2025-06-16 01:00:38 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 01:00:39 - [app] app - [DEBUG] DEBUG - Request: GET /api/printers
2025-06-16 01:00:39 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen (include_inactive=False)
2025-06-16 01:00:39 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 01:00:39 - [app] app - [DEBUG] DEBUG - Request: GET /api/printers
2025-06-16 01:00:39 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-16 01:00:39 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen (include_inactive=False)
2025-06-16 01:00:39 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 01:00:39 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 01:00:39 - [app] app - [DEBUG] DEBUG - Request: GET /sw.js
2025-06-16 01:00:39 - [app] app - [DEBUG] DEBUG - Response: 304
2025-06-16 01:00:39 - [app] app - [DEBUG] DEBUG - Request: GET /dashboard
2025-06-16 01:00:39 - [app] app - [INFO] INFO - Locating template 'dashboard.html':
1: trying loader of application '__main__'
class: jinja2.loaders.FileSystemLoader
encoding: 'utf-8'
followlinks: False
searchpath:
- /cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates
-> found ('/cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates/dashboard.html')
2025-06-16 01:00:39 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 01:00:39 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-16 01:00:39 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 01:00:40 - [app] app - [INFO] INFO - Steckdosen-Status geloggt: Drucker 1, Status: unreachable, Quelle: system
2025-06-16 01:00:40 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 01:00:41 - [app] app - [DEBUG] DEBUG - Request: GET /sw.js
2025-06-16 01:00:41 - [app] app - [DEBUG] DEBUG - Response: 304
2025-06-16 01:00:44 - [app] app - [DEBUG] DEBUG - Request: GET /requests/overview
2025-06-16 01:00:44 - [app] app - [INFO] INFO - Locating template 'guest_requests_overview.html':
1: trying loader of application '__main__'
class: jinja2.loaders.FileSystemLoader
encoding: 'utf-8'
followlinks: False
searchpath:
- /cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates
-> found ('/cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates/guest_requests_overview.html')
2025-06-16 01:00:44 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 01:00:44 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-16 01:00:44 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 01:00:46 - [app] app - [DEBUG] DEBUG - Request: GET /sw.js
2025-06-16 01:00:46 - [app] app - [DEBUG] DEBUG - Response: 304
2025-06-16 01:00:48 - [app] app - [DEBUG] DEBUG - Request: GET /dashboard
2025-06-16 01:00:48 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 01:00:48 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-16 01:00:48 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 01:00:50 - [app] app - [DEBUG] DEBUG - Request: GET /sw.js
2025-06-16 01:00:50 - [app] app - [DEBUG] DEBUG - Response: 304
2025-06-16 01:00:52 - [app] app - [DEBUG] DEBUG - Request: POST /auth/logout
2025-06-16 01:00:52 - [app] app - [DEBUG] DEBUG - Response: 302
2025-06-16 01:00:52 - [app] app - [DEBUG] DEBUG - Request: GET /auth/login
2025-06-16 01:00:52 - [app] app - [INFO] INFO - Locating template 'login.html':
1: trying loader of application '__main__'
class: jinja2.loaders.FileSystemLoader
encoding: 'utf-8'
followlinks: False
searchpath:
- /cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates
-> found ('/cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates/login.html')
2025-06-16 01:00:52 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 01:00:54 - [app] app - [DEBUG] DEBUG - Request: GET /sw.js
2025-06-16 01:00:54 - [app] app - [DEBUG] DEBUG - Response: 304
2025-06-16 01:00:57 - [app] app - [DEBUG] DEBUG - Request: GET /request
2025-06-16 01:00:57 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 01:00:59 - [app] app - [DEBUG] DEBUG - Request: GET /sw.js
2025-06-16 01:00:59 - [app] app - [DEBUG] DEBUG - Response: 304
2025-06-16 01:01:00 - [app] app - [DEBUG] DEBUG - Request: POST /request
2025-06-16 01:01:00 - [app] app - [INFO] INFO - 6-stelliger OTP generiert für Guest Request 2
2025-06-16 01:01:00 - [app] app - [DEBUG] DEBUG - Response: 302
2025-06-16 01:01:00 - [app] app - [DEBUG] DEBUG - Request: GET /request/2
2025-06-16 01:01:00 - [app] app - [INFO] INFO - Locating template 'guest_status.html':
1: trying loader of application '__main__'
class: jinja2.loaders.FileSystemLoader
encoding: 'utf-8'
followlinks: False
searchpath:
- /cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates
-> found ('/cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates/guest_status.html')
2025-06-16 01:01:00 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 01:01:04 - [app] app - [DEBUG] DEBUG - Request: GET /request/2
2025-06-16 01:01:04 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 01:01:06 - [app] app - [DEBUG] DEBUG - Request: GET /sw.js
2025-06-16 01:01:06 - [app] app - [DEBUG] DEBUG - Response: 304
2025-06-16 01:01:07 - [app] app - [DEBUG] DEBUG - Request: GET /auth/login
2025-06-16 01:01:07 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 01:01:08 - [app] app - [DEBUG] DEBUG - Request: POST /auth/login
2025-06-16 01:01:09 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 01:01:09 - [app] app - [DEBUG] DEBUG - Request: GET /sw.js
2025-06-16 01:01:09 - [app] app - [DEBUG] DEBUG - Response: 304
2025-06-16 01:01:10 - [app] app - [DEBUG] DEBUG - Request: GET /
2025-06-16 01:01:10 - [app] app - [DEBUG] DEBUG - Response: 302
2025-06-16 01:01:10 - [app] app - [DEBUG] DEBUG - Request: GET /dashboard
2025-06-16 01:01:10 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 01:01:10 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-16 01:01:10 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 01:01:12 - [app] app - [DEBUG] DEBUG - Request: GET /sw.js
2025-06-16 01:01:12 - [app] app - [DEBUG] DEBUG - Response: 304
2025-06-16 01:01:20 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-16 01:01:20 - [app] app - [DEBUG] DEBUG - Request: GET /api/stats
2025-06-16 01:01:20 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 01:01:20 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 01:01:20 - [app] app - [DEBUG] DEBUG - Request: GET /api/admin/system-health
2025-06-16 01:01:20 - [app] app - [ERROR] ERROR - Datenbank-Transaktion fehlgeschlagen: Textual SQL expression 'SELECT 1' should be explicitly declared as text('SELECT 1')
2025-06-16 01:01:20 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 01:01:21 - [app] app - [DEBUG] DEBUG - Request: GET /sw.js
2025-06-16 01:01:21 - [app] app - [DEBUG] DEBUG - Response: 304
2025-06-16 01:01:23 - [app] app - [DEBUG] DEBUG - Request: GET /admin/guest-requests
2025-06-16 01:01:23 - [app] app - [INFO] INFO - Locating template 'admin_guest_requests.html':
1: trying loader of application '__main__'
class: jinja2.loaders.FileSystemLoader
encoding: 'utf-8'
followlinks: False
searchpath:
- /cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates
-> found ('/cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates/admin_guest_requests.html')
2025-06-16 01:01:23 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 01:01:23 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-16 01:01:23 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 01:01:23 - [app] app - [DEBUG] DEBUG - Request: GET /api/admin/requests
2025-06-16 01:01:23 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 01:01:25 - [app] app - [DEBUG] DEBUG - Request: GET /sw.js
2025-06-16 01:01:25 - [app] app - [DEBUG] DEBUG - Response: 304
2025-06-16 01:01:29 - [app] app - [DEBUG] DEBUG - Request: POST /api/requests/2/approve
2025-06-16 01:01:30 - [app] app - [INFO] INFO - 6-stelliger OTP generiert für Guest Request 2
2025-06-16 01:01:30 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 01:01:30 - [app] app - [DEBUG] DEBUG - Request: GET /api/admin/requests
2025-06-16 01:01:30 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 01:01:39 - [app] app - [DEBUG] DEBUG - Request: GET /requests/overview
2025-06-16 01:01:39 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 01:01:39 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-16 01:01:39 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 01:01:40 - [app] app - [DEBUG] DEBUG - Request: GET /sw.js
2025-06-16 01:01:40 - [app] app - [DEBUG] DEBUG - Response: 304
2025-06-16 01:01:41 - [app] app - [DEBUG] DEBUG - Request: POST /api/guest/start-job
2025-06-16 01:01:42 - [app] app - [WARNING] WARNING - Ungültiger OTP-Code für Guest Request 1
2025-06-16 01:01:42 - [app] app - [INFO] INFO - OTP erfolgreich verifiziert für Guest Request 2
2025-06-16 01:01:42 - [app] app - [INFO] INFO - OTP als verwendet markiert für Guest Request 2
2025-06-16 01:01:50 - [app] app - [ERROR] ERROR - Datenbank-Transaktion fehlgeschlagen: Instance <Job at 0x7ff1b83b4d10> is not bound to a Session; attribute refresh operation cannot proceed (Background on this error at: https://sqlalche.me/e/20/bhk3)
2025-06-16 01:01:50 - [app] app - [DEBUG] DEBUG - Response: 500
2025-06-16 01:01:52 - [app] app - [DEBUG] DEBUG - Request: GET /printers
2025-06-16 01:01:52 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 01:01:52 - [app] app - [DEBUG] DEBUG - Request: GET /api/printers
2025-06-16 01:01:52 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen (include_inactive=False)
2025-06-16 01:01:52 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 01:01:52 - [app] app - [DEBUG] DEBUG - Request: GET /api/printers
2025-06-16 01:01:52 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen (include_inactive=False)
2025-06-16 01:01:52 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 01:01:52 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-16 01:01:52 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 01:01:53 - [app] app - [DEBUG] DEBUG - Request: GET /calendar
2025-06-16 01:01:53 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 01:01:53 - [app] app - [DEBUG] DEBUG - Request: GET /api/calendar/events
2025-06-16 01:01:53 - [app] app - [DEBUG] DEBUG - Request: GET /api/calendar/statistics
2025-06-16 01:01:53 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-16 01:01:53 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 01:01:53 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 01:01:54 - [app] app - [DEBUG] DEBUG - Request: GET /sw.js
2025-06-16 01:01:54 - [app] app - [DEBUG] DEBUG - Response: 304
2025-06-16 01:01:55 - [app] app - [DEBUG] DEBUG - Request: GET /sw.js
2025-06-16 01:01:55 - [app] app - [DEBUG] DEBUG - Response: 304
2025-06-16 01:01:56 - [app] app - [INFO] INFO - Steckdosen-Status geloggt: Drucker 1, Status: unreachable, Quelle: system
2025-06-16 01:01:56 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 01:01:56 - [app] app - [DEBUG] DEBUG - Request: GET /api/calendar/statistics
2025-06-16 01:01:56 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 01:02:00 - [app] app - [DEBUG] DEBUG - Request: GET /api/calendar/events
2025-06-16 01:02:00 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 01:02:00 - [app] app - [DEBUG] DEBUG - Request: GET /api/calendar/statistics
2025-06-16 01:02:00 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 01:02:09 - [app] app - [DEBUG] DEBUG - Request: GET /jobs
2025-06-16 01:02:09 - [app] app - [INFO] INFO - Locating template 'jobs.html':
1: trying loader of application '__main__'
class: jinja2.loaders.FileSystemLoader
encoding: 'utf-8'
followlinks: False
searchpath:
- /cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates
-> found ('/cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates/jobs.html')
2025-06-16 01:02:09 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 01:02:09 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-16 01:02:09 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 01:02:09 - [app] app - [DEBUG] DEBUG - Request: GET /api/jobs
2025-06-16 01:02:09 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 01:02:09 - [app] app - [DEBUG] DEBUG - Request: GET /api/printers
2025-06-16 01:02:09 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen (include_inactive=False)
2025-06-16 01:02:09 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 01:02:11 - [app] app - [DEBUG] DEBUG - Request: GET /sw.js
2025-06-16 01:02:11 - [app] app - [DEBUG] DEBUG - Response: 304
2025-06-16 01:02:13 - [app] app - [DEBUG] DEBUG - Request: DELETE /api/jobs/1
2025-06-16 01:02:13 - [app] app - [DEBUG] DEBUG - Response: 500
2025-06-16 01:02:16 - [app] app - [DEBUG] DEBUG - Request: DELETE /api/jobs/2
2025-06-16 01:02:16 - [app] app - [DEBUG] DEBUG - Response: 500
2025-06-16 01:02:18 - [app] app - [DEBUG] DEBUG - Request: GET /jobs
2025-06-16 01:02:18 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 01:02:18 - [app] app - [DEBUG] DEBUG - Request: GET /.well-known/appspecific/com.chrome.devtools.json
2025-06-16 01:02:18 - [app] app - [INFO] INFO - Not Found (404): http://127.0.0.1:5000/.well-known/appspecific/com.chrome.devtools.json
2025-06-16 01:02:18 - [app] app - [INFO] INFO - Locating template 'errors/404.html':
1: trying loader of application '__main__'
class: jinja2.loaders.FileSystemLoader
encoding: 'utf-8'
followlinks: False
searchpath:
- /cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates
-> found ('/cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates/errors/404.html')
2025-06-16 01:02:18 - [app] app - [DEBUG] DEBUG - Response: 404
2025-06-16 01:02:24 - [app] app - [ERROR] ERROR - CSRF-Fehler für /api/printers: The CSRF session token is missing.
2025-06-16 01:02:24 - [app] app - [ERROR] ERROR - Request Headers: {'Host': '127.0.0.1:5000', 'User-Agent': 'curl/7.79.1', 'Accept': '*/*', 'Content-Type': 'application/json', 'X-Csrftoken': 'test', 'Content-Length': '81'}
2025-06-16 01:02:24 - [app] app - [ERROR] ERROR - Request Form: {}
2025-06-16 01:02:24 - [app] app - [DEBUG] DEBUG - CSRF-Token generiert: IjdkZWU0Mz...
2025-06-16 01:02:24 - [app] app - [DEBUG] DEBUG - Response: 400
2025-06-16 01:02:39 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-16 01:02:39 - [app] app - [DEBUG] DEBUG - Request: GET /api/jobs
2025-06-16 01:02:39 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 01:02:39 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 01:03:09 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-16 01:03:09 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 01:03:09 - [app] app - [DEBUG] DEBUG - Request: GET /api/jobs
2025-06-16 01:03:09 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 01:03:39 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-16 01:03:39 - [app] app - [DEBUG] DEBUG - Request: GET /api/jobs
2025-06-16 01:03:39 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 01:03:39 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 01:03:49 - [app] app - [INFO] INFO - [SHUTDOWN] 🧹 Cleanup wird ausgeführt...
2025-06-16 01:03:49 - [app] app - [INFO] INFO - [SHUTDOWN] ✅ Queue Manager gestoppt
2025-06-16 01:03:49 - [app] app - [ERROR] ERROR - [SHUTDOWN] ❌ Cleanup-Fehler: 'BackgroundTaskScheduler' object has no attribute 'shutdown'
2025-06-16 01:03:49 - [app] app - [INFO] INFO - Optimierte SQLite-Engine erstellt: ./database/myp.db
2025-06-16 01:03:50 - [app] app - [INFO] INFO - [CONFIG] Erkannte Umgebung: development
2025-06-16 01:03:50 - [app] app - [INFO] INFO - [CONFIG] Production-Modus: False
2025-06-16 01:03:50 - [app] app - [INFO] INFO - [CONFIG] Verwende Development-Konfiguration
2025-06-16 01:03:50 - [app] app - [INFO] INFO - [DEVELOPMENT] Aktiviere Development-Konfiguration
2025-06-16 01:03:50 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ MYP Development Environment Konfiguration aktiviert
2025-06-16 01:03:50 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Environment: Development/Testing
2025-06-16 01:03:50 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Debug Mode: True
2025-06-16 01:03:50 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ SQL Echo: True
2025-06-16 01:03:50 - [app] app - [INFO] INFO - SQLite für Raspberry Pi optimiert (reduzierte Cache-Größe, SD-Karten I/O)
2025-06-16 01:03:50 - [app] app - [INFO] INFO - Admin-Berechtigungen beim Start korrigiert: 0 erstellt, 0 aktualisiert
2025-06-16 01:03:50 - [app] app - [INFO] INFO - [STARTUP] 🚀 Starte MYP DEVELOPMENT-Umgebung
2025-06-16 01:03:50 - [app] app - [INFO] INFO - [STARTUP] 🏢 Mercedes-Benz TBA Marienfelde
2025-06-16 01:03:50 - [app] app - [INFO] INFO - [STARTUP] 🔒 Air-Gapped: True
2025-06-16 01:03:50 - [app] app - [INFO] INFO - [STARTUP] Initialisiere Datenbank...
2025-06-16 01:03:50 - [app] app - [INFO] INFO - Datenbank mit Optimierungen initialisiert
2025-06-16 01:03:50 - [app] app - [INFO] INFO - [STARTUP] ✅ Datenbank initialisiert
2025-06-16 01:03:50 - [app] app - [INFO] INFO - [STARTUP] Prüfe Initial-Admin...
2025-06-16 01:03:51 - [app] app - [INFO] INFO - Admin-Benutzer admin (admin@mercedes-benz.com) existiert bereits. Passwort wurde zurückgesetzt.
2025-06-16 01:03:51 - [app] app - [INFO] INFO - [STARTUP] ✅ Admin-Benutzer geprüft
2025-06-16 01:03:51 - [app] app - [INFO] INFO - [STARTUP] Initialisiere statische Drucker...
2025-06-16 01:03:51 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 1 (192.168.0.100)
2025-06-16 01:03:51 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 2 (192.168.0.101)
2025-06-16 01:03:51 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 3 (192.168.0.102)
2025-06-16 01:03:51 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 4 (192.168.0.103)
2025-06-16 01:03:51 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 5 (192.168.0.104)
2025-06-16 01:03:51 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 6 (192.168.0.106)
2025-06-16 01:03:51 - [app] app - [INFO] INFO - ✅ Statische Drucker-Initialisierung abgeschlossen: 0 erstellt, 6 aktualisiert
2025-06-16 01:03:51 - [app] app - [INFO] INFO - 📍 Alle Drucker sind für Standort 'TBA Marienfelde' konfiguriert
2025-06-16 01:03:51 - [app] app - [INFO] INFO - 🌐 IP-Bereich: 192.168.0.100-106 (außer .105)
2025-06-16 01:03:51 - [app] app - [INFO] INFO - [STARTUP] ✅ Statische Drucker konfiguriert
2025-06-16 01:03:51 - [app] app - [INFO] INFO - [STARTUP] Starte Queue Manager...
2025-06-16 01:03:51 - [app] app - [INFO] INFO - [STARTUP] ✅ Queue Manager gestartet
2025-06-16 01:03:51 - [app] app - [INFO] INFO - [STARTUP] Starte Job Scheduler...
2025-06-16 01:03:51 - [app] app - [INFO] INFO - [STARTUP] ✅ Job Scheduler gestartet
2025-06-16 01:03:51 - [app] app - [INFO] INFO - [STARTUP] 🌐 Server startet auf http://0.0.0.0:5000
2025-06-16 01:03:56 - [app] app - [INFO] INFO - [SHUTDOWN] 🧹 Cleanup wird ausgeführt...
2025-06-16 01:03:56 - [app] app - [INFO] INFO - [SHUTDOWN] ✅ Queue Manager gestoppt
2025-06-16 01:03:56 - [app] app - [ERROR] ERROR - [SHUTDOWN] ❌ Cleanup-Fehler: 'BackgroundTaskScheduler' object has no attribute 'shutdown'
2025-06-16 01:03:56 - [app] app - [INFO] INFO - Optimierte SQLite-Engine erstellt: ./database/myp.db
2025-06-16 01:03:57 - [app] app - [INFO] INFO - [CONFIG] Erkannte Umgebung: development
2025-06-16 01:03:57 - [app] app - [INFO] INFO - [CONFIG] Production-Modus: False
2025-06-16 01:03:57 - [app] app - [INFO] INFO - [CONFIG] Verwende Development-Konfiguration
2025-06-16 01:03:57 - [app] app - [INFO] INFO - [DEVELOPMENT] Aktiviere Development-Konfiguration
2025-06-16 01:03:57 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ MYP Development Environment Konfiguration aktiviert
2025-06-16 01:03:57 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Environment: Development/Testing
2025-06-16 01:03:57 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Debug Mode: True
2025-06-16 01:03:57 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ SQL Echo: True
2025-06-16 01:03:57 - [app] app - [INFO] INFO - SQLite für Raspberry Pi optimiert (reduzierte Cache-Größe, SD-Karten I/O)
2025-06-16 01:03:57 - [app] app - [INFO] INFO - Admin-Berechtigungen beim Start korrigiert: 0 erstellt, 0 aktualisiert
2025-06-16 01:03:57 - [app] app - [INFO] INFO - [STARTUP] 🚀 Starte MYP DEVELOPMENT-Umgebung
2025-06-16 01:03:57 - [app] app - [INFO] INFO - [STARTUP] 🏢 Mercedes-Benz TBA Marienfelde
2025-06-16 01:03:57 - [app] app - [INFO] INFO - [STARTUP] 🔒 Air-Gapped: True
2025-06-16 01:03:57 - [app] app - [INFO] INFO - [STARTUP] Initialisiere Datenbank...
2025-06-16 01:03:57 - [app] app - [INFO] INFO - Datenbank mit Optimierungen initialisiert
2025-06-16 01:03:57 - [app] app - [INFO] INFO - [STARTUP] ✅ Datenbank initialisiert
2025-06-16 01:03:57 - [app] app - [INFO] INFO - [STARTUP] Prüfe Initial-Admin...
2025-06-16 01:03:58 - [app] app - [INFO] INFO - Admin-Benutzer admin (admin@mercedes-benz.com) existiert bereits. Passwort wurde zurückgesetzt.
2025-06-16 01:03:58 - [app] app - [INFO] INFO - [STARTUP] ✅ Admin-Benutzer geprüft
2025-06-16 01:03:58 - [app] app - [INFO] INFO - [STARTUP] Initialisiere statische Drucker...
2025-06-16 01:03:58 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 1 (192.168.0.100)
2025-06-16 01:03:58 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 2 (192.168.0.101)
2025-06-16 01:03:58 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 3 (192.168.0.102)
2025-06-16 01:03:58 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 4 (192.168.0.103)
2025-06-16 01:03:58 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 5 (192.168.0.104)
2025-06-16 01:03:58 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 6 (192.168.0.106)
2025-06-16 01:03:58 - [app] app - [INFO] INFO - ✅ Statische Drucker-Initialisierung abgeschlossen: 0 erstellt, 6 aktualisiert
2025-06-16 01:03:58 - [app] app - [INFO] INFO - 📍 Alle Drucker sind für Standort 'TBA Marienfelde' konfiguriert
2025-06-16 01:03:58 - [app] app - [INFO] INFO - 🌐 IP-Bereich: 192.168.0.100-106 (außer .105)
2025-06-16 01:03:58 - [app] app - [INFO] INFO - [STARTUP] ✅ Statische Drucker konfiguriert
2025-06-16 01:03:58 - [app] app - [INFO] INFO - [STARTUP] Starte Queue Manager...
2025-06-16 01:03:58 - [app] app - [INFO] INFO - [STARTUP] ✅ Queue Manager gestartet
2025-06-16 01:03:58 - [app] app - [INFO] INFO - [STARTUP] Starte Job Scheduler...
2025-06-16 01:03:58 - [app] app - [INFO] INFO - [STARTUP] ✅ Job Scheduler gestartet
2025-06-16 01:03:58 - [app] app - [INFO] INFO - [STARTUP] 🌐 Server startet auf http://0.0.0.0:5000
2025-06-16 01:04:09 - [app] app - [INFO] INFO - [SHUTDOWN] 🧹 Cleanup wird ausgeführt...
2025-06-16 01:04:09 - [app] app - [INFO] INFO - [SHUTDOWN] ✅ Queue Manager gestoppt
2025-06-16 01:04:09 - [app] app - [ERROR] ERROR - [SHUTDOWN] ❌ Cleanup-Fehler: 'BackgroundTaskScheduler' object has no attribute 'shutdown'
2025-06-16 01:04:10 - [app] app - [INFO] INFO - Optimierte SQLite-Engine erstellt: ./database/myp.db
2025-06-16 01:04:11 - [app] app - [INFO] INFO - [CONFIG] Erkannte Umgebung: development
2025-06-16 01:04:11 - [app] app - [INFO] INFO - [CONFIG] Production-Modus: False
2025-06-16 01:04:11 - [app] app - [INFO] INFO - [CONFIG] Verwende Development-Konfiguration
2025-06-16 01:04:11 - [app] app - [INFO] INFO - [DEVELOPMENT] Aktiviere Development-Konfiguration
2025-06-16 01:04:11 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ MYP Development Environment Konfiguration aktiviert
2025-06-16 01:04:11 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Environment: Development/Testing
2025-06-16 01:04:11 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Debug Mode: True
2025-06-16 01:04:11 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ SQL Echo: True
2025-06-16 01:04:11 - [app] app - [INFO] INFO - SQLite für Raspberry Pi optimiert (reduzierte Cache-Größe, SD-Karten I/O)
2025-06-16 01:04:11 - [app] app - [INFO] INFO - Admin-Berechtigungen beim Start korrigiert: 0 erstellt, 0 aktualisiert
2025-06-16 01:04:11 - [app] app - [INFO] INFO - [STARTUP] 🚀 Starte MYP DEVELOPMENT-Umgebung
2025-06-16 01:04:11 - [app] app - [INFO] INFO - [STARTUP] 🏢 Mercedes-Benz TBA Marienfelde
2025-06-16 01:04:11 - [app] app - [INFO] INFO - [STARTUP] 🔒 Air-Gapped: True
2025-06-16 01:04:11 - [app] app - [INFO] INFO - [STARTUP] Initialisiere Datenbank...
2025-06-16 01:04:11 - [app] app - [INFO] INFO - Datenbank mit Optimierungen initialisiert
2025-06-16 01:04:11 - [app] app - [INFO] INFO - [STARTUP] ✅ Datenbank initialisiert
2025-06-16 01:04:11 - [app] app - [INFO] INFO - [STARTUP] Prüfe Initial-Admin...
2025-06-16 01:04:11 - [app] app - [INFO] INFO - Admin-Benutzer admin (admin@mercedes-benz.com) existiert bereits. Passwort wurde zurückgesetzt.
2025-06-16 01:04:11 - [app] app - [INFO] INFO - [STARTUP] ✅ Admin-Benutzer geprüft
2025-06-16 01:04:11 - [app] app - [INFO] INFO - [STARTUP] Initialisiere statische Drucker...
2025-06-16 01:04:11 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 1 (192.168.0.100)
2025-06-16 01:04:11 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 2 (192.168.0.101)
2025-06-16 01:04:11 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 3 (192.168.0.102)
2025-06-16 01:04:11 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 4 (192.168.0.103)
2025-06-16 01:04:11 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 5 (192.168.0.104)
2025-06-16 01:04:11 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 6 (192.168.0.106)
2025-06-16 01:04:11 - [app] app - [INFO] INFO - ✅ Statische Drucker-Initialisierung abgeschlossen: 0 erstellt, 6 aktualisiert
2025-06-16 01:04:11 - [app] app - [INFO] INFO - 📍 Alle Drucker sind für Standort 'TBA Marienfelde' konfiguriert
2025-06-16 01:04:11 - [app] app - [INFO] INFO - 🌐 IP-Bereich: 192.168.0.100-106 (außer .105)
2025-06-16 01:04:11 - [app] app - [INFO] INFO - [STARTUP] ✅ Statische Drucker konfiguriert
2025-06-16 01:04:11 - [app] app - [INFO] INFO - [STARTUP] Starte Queue Manager...
2025-06-16 01:04:11 - [app] app - [INFO] INFO - [STARTUP] ✅ Queue Manager gestartet
2025-06-16 01:04:11 - [app] app - [INFO] INFO - [STARTUP] Starte Job Scheduler...
2025-06-16 01:04:11 - [app] app - [INFO] INFO - [STARTUP] ✅ Job Scheduler gestartet
2025-06-16 01:04:11 - [app] app - [INFO] INFO - [STARTUP] 🌐 Server startet auf http://0.0.0.0:5000