🎉 Fix printer monitor complete issue & logs updates 📝

This commit is contained in:
2025-06-12 08:44:29 +02:00
parent 79f4682b20
commit 985bd32d95
30 changed files with 1895 additions and 60 deletions

View File

@ -2024,3 +2024,282 @@ werkzeug.routing.exceptions.BuildError: Could not build url for endpoint 'admin.
2025-06-12 08:32:50 - [app] app - [INFO] INFO - [STARTUP] Starte Job Scheduler...
2025-06-12 08:32:50 - [app] app - [INFO] INFO - [STARTUP] ✅ Job Scheduler gestartet
2025-06-12 08:32:50 - [app] app - [INFO] INFO - [STARTUP] 🌐 Server startet auf http://0.0.0.0:5000
2025-06-12 08:32:51 - [app] app - [WARNING] WARNING - DatabaseCleanupManager nicht verfügbar - Fallback auf Legacy-Cleanup
2025-06-12 08:32:51 - [app] app - [INFO] INFO - Optimierte SQLite-Engine erstellt: backend/database/myp.db
2025-06-12 08:32:53 - [app] app - [INFO] INFO - [CONFIG] Erkannte Umgebung: development
2025-06-12 08:32:53 - [app] app - [INFO] INFO - [CONFIG] Production-Modus: False
2025-06-12 08:32:53 - [app] app - [INFO] INFO - [CONFIG] Verwende Development-Konfiguration
2025-06-12 08:32:53 - [app] app - [INFO] INFO - [DEVELOPMENT] Aktiviere Development-Konfiguration
2025-06-12 08:32:53 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ MYP Development Environment Konfiguration aktiviert
2025-06-12 08:32:53 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Environment: Development/Testing
2025-06-12 08:32:53 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Debug Mode: True
2025-06-12 08:32:53 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ SQL Echo: True
2025-06-12 08:32:53 - [app] app - [INFO] INFO - [STARTUP] 🚀 Starte MYP DEVELOPMENT-Umgebung
2025-06-12 08:32:53 - [app] app - [INFO] INFO - [STARTUP] 🏢 Mercedes-Benz TBA Marienfelde
2025-06-12 08:32:53 - [app] app - [INFO] INFO - [STARTUP] 🔒 Air-Gapped: True
2025-06-12 08:32:53 - [app] app - [INFO] INFO - [STARTUP] Initialisiere Datenbank...
2025-06-12 08:32:53 - [app] app - [INFO] INFO - SQLite für Raspberry Pi optimiert (reduzierte Cache-Größe, SD-Karten I/O)
2025-06-12 08:32:53 - [app] app - [INFO] INFO - Datenbank mit Optimierungen initialisiert
2025-06-12 08:32:53 - [app] app - [INFO] INFO - [STARTUP] ✅ Datenbank initialisiert
2025-06-12 08:32:53 - [app] app - [INFO] INFO - [STARTUP] Prüfe Initial-Admin...
2025-06-12 08:32:54 - [app] app - [INFO] INFO - Admin-Benutzer admin (admin@mercedes-benz.com) existiert bereits. Passwort wurde zurückgesetzt.
2025-06-12 08:32:54 - [app] app - [INFO] INFO - [STARTUP] ✅ Admin-Benutzer geprüft
2025-06-12 08:32:54 - [app] app - [INFO] INFO - [STARTUP] Starte Queue Manager...
2025-06-12 08:32:54 - [app] app - [INFO] INFO - [STARTUP] ✅ Queue Manager gestartet
2025-06-12 08:32:54 - [app] app - [INFO] INFO - [STARTUP] Starte Job Scheduler...
2025-06-12 08:32:54 - [app] app - [INFO] INFO - [STARTUP] ✅ Job Scheduler gestartet
2025-06-12 08:32:54 - [app] app - [INFO] INFO - [STARTUP] 🌐 Server startet auf http://0.0.0.0:5000
2025-06-12 08:32:54 - [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-12 08:32: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:
- C:\Users\TTOMCZA.EMEA\Dev\Projektarbeit-MYP\backend\templates
-> found ('C:\\Users\\TTOMCZA.EMEA\\Dev\\Projektarbeit-MYP\\backend\\templates\\base.html')
2025-06-12 08:32:54 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 08:32:54 - [app] app - [DEBUG] DEBUG - Request: GET /.well-known/appspecific/com.chrome.devtools.json
2025-06-12 08:32:54 - [app] app - [INFO] INFO - Not Found (404): http://127.0.0.1:5000/.well-known/appspecific/com.chrome.devtools.json
2025-06-12 08:32:54 - [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-12 08:32:54 - [app] app - [DEBUG] DEBUG - Response: 404
2025-06-12 08:32:55 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-12 08:32:55 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 08:32:55 - [app] app - [DEBUG] DEBUG - Request: GET /api/jobs
2025-06-12 08:32:55 - [app] app - [DEBUG] DEBUG - Request: GET /api/session/status
2025-06-12 08:32:55 - [app] app - [DEBUG] DEBUG - Request: GET /api/user/settings
2025-06-12 08:32:55 - [app] app - [DEBUG] DEBUG - Response: 500
2025-06-12 08:32:55 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 08:32:55 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 08:32:56 - [app] app - [DEBUG] DEBUG - Request: GET /stats
2025-06-12 08:32:56 - [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-12 08:32:56 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 08:32:56 - [app] app - [DEBUG] DEBUG - Request: GET /.well-known/appspecific/com.chrome.devtools.json
2025-06-12 08:32:56 - [app] app - [INFO] INFO - Not Found (404): http://127.0.0.1:5000/.well-known/appspecific/com.chrome.devtools.json
2025-06-12 08:32:56 - [app] app - [DEBUG] DEBUG - Response: 404
2025-06-12 08:32:57 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-12 08:32:57 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 08:32:57 - [app] app - [DEBUG] DEBUG - Request: GET /api/session/status
2025-06-12 08:32:57 - [app] app - [DEBUG] DEBUG - Request: GET /api/user/settings
2025-06-12 08:32:57 - [app] app - [DEBUG] DEBUG - Response: 500
2025-06-12 08:32:57 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 08:33:04 - [app] app - [DEBUG] DEBUG - Request: GET /calendar
2025-06-12 08:33:04 - [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-12 08:33:04 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 08:33:04 - [app] app - [DEBUG] DEBUG - Request: GET /.well-known/appspecific/com.chrome.devtools.json
2025-06-12 08:33:04 - [app] app - [INFO] INFO - Not Found (404): http://127.0.0.1:5000/.well-known/appspecific/com.chrome.devtools.json
2025-06-12 08:33:04 - [app] app - [DEBUG] DEBUG - Response: 404
2025-06-12 08:33:05 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-12 08:33:05 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 08:33:05 - [app] app - [DEBUG] DEBUG - Request: GET /api/calendar/events
2025-06-12 08:33:05 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 08:33:05 - [app] app - [DEBUG] DEBUG - Request: GET /api/session/status
2025-06-12 08:33:05 - [app] app - [DEBUG] DEBUG - Request: GET /api/user/settings
2025-06-12 08:33:05 - [app] app - [DEBUG] DEBUG - Response: 500
2025-06-12 08:33:05 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 08:33:13 - [app] app - [DEBUG] DEBUG - Request: GET /stats
2025-06-12 08:33:13 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 08:33:13 - [app] app - [DEBUG] DEBUG - Request: GET /.well-known/appspecific/com.chrome.devtools.json
2025-06-12 08:33:13 - [app] app - [INFO] INFO - Not Found (404): http://127.0.0.1:5000/.well-known/appspecific/com.chrome.devtools.json
2025-06-12 08:33:13 - [app] app - [DEBUG] DEBUG - Response: 404
2025-06-12 08:33:14 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-12 08:33:14 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 08:33:14 - [app] app - [DEBUG] DEBUG - Request: GET /api/session/status
2025-06-12 08:33:14 - [app] app - [DEBUG] DEBUG - Request: GET /api/user/settings
2025-06-12 08:33:14 - [app] app - [DEBUG] DEBUG - Response: 500
2025-06-12 08:33:14 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 08:33:16 - [app] app - [DEBUG] DEBUG - Request: GET /request
2025-06-12 08:33:16 - [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-12 08:33:16 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 08:33:16 - [app] app - [ERROR] ERROR - Fehler beim Laden des Benutzers 1: (sqlite3.InterfaceError) bad parameter or other API misuse
[SQL: SELECT users.id AS users_id, users.email AS users_email, users.username AS users_username, users.password_hash AS users_password_hash, users.name AS users_name, users.role AS users_role, users.active AS users_active, users.created_at AS users_created_at, users.last_login AS users_last_login, users.updated_at AS users_updated_at, users.settings AS users_settings, users.last_activity AS users_last_activity, users.department AS users_department, users.position AS users_position, users.phone AS users_phone, users.bio AS users_bio, users.theme_preference AS users_theme_preference, users.language_preference AS users_language_preference, users.email_notifications AS users_email_notifications, users.browser_notifications AS users_browser_notifications, users.dashboard_layout AS users_dashboard_layout, users.compact_mode AS users_compact_mode, users.show_completed_jobs AS users_show_completed_jobs, users.auto_refresh_interval AS users_auto_refresh_interval, users.auto_logout_timeout AS users_auto_logout_timeout
FROM users
WHERE users.id = ?
LIMIT ? OFFSET ?]
[parameters: (1, 1, 0)]
(Background on this error at: https://sqlalche.me/e/20/rvf5)
2025-06-12 08:33:16 - [app] app - [DEBUG] DEBUG - Request: GET /.well-known/appspecific/com.chrome.devtools.json
2025-06-12 08:33:16 - [app] app - [INFO] INFO - Not Found (404): http://127.0.0.1:5000/.well-known/appspecific/com.chrome.devtools.json
2025-06-12 08:33:16 - [app] app - [DEBUG] DEBUG - Response: 404
2025-06-12 08:33:17 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-12 08:33:17 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 08:33:17 - [app] app - [DEBUG] DEBUG - Request: GET /api/session/status
2025-06-12 08:33:17 - [app] app - [DEBUG] DEBUG - Request: GET /api/user/settings
2025-06-12 08:33:17 - [app] app - [DEBUG] DEBUG - Response: 500
2025-06-12 08:33:17 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 08:33:21 - [app] app - [DEBUG] DEBUG - Request: POST /request
2025-06-12 08:33:21 - [app] app - [INFO] INFO - OTP generiert für Guest Request 1
2025-06-12 08:33:21 - [app] app - [DEBUG] DEBUG - Response: 302
2025-06-12 08:33:21 - [app] app - [DEBUG] DEBUG - Request: GET /request/1
2025-06-12 08:33:21 - [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-12 08:33:21 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 08:33:28 - [app] app - [DEBUG] DEBUG - Request: GET /request/1
2025-06-12 08:33:28 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 08:33:28 - [app] app - [DEBUG] DEBUG - Request: GET /.well-known/appspecific/com.chrome.devtools.json
2025-06-12 08:33:28 - [app] app - [INFO] INFO - Not Found (404): http://127.0.0.1:5000/.well-known/appspecific/com.chrome.devtools.json
2025-06-12 08:33:28 - [app] app - [DEBUG] DEBUG - Response: 404
2025-06-12 08:33:28 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-12 08:33:28 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 08:33:28 - [app] app - [DEBUG] DEBUG - Request: GET /api/session/status
2025-06-12 08:33:28 - [app] app - [DEBUG] DEBUG - Request: GET /api/user/settings
2025-06-12 08:33:28 - [app] app - [DEBUG] DEBUG - Response: 500
2025-06-12 08:33:28 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 08:33:35 - [app] app - [DEBUG] DEBUG - Request: GET /admin/
2025-06-12 08:33:35 - [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-12 08:33:35 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 08:33:35 - [app] app - [DEBUG] DEBUG - Request: GET /.well-known/appspecific/com.chrome.devtools.json
2025-06-12 08:33:35 - [app] app - [INFO] INFO - Not Found (404): http://127.0.0.1:5000/.well-known/appspecific/com.chrome.devtools.json
2025-06-12 08:33:35 - [app] app - [DEBUG] DEBUG - Response: 404
2025-06-12 08:33:35 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-12 08:33:35 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 08:33:35 - [app] app - [DEBUG] DEBUG - Request: GET /api/stats
2025-06-12 08:33:35 - [app] app - [INFO] INFO - Not Found (404): http://127.0.0.1:5000/api/stats
2025-06-12 08:33:35 - [app] app - [DEBUG] DEBUG - Request: GET /api/session/status
2025-06-12 08:33:35 - [app] app - [DEBUG] DEBUG - Request: GET /api/printers/monitor/live-status
2025-06-12 08:33:35 - [app] app - [DEBUG] DEBUG - Response: 404
2025-06-12 08:33:35 - [app] app - [DEBUG] DEBUG - Request: GET /api/user/settings
2025-06-12 08:33:35 - [app] app - [DEBUG] DEBUG - Response: 500
2025-06-12 08:33:36 - [app] app - [DEBUG] DEBUG - Response: 500
2025-06-12 08:33:36 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 08:33:36 - [app] app - [DEBUG] DEBUG - Request: GET /api/admin/system-health
2025-06-12 08:33:36 - [app] app - [INFO] INFO - Not Found (404): http://127.0.0.1:5000/api/admin/system-health
2025-06-12 08:33:36 - [app] app - [DEBUG] DEBUG - Response: 404
2025-06-12 08:33:38 - [app] app - [DEBUG] DEBUG - Request: GET /admin/logs
2025-06-12 08:33:38 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 08:33:38 - [app] app - [DEBUG] DEBUG - Request: GET /.well-known/appspecific/com.chrome.devtools.json
2025-06-12 08:33:38 - [app] app - [INFO] INFO - Not Found (404): http://127.0.0.1:5000/.well-known/appspecific/com.chrome.devtools.json
2025-06-12 08:33:38 - [app] app - [DEBUG] DEBUG - Response: 404
2025-06-12 08:33:39 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-12 08:33:39 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 08:33:39 - [app] app - [DEBUG] DEBUG - Request: GET /api/stats
2025-06-12 08:33:39 - [app] app - [DEBUG] DEBUG - Request: GET /api/printers/monitor/live-status
2025-06-12 08:33:39 - [app] app - [INFO] INFO - Not Found (404): http://127.0.0.1:5000/api/stats
2025-06-12 08:33:39 - [app] app - [DEBUG] DEBUG - Request: GET /api/session/status
2025-06-12 08:33:39 - [app] app - [DEBUG] DEBUG - Request: GET /api/user/settings
2025-06-12 08:33:39 - [app] app - [DEBUG] DEBUG - Response: 404
2025-06-12 08:33:39 - [app] app - [DEBUG] DEBUG - Response: 302
2025-06-12 08:33:39 - [app] app - [DEBUG] DEBUG - Response: 500
2025-06-12 08:33:39 - [app] app - [DEBUG] DEBUG - Response: 500
2025-06-12 08:33:39 - [app] app - [DEBUG] DEBUG - Request: GET /api/admin/system-health
2025-06-12 08:33:39 - [app] app - [DEBUG] DEBUG - Request: GET /auth/login
2025-06-12 08:33:39 - [app] app - [INFO] INFO - Not Found (404): http://127.0.0.1:5000/api/admin/system-health
2025-06-12 08:33:39 - [app] app - [DEBUG] DEBUG - Response: 404
2025-06-12 08:33:39 - [app] app - [DEBUG] DEBUG - Response: 302
2025-06-12 08:33:39 - [app] app - [DEBUG] DEBUG - Request: GET /
2025-06-12 08:33:39 - [app] app - [DEBUG] DEBUG - Response: 302
2025-06-12 08:33:39 - [app] app - [DEBUG] DEBUG - Request: GET /admin/api/logs
2025-06-12 08:33:39 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 08:33:39 - [app] app - [DEBUG] DEBUG - Request: GET /dashboard
2025-06-12 08:33: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:
- C:\Users\TTOMCZA.EMEA\Dev\Projektarbeit-MYP\backend\templates
-> found ('C:\\Users\\TTOMCZA.EMEA\\Dev\\Projektarbeit-MYP\\backend\\templates\\dashboard.html')
2025-06-12 08:33:39 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 08:33:40 - [app] app - [DEBUG] DEBUG - Request: GET /admin/api/logs
2025-06-12 08:33:40 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 08:33:42 - [app] app - [DEBUG] DEBUG - Request: GET /admin/guest-requests
2025-06-12 08:33:42 - [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-12 08:33:42 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 08:33:42 - [app] app - [DEBUG] DEBUG - Request: GET /.well-known/appspecific/com.chrome.devtools.json
2025-06-12 08:33:42 - [app] app - [INFO] INFO - Not Found (404): http://127.0.0.1:5000/.well-known/appspecific/com.chrome.devtools.json
2025-06-12 08:33:42 - [app] app - [DEBUG] DEBUG - Response: 404
2025-06-12 08:33:42 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-12 08:33:42 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 08:33:42 - [app] app - [DEBUG] DEBUG - Request: GET /api/printers/monitor/live-status
2025-06-12 08:33:42 - [app] app - [DEBUG] DEBUG - Request: GET /api/session/status
2025-06-12 08:33:42 - [app] app - [DEBUG] DEBUG - Request: GET /api/user/settings
2025-06-12 08:33:42 - [app] app - [DEBUG] DEBUG - Request: GET /api/admin/guest-requests
2025-06-12 08:33:42 - [app] app - [DEBUG] DEBUG - Response: 500
2025-06-12 08:33:42 - [app] app - [DEBUG] DEBUG - Response: 500
2025-06-12 08:33:42 - [app] app - [INFO] INFO - Not Found (404): http://127.0.0.1:5000/api/admin/guest-requests
2025-06-12 08:33:42 - [app] app - [DEBUG] DEBUG - Response: 404
2025-06-12 08:33:42 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-12 08:34:04 - [app] app - [INFO] INFO - [SHUTDOWN] 🧹 Cleanup wird ausgeführt...
2025-06-12 08:34:04 - [app] app - [INFO] INFO - [SHUTDOWN] ✅ Queue Manager gestoppt
2025-06-12 08:34:04 - [app] app - [ERROR] ERROR - [SHUTDOWN] ❌ Cleanup-Fehler: 'BackgroundTaskScheduler' object has no attribute 'shutdown'
2025-06-12 08:34:05 - [app] app - [WARNING] WARNING - DatabaseCleanupManager nicht verfügbar - Fallback auf Legacy-Cleanup
2025-06-12 08:34:05 - [app] app - [INFO] INFO - Optimierte SQLite-Engine erstellt: backend/database/myp.db
2025-06-12 08:34:06 - [app] app - [INFO] INFO - [CONFIG] Erkannte Umgebung: development
2025-06-12 08:34:06 - [app] app - [INFO] INFO - [CONFIG] Production-Modus: False
2025-06-12 08:34:06 - [app] app - [INFO] INFO - [CONFIG] Verwende Development-Konfiguration
2025-06-12 08:34:06 - [app] app - [INFO] INFO - [DEVELOPMENT] Aktiviere Development-Konfiguration
2025-06-12 08:34:06 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ MYP Development Environment Konfiguration aktiviert
2025-06-12 08:34:06 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Environment: Development/Testing
2025-06-12 08:34:06 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Debug Mode: True
2025-06-12 08:34:06 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ SQL Echo: True
2025-06-12 08:34:06 - [app] app - [INFO] INFO - [STARTUP] 🚀 Starte MYP DEVELOPMENT-Umgebung
2025-06-12 08:34:06 - [app] app - [INFO] INFO - [STARTUP] 🏢 Mercedes-Benz TBA Marienfelde
2025-06-12 08:34:06 - [app] app - [INFO] INFO - [STARTUP] 🔒 Air-Gapped: True
2025-06-12 08:34:06 - [app] app - [INFO] INFO - [STARTUP] Initialisiere Datenbank...
2025-06-12 08:34:06 - [app] app - [INFO] INFO - SQLite für Raspberry Pi optimiert (reduzierte Cache-Größe, SD-Karten I/O)
2025-06-12 08:34:06 - [app] app - [INFO] INFO - Datenbank mit Optimierungen initialisiert
2025-06-12 08:34:06 - [app] app - [INFO] INFO - [STARTUP] ✅ Datenbank initialisiert
2025-06-12 08:34:06 - [app] app - [INFO] INFO - [STARTUP] Prüfe Initial-Admin...
2025-06-12 08:34:07 - [app] app - [INFO] INFO - Admin-Benutzer admin (admin@mercedes-benz.com) existiert bereits. Passwort wurde zurückgesetzt.
2025-06-12 08:34:07 - [app] app - [INFO] INFO - [STARTUP] ✅ Admin-Benutzer geprüft
2025-06-12 08:34:07 - [app] app - [INFO] INFO - [STARTUP] Starte Queue Manager...
2025-06-12 08:34:07 - [app] app - [INFO] INFO - [STARTUP] ✅ Queue Manager gestartet
2025-06-12 08:34:07 - [app] app - [INFO] INFO - [STARTUP] Starte Job Scheduler...
2025-06-12 08:34:07 - [app] app - [INFO] INFO - [STARTUP] ✅ Job Scheduler gestartet
2025-06-12 08:34:07 - [app] app - [INFO] INFO - [STARTUP] 🌐 Server startet auf http://0.0.0.0:5000
2025-06-12 08:34:12 - [app] app - [INFO] INFO - Not Found (404): http://127.0.0.1:5000/api/admin/guest-requests