Die Dateien wurden wie folgt aktualisiert und hinzugefügt:

This commit is contained in:
2025-06-19 12:10:12 +02:00
parent 0b9f3596bb
commit 07acd2840b
362 changed files with 1632 additions and 3 deletions

View File

@ -47467,3 +47467,650 @@ WHERE users.id = ?
2025-06-19 11:52:11 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 11:52:41 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-19 11:52:41 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:02:02 - [app] app - [INFO] INFO - Optimierte SQLite-Engine erstellt: ./database/myp.db
2025-06-19 12:02:03 - [app] app - [INFO] INFO - [CONFIG] Erkannte Umgebung: development
2025-06-19 12:02:03 - [app] app - [INFO] INFO - [CONFIG] Production-Modus: False
2025-06-19 12:02:03 - [app] app - [INFO] INFO - [CONFIG] Verwende Development-Konfiguration
2025-06-19 12:02:03 - [app] app - [INFO] INFO - [DEVELOPMENT] Aktiviere Development-Konfiguration
2025-06-19 12:02:03 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ MYP Development Environment Konfiguration aktiviert
2025-06-19 12:02:03 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Environment: Development/Testing
2025-06-19 12:02:03 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Debug Mode: True
2025-06-19 12:02:03 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ SQL Echo: True
2025-06-19 12:02:03 - [app] app - [INFO] INFO - SQLite für Raspberry Pi optimiert (reduzierte Cache-Größe, SD-Karten I/O)
2025-06-19 12:02:03 - [app] app - [INFO] INFO - Admin-Berechtigungen beim Start korrigiert: 0 erstellt, 0 aktualisiert
2025-06-19 12:02:03 - [app] app - [INFO] INFO - [STARTUP] 🚀 Starte MYP DEVELOPMENT-Umgebung
2025-06-19 12:02:03 - [app] app - [INFO] INFO - [STARTUP] 🏢 Mercedes-Benz TBA Marienfelde
2025-06-19 12:02:03 - [app] app - [INFO] INFO - [STARTUP] 🔒 Air-Gapped: True
2025-06-19 12:02:03 - [app] app - [INFO] INFO - [STARTUP] Initialisiere Datenbank...
2025-06-19 12:02:03 - [app] app - [INFO] INFO - Datenbank mit Optimierungen initialisiert
2025-06-19 12:02:03 - [app] app - [INFO] INFO - [STARTUP] ✅ Datenbank initialisiert
2025-06-19 12:02:03 - [app] app - [INFO] INFO - [STARTUP] Prüfe Initial-Admin...
2025-06-19 12:02:03 - [app] app - [INFO] INFO - Admin-Benutzer admin (admin@mercedes-benz.com) existiert bereits. Passwort wurde zurückgesetzt.
2025-06-19 12:02:03 - [app] app - [INFO] INFO - [STARTUP] ✅ Admin-Benutzer geprüft
2025-06-19 12:02:03 - [app] app - [INFO] INFO - [STARTUP] Initialisiere statische Drucker...
2025-06-19 12:02:03 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 1 (192.168.0.100)
2025-06-19 12:02:03 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 2 (192.168.0.101)
2025-06-19 12:02:03 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 3 (192.168.0.102)
2025-06-19 12:02:03 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 4 (192.168.0.103)
2025-06-19 12:02:03 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 5 (192.168.0.104)
2025-06-19 12:02:03 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 6 (192.168.0.106)
2025-06-19 12:02:03 - [app] app - [INFO] INFO - ✅ Statische Drucker-Initialisierung abgeschlossen: 0 erstellt, 6 aktualisiert
2025-06-19 12:02:03 - [app] app - [INFO] INFO - 📍 Alle Drucker sind für Standort 'TBA Marienfelde' konfiguriert
2025-06-19 12:02:03 - [app] app - [INFO] INFO - 🌐 IP-Bereich: 192.168.0.100-106 (außer .105)
2025-06-19 12:02:03 - [app] app - [INFO] INFO - [STARTUP] ✅ Statische Drucker konfiguriert
2025-06-19 12:02:03 - [app] app - [INFO] INFO - [STARTUP] Starte Queue Manager...
2025-06-19 12:02:03 - [app] app - [INFO] INFO - [STARTUP] ✅ Queue Manager gestartet
2025-06-19 12:02:03 - [app] app - [INFO] INFO - [STARTUP] Starte Job Scheduler...
2025-06-19 12:02:03 - [app] app - [INFO] INFO - [STARTUP] ✅ Job Scheduler gestartet
2025-06-19 12:02:03 - [app] app - [INFO] INFO - [STARTUP] 🌐 Server startet auf http://0.0.0.0:5000
2025-06-19 12:02:05 - [app] app - [INFO] INFO - Optimierte SQLite-Engine erstellt: ./database/myp.db
2025-06-19 12:02:06 - [app] app - [INFO] INFO - [CONFIG] Erkannte Umgebung: development
2025-06-19 12:02:06 - [app] app - [INFO] INFO - [CONFIG] Production-Modus: False
2025-06-19 12:02:06 - [app] app - [INFO] INFO - [CONFIG] Verwende Development-Konfiguration
2025-06-19 12:02:06 - [app] app - [INFO] INFO - [DEVELOPMENT] Aktiviere Development-Konfiguration
2025-06-19 12:02:06 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ MYP Development Environment Konfiguration aktiviert
2025-06-19 12:02:06 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Environment: Development/Testing
2025-06-19 12:02:06 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Debug Mode: True
2025-06-19 12:02:06 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ SQL Echo: True
2025-06-19 12:02:06 - [app] app - [INFO] INFO - SQLite für Raspberry Pi optimiert (reduzierte Cache-Größe, SD-Karten I/O)
2025-06-19 12:02:06 - [app] app - [INFO] INFO - Admin-Berechtigungen beim Start korrigiert: 0 erstellt, 0 aktualisiert
2025-06-19 12:02:06 - [app] app - [INFO] INFO - [STARTUP] 🚀 Starte MYP DEVELOPMENT-Umgebung
2025-06-19 12:02:06 - [app] app - [INFO] INFO - [STARTUP] 🏢 Mercedes-Benz TBA Marienfelde
2025-06-19 12:02:06 - [app] app - [INFO] INFO - [STARTUP] 🔒 Air-Gapped: True
2025-06-19 12:02:06 - [app] app - [INFO] INFO - [STARTUP] Initialisiere Datenbank...
2025-06-19 12:02:06 - [app] app - [INFO] INFO - Datenbank mit Optimierungen initialisiert
2025-06-19 12:02:06 - [app] app - [INFO] INFO - [STARTUP] ✅ Datenbank initialisiert
2025-06-19 12:02:06 - [app] app - [INFO] INFO - [STARTUP] Prüfe Initial-Admin...
2025-06-19 12:02:06 - [app] app - [INFO] INFO - Admin-Benutzer admin (admin@mercedes-benz.com) existiert bereits. Passwort wurde zurückgesetzt.
2025-06-19 12:02:06 - [app] app - [INFO] INFO - [STARTUP] ✅ Admin-Benutzer geprüft
2025-06-19 12:02:06 - [app] app - [INFO] INFO - [STARTUP] Initialisiere statische Drucker...
2025-06-19 12:02:06 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 1 (192.168.0.100)
2025-06-19 12:02:06 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 2 (192.168.0.101)
2025-06-19 12:02:06 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 3 (192.168.0.102)
2025-06-19 12:02:06 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 4 (192.168.0.103)
2025-06-19 12:02:06 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 5 (192.168.0.104)
2025-06-19 12:02:06 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 6 (192.168.0.106)
2025-06-19 12:02:06 - [app] app - [INFO] INFO - ✅ Statische Drucker-Initialisierung abgeschlossen: 0 erstellt, 6 aktualisiert
2025-06-19 12:02:06 - [app] app - [INFO] INFO - 📍 Alle Drucker sind für Standort 'TBA Marienfelde' konfiguriert
2025-06-19 12:02:06 - [app] app - [INFO] INFO - 🌐 IP-Bereich: 192.168.0.100-106 (außer .105)
2025-06-19 12:02:06 - [app] app - [INFO] INFO - [STARTUP] ✅ Statische Drucker konfiguriert
2025-06-19 12:02:06 - [app] app - [INFO] INFO - [STARTUP] Starte Queue Manager...
2025-06-19 12:02:06 - [app] app - [INFO] INFO - [STARTUP] ✅ Queue Manager gestartet
2025-06-19 12:02:06 - [app] app - [INFO] INFO - [STARTUP] Starte Job Scheduler...
2025-06-19 12:02:06 - [app] app - [INFO] INFO - [STARTUP] ✅ Job Scheduler gestartet
2025-06-19 12:02:06 - [app] app - [INFO] INFO - [STARTUP] 🌐 Server startet auf http://0.0.0.0:5000
2025-06-19 12:02:07 - [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-19 12:02:07 - [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-19 12:02:07 - [app] app - [INFO] INFO - Locating template 'macros/ui_components.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\\macros\\ui_components.html')
2025-06-19 12:02:07 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:02:07 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-19 12:02:07 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:02:18 - [app] app - [DEBUG] DEBUG - Request: GET /printers
2025-06-19 12:02:18 - [app] app - [INFO] INFO - ✅ Steckdosen-Status geloggt: Drucker 1, Status: disconnected, Quelle: system
2025-06-19 12:02:18 - [app] app - [DEBUG] DEBUG - 📊 Auto-Status protokolliert: Drucker 1 -> disconnected
2025-06-19 12:02:18 - [app] app - [INFO] INFO - ✅ Steckdosen-Status geloggt: Drucker 2, Status: disconnected, Quelle: system
2025-06-19 12:02:18 - [app] app - [DEBUG] DEBUG - 📊 Auto-Status protokolliert: Drucker 2 -> disconnected
2025-06-19 12:02:18 - [app] app - [INFO] INFO - ✅ Steckdosen-Status geloggt: Drucker 3, Status: disconnected, Quelle: system
2025-06-19 12:02:18 - [app] app - [DEBUG] DEBUG - 📊 Auto-Status protokolliert: Drucker 3 -> disconnected
2025-06-19 12:02:18 - [app] app - [INFO] INFO - ✅ Steckdosen-Status geloggt: Drucker 4, Status: disconnected, Quelle: system
2025-06-19 12:02:18 - [app] app - [DEBUG] DEBUG - 📊 Auto-Status protokolliert: Drucker 4 -> disconnected
2025-06-19 12:02:18 - [app] app - [INFO] INFO - ✅ Steckdosen-Status geloggt: Drucker 5, Status: disconnected, Quelle: system
2025-06-19 12:02:18 - [app] app - [DEBUG] DEBUG - 📊 Auto-Status protokolliert: Drucker 5 -> disconnected
2025-06-19 12:02:18 - [app] app - [INFO] INFO - ✅ Steckdosen-Status geloggt: Drucker 6, Status: disconnected, Quelle: system
2025-06-19 12:02:18 - [app] app - [DEBUG] DEBUG - 📊 Auto-Status protokolliert: Drucker 6 -> disconnected
2025-06-19 12:02:18 - [app] app - [DEBUG] DEBUG - ✅ Status-Updates für 6 Drucker erfolgreich gespeichert
2025-06-19 12:02:18 - [app] app - [INFO] INFO - Locating template 'printers.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\\printers.html')
2025-06-19 12:02:18 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:02:18 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-19 12:02:18 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:02:20 - [app] app - [DEBUG] DEBUG - Request: GET /admin/
2025-06-19 12:02:20 - [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-19 12:02:20 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:02:20 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-19 12:02:20 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:02:22 - [app] app - [DEBUG] DEBUG - Request: GET /admin/users/add
2025-06-19 12:02:22 - [app] app - [INFO] INFO - Locating template 'admin_add_user.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_add_user.html')
2025-06-19 12:02:22 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:02:22 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-19 12:02:22 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:02:33 - [app] app - [DEBUG] DEBUG - Request: POST /admin/users/add
2025-06-19 12:02:33 - [app] app - [DEBUG] DEBUG - Response: 302
2025-06-19 12:02:33 - [app] app - [DEBUG] DEBUG - Request: GET /admin/users
2025-06-19 12:02:33 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:02:34 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-19 12:02:34 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:02:43 - [app] app - [ERROR] ERROR - CSRF-Fehler für /auth/logout: The CSRF token is missing.
2025-06-19 12:02:43 - [app] app - [ERROR] ERROR - Request Headers: {'Host': '127.0.0.1:5000', 'Connection': 'keep-alive', 'Content-Length': '0', 'Cache-Control': 'max-age=0', 'Sec-Ch-Ua': '"Brave";v="137", "Chromium";v="137", "Not/A)Brand";v="24"', 'Sec-Ch-Ua-Mobile': '?0', 'Sec-Ch-Ua-Platform': '"Windows"', 'Origin': 'http://127.0.0.1:5000', 'Dnt': '1', 'Upgrade-Insecure-Requests': '1', 'Content-Type': 'application/x-www-form-urlencoded', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8', 'Sec-Gpc': '1', 'Accept-Language': 'de-DE,de;q=0.7', 'Sec-Fetch-Site': 'same-origin', 'Sec-Fetch-Mode': 'navigate', 'Sec-Fetch-User': '?1', 'Sec-Fetch-Dest': 'document', 'Referer': 'http://127.0.0.1:5000/admin/users', 'Accept-Encoding': 'gzip, deflate, br, zstd', 'Cookie': 'session=.eJwlzjFuBDEIAMC_uE4BBox9n1mBASWKlEi7d1WUv99FKaebn3bUmdd7u93PR7614yParYlnTjdC3TiLAIP7LlhY5bNgWI_KAZ1hTBFWJHY2EJUNMcNU2IdxB3DKDFgmGq5WJLa6D3XYtUql60ocFkGjwopTnMp3e0UeV57_G3xxX2cd9-_P_PrrEZQnpvma5r4WDo8SIkbGZWoam2xW-30CU-ZA4g.aFPgOg.2MEkfssAR3bC5_jQHb8CIrDcZfA'}
2025-06-19 12:02:43 - [app] app - [ERROR] ERROR - Request Form: {}
2025-06-19 12:02:43 - [app] app - [DEBUG] DEBUG - Response: 302
2025-06-19 12:02:43 - [app] app - [DEBUG] DEBUG - Request: GET /auth/logout
2025-06-19 12:02:43 - [app] app - [DEBUG] DEBUG - Response: 302
2025-06-19 12:02:43 - [app] app - [DEBUG] DEBUG - Request: GET /auth/login
2025-06-19 12:02:43 - [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-19 12:02:43 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:02:48 - [app] app - [DEBUG] DEBUG - Request: POST /auth/login
2025-06-19 12:02:48 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:02:49 - [app] app - [DEBUG] DEBUG - Request: GET /
2025-06-19 12:02:49 - [app] app - [DEBUG] DEBUG - Response: 302
2025-06-19 12:02:49 - [app] app - [DEBUG] DEBUG - Request: GET /dashboard
2025-06-19 12:02:49 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:02:49 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-19 12:02:49 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:02:52 - [app] app - [DEBUG] DEBUG - Request: GET /requests/overview
2025-06-19 12:02:52 - [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-19 12:02:52 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:02:52 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-19 12:02:52 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:02:58 - [app] app - [ERROR] ERROR - CSRF-Fehler für /auth/logout: The CSRF token is missing.
2025-06-19 12:02:58 - [app] app - [ERROR] ERROR - Request Headers: {'Host': '127.0.0.1:5000', 'Connection': 'keep-alive', 'Content-Length': '0', 'Cache-Control': 'max-age=0', 'Sec-Ch-Ua': '"Brave";v="137", "Chromium";v="137", "Not/A)Brand";v="24"', 'Sec-Ch-Ua-Mobile': '?0', 'Sec-Ch-Ua-Platform': '"Windows"', 'Origin': 'http://127.0.0.1:5000', 'Dnt': '1', 'Upgrade-Insecure-Requests': '1', 'Content-Type': 'application/x-www-form-urlencoded', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8', 'Sec-Gpc': '1', 'Accept-Language': 'de-DE,de;q=0.7', 'Sec-Fetch-Site': 'same-origin', 'Sec-Fetch-Mode': 'navigate', 'Sec-Fetch-User': '?1', 'Sec-Fetch-Dest': 'document', 'Referer': 'http://127.0.0.1:5000/requests/overview', 'Accept-Encoding': 'gzip, deflate, br, zstd', 'Cookie': 'session=.eJwlzjFuBDEIAMC_uE4BBox9n1mBASWKlEi7d1WUv99FKaebn3bUmdd7u93PR7614yParYlnTjdC3TiLAIP7LlhY5bNgWI_KAZ1hTBFWJHY2EJUNMcNU2IdxB3DKDFgmGq5WJLa6D3XYtUql60ocFkGjwopTnMp3e0UeV57_m_7ivs467t-f-fXXIyhPTPM1zX0tHB4lRIyMy9Q0Ntms9vsEVCFA4w.aFPgTA.HlBtVWmgQ0ox9f7wxEq4hZygaqA'}
2025-06-19 12:02:58 - [app] app - [ERROR] ERROR - Request Form: {}
2025-06-19 12:02:58 - [app] app - [DEBUG] DEBUG - Response: 302
2025-06-19 12:02:58 - [app] app - [DEBUG] DEBUG - Request: GET /auth/logout
2025-06-19 12:02:58 - [app] app - [DEBUG] DEBUG - Response: 302
2025-06-19 12:02:58 - [app] app - [DEBUG] DEBUG - Request: GET /auth/login
2025-06-19 12:02:58 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:03:00 - [app] app - [DEBUG] DEBUG - Request: POST /auth/login
2025-06-19 12:03:00 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:03:02 - [app] app - [DEBUG] DEBUG - Request: GET /
2025-06-19 12:03:02 - [app] app - [DEBUG] DEBUG - Response: 302
2025-06-19 12:03:02 - [app] app - [DEBUG] DEBUG - Request: GET /dashboard
2025-06-19 12:03:02 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:03:02 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-19 12:03:02 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:03:04 - [app] app - [DEBUG] DEBUG - Request: GET /printers
2025-06-19 12:03:04 - [app] app - [INFO] INFO - ✅ Steckdosen-Status geloggt: Drucker 1, Status: disconnected, Quelle: system
2025-06-19 12:03:04 - [app] app - [DEBUG] DEBUG - 📊 Auto-Status protokolliert: Drucker 1 -> disconnected
2025-06-19 12:03:04 - [app] app - [INFO] INFO - ✅ Steckdosen-Status geloggt: Drucker 2, Status: disconnected, Quelle: system
2025-06-19 12:03:04 - [app] app - [DEBUG] DEBUG - 📊 Auto-Status protokolliert: Drucker 2 -> disconnected
2025-06-19 12:03:04 - [app] app - [INFO] INFO - ✅ Steckdosen-Status geloggt: Drucker 3, Status: disconnected, Quelle: system
2025-06-19 12:03:04 - [app] app - [DEBUG] DEBUG - 📊 Auto-Status protokolliert: Drucker 3 -> disconnected
2025-06-19 12:03:04 - [app] app - [INFO] INFO - ✅ Steckdosen-Status geloggt: Drucker 4, Status: disconnected, Quelle: system
2025-06-19 12:03:04 - [app] app - [DEBUG] DEBUG - 📊 Auto-Status protokolliert: Drucker 4 -> disconnected
2025-06-19 12:03:04 - [app] app - [INFO] INFO - ✅ Steckdosen-Status geloggt: Drucker 5, Status: disconnected, Quelle: system
2025-06-19 12:03:04 - [app] app - [DEBUG] DEBUG - 📊 Auto-Status protokolliert: Drucker 5 -> disconnected
2025-06-19 12:03:04 - [app] app - [INFO] INFO - ✅ Steckdosen-Status geloggt: Drucker 6, Status: disconnected, Quelle: system
2025-06-19 12:03:04 - [app] app - [DEBUG] DEBUG - 📊 Auto-Status protokolliert: Drucker 6 -> disconnected
2025-06-19 12:03:04 - [app] app - [DEBUG] DEBUG - ✅ Status-Updates für 6 Drucker erfolgreich gespeichert
2025-06-19 12:03:04 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:03:04 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-19 12:03:04 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:03:07 - [app] app - [DEBUG] DEBUG - Request: GET /jobs
2025-06-19 12:03:07 - [app] app - [INFO] INFO - Locating template 'jobs.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\\jobs.html')
2025-06-19 12:03:07 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:03:07 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-19 12:03:07 - [app] app - [DEBUG] DEBUG - Request: GET /api/jobs
2025-06-19 12:03:07 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:03:07 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:03:07 - [app] app - [DEBUG] DEBUG - Request: GET /api/printers
2025-06-19 12:03:07 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen (include_inactive=False)
2025-06-19 12:03:07 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:03:10 - [app] app - [DEBUG] DEBUG - Request: GET /calendar
2025-06-19 12:03:10 - [app] app - [INFO] INFO - Locating template 'calendar.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\\calendar.html')
2025-06-19 12:03:10 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:03:10 - [app] app - [DEBUG] DEBUG - Request: GET /api/calendar/events
2025-06-19 12:03:10 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:03:10 - [app] app - [DEBUG] DEBUG - Request: GET /api/calendar/statistics
2025-06-19 12:03:10 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-19 12:03:10 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:03:10 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:03:10 - [app] app - [DEBUG] DEBUG - Request: GET /api/calendar/statistics
2025-06-19 12:03:10 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:03:21 - [app] app - [DEBUG] DEBUG - Request: GET /api/calendar/events
2025-06-19 12:03:21 - [app] app - [DEBUG] DEBUG - Request: GET /api/calendar/statistics
2025-06-19 12:03:21 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:03:21 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:03:21 - [app] app - [DEBUG] DEBUG - Request: GET /api/calendar/statistics
2025-06-19 12:03:21 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:03:22 - [app] app - [DEBUG] DEBUG - Request: GET /energy/
2025-06-19 12:03:22 - [app] app - [INFO] INFO - Locating template 'energy_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\\energy_dashboard.html')
2025-06-19 12:03:22 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:03:22 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-19 12:03:22 - [app] app - [DEBUG] DEBUG - Request: GET /api/energy/dashboard
2025-06-19 12:03:22 - [app] app - [DEBUG] DEBUG - Request: GET /api/energy/statistics
2025-06-19 12:03:22 - [app] app - [DEBUG] DEBUG - Request: GET /api/energy/live
2025-06-19 12:03:22 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:03:22 - [app] app - [DEBUG] DEBUG - Response: 302
2025-06-19 12:03:22 - [app] app - [DEBUG] DEBUG - Request: GET /auth/login
2025-06-19 12:03:22 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:03:22 - [app] app - [DEBUG] DEBUG - Response: 302
2025-06-19 12:03:22 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:03:22 - [app] app - [DEBUG] DEBUG - Request: GET /
2025-06-19 12:03:22 - [app] app - [DEBUG] DEBUG - Response: 302
2025-06-19 12:03:22 - [app] app - [DEBUG] DEBUG - Request: GET /dashboard
2025-06-19 12:03:22 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:03:23 - [app] app - [DEBUG] DEBUG - Request: GET /stats
2025-06-19 12:03:23 - [app] app - [INFO] INFO - Locating template 'stats.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\\stats.html')
2025-06-19 12:03:23 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:03:23 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-19 12:03:23 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:03:24 - [app] app - [DEBUG] DEBUG - Request: GET /request
2025-06-19 12:03:24 - [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-19 12:03:24 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:03:25 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-19 12:03:25 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:03:30 - [app] app - [DEBUG] DEBUG - Request: GET /admin/
2025-06-19 12:03:30 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:03:30 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-19 12:03:30 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:04:00 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-19 12:04:00 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:04:14 - [app] app - [DEBUG] DEBUG - Request: GET /calendar
2025-06-19 12:04:14 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:04:14 - [app] app - [DEBUG] DEBUG - Request: GET /api/calendar/events
2025-06-19 12:04:14 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:04:15 - [app] app - [DEBUG] DEBUG - Request: GET /api/calendar/statistics
2025-06-19 12:04:15 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-19 12:04:15 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:04:15 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:04:15 - [app] app - [DEBUG] DEBUG - Request: GET /api/calendar/statistics
2025-06-19 12:04:15 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:04:19 - [app] app - [DEBUG] DEBUG - Request: GET /api/calendar/events
2025-06-19 12:04:19 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:04:19 - [app] app - [DEBUG] DEBUG - Request: GET /api/calendar/statistics
2025-06-19 12:04:19 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:04:27 - [app] app - [DEBUG] DEBUG - Request: GET /api/calendar/events
2025-06-19 12:04:27 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:04:27 - [app] app - [DEBUG] DEBUG - Request: GET /api/calendar/statistics
2025-06-19 12:04:27 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:04:37 - [app] app - [DEBUG] DEBUG - Request: GET /api/calendar/events
2025-06-19 12:04:37 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:04:37 - [app] app - [DEBUG] DEBUG - Request: GET /api/calendar/statistics
2025-06-19 12:04:37 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:04:45 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-19 12:04:45 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:04:45 - [app] app - [DEBUG] DEBUG - Request: GET /jobs
2025-06-19 12:04:45 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:04:45 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-19 12:04:45 - [app] app - [DEBUG] DEBUG - Request: GET /api/jobs
2025-06-19 12:04:45 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:04:45 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:04:45 - [app] app - [DEBUG] DEBUG - Request: GET /api/printers
2025-06-19 12:04:45 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen (include_inactive=False)
2025-06-19 12:04:45 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:04:55 - [app] app - [DEBUG] DEBUG - Request: GET /.well-known/appspecific/com.chrome.devtools.json
2025-06-19 12:04:55 - [app] app - [INFO] INFO - Not Found (404): http://127.0.0.1:5000/.well-known/appspecific/com.chrome.devtools.json
2025-06-19 12:04:55 - [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:
- C:\Users\TTOMCZA.EMEA\Dev\Projektarbeit-MYP\backend\templates
-> found ('C:\\Users\\TTOMCZA.EMEA\\Dev\\Projektarbeit-MYP\\backend\\templates\\errors\\404.html')
2025-06-19 12:04:55 - [app] app - [DEBUG] DEBUG - Response: 404
2025-06-19 12:05:15 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-19 12:05:15 - [app] app - [DEBUG] DEBUG - Request: GET /api/jobs
2025-06-19 12:05:15 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:05:15 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:05:45 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-19 12:05:45 - [app] app - [DEBUG] DEBUG - Request: GET /api/jobs
2025-06-19 12:05:45 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:05:45 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:06:15 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-19 12:06:15 - [app] app - [DEBUG] DEBUG - Request: GET /api/jobs
2025-06-19 12:06:15 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:06:15 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:06:36 - [app] app - [DEBUG] DEBUG - Request: GET /dashboard
2025-06-19 12:06:36 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:06:36 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-19 12:06:36 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:06:41 - [app] app - [DEBUG] DEBUG - Request: GET /request
2025-06-19 12:06:41 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:06:41 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-19 12:06:41 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:06:44 - [app] app - [DEBUG] DEBUG - Request: POST /request
2025-06-19 12:06:44 - [app] app - [INFO] INFO - 6-stelliger OTP generiert für Guest Request 1
2025-06-19 12:06:44 - [app] app - [DEBUG] DEBUG - Response: 302
2025-06-19 12:06:44 - [app] app - [DEBUG] DEBUG - Request: GET /request/1
2025-06-19 12:06:44 - [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:
- C:\Users\TTOMCZA.EMEA\Dev\Projektarbeit-MYP\backend\templates
-> found ('C:\\Users\\TTOMCZA.EMEA\\Dev\\Projektarbeit-MYP\\backend\\templates\\guest_status.html')
2025-06-19 12:06:44 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:06:48 - [app] app - [DEBUG] DEBUG - Request: GET /request/1
2025-06-19 12:06:48 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:06:48 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-19 12:06:48 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:06:51 - [app] app - [DEBUG] DEBUG - Request: GET /admin/
2025-06-19 12:06:51 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:06:52 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-19 12:06:52 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:06:54 - [app] app - [DEBUG] DEBUG - Request: GET /jobs
2025-06-19 12:06:54 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:06:54 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-19 12:06:54 - [app] app - [DEBUG] DEBUG - Request: GET /api/jobs
2025-06-19 12:06:54 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:06:54 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:06:54 - [app] app - [DEBUG] DEBUG - Request: GET /api/printers
2025-06-19 12:06:54 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen (include_inactive=False)
2025-06-19 12:06:54 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:06:58 - [app] app - [DEBUG] DEBUG - Request: GET /admin/
2025-06-19 12:06:58 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:06:58 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-19 12:06:58 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:07:05 - [app] app - [DEBUG] DEBUG - Request: GET /admin/system-health
2025-06-19 12:07:05 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:07:05 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-19 12:07:05 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:07:06 - [app] app - [DEBUG] DEBUG - Request: GET /admin/users
2025-06-19 12:07:06 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:07:06 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-19 12:07:06 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:07:09 - [app] app - [DEBUG] DEBUG - Request: GET /admin/advanced-settings
2025-06-19 12:07:09 - [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:
- C:\Users\TTOMCZA.EMEA\Dev\Projektarbeit-MYP\backend\templates
-> found ('C:\\Users\\TTOMCZA.EMEA\\Dev\\Projektarbeit-MYP\\backend\\templates\\admin_advanced_settings.html')
2025-06-19 12:07:09 - [app] app - [ERROR] ERROR - Unhandled Exception - ID: 20250619_120709
2025-06-19 12:07:09 - [app] app - [ERROR] ERROR - URL: http://127.0.0.1:5000/admin/advanced-settings
2025-06-19 12:07:09 - [app] app - [ERROR] ERROR - Method: GET
2025-06-19 12:07:09 - [app] app - [ERROR] ERROR - User: admin
2025-06-19 12:07:09 - [app] app - [ERROR] ERROR - Exception Type: UndefinedError
2025-06-19 12:07:09 - [app] app - [ERROR] ERROR - Exception: 'maintenance_info' is undefined
2025-06-19 12:07:09 - [app] app - [ERROR] ERROR - Traceback: Traceback (most recent call last):
File "C:\Users\TTOMCZA.EMEA\Dev\Projektarbeit-MYP\backend\blueprints\admin_unified.py", line 423, in advanced_settings
return render_template('admin_advanced_settings.html', stats=stats, optimization_settings=optimization_settings)
File "C:\Users\TTOMCZA.EMEA\AppData\Roaming\Python\Python313\site-packages\flask\templating.py", line 151, in render_template
return _render(app, template, context)
File "C:\Users\TTOMCZA.EMEA\AppData\Roaming\Python\Python313\site-packages\flask\templating.py", line 132, in _render
rv = template.render(context)
File "C:\Users\TTOMCZA.EMEA\AppData\Roaming\Python\Python313\site-packages\jinja2\environment.py", line 1295, in render
self.environment.handle_exception()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "C:\Users\TTOMCZA.EMEA\AppData\Roaming\Python\Python313\site-packages\jinja2\environment.py", line 942, in handle_exception
raise rewrite_traceback_stack(source=source)
File "C:\Users\TTOMCZA.EMEA\Dev\Projektarbeit-MYP\backend\templates\admin_advanced_settings.html", line 1, in top-level template code
{% extends "base.html" %}
File "C:\Users\TTOMCZA.EMEA\Dev\Projektarbeit-MYP\backend\templates\base.html", line 456, in top-level template code
{% block content %}{% endblock %}
^^^^^^^^^^^^^
File "C:\Users\TTOMCZA.EMEA\Dev\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 "C:\Users\TTOMCZA.EMEA\AppData\Roaming\Python\Python313\site-packages\jinja2\environment.py", line 490, 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 "C:\Users\TTOMCZA.EMEA\AppData\Roaming\Python\Python313\site-packages\flask\app.py", line 1484, in full_dispatch_request
rv = self.dispatch_request()
File "C:\Users\TTOMCZA.EMEA\AppData\Roaming\Python\Python313\site-packages\flask\app.py", line 1469, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
File "C:\Users\TTOMCZA.EMEA\AppData\Roaming\Python\Python313\site-packages\flask_login\utils.py", line 290, in decorated_view
return current_app.ensure_sync(func)(*args, **kwargs)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
File "C:\Users\TTOMCZA.EMEA\Dev\Projektarbeit-MYP\backend\blueprints\admin_unified.py", line 100, in decorated_function
return f(*args, **kwargs)
File "C:\Users\TTOMCZA.EMEA\Dev\Projektarbeit-MYP\backend\blueprints\admin_unified.py", line 447, in advanced_settings
return render_template('admin_advanced_settings.html', stats=stats, optimization_settings=optimization_settings)
File "C:\Users\TTOMCZA.EMEA\AppData\Roaming\Python\Python313\site-packages\flask\templating.py", line 151, in render_template
return _render(app, template, context)
File "C:\Users\TTOMCZA.EMEA\AppData\Roaming\Python\Python313\site-packages\flask\templating.py", line 132, in _render
rv = template.render(context)
File "C:\Users\TTOMCZA.EMEA\AppData\Roaming\Python\Python313\site-packages\jinja2\environment.py", line 1295, in render
self.environment.handle_exception()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "C:\Users\TTOMCZA.EMEA\AppData\Roaming\Python\Python313\site-packages\jinja2\environment.py", line 942, in handle_exception
raise rewrite_traceback_stack(source=source)
File "C:\Users\TTOMCZA.EMEA\Dev\Projektarbeit-MYP\backend\templates\admin_advanced_settings.html", line 1, in top-level template code
{% extends "base.html" %}
File "C:\Users\TTOMCZA.EMEA\Dev\Projektarbeit-MYP\backend\templates\base.html", line 456, in top-level template code
{% block content %}{% endblock %}
^^^^^^^^^^^^^
File "C:\Users\TTOMCZA.EMEA\Dev\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 "C:\Users\TTOMCZA.EMEA\AppData\Roaming\Python\Python313\site-packages\jinja2\environment.py", line 490, in getattr
return getattr(obj, attribute)
jinja2.exceptions.UndefinedError: 'maintenance_info' is undefined
2025-06-19 12:07:09 - [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:
- C:\Users\TTOMCZA.EMEA\Dev\Projektarbeit-MYP\backend\templates
-> found ('C:\\Users\\TTOMCZA.EMEA\\Dev\\Projektarbeit-MYP\\backend\\templates\\errors\\500.html')
2025-06-19 12:07:09 - [app] app - [DEBUG] DEBUG - Response: 500
2025-06-19 12:07:09 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-19 12:07:09 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:07:10 - [app] app - [DEBUG] DEBUG - Request: GET /dashboard
2025-06-19 12:07:10 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:07:10 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-19 12:07:10 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:07:12 - [app] app - [DEBUG] DEBUG - Request: GET /requests/overview
2025-06-19 12:07:12 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:07:12 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-19 12:07:12 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:07:16 - [app] app - [DEBUG] DEBUG - Request: GET /
2025-06-19 12:07:16 - [app] app - [DEBUG] DEBUG - Response: 302
2025-06-19 12:07:16 - [app] app - [DEBUG] DEBUG - Request: GET /dashboard
2025-06-19 12:07:16 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:07:16 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-19 12:07:16 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:07:23 - [app] app - [DEBUG] DEBUG - Request: GET /requests/overview
2025-06-19 12:07:23 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:07:23 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-19 12:07:23 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:07:25 - [app] app - [DEBUG] DEBUG - Request: GET /
2025-06-19 12:07:25 - [app] app - [DEBUG] DEBUG - Response: 302
2025-06-19 12:07:25 - [app] app - [DEBUG] DEBUG - Request: GET /dashboard
2025-06-19 12:07:25 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:07:25 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-19 12:07:25 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:07:27 - [app] app - [DEBUG] DEBUG - Request: GET /admin/
2025-06-19 12:07:27 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:07:27 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-19 12:07:27 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:07:57 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-19 12:07:57 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:07:59 - [app] app - [INFO] INFO - [SHUTDOWN] 🧹 Cleanup wird ausgeführt...
2025-06-19 12:07:59 - [app] app - [INFO] INFO - [SHUTDOWN] ✅ Queue Manager gestoppt
2025-06-19 12:07:59 - [app] app - [ERROR] ERROR - [SHUTDOWN] ❌ Cleanup-Fehler: 'BackgroundTaskScheduler' object has no attribute 'shutdown'
2025-06-19 12:08:00 - [app] app - [INFO] INFO - Optimierte SQLite-Engine erstellt: ./database/myp.db
2025-06-19 12:08:01 - [app] app - [INFO] INFO - [CONFIG] Erkannte Umgebung: development
2025-06-19 12:08:01 - [app] app - [INFO] INFO - [CONFIG] Production-Modus: False
2025-06-19 12:08:01 - [app] app - [INFO] INFO - [CONFIG] Verwende Development-Konfiguration
2025-06-19 12:08:01 - [app] app - [INFO] INFO - [DEVELOPMENT] Aktiviere Development-Konfiguration
2025-06-19 12:08:01 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ MYP Development Environment Konfiguration aktiviert
2025-06-19 12:08:01 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Environment: Development/Testing
2025-06-19 12:08:01 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Debug Mode: True
2025-06-19 12:08:01 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ SQL Echo: True
2025-06-19 12:08:02 - [app] app - [INFO] INFO - SQLite für Raspberry Pi optimiert (reduzierte Cache-Größe, SD-Karten I/O)
2025-06-19 12:08:02 - [app] app - [INFO] INFO - Admin-Berechtigungen beim Start korrigiert: 0 erstellt, 0 aktualisiert
2025-06-19 12:08:02 - [app] app - [INFO] INFO - [STARTUP] 🚀 Starte MYP DEVELOPMENT-Umgebung
2025-06-19 12:08:02 - [app] app - [INFO] INFO - [STARTUP] 🏢 Mercedes-Benz TBA Marienfelde
2025-06-19 12:08:02 - [app] app - [INFO] INFO - [STARTUP] 🔒 Air-Gapped: True
2025-06-19 12:08:02 - [app] app - [INFO] INFO - [STARTUP] Initialisiere Datenbank...
2025-06-19 12:08:02 - [app] app - [INFO] INFO - Datenbank mit Optimierungen initialisiert
2025-06-19 12:08:02 - [app] app - [INFO] INFO - [STARTUP] ✅ Datenbank initialisiert
2025-06-19 12:08:02 - [app] app - [INFO] INFO - [STARTUP] Prüfe Initial-Admin...
2025-06-19 12:08:02 - [app] app - [INFO] INFO - Admin-Benutzer admin (admin@mercedes-benz.com) existiert bereits. Passwort wurde zurückgesetzt.
2025-06-19 12:08:02 - [app] app - [INFO] INFO - [STARTUP] ✅ Admin-Benutzer geprüft
2025-06-19 12:08:02 - [app] app - [INFO] INFO - [STARTUP] Initialisiere statische Drucker...
2025-06-19 12:08:02 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 1 (192.168.0.100)
2025-06-19 12:08:02 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 2 (192.168.0.101)
2025-06-19 12:08:02 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 3 (192.168.0.102)
2025-06-19 12:08:02 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 4 (192.168.0.103)
2025-06-19 12:08:02 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 5 (192.168.0.104)
2025-06-19 12:08:02 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 6 (192.168.0.106)
2025-06-19 12:08:02 - [app] app - [INFO] INFO - ✅ Statische Drucker-Initialisierung abgeschlossen: 0 erstellt, 6 aktualisiert
2025-06-19 12:08:02 - [app] app - [INFO] INFO - 📍 Alle Drucker sind für Standort 'TBA Marienfelde' konfiguriert
2025-06-19 12:08:02 - [app] app - [INFO] INFO - 🌐 IP-Bereich: 192.168.0.100-106 (außer .105)
2025-06-19 12:08:02 - [app] app - [INFO] INFO - [STARTUP] ✅ Statische Drucker konfiguriert
2025-06-19 12:08:02 - [app] app - [INFO] INFO - [STARTUP] Starte Queue Manager...
2025-06-19 12:08:02 - [app] app - [INFO] INFO - [STARTUP] ✅ Queue Manager gestartet
2025-06-19 12:08:02 - [app] app - [INFO] INFO - [STARTUP] Starte Job Scheduler...
2025-06-19 12:08:02 - [app] app - [INFO] INFO - [STARTUP] ✅ Job Scheduler gestartet
2025-06-19 12:08:02 - [app] app - [INFO] INFO - [STARTUP] 🌐 Server startet auf http://0.0.0.0:5000
2025-06-19 12:08:12 - [app] app - [INFO] INFO - Locating template 'imprint.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\\imprint.html')
2025-06-19 12:08:12 - [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-19 12:08:12 - [app] app - [ERROR] ERROR - Unhandled Exception - ID: 20250619_120812
2025-06-19 12:08:12 - [app] app - [ERROR] ERROR - URL: http://127.0.0.1:5000/impressum
2025-06-19 12:08:12 - [app] app - [ERROR] ERROR - Method: GET
2025-06-19 12:08:12 - [app] app - [ERROR] ERROR - User: admin
2025-06-19 12:08:12 - [app] app - [ERROR] ERROR - Exception Type: UndefinedError
2025-06-19 12:08:12 - [app] app - [ERROR] ERROR - Exception: 'moment' is undefined
2025-06-19 12:08:12 - [app] app - [ERROR] ERROR - Traceback: Traceback (most recent call last):
File "C:\Users\TTOMCZA.EMEA\AppData\Roaming\Python\Python313\site-packages\flask\app.py", line 1484, in full_dispatch_request
rv = self.dispatch_request()
File "C:\Users\TTOMCZA.EMEA\AppData\Roaming\Python\Python313\site-packages\flask\app.py", line 1469, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
File "C:\Users\TTOMCZA.EMEA\Dev\Projektarbeit-MYP\backend\blueprints\legal_pages.py", line 14, in imprint
return render_template('imprint.html',
title='Impressum - MYP Platform')
File "C:\Users\TTOMCZA.EMEA\AppData\Roaming\Python\Python313\site-packages\flask\templating.py", line 151, in render_template
return _render(app, template, context)
File "C:\Users\TTOMCZA.EMEA\AppData\Roaming\Python\Python313\site-packages\flask\templating.py", line 132, in _render
rv = template.render(context)
File "C:\Users\TTOMCZA.EMEA\AppData\Roaming\Python\Python313\site-packages\jinja2\environment.py", line 1295, in render
self.environment.handle_exception()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "C:\Users\TTOMCZA.EMEA\AppData\Roaming\Python\Python313\site-packages\jinja2\environment.py", line 942, in handle_exception
raise rewrite_traceback_stack(source=source)
File "C:\Users\TTOMCZA.EMEA\Dev\Projektarbeit-MYP\backend\templates\imprint.html", line 1, in top-level template code
{% extends "base.html" %}
File "C:\Users\TTOMCZA.EMEA\Dev\Projektarbeit-MYP\backend\templates\base.html", line 456, in top-level template code
{% block content %}{% endblock %}
^^^^^^^^^^^^^
File "C:\Users\TTOMCZA.EMEA\Dev\Projektarbeit-MYP\backend\templates\imprint.html", line 201, in block 'content'
<p>Letzte Aktualisierung: {{ moment().format('DD.MM.YYYY') }}</p>
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\TTOMCZA.EMEA\AppData\Roaming\Python\Python313\site-packages\jinja2\utils.py", line 92, in from_obj
if hasattr(obj, "jinja_pass_arg"):
~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
jinja2.exceptions.UndefinedError: 'moment' is undefined
2025-06-19 12:08:12 - [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:
- C:\Users\TTOMCZA.EMEA\Dev\Projektarbeit-MYP\backend\templates
-> found ('C:\\Users\\TTOMCZA.EMEA\\Dev\\Projektarbeit-MYP\\backend\\templates\\errors\\500.html')
2025-06-19 12:08:12 - [app] app - [DEBUG] DEBUG - Response: 500
2025-06-19 12:08:12 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-19 12:08:12 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:08:42 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-19 12:08:42 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 12:09:12 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-19 12:09:12 - [app] app - [DEBUG] DEBUG - Response: 200