chore: Änderungen commited

This commit is contained in:
2025-06-16 08:13:54 +02:00
parent 424812a77c
commit d4d5647d40
90 changed files with 392 additions and 0 deletions

View File

@@ -38851,3 +38851,144 @@ WHERE users.id = ?
2025-06-16 08:00:32 - [app] app - [INFO] INFO - [SHUTDOWN] 🧹 Cleanup wird ausgeführt...
2025-06-16 08:00:32 - [app] app - [INFO] INFO - [SHUTDOWN] ✅ Queue Manager gestoppt
2025-06-16 08:00:32 - [app] app - [ERROR] ERROR - [SHUTDOWN] ❌ Cleanup-Fehler: 'BackgroundTaskScheduler' object has no attribute 'shutdown'
2025-06-16 08:00:34 - [app] app - [INFO] INFO - Optimierte SQLite-Engine erstellt: ./database/myp.db
2025-06-16 08:00:36 - [app] app - [INFO] INFO - [CONFIG] Erkannte Umgebung: development
2025-06-16 08:00:36 - [app] app - [INFO] INFO - [CONFIG] Production-Modus: False
2025-06-16 08:00:36 - [app] app - [INFO] INFO - [CONFIG] Verwende Development-Konfiguration
2025-06-16 08:00:36 - [app] app - [INFO] INFO - [DEVELOPMENT] Aktiviere Development-Konfiguration
2025-06-16 08:00:36 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ MYP Development Environment Konfiguration aktiviert
2025-06-16 08:00:36 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Environment: Development/Testing
2025-06-16 08:00:36 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Debug Mode: True
2025-06-16 08:00:36 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ SQL Echo: True
2025-06-16 08:00:36 - [app] app - [INFO] INFO - SQLite für Raspberry Pi optimiert (reduzierte Cache-Größe, SD-Karten I/O)
2025-06-16 08:00:36 - [app] app - [INFO] INFO - Admin-Berechtigungen beim Start korrigiert: 0 erstellt, 0 aktualisiert
2025-06-16 08:00:36 - [app] app - [INFO] INFO - [STARTUP] 🚀 Starte MYP DEVELOPMENT-Umgebung
2025-06-16 08:00:36 - [app] app - [INFO] INFO - [STARTUP] 🏢 Mercedes-Benz TBA Marienfelde
2025-06-16 08:00:36 - [app] app - [INFO] INFO - [STARTUP] 🔒 Air-Gapped: True
2025-06-16 08:00:36 - [app] app - [INFO] INFO - [STARTUP] Initialisiere Datenbank...
2025-06-16 08:00:36 - [app] app - [INFO] INFO - Datenbank mit Optimierungen initialisiert
2025-06-16 08:00:36 - [app] app - [INFO] INFO - [STARTUP] ✅ Datenbank initialisiert
2025-06-16 08:00:36 - [app] app - [INFO] INFO - [STARTUP] Prüfe Initial-Admin...
2025-06-16 08:00:36 - [app] app - [INFO] INFO - Admin-Benutzer admin (admin@mercedes-benz.com) existiert bereits. Passwort wurde zurückgesetzt.
2025-06-16 08:00:36 - [app] app - [INFO] INFO - [STARTUP] ✅ Admin-Benutzer geprüft
2025-06-16 08:00:36 - [app] app - [INFO] INFO - [STARTUP] Initialisiere statische Drucker...
2025-06-16 08:00:36 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 1 (192.168.0.100)
2025-06-16 08:00:36 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 2 (192.168.0.101)
2025-06-16 08:00:36 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 3 (192.168.0.102)
2025-06-16 08:00:36 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 4 (192.168.0.103)
2025-06-16 08:00:36 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 5 (192.168.0.104)
2025-06-16 08:00:36 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 6 (192.168.0.106)
2025-06-16 08:00:36 - [app] app - [INFO] INFO - ✅ Statische Drucker-Initialisierung abgeschlossen: 0 erstellt, 6 aktualisiert
2025-06-16 08:00:36 - [app] app - [INFO] INFO - 📍 Alle Drucker sind für Standort 'TBA Marienfelde' konfiguriert
2025-06-16 08:00:36 - [app] app - [INFO] INFO - 🌐 IP-Bereich: 192.168.0.100-106 (außer .105)
2025-06-16 08:00:36 - [app] app - [INFO] INFO - [STARTUP] ✅ Statische Drucker konfiguriert
2025-06-16 08:00:36 - [app] app - [INFO] INFO - [STARTUP] Starte Queue Manager...
2025-06-16 08:00:36 - [app] app - [INFO] INFO - [STARTUP] ✅ Queue Manager gestartet
2025-06-16 08:00:36 - [app] app - [INFO] INFO - [STARTUP] Starte Job Scheduler...
2025-06-16 08:00:36 - [app] app - [INFO] INFO - [STARTUP] ✅ Job Scheduler gestartet
2025-06-16 08:00:36 - [app] app - [INFO] INFO - [STARTUP] 🌐 Server startet auf http://0.0.0.0:5000
2025-06-16 08:00:38 - [app] app - [INFO] INFO - Locating template 'dashboard.html':
1: trying loader of application '__main__'
class: jinja2.loaders.FileSystemLoader
encoding: 'utf-8'
followlinks: False
searchpath:
- C:\Users\TTOMCZA.EMEA\Dev\Projektarbeit-MYP\backend\templates
-> found ('C:\\Users\\TTOMCZA.EMEA\\Dev\\Projektarbeit-MYP\\backend\\templates\\dashboard.html')
2025-06-16 08:00:38 - [app] app - [INFO] INFO - Locating template 'base.html':
1: trying loader of application '__main__'
class: jinja2.loaders.FileSystemLoader
encoding: 'utf-8'
followlinks: False
searchpath:
- C:\Users\TTOMCZA.EMEA\Dev\Projektarbeit-MYP\backend\templates
-> found ('C:\\Users\\TTOMCZA.EMEA\\Dev\\Projektarbeit-MYP\\backend\\templates\\base.html')
2025-06-16 08:00:38 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 08:00:39 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-16 08:00:39 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 08:00:40 - [app] app - [DEBUG] DEBUG - Request: GET /admin/
2025-06-16 08:00:40 - [app] app - [INFO] INFO - Locating template 'admin.html':
1: trying loader of application '__main__'
class: jinja2.loaders.FileSystemLoader
encoding: 'utf-8'
followlinks: False
searchpath:
- C:\Users\TTOMCZA.EMEA\Dev\Projektarbeit-MYP\backend\templates
-> found ('C:\\Users\\TTOMCZA.EMEA\\Dev\\Projektarbeit-MYP\\backend\\templates\\admin.html')
2025-06-16 08:00:40 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 08:00:41 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-16 08:00:41 - [app] app - [DEBUG] DEBUG - Request: GET /api/stats
2025-06-16 08:00:41 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 08:00:41 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 08:00:41 - [app] app - [DEBUG] DEBUG - Request: GET /api/admin/system-health
2025-06-16 08:00:41 - [app] app - [ERROR] ERROR - Datenbank-Transaktion fehlgeschlagen: Textual SQL expression 'SELECT 1' should be explicitly declared as text('SELECT 1')
2025-06-16 08:00:41 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 08:00:43 - [app] app - [DEBUG] DEBUG - Request: GET /admin/guest-requests
2025-06-16 08:00:43 - [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:
- C:\Users\TTOMCZA.EMEA\Dev\Projektarbeit-MYP\backend\templates
-> found ('C:\\Users\\TTOMCZA.EMEA\\Dev\\Projektarbeit-MYP\\backend\\templates\\admin_guest_requests.html')
2025-06-16 08:00:43 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 08:00:43 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-16 08:00:43 - [app] app - [DEBUG] DEBUG - Request: GET /api/admin/requests
2025-06-16 08:00:44 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 08:00:44 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 08:00:49 - [app] app - [DEBUG] DEBUG - Request: POST /api/requests/4/approve
2025-06-16 08:00:50 - [app] app - [INFO] INFO - 6-stelliger OTP generiert für Guest Request 4
2025-06-16 08:00:50 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 08:00:50 - [app] app - [DEBUG] DEBUG - Request: GET /api/admin/requests
2025-06-16 08:00:50 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 08:01:00 - [app] app - [DEBUG] DEBUG - Request: POST /auth/logout
2025-06-16 08:01:00 - [app] app - [DEBUG] DEBUG - Response: 302
2025-06-16 08:01:00 - [app] app - [DEBUG] DEBUG - Request: GET /auth/login
2025-06-16 08:01:00 - [app] app - [INFO] INFO - Locating template 'login.html':
1: trying loader of application '__main__'
class: jinja2.loaders.FileSystemLoader
encoding: 'utf-8'
followlinks: False
searchpath:
- C:\Users\TTOMCZA.EMEA\Dev\Projektarbeit-MYP\backend\templates
-> found ('C:\\Users\\TTOMCZA.EMEA\\Dev\\Projektarbeit-MYP\\backend\\templates\\login.html')
2025-06-16 08:01:00 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 08:01:03 - [app] app - [DEBUG] DEBUG - Request: GET /request
2025-06-16 08:01:03 - [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:
- C:\Users\TTOMCZA.EMEA\Dev\Projektarbeit-MYP\backend\templates
-> found ('C:\\Users\\TTOMCZA.EMEA\\Dev\\Projektarbeit-MYP\\backend\\templates\\guest_request.html')
2025-06-16 08:01:03 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 08:01:07 - [app] app - [DEBUG] DEBUG - Request: GET /requests/overview
2025-06-16 08:01:07 - [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:
- C:\Users\TTOMCZA.EMEA\Dev\Projektarbeit-MYP\backend\templates
-> found ('C:\\Users\\TTOMCZA.EMEA\\Dev\\Projektarbeit-MYP\\backend\\templates\\guest_requests_overview.html')
2025-06-16 08:01:07 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 08:01:11 - [app] app - [DEBUG] DEBUG - Request: POST /api/guest/start-job
2025-06-16 08:01:11 - [app] app - [WARNING] WARNING - Ungültiger OTP-Code für Guest Request 1
2025-06-16 08:01:11 - [app] app - [WARNING] WARNING - Ungültiger OTP-Code für Guest Request 2
2025-06-16 08:01:12 - [app] app - [WARNING] WARNING - Ungültiger OTP-Code für Guest Request 3
2025-06-16 08:01:12 - [app] app - [INFO] INFO - OTP erfolgreich verifiziert für Guest Request 4
2025-06-16 08:01:12 - [app] app - [INFO] INFO - OTP als verwendet markiert für Guest Request 4
2025-06-16 08:01:20 - [app] app - [ERROR] ERROR - Datenbank-Transaktion fehlgeschlagen: Instance <Job at 0x17b0bd98f30> 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 08:01:20 - [app] app - [DEBUG] DEBUG - Response: 500
2025-06-16 08:01:37 - [app] app - [DEBUG] DEBUG - Request: GET /requests/overview
2025-06-16 08:01:37 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 08:02:07 - [app] app - [DEBUG] DEBUG - Request: GET /requests/overview
2025-06-16 08:02:07 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 08:02:37 - [app] app - [DEBUG] DEBUG - Request: GET /requests/overview
2025-06-16 08:02:37 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 08:03:07 - [app] app - [DEBUG] DEBUG - Request: GET /requests/overview
2025-06-16 08:03:07 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 08:03:37 - [app] app - [DEBUG] DEBUG - Request: GET /requests/overview
2025-06-16 08:03:37 - [app] app - [DEBUG] DEBUG - Response: 200