Die Dateien, die in diesem Commit geändert wurden, sind:

This commit is contained in:
2025-06-18 12:49:15 +02:00
parent 5a4b11b165
commit 59fafc66e4
179 changed files with 960 additions and 0 deletions

View File

@ -42199,3 +42199,635 @@ WHERE users.role = ?]
2025-06-18 09:48:00 - [app] app - [INFO] INFO - [STARTUP] Starte Job Scheduler...
2025-06-18 09:48:00 - [app] app - [INFO] INFO - [STARTUP] ✅ Job Scheduler gestartet
2025-06-18 09:48:00 - [app] app - [INFO] INFO - [STARTUP] 🌐 Server startet auf http://0.0.0.0:5000
2025-06-18 12:38:03 - [app] app - [INFO] INFO - Optimierte SQLite-Engine erstellt: ./database/myp.db
2025-06-18 12:38:05 - [app] app - [INFO] INFO - [CONFIG] Erkannte Umgebung: development
2025-06-18 12:38:05 - [app] app - [INFO] INFO - [CONFIG] Production-Modus: False
2025-06-18 12:38:05 - [app] app - [INFO] INFO - [CONFIG] Verwende Development-Konfiguration
2025-06-18 12:38:05 - [app] app - [INFO] INFO - [DEVELOPMENT] Aktiviere Development-Konfiguration
2025-06-18 12:38:05 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ MYP Development Environment Konfiguration aktiviert
2025-06-18 12:38:05 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Environment: Development/Testing
2025-06-18 12:38:05 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Debug Mode: True
2025-06-18 12:38:05 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ SQL Echo: True
2025-06-18 12:38:05 - [app] app - [INFO] INFO - SQLite für Raspberry Pi optimiert (reduzierte Cache-Größe, SD-Karten I/O)
2025-06-18 12:38:05 - [app] app - [INFO] INFO - Admin-Berechtigungen beim Start korrigiert: 0 erstellt, 0 aktualisiert
2025-06-18 12:38:05 - [app] app - [INFO] INFO - [STARTUP] 🚀 Starte MYP DEVELOPMENT-Umgebung
2025-06-18 12:38:05 - [app] app - [INFO] INFO - [STARTUP] 🏢 Mercedes-Benz TBA Marienfelde
2025-06-18 12:38:05 - [app] app - [INFO] INFO - [STARTUP] 🔒 Air-Gapped: True
2025-06-18 12:38:05 - [app] app - [INFO] INFO - [STARTUP] Initialisiere Datenbank...
2025-06-18 12:38:05 - [app] app - [INFO] INFO - Datenbank mit Optimierungen initialisiert
2025-06-18 12:38:05 - [app] app - [INFO] INFO - [STARTUP] ✅ Datenbank initialisiert
2025-06-18 12:38:05 - [app] app - [INFO] INFO - [STARTUP] Prüfe Initial-Admin...
2025-06-18 12:38:05 - [app] app - [INFO] INFO - Admin-Benutzer admin (admin@mercedes-benz.com) existiert bereits. Passwort wurde zurückgesetzt.
2025-06-18 12:38:05 - [app] app - [INFO] INFO - [STARTUP] ✅ Admin-Benutzer geprüft
2025-06-18 12:38:05 - [app] app - [INFO] INFO - [STARTUP] Initialisiere statische Drucker...
2025-06-18 12:38:05 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 1 (192.168.0.100)
2025-06-18 12:38:05 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 2 (192.168.0.101)
2025-06-18 12:38:05 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 3 (192.168.0.102)
2025-06-18 12:38:05 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 4 (192.168.0.103)
2025-06-18 12:38:05 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 5 (192.168.0.104)
2025-06-18 12:38:05 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 6 (192.168.0.106)
2025-06-18 12:38:05 - [app] app - [INFO] INFO - ✅ Statische Drucker-Initialisierung abgeschlossen: 0 erstellt, 6 aktualisiert
2025-06-18 12:38:05 - [app] app - [INFO] INFO - 📍 Alle Drucker sind für Standort 'TBA Marienfelde' konfiguriert
2025-06-18 12:38:05 - [app] app - [INFO] INFO - 🌐 IP-Bereich: 192.168.0.100-106 (außer .105)
2025-06-18 12:38:05 - [app] app - [INFO] INFO - [STARTUP] ✅ Statische Drucker konfiguriert
2025-06-18 12:38:05 - [app] app - [INFO] INFO - [STARTUP] Starte Queue Manager...
2025-06-18 12:38:05 - [app] app - [INFO] INFO - [STARTUP] ✅ Queue Manager gestartet
2025-06-18 12:38:05 - [app] app - [INFO] INFO - [STARTUP] Starte Job Scheduler...
2025-06-18 12:38:05 - [app] app - [INFO] INFO - [STARTUP] ✅ Job Scheduler gestartet
2025-06-18 12:38:05 - [app] app - [INFO] INFO - [STARTUP] 🌐 Server startet auf http://0.0.0.0:5000
2025-06-18 12:38:06 - [app] app - [INFO] INFO - Optimierte SQLite-Engine erstellt: ./database/myp.db
2025-06-18 12:38:07 - [app] app - [INFO] INFO - [CONFIG] Erkannte Umgebung: development
2025-06-18 12:38:07 - [app] app - [INFO] INFO - [CONFIG] Production-Modus: False
2025-06-18 12:38:07 - [app] app - [INFO] INFO - [CONFIG] Verwende Development-Konfiguration
2025-06-18 12:38:07 - [app] app - [INFO] INFO - [DEVELOPMENT] Aktiviere Development-Konfiguration
2025-06-18 12:38:07 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ MYP Development Environment Konfiguration aktiviert
2025-06-18 12:38:07 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Environment: Development/Testing
2025-06-18 12:38:07 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Debug Mode: True
2025-06-18 12:38:07 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ SQL Echo: True
2025-06-18 12:38:07 - [app] app - [INFO] INFO - SQLite für Raspberry Pi optimiert (reduzierte Cache-Größe, SD-Karten I/O)
2025-06-18 12:38:07 - [app] app - [INFO] INFO - Admin-Berechtigungen beim Start korrigiert: 0 erstellt, 0 aktualisiert
2025-06-18 12:38:07 - [app] app - [INFO] INFO - [STARTUP] 🚀 Starte MYP DEVELOPMENT-Umgebung
2025-06-18 12:38:07 - [app] app - [INFO] INFO - [STARTUP] 🏢 Mercedes-Benz TBA Marienfelde
2025-06-18 12:38:07 - [app] app - [INFO] INFO - [STARTUP] 🔒 Air-Gapped: True
2025-06-18 12:38:07 - [app] app - [INFO] INFO - [STARTUP] Initialisiere Datenbank...
2025-06-18 12:38:07 - [app] app - [INFO] INFO - Datenbank mit Optimierungen initialisiert
2025-06-18 12:38:07 - [app] app - [INFO] INFO - [STARTUP] ✅ Datenbank initialisiert
2025-06-18 12:38:07 - [app] app - [INFO] INFO - [STARTUP] Prüfe Initial-Admin...
2025-06-18 12:38:07 - [app] app - [INFO] INFO - Admin-Benutzer admin (admin@mercedes-benz.com) existiert bereits. Passwort wurde zurückgesetzt.
2025-06-18 12:38:07 - [app] app - [INFO] INFO - [STARTUP] ✅ Admin-Benutzer geprüft
2025-06-18 12:38:07 - [app] app - [INFO] INFO - [STARTUP] Initialisiere statische Drucker...
2025-06-18 12:38:07 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 1 (192.168.0.100)
2025-06-18 12:38:07 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 2 (192.168.0.101)
2025-06-18 12:38:07 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 3 (192.168.0.102)
2025-06-18 12:38:07 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 4 (192.168.0.103)
2025-06-18 12:38:07 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 5 (192.168.0.104)
2025-06-18 12:38:07 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 6 (192.168.0.106)
2025-06-18 12:38:07 - [app] app - [INFO] INFO - ✅ Statische Drucker-Initialisierung abgeschlossen: 0 erstellt, 6 aktualisiert
2025-06-18 12:38:07 - [app] app - [INFO] INFO - 📍 Alle Drucker sind für Standort 'TBA Marienfelde' konfiguriert
2025-06-18 12:38:07 - [app] app - [INFO] INFO - 🌐 IP-Bereich: 192.168.0.100-106 (außer .105)
2025-06-18 12:38:07 - [app] app - [INFO] INFO - [STARTUP] ✅ Statische Drucker konfiguriert
2025-06-18 12:38:07 - [app] app - [INFO] INFO - [STARTUP] Starte Queue Manager...
2025-06-18 12:38:07 - [app] app - [INFO] INFO - [STARTUP] ✅ Queue Manager gestartet
2025-06-18 12:38:07 - [app] app - [INFO] INFO - [STARTUP] Starte Job Scheduler...
2025-06-18 12:38:07 - [app] app - [INFO] INFO - [STARTUP] ✅ Job Scheduler gestartet
2025-06-18 12:38:07 - [app] app - [INFO] INFO - [STARTUP] 🌐 Server startet auf http://0.0.0.0:5000
2025-06-18 12:38:09 - [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-18 12:38:09 - [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-18 12:38:10 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-18 12:38:11 - [app] app - [DEBUG] DEBUG - Request: POST /auth/login
2025-06-18 12:38:12 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-18 12:38:13 - [app] app - [DEBUG] DEBUG - Request: GET /
2025-06-18 12:38:13 - [app] app - [DEBUG] DEBUG - Response: 302
2025-06-18 12:38:13 - [app] app - [DEBUG] DEBUG - Request: GET /dashboard
2025-06-18 12:38:13 - [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-18 12:38:13 - [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-18 12:38:13 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-18 12:38:13 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-18 12:38:13 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-18 12:38:15 - [app] app - [DEBUG] DEBUG - Request: GET /energy/
2025-06-18 12:38:15 - [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-18 12:38:15 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-18 12:38:15 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-18 12:38:15 - [app] app - [DEBUG] DEBUG - Request: GET /api/energy/dashboard
2025-06-18 12:38:15 - [app] app - [DEBUG] DEBUG - Request: GET /api/energy/statistics
2025-06-18 12:38:15 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-18 12:38:15 - [app] app - [DEBUG] DEBUG - Request: GET /api/energy/live
2025-06-18 12:38:15 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-18 12:38:15 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-18 12:38:15 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-18 12:38:17 - [app] app - [DEBUG] DEBUG - Request: GET /calendar
2025-06-18 12:38:17 - [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-18 12:38:17 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-18 12:38:17 - [app] app - [DEBUG] DEBUG - Request: GET /api/calendar/events
2025-06-18 12:38:17 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-18 12:38:17 - [app] app - [DEBUG] DEBUG - Request: GET /api/calendar/statistics
2025-06-18 12:38:17 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-18 12:38:17 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-18 12:38:17 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-18 12:38:17 - [app] app - [DEBUG] DEBUG - Request: GET /api/calendar/statistics
2025-06-18 12:38:17 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-18 12:38:17 - [app] app - [DEBUG] DEBUG - Request: GET /printers
2025-06-18 12:38:17 - [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-18 12:38:17 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-18 12:38:17 - [app] app - [DEBUG] DEBUG - Request: GET /api/printers
2025-06-18 12:38:17 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen (include_inactive=False)
2025-06-18 12:38:17 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-18 12:38:17 - [app] app - [DEBUG] DEBUG - Request: GET /api/printers
2025-06-18 12:38:17 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-18 12:38:17 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-18 12:38:17 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen (include_inactive=False)
2025-06-18 12:38:17 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-18 12:38:22 - [app] app - [DEBUG] DEBUG - Request: GET /admin/
2025-06-18 12:38:22 - [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-18 12:38:22 - [app] app - [ERROR] ERROR - Unhandled Exception - ID: 20250618_123822
2025-06-18 12:38:22 - [app] app - [ERROR] ERROR - URL: http://127.0.0.1:5000/admin/
2025-06-18 12:38:22 - [app] app - [ERROR] ERROR - Method: GET
2025-06-18 12:38:22 - [app] app - [ERROR] ERROR - User: admin
2025-06-18 12:38:22 - [app] app - [ERROR] ERROR - Exception Type: BuildError
2025-06-18 12:38:22 - [app] app - [ERROR] ERROR - Exception: Could not build url for endpoint 'admin_users'. Did you mean 'admin.add_user_page' instead?
2025-06-18 12:38:23 - [app] app - [ERROR] ERROR - Traceback: Traceback (most recent call last):
File "C:\Users\TTOMCZA.EMEA\Dev\Projektarbeit-MYP\backend\blueprints\admin_unified.py", line 117, in admin_dashboard
return render_template('admin.html', stats=stats, active_tab=None)
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.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.html", line 71, in block 'content'
<a href="{{ url_for('admin_users') }}" class="inline-flex items-center px-6 py-3 bg-white/10 backdrop-blur-sm border border-white/20 rounded-xl text-white hover:bg-white/20 transition-all duration-300 hover:scale-105">
^^^^^
File "C:\Users\TTOMCZA.EMEA\AppData\Roaming\Python\Python313\site-packages\flask\app.py", line 1697, in url_for
return self.handle_url_build_error(error, endpoint, values)
~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\TTOMCZA.EMEA\AppData\Roaming\Python\Python313\site-packages\flask\app.py", line 1686, in url_for
rv = url_adapter.build( # type: ignore[union-attr]
endpoint,
...<3 lines>...
force_external=_external,
)
File "C:\Users\TTOMCZA.EMEA\AppData\Roaming\Python\Python313\site-packages\werkzeug\routing\map.py", line 924, in build
raise BuildError(endpoint, values, method, self)
werkzeug.routing.exceptions.BuildError: Could not build url for endpoint 'admin_users'. Did you mean 'admin.add_user_page' instead?
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 88, in decorated_function
return f(*args, **kwargs)
File "C:\Users\TTOMCZA.EMEA\Dev\Projektarbeit-MYP\backend\blueprints\admin_unified.py", line 122, in admin_dashboard
return render_template('admin.html', stats={}, active_tab=None)
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.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.html", line 71, in block 'content'
<a href="{{ url_for('admin_users') }}" class="inline-flex items-center px-6 py-3 bg-white/10 backdrop-blur-sm border border-white/20 rounded-xl text-white hover:bg-white/20 transition-all duration-300 hover:scale-105">
^^^^^
File "C:\Users\TTOMCZA.EMEA\AppData\Roaming\Python\Python313\site-packages\flask\app.py", line 1697, in url_for
return self.handle_url_build_error(error, endpoint, values)
~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\TTOMCZA.EMEA\AppData\Roaming\Python\Python313\site-packages\flask\app.py", line 1686, in url_for
rv = url_adapter.build( # type: ignore[union-attr]
endpoint,
...<3 lines>...
force_external=_external,
)
File "C:\Users\TTOMCZA.EMEA\AppData\Roaming\Python\Python313\site-packages\werkzeug\routing\map.py", line 924, in build
raise BuildError(endpoint, values, method, self)
werkzeug.routing.exceptions.BuildError: Could not build url for endpoint 'admin_users'. Did you mean 'admin.add_user_page' instead?
2025-06-18 12:38: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:
- C:\Users\TTOMCZA.EMEA\Dev\Projektarbeit-MYP\backend\templates
-> found ('C:\\Users\\TTOMCZA.EMEA\\Dev\\Projektarbeit-MYP\\backend\\templates\\errors\\500.html')
2025-06-18 12:38:23 - [app] app - [DEBUG] DEBUG - Response: 500
2025-06-18 12:38:23 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-18 12:38:23 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-18 12:38:23 - [app] app - [INFO] INFO - [SHUTDOWN] 🧹 Cleanup wird ausgeführt...
2025-06-18 12:38:23 - [app] app - [INFO] INFO - [SHUTDOWN] ✅ Queue Manager gestoppt
2025-06-18 12:38:23 - [app] app - [ERROR] ERROR - [SHUTDOWN] ❌ Cleanup-Fehler: 'BackgroundTaskScheduler' object has no attribute 'shutdown'
2025-06-18 12:38:24 - [app] app - [INFO] INFO - Optimierte SQLite-Engine erstellt: ./database/myp.db
2025-06-18 12:38:25 - [app] app - [INFO] INFO - [CONFIG] Erkannte Umgebung: development
2025-06-18 12:38:25 - [app] app - [INFO] INFO - [CONFIG] Production-Modus: False
2025-06-18 12:38:25 - [app] app - [INFO] INFO - [CONFIG] Verwende Development-Konfiguration
2025-06-18 12:38:25 - [app] app - [INFO] INFO - [DEVELOPMENT] Aktiviere Development-Konfiguration
2025-06-18 12:38:25 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ MYP Development Environment Konfiguration aktiviert
2025-06-18 12:38:25 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Environment: Development/Testing
2025-06-18 12:38:25 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Debug Mode: True
2025-06-18 12:38:25 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ SQL Echo: True
2025-06-18 12:38:25 - [app] app - [INFO] INFO - SQLite für Raspberry Pi optimiert (reduzierte Cache-Größe, SD-Karten I/O)
2025-06-18 12:38:25 - [app] app - [INFO] INFO - Admin-Berechtigungen beim Start korrigiert: 0 erstellt, 0 aktualisiert
2025-06-18 12:38:25 - [app] app - [INFO] INFO - [STARTUP] 🚀 Starte MYP DEVELOPMENT-Umgebung
2025-06-18 12:38:25 - [app] app - [INFO] INFO - [STARTUP] 🏢 Mercedes-Benz TBA Marienfelde
2025-06-18 12:38:25 - [app] app - [INFO] INFO - [STARTUP] 🔒 Air-Gapped: True
2025-06-18 12:38:25 - [app] app - [INFO] INFO - [STARTUP] Initialisiere Datenbank...
2025-06-18 12:38:25 - [app] app - [INFO] INFO - Datenbank mit Optimierungen initialisiert
2025-06-18 12:38:25 - [app] app - [INFO] INFO - [STARTUP] ✅ Datenbank initialisiert
2025-06-18 12:38:25 - [app] app - [INFO] INFO - [STARTUP] Prüfe Initial-Admin...
2025-06-18 12:38:26 - [app] app - [INFO] INFO - Admin-Benutzer admin (admin@mercedes-benz.com) existiert bereits. Passwort wurde zurückgesetzt.
2025-06-18 12:38:26 - [app] app - [INFO] INFO - [STARTUP] ✅ Admin-Benutzer geprüft
2025-06-18 12:38:26 - [app] app - [INFO] INFO - [STARTUP] Initialisiere statische Drucker...
2025-06-18 12:38:26 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 1 (192.168.0.100)
2025-06-18 12:38:26 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 2 (192.168.0.101)
2025-06-18 12:38:26 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 3 (192.168.0.102)
2025-06-18 12:38:26 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 4 (192.168.0.103)
2025-06-18 12:38:26 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 5 (192.168.0.104)
2025-06-18 12:38:26 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 6 (192.168.0.106)
2025-06-18 12:38:26 - [app] app - [INFO] INFO - ✅ Statische Drucker-Initialisierung abgeschlossen: 0 erstellt, 6 aktualisiert
2025-06-18 12:38:26 - [app] app - [INFO] INFO - 📍 Alle Drucker sind für Standort 'TBA Marienfelde' konfiguriert
2025-06-18 12:38:26 - [app] app - [INFO] INFO - 🌐 IP-Bereich: 192.168.0.100-106 (außer .105)
2025-06-18 12:38:26 - [app] app - [INFO] INFO - [STARTUP] ✅ Statische Drucker konfiguriert
2025-06-18 12:38:26 - [app] app - [INFO] INFO - [STARTUP] Starte Queue Manager...
2025-06-18 12:38:26 - [app] app - [INFO] INFO - [STARTUP] ✅ Queue Manager gestartet
2025-06-18 12:38:26 - [app] app - [INFO] INFO - [STARTUP] Starte Job Scheduler...
2025-06-18 12:38:26 - [app] app - [INFO] INFO - [STARTUP] ✅ Job Scheduler gestartet
2025-06-18 12:38:26 - [app] app - [INFO] INFO - [STARTUP] 🌐 Server startet auf http://0.0.0.0:5000
2025-06-18 12:39:09 - [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-18 12:39:09 - [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-18 12:39:09 - [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-18 12:39:09 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-18 12:39:09 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-18 12:39:09 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-18 12:39:12 - [app] app - [DEBUG] DEBUG - Request: GET /jobs
2025-06-18 12:39:12 - [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-18 12:39:12 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-18 12:39:12 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-18 12:39:12 - [app] app - [DEBUG] DEBUG - Request: GET /api/jobs
2025-06-18 12:39:12 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-18 12:39:12 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-18 12:39:12 - [app] app - [DEBUG] DEBUG - Request: GET /api/printers
2025-06-18 12:39:12 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen (include_inactive=False)
2025-06-18 12:39:12 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-18 12:39:43 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-18 12:39:43 - [app] app - [DEBUG] DEBUG - Request: GET /api/jobs
2025-06-18 12:39:43 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-18 12:39:43 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-18 12:40:13 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-18 12:40:13 - [app] app - [DEBUG] DEBUG - Request: GET /api/jobs
2025-06-18 12:40:13 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-18 12:40:13 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-18 12:40:24 - [app] app - [DEBUG] DEBUG - Request: GET /printers
2025-06-18 12:40:24 - [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-18 12:40:24 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-18 12:40:24 - [app] app - [DEBUG] DEBUG - Request: GET /api/printers
2025-06-18 12:40:24 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen (include_inactive=False)
2025-06-18 12:40:24 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-18 12:40:24 - [app] app - [DEBUG] DEBUG - Request: GET /api/printers
2025-06-18 12:40:24 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-18 12:40:24 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen (include_inactive=False)
2025-06-18 12:40:24 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-18 12:40:24 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-18 12:40:25 - [app] app - [DEBUG] DEBUG - Request: GET /stats
2025-06-18 12:40:25 - [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-18 12:40:25 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-18 12:40:25 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-18 12:40:25 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-18 12:40:26 - [app] app - [DEBUG] DEBUG - Request: GET /request
2025-06-18 12:40:26 - [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-18 12:40:26 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-18 12:40:26 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-18 12:40:26 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-18 12:40:29 - [app] app - [DEBUG] DEBUG - Request: GET /admin/
2025-06-18 12:40:29 - [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-18 12:40:29 - [app] app - [ERROR] ERROR - Unhandled Exception - ID: 20250618_124029
2025-06-18 12:40:29 - [app] app - [ERROR] ERROR - URL: http://127.0.0.1:5000/admin/
2025-06-18 12:40:29 - [app] app - [ERROR] ERROR - Method: GET
2025-06-18 12:40:29 - [app] app - [ERROR] ERROR - User: admin
2025-06-18 12:40:29 - [app] app - [ERROR] ERROR - Exception Type: BuildError
2025-06-18 12:40:29 - [app] app - [ERROR] ERROR - Exception: Could not build url for endpoint 'admin_users'. Did you mean 'admin.add_user_page' instead?
2025-06-18 12:40:29 - [app] app - [ERROR] ERROR - Traceback: Traceback (most recent call last):
File "C:\Users\TTOMCZA.EMEA\Dev\Projektarbeit-MYP\backend\blueprints\admin_unified.py", line 117, in admin_dashboard
return render_template('admin.html', stats=stats, active_tab=None)
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.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.html", line 71, in block 'content'
<a href="{{ url_for('admin_users') }}" class="inline-flex items-center px-6 py-3 bg-white/10 backdrop-blur-sm border border-white/20 rounded-xl text-white hover:bg-white/20 transition-all duration-300 hover:scale-105">
^^^^^
File "C:\Users\TTOMCZA.EMEA\AppData\Roaming\Python\Python313\site-packages\flask\app.py", line 1697, in url_for
return self.handle_url_build_error(error, endpoint, values)
~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\TTOMCZA.EMEA\AppData\Roaming\Python\Python313\site-packages\flask\app.py", line 1686, in url_for
rv = url_adapter.build( # type: ignore[union-attr]
endpoint,
...<3 lines>...
force_external=_external,
)
File "C:\Users\TTOMCZA.EMEA\AppData\Roaming\Python\Python313\site-packages\werkzeug\routing\map.py", line 924, in build
raise BuildError(endpoint, values, method, self)
werkzeug.routing.exceptions.BuildError: Could not build url for endpoint 'admin_users'. Did you mean 'admin.add_user_page' instead?
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 88, in decorated_function
return f(*args, **kwargs)
File "C:\Users\TTOMCZA.EMEA\Dev\Projektarbeit-MYP\backend\blueprints\admin_unified.py", line 122, in admin_dashboard
return render_template('admin.html', stats={}, active_tab=None)
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.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.html", line 71, in block 'content'
<a href="{{ url_for('admin_users') }}" class="inline-flex items-center px-6 py-3 bg-white/10 backdrop-blur-sm border border-white/20 rounded-xl text-white hover:bg-white/20 transition-all duration-300 hover:scale-105">
^^^^^
File "C:\Users\TTOMCZA.EMEA\AppData\Roaming\Python\Python313\site-packages\flask\app.py", line 1697, in url_for
return self.handle_url_build_error(error, endpoint, values)
~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\TTOMCZA.EMEA\AppData\Roaming\Python\Python313\site-packages\flask\app.py", line 1686, in url_for
rv = url_adapter.build( # type: ignore[union-attr]
endpoint,
...<3 lines>...
force_external=_external,
)
File "C:\Users\TTOMCZA.EMEA\AppData\Roaming\Python\Python313\site-packages\werkzeug\routing\map.py", line 924, in build
raise BuildError(endpoint, values, method, self)
werkzeug.routing.exceptions.BuildError: Could not build url for endpoint 'admin_users'. Did you mean 'admin.add_user_page' instead?
2025-06-18 12:40:29 - [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-18 12:40:29 - [app] app - [DEBUG] DEBUG - Response: 500
2025-06-18 12:40:29 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-18 12:40:29 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-18 12:40:30 - [app] app - [DEBUG] DEBUG - Request: GET /dashboard
2025-06-18 12:40:30 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-18 12:40:30 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-18 12:40:30 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-18 12:41:00 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-18 12:41:00 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-18 12:41:31 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-18 12:41:31 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-18 12:42:01 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-18 12:42:01 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-18 12:42:31 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-18 12:42:31 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-18 12:43:01 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-18 12:43:01 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-18 12:43:31 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-18 12:43:31 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-18 12:43:38 - [app] app - [INFO] INFO - Optimierte SQLite-Engine erstellt: ./database/myp.db
2025-06-18 12:43:41 - [app] app - [INFO] INFO - [CONFIG] Erkannte Umgebung: development
2025-06-18 12:43:41 - [app] app - [INFO] INFO - [CONFIG] Production-Modus: False
2025-06-18 12:43:41 - [app] app - [INFO] INFO - [CONFIG] Verwende Development-Konfiguration
2025-06-18 12:43:41 - [app] app - [INFO] INFO - [DEVELOPMENT] Aktiviere Development-Konfiguration
2025-06-18 12:43:41 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ MYP Development Environment Konfiguration aktiviert
2025-06-18 12:43:41 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Environment: Development/Testing
2025-06-18 12:43:41 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Debug Mode: True
2025-06-18 12:43:41 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ SQL Echo: True
2025-06-18 12:43:42 - [app] app - [INFO] INFO - SQLite für Raspberry Pi optimiert (reduzierte Cache-Größe, SD-Karten I/O)
2025-06-18 12:43:42 - [app] app - [INFO] INFO - Admin-Berechtigungen beim Start korrigiert: 0 erstellt, 0 aktualisiert
2025-06-18 12:43:42 - [app] app - [INFO] INFO - [STARTUP] 🚀 Starte MYP DEVELOPMENT-Umgebung
2025-06-18 12:43:42 - [app] app - [INFO] INFO - [STARTUP] 🏢 Mercedes-Benz TBA Marienfelde
2025-06-18 12:43:42 - [app] app - [INFO] INFO - [STARTUP] 🔒 Air-Gapped: True
2025-06-18 12:43:42 - [app] app - [INFO] INFO - [STARTUP] Initialisiere Datenbank...
2025-06-18 12:43:42 - [app] app - [INFO] INFO - Datenbank mit Optimierungen initialisiert
2025-06-18 12:43:42 - [app] app - [INFO] INFO - [STARTUP] ✅ Datenbank initialisiert
2025-06-18 12:43:42 - [app] app - [INFO] INFO - [STARTUP] Prüfe Initial-Admin...
2025-06-18 12:43:42 - [app] app - [INFO] INFO - Admin-Benutzer admin (admin@mercedes-benz.com) existiert bereits. Passwort wurde zurückgesetzt.
2025-06-18 12:43:42 - [app] app - [INFO] INFO - [STARTUP] ✅ Admin-Benutzer geprüft
2025-06-18 12:43:42 - [app] app - [INFO] INFO - [STARTUP] Initialisiere statische Drucker...
2025-06-18 12:43:42 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 1 (192.168.0.100)
2025-06-18 12:43:42 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 2 (192.168.0.101)
2025-06-18 12:43:42 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 3 (192.168.0.102)
2025-06-18 12:43:42 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 4 (192.168.0.103)
2025-06-18 12:43:42 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 5 (192.168.0.104)
2025-06-18 12:43:42 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 6 (192.168.0.106)
2025-06-18 12:43:42 - [app] app - [INFO] INFO - ✅ Statische Drucker-Initialisierung abgeschlossen: 0 erstellt, 6 aktualisiert
2025-06-18 12:43:42 - [app] app - [INFO] INFO - 📍 Alle Drucker sind für Standort 'TBA Marienfelde' konfiguriert
2025-06-18 12:43:42 - [app] app - [INFO] INFO - 🌐 IP-Bereich: 192.168.0.100-106 (außer .105)
2025-06-18 12:43:42 - [app] app - [INFO] INFO - [STARTUP] ✅ Statische Drucker konfiguriert
2025-06-18 12:43:42 - [app] app - [INFO] INFO - [STARTUP] Starte Queue Manager...
2025-06-18 12:43:42 - [app] app - [INFO] INFO - [STARTUP] ✅ Queue Manager gestartet
2025-06-18 12:43:42 - [app] app - [INFO] INFO - [STARTUP] Starte Job Scheduler...
2025-06-18 12:43:42 - [app] app - [INFO] INFO - [STARTUP] ✅ Job Scheduler gestartet
2025-06-18 12:43:42 - [app] app - [INFO] INFO - [STARTUP] 🌐 Server startet auf http://0.0.0.0:5000
2025-06-18 12:43:43 - [app] app - [INFO] INFO - Optimierte SQLite-Engine erstellt: ./database/myp.db
2025-06-18 12:43:44 - [app] app - [INFO] INFO - [CONFIG] Erkannte Umgebung: development
2025-06-18 12:43:44 - [app] app - [INFO] INFO - [CONFIG] Production-Modus: False
2025-06-18 12:43:44 - [app] app - [INFO] INFO - [CONFIG] Verwende Development-Konfiguration
2025-06-18 12:43:44 - [app] app - [INFO] INFO - [DEVELOPMENT] Aktiviere Development-Konfiguration
2025-06-18 12:43:44 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ MYP Development Environment Konfiguration aktiviert
2025-06-18 12:43:44 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Environment: Development/Testing
2025-06-18 12:43:44 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Debug Mode: True
2025-06-18 12:43:44 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ SQL Echo: True
2025-06-18 12:43:44 - [app] app - [INFO] INFO - SQLite für Raspberry Pi optimiert (reduzierte Cache-Größe, SD-Karten I/O)
2025-06-18 12:43:44 - [app] app - [INFO] INFO - Admin-Berechtigungen beim Start korrigiert: 0 erstellt, 0 aktualisiert
2025-06-18 12:43:44 - [app] app - [INFO] INFO - [STARTUP] 🚀 Starte MYP DEVELOPMENT-Umgebung
2025-06-18 12:43:44 - [app] app - [INFO] INFO - [STARTUP] 🏢 Mercedes-Benz TBA Marienfelde
2025-06-18 12:43:44 - [app] app - [INFO] INFO - [STARTUP] 🔒 Air-Gapped: True
2025-06-18 12:43:44 - [app] app - [INFO] INFO - [STARTUP] Initialisiere Datenbank...
2025-06-18 12:43:44 - [app] app - [INFO] INFO - Datenbank mit Optimierungen initialisiert
2025-06-18 12:43:44 - [app] app - [INFO] INFO - [STARTUP] ✅ Datenbank initialisiert
2025-06-18 12:43:44 - [app] app - [INFO] INFO - [STARTUP] Prüfe Initial-Admin...
2025-06-18 12:43:44 - [app] app - [INFO] INFO - Admin-Benutzer admin (admin@mercedes-benz.com) existiert bereits. Passwort wurde zurückgesetzt.
2025-06-18 12:43:44 - [app] app - [INFO] INFO - [STARTUP] ✅ Admin-Benutzer geprüft
2025-06-18 12:43:44 - [app] app - [INFO] INFO - [STARTUP] Initialisiere statische Drucker...
2025-06-18 12:43:44 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 1 (192.168.0.100)
2025-06-18 12:43:44 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 2 (192.168.0.101)
2025-06-18 12:43:44 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 3 (192.168.0.102)
2025-06-18 12:43:44 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 4 (192.168.0.103)
2025-06-18 12:43:44 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 5 (192.168.0.104)
2025-06-18 12:43:44 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 6 (192.168.0.106)
2025-06-18 12:43:44 - [app] app - [INFO] INFO - ✅ Statische Drucker-Initialisierung abgeschlossen: 0 erstellt, 6 aktualisiert
2025-06-18 12:43:44 - [app] app - [INFO] INFO - 📍 Alle Drucker sind für Standort 'TBA Marienfelde' konfiguriert
2025-06-18 12:43:44 - [app] app - [INFO] INFO - 🌐 IP-Bereich: 192.168.0.100-106 (außer .105)
2025-06-18 12:43:44 - [app] app - [INFO] INFO - [STARTUP] ✅ Statische Drucker konfiguriert
2025-06-18 12:43:44 - [app] app - [INFO] INFO - [STARTUP] Starte Queue Manager...
2025-06-18 12:43:44 - [app] app - [INFO] INFO - [STARTUP] ✅ Queue Manager gestartet
2025-06-18 12:43:44 - [app] app - [INFO] INFO - [STARTUP] Starte Job Scheduler...
2025-06-18 12:43:44 - [app] app - [INFO] INFO - [STARTUP] ✅ Job Scheduler gestartet
2025-06-18 12:43:44 - [app] app - [INFO] INFO - [STARTUP] 🌐 Server startet auf http://0.0.0.0:5000
2025-06-18 12:43:45 - [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-18 12:43:45 - [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-18 12:43:45 - [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-18 12:43:45 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-18 12:43:45 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-18 12:43:45 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-18 12:43:47 - [app] app - [DEBUG] DEBUG - Request: GET /dashboard
2025-06-18 12:43:47 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-18 12:43:47 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-18 12:43:47 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-18 12:45:27 - [app] app - [INFO] INFO - Optimierte SQLite-Engine erstellt: ./database/myp.db
2025-06-18 12:45:27 - [app] app - [INFO] INFO - SQLite für Raspberry Pi optimiert (reduzierte Cache-Größe, SD-Karten I/O)
2025-06-18 12:45:27 - [app] app - [INFO] INFO - Datenbank mit Optimierungen initialisiert
2025-06-18 12:45:47 - [app] app - [INFO] INFO - Optimierte SQLite-Engine erstellt: ./database/myp.db
2025-06-18 12:46:15 - [app] app - [INFO] INFO - Optimierte SQLite-Engine erstellt: ./database/myp.db