It appears that you've made several changes to your project's directory structure and files. Here's a summary of the actions:

This commit is contained in:
2025-06-19 09:50:15 +02:00
parent 44a80b7534
commit 52ff6b453e
122 changed files with 1337 additions and 826 deletions

View File

@ -43431,3 +43431,705 @@ werkzeug.routing.exceptions.BuildError: Could not build url for endpoint 'admin_
2025-06-18 12:51:46 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-18 12:51:46 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 09:21:52 - [app] app - [INFO] INFO - Optimierte SQLite-Engine erstellt: ./database/myp.db
2025-06-19 09:22:06 - [app] app - [INFO] INFO - [CONFIG] Erkannte Umgebung: development
2025-06-19 09:22:06 - [app] app - [INFO] INFO - [CONFIG] Production-Modus: False
2025-06-19 09:22:06 - [app] app - [INFO] INFO - [CONFIG] Verwende Development-Konfiguration
2025-06-19 09:22:06 - [app] app - [INFO] INFO - [DEVELOPMENT] Aktiviere Development-Konfiguration
2025-06-19 09:22:06 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ MYP Development Environment Konfiguration aktiviert
2025-06-19 09:22:06 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Environment: Development/Testing
2025-06-19 09:22:06 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Debug Mode: True
2025-06-19 09:22:06 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ SQL Echo: True
2025-06-19 09:22:07 - [app] app - [INFO] INFO - SQLite für Raspberry Pi optimiert (reduzierte Cache-Größe, SD-Karten I/O)
2025-06-19 09:22:07 - [app] app - [INFO] INFO - Admin-Berechtigungen beim Start korrigiert: 0 erstellt, 0 aktualisiert
2025-06-19 09:22:07 - [app] app - [INFO] INFO - [STARTUP] 🚀 Starte MYP DEVELOPMENT-Umgebung
2025-06-19 09:22:07 - [app] app - [INFO] INFO - [STARTUP] 🏢 Mercedes-Benz TBA Marienfelde
2025-06-19 09:22:07 - [app] app - [INFO] INFO - [STARTUP] 🔒 Air-Gapped: True
2025-06-19 09:22:07 - [app] app - [INFO] INFO - [STARTUP] Initialisiere Datenbank...
2025-06-19 09:22:07 - [app] app - [INFO] INFO - Datenbank mit Optimierungen initialisiert
2025-06-19 09:22:07 - [app] app - [INFO] INFO - [STARTUP] ✅ Datenbank initialisiert
2025-06-19 09:22:07 - [app] app - [INFO] INFO - [STARTUP] Prüfe Initial-Admin...
2025-06-19 09:22:07 - [app] app - [INFO] INFO - Admin-Benutzer admin (admin@mercedes-benz.com) existiert bereits. Passwort wurde zurückgesetzt.
2025-06-19 09:22:07 - [app] app - [INFO] INFO - [STARTUP] ✅ Admin-Benutzer geprüft
2025-06-19 09:22:07 - [app] app - [INFO] INFO - [STARTUP] Initialisiere statische Drucker...
2025-06-19 09:22:07 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 1 (192.168.0.100)
2025-06-19 09:22:07 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 2 (192.168.0.101)
2025-06-19 09:22:07 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 3 (192.168.0.102)
2025-06-19 09:22:07 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 4 (192.168.0.103)
2025-06-19 09:22:07 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 5 (192.168.0.104)
2025-06-19 09:22:07 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 6 (192.168.0.106)
2025-06-19 09:22:07 - [app] app - [INFO] INFO - ✅ Statische Drucker-Initialisierung abgeschlossen: 0 erstellt, 6 aktualisiert
2025-06-19 09:22:07 - [app] app - [INFO] INFO - 📍 Alle Drucker sind für Standort 'TBA Marienfelde' konfiguriert
2025-06-19 09:22:07 - [app] app - [INFO] INFO - 🌐 IP-Bereich: 192.168.0.100-106 (außer .105)
2025-06-19 09:22:07 - [app] app - [INFO] INFO - [STARTUP] ✅ Statische Drucker konfiguriert
2025-06-19 09:22:07 - [app] app - [INFO] INFO - [STARTUP] Starte Queue Manager...
2025-06-19 09:22:07 - [app] app - [INFO] INFO - [STARTUP] ✅ Queue Manager gestartet
2025-06-19 09:22:07 - [app] app - [INFO] INFO - [STARTUP] Starte Job Scheduler...
2025-06-19 09:22:07 - [app] app - [INFO] INFO - [STARTUP] ✅ Job Scheduler gestartet
2025-06-19 09:22:07 - [app] app - [INFO] INFO - [STARTUP] 🌐 Server startet auf http://0.0.0.0:5000
2025-06-19 09:22:16 - [app] app - [INFO] INFO - Optimierte SQLite-Engine erstellt: ./database/myp.db
2025-06-19 09:22:22 - [app] app - [INFO] INFO - [CONFIG] Erkannte Umgebung: development
2025-06-19 09:22:22 - [app] app - [INFO] INFO - [CONFIG] Production-Modus: False
2025-06-19 09:22:22 - [app] app - [INFO] INFO - [CONFIG] Verwende Development-Konfiguration
2025-06-19 09:22:22 - [app] app - [INFO] INFO - [DEVELOPMENT] Aktiviere Development-Konfiguration
2025-06-19 09:22:22 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ MYP Development Environment Konfiguration aktiviert
2025-06-19 09:22:22 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Environment: Development/Testing
2025-06-19 09:22:22 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Debug Mode: True
2025-06-19 09:22:22 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ SQL Echo: True
2025-06-19 09:22:23 - [app] app - [INFO] INFO - SQLite für Raspberry Pi optimiert (reduzierte Cache-Größe, SD-Karten I/O)
2025-06-19 09:22:23 - [app] app - [INFO] INFO - Admin-Berechtigungen beim Start korrigiert: 0 erstellt, 0 aktualisiert
2025-06-19 09:22:23 - [app] app - [INFO] INFO - [STARTUP] 🚀 Starte MYP DEVELOPMENT-Umgebung
2025-06-19 09:22:23 - [app] app - [INFO] INFO - [STARTUP] 🏢 Mercedes-Benz TBA Marienfelde
2025-06-19 09:22:23 - [app] app - [INFO] INFO - [STARTUP] 🔒 Air-Gapped: True
2025-06-19 09:22:23 - [app] app - [INFO] INFO - [STARTUP] Initialisiere Datenbank...
2025-06-19 09:22:23 - [app] app - [INFO] INFO - Datenbank mit Optimierungen initialisiert
2025-06-19 09:22:23 - [app] app - [INFO] INFO - [STARTUP] ✅ Datenbank initialisiert
2025-06-19 09:22:23 - [app] app - [INFO] INFO - [STARTUP] Prüfe Initial-Admin...
2025-06-19 09:22:23 - [app] app - [INFO] INFO - Admin-Benutzer admin (admin@mercedes-benz.com) existiert bereits. Passwort wurde zurückgesetzt.
2025-06-19 09:22:23 - [app] app - [INFO] INFO - [STARTUP] ✅ Admin-Benutzer geprüft
2025-06-19 09:22:23 - [app] app - [INFO] INFO - [STARTUP] Initialisiere statische Drucker...
2025-06-19 09:22:23 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 1 (192.168.0.100)
2025-06-19 09:22:23 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 2 (192.168.0.101)
2025-06-19 09:22:23 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 3 (192.168.0.102)
2025-06-19 09:22:23 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 4 (192.168.0.103)
2025-06-19 09:22:23 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 5 (192.168.0.104)
2025-06-19 09:22:23 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 6 (192.168.0.106)
2025-06-19 09:22:23 - [app] app - [INFO] INFO - ✅ Statische Drucker-Initialisierung abgeschlossen: 0 erstellt, 6 aktualisiert
2025-06-19 09:22:23 - [app] app - [INFO] INFO - 📍 Alle Drucker sind für Standort 'TBA Marienfelde' konfiguriert
2025-06-19 09:22:23 - [app] app - [INFO] INFO - 🌐 IP-Bereich: 192.168.0.100-106 (außer .105)
2025-06-19 09:22:23 - [app] app - [INFO] INFO - [STARTUP] ✅ Statische Drucker konfiguriert
2025-06-19 09:22:23 - [app] app - [INFO] INFO - [STARTUP] Starte Queue Manager...
2025-06-19 09:22:23 - [app] app - [INFO] INFO - [STARTUP] ✅ Queue Manager gestartet
2025-06-19 09:22:23 - [app] app - [INFO] INFO - [STARTUP] Starte Job Scheduler...
2025-06-19 09:22:23 - [app] app - [INFO] INFO - [STARTUP] ✅ Job Scheduler gestartet
2025-06-19 09:22:23 - [app] app - [INFO] INFO - [STARTUP] 🌐 Server startet auf http://0.0.0.0:5000
2025-06-19 09:22:24 - [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 09:22:24 - [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 09:22:24 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 09:22:36 - [app] app - [DEBUG] DEBUG - Request: POST /auth/login
2025-06-19 09:22:36 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 09:22:38 - [app] app - [DEBUG] DEBUG - Request: GET /
2025-06-19 09:22:38 - [app] app - [DEBUG] DEBUG - Response: 302
2025-06-19 09:22:38 - [app] app - [DEBUG] DEBUG - Request: GET /dashboard
2025-06-19 09:22:38 - [app] app - [INFO] INFO - Locating template 'dashboard.html':
1: trying loader of application '__main__'
class: jinja2.loaders.FileSystemLoader
encoding: 'utf-8'
followlinks: False
searchpath:
- C:\Users\TTOMCZA.EMEA\Dev\Projektarbeit-MYP\backend\templates
-> found ('C:\\Users\\TTOMCZA.EMEA\\Dev\\Projektarbeit-MYP\\backend\\templates\\dashboard.html')
2025-06-19 09:22:38 - [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 09:22:38 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 09:22:39 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-19 09:22:39 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 09:22:42 - [app] app - [DEBUG] DEBUG - Request: GET /printers
2025-06-19 09:22:42 - [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 09:22:42 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 09:22:42 - [app] app - [DEBUG] DEBUG - Request: GET /api/printers
2025-06-19 09:22:42 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen (include_inactive=False)
2025-06-19 09:22:42 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 09:22:42 - [app] app - [DEBUG] DEBUG - Request: GET /api/printers
2025-06-19 09:22:42 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-19 09:22:42 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 09:22:42 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen (include_inactive=False)
2025-06-19 09:22:42 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 09:22:45 - [app] app - [DEBUG] DEBUG - Request: GET /api/printers
2025-06-19 09:22:45 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen (include_inactive=False)
2025-06-19 09:22:45 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 09:22:50 - [app] app - [DEBUG] DEBUG - Request: POST /api/printers/1/connect
2025-06-19 09:22:50 - [app] app - [DEBUG] DEBUG - Response: 500
2025-06-19 09:22:53 - [app] app - [DEBUG] DEBUG - Request: GET /admin/
2025-06-19 09:22:53 - [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 09:22:53 - [app] app - [ERROR] ERROR - Unhandled Exception - ID: 20250619_092253
2025-06-19 09:22:53 - [app] app - [ERROR] ERROR - URL: http://127.0.0.1:5000/admin/
2025-06-19 09:22:53 - [app] app - [ERROR] ERROR - Method: GET
2025-06-19 09:22:53 - [app] app - [ERROR] ERROR - User: admin
2025-06-19 09:22:53 - [app] app - [ERROR] ERROR - Exception Type: BuildError
2025-06-19 09:22:53 - [app] app - [ERROR] ERROR - Exception: Could not build url for endpoint 'admin_users'. Did you mean 'admin.add_user_page' instead?
2025-06-19 09:22:53 - [app] app - [ERROR] ERROR - Traceback: Traceback (most recent call last):
File "C:\Users\TTOMCZA.EMEA\Dev\Projektarbeit-MYP\backend\blueprints\admin_unified.py", line 122, 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 93, in decorated_function
return f(*args, **kwargs)
File "C:\Users\TTOMCZA.EMEA\Dev\Projektarbeit-MYP\backend\blueprints\admin_unified.py", line 127, 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-19 09:22:53 - [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 09:22:53 - [app] app - [DEBUG] DEBUG - Response: 500
2025-06-19 09:22:54 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-19 09:22:54 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 09:22:54 - [app] app - [INFO] INFO - [SHUTDOWN] 🧹 Cleanup wird ausgeführt...
2025-06-19 09:22:54 - [app] app - [INFO] INFO - [SHUTDOWN] ✅ Queue Manager gestoppt
2025-06-19 09:22:54 - [app] app - [ERROR] ERROR - [SHUTDOWN] ❌ Cleanup-Fehler: 'BackgroundTaskScheduler' object has no attribute 'shutdown'
2025-06-19 09:22:56 - [app] app - [INFO] INFO - Optimierte SQLite-Engine erstellt: ./database/myp.db
2025-06-19 09:22:58 - [app] app - [INFO] INFO - [CONFIG] Erkannte Umgebung: development
2025-06-19 09:22:58 - [app] app - [INFO] INFO - [CONFIG] Production-Modus: False
2025-06-19 09:22:58 - [app] app - [INFO] INFO - [CONFIG] Verwende Development-Konfiguration
2025-06-19 09:22:58 - [app] app - [INFO] INFO - [DEVELOPMENT] Aktiviere Development-Konfiguration
2025-06-19 09:22:58 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ MYP Development Environment Konfiguration aktiviert
2025-06-19 09:22:58 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Environment: Development/Testing
2025-06-19 09:22:58 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Debug Mode: True
2025-06-19 09:22:58 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ SQL Echo: True
2025-06-19 09:22:58 - [app] app - [INFO] INFO - SQLite für Raspberry Pi optimiert (reduzierte Cache-Größe, SD-Karten I/O)
2025-06-19 09:22:58 - [app] app - [INFO] INFO - Admin-Berechtigungen beim Start korrigiert: 0 erstellt, 0 aktualisiert
2025-06-19 09:22:58 - [app] app - [INFO] INFO - [STARTUP] 🚀 Starte MYP DEVELOPMENT-Umgebung
2025-06-19 09:22:58 - [app] app - [INFO] INFO - [STARTUP] 🏢 Mercedes-Benz TBA Marienfelde
2025-06-19 09:22:58 - [app] app - [INFO] INFO - [STARTUP] 🔒 Air-Gapped: True
2025-06-19 09:22:58 - [app] app - [INFO] INFO - [STARTUP] Initialisiere Datenbank...
2025-06-19 09:22:58 - [app] app - [INFO] INFO - Datenbank mit Optimierungen initialisiert
2025-06-19 09:22:58 - [app] app - [INFO] INFO - [STARTUP] ✅ Datenbank initialisiert
2025-06-19 09:22:58 - [app] app - [INFO] INFO - [STARTUP] Prüfe Initial-Admin...
2025-06-19 09:22:58 - [app] app - [INFO] INFO - Admin-Benutzer admin (admin@mercedes-benz.com) existiert bereits. Passwort wurde zurückgesetzt.
2025-06-19 09:22:58 - [app] app - [INFO] INFO - [STARTUP] ✅ Admin-Benutzer geprüft
2025-06-19 09:22:58 - [app] app - [INFO] INFO - [STARTUP] Initialisiere statische Drucker...
2025-06-19 09:22:58 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 1 (192.168.0.100)
2025-06-19 09:22:58 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 2 (192.168.0.101)
2025-06-19 09:22:58 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 3 (192.168.0.102)
2025-06-19 09:22:58 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 4 (192.168.0.103)
2025-06-19 09:22:58 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 5 (192.168.0.104)
2025-06-19 09:22:58 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 6 (192.168.0.106)
2025-06-19 09:22:58 - [app] app - [INFO] INFO - ✅ Statische Drucker-Initialisierung abgeschlossen: 0 erstellt, 6 aktualisiert
2025-06-19 09:22:58 - [app] app - [INFO] INFO - 📍 Alle Drucker sind für Standort 'TBA Marienfelde' konfiguriert
2025-06-19 09:22:58 - [app] app - [INFO] INFO - 🌐 IP-Bereich: 192.168.0.100-106 (außer .105)
2025-06-19 09:22:58 - [app] app - [INFO] INFO - [STARTUP] ✅ Statische Drucker konfiguriert
2025-06-19 09:22:58 - [app] app - [INFO] INFO - [STARTUP] Starte Queue Manager...
2025-06-19 09:22:58 - [app] app - [INFO] INFO - [STARTUP] ✅ Queue Manager gestartet
2025-06-19 09:22:58 - [app] app - [INFO] INFO - [STARTUP] Starte Job Scheduler...
2025-06-19 09:22:58 - [app] app - [INFO] INFO - [STARTUP] ✅ Job Scheduler gestartet
2025-06-19 09:22:58 - [app] app - [INFO] INFO - [STARTUP] 🌐 Server startet auf http://0.0.0.0:5000
2025-06-19 09:22:59 - [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 09:22:59 - [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 09:22:59 - [app] app - [ERROR] ERROR - Unhandled Exception - ID: 20250619_092259
2025-06-19 09:22:59 - [app] app - [ERROR] ERROR - URL: http://127.0.0.1:5000/admin/
2025-06-19 09:22:59 - [app] app - [ERROR] ERROR - Method: GET
2025-06-19 09:22:59 - [app] app - [ERROR] ERROR - User: admin
2025-06-19 09:22:59 - [app] app - [ERROR] ERROR - Exception Type: BuildError
2025-06-19 09:22:59 - [app] app - [ERROR] ERROR - Exception: Could not build url for endpoint 'admin_users'. Did you mean 'admin.add_user_page' instead?
2025-06-19 09:22:59 - [app] app - [ERROR] ERROR - Traceback: Traceback (most recent call last):
File "C:\Users\TTOMCZA.EMEA\Dev\Projektarbeit-MYP\backend\blueprints\admin_unified.py", line 122, 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 93, in decorated_function
return f(*args, **kwargs)
File "C:\Users\TTOMCZA.EMEA\Dev\Projektarbeit-MYP\backend\blueprints\admin_unified.py", line 127, 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-19 09:22:59 - [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 09:22:59 - [app] app - [DEBUG] DEBUG - Response: 500
2025-06-19 09:22:59 - [app] app - [ERROR] ERROR - Fehler beim Laden des Benutzers 1: tuple index out of range
2025-06-19 09:22:59 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-19 09:22:59 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 09:23:04 - [app] app - [DEBUG] DEBUG - Request: GET /tapo/
2025-06-19 09:23:08 - [app] app - [INFO] INFO - Locating template 'tapo_control.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\\tapo_control.html')
2025-06-19 09:23:08 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 09:23:08 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-19 09:23:08 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 09:23:13 - [app] app - [ERROR] ERROR - CSRF-Fehler für /tapo/control-form: The CSRF token is missing.
2025-06-19 09:23:13 - [app] app - [ERROR] ERROR - Request Headers: {'Host': '127.0.0.1:5000', 'Connection': 'keep-alive', 'Content-Length': '26', '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.8', 'Sec-Fetch-Site': 'same-origin', 'Sec-Fetch-Mode': 'navigate', 'Sec-Fetch-User': '?1', 'Sec-Fetch-Dest': 'document', 'Referer': 'http://127.0.0.1:5000/tapo/', 'Accept-Encoding': 'gzip, deflate, br, zstd', 'Cookie': 'session=.eJwljjtqBTEMAO_iOoUsWZb9LrPoS0Iggd33qpC7ZyHlTDHMTzvqzOu9PZ7nK9_a8RHt0dgylyl18b6KoMdAL9i9ylbBVIzKCThgLuYhnYYNBRZ2iBUqPGzqQACjzICtLGGiRawbbYqB1y5hlJ19agTNCq2RbFTm7R55XXn-3_Qb_TrreH5_5tctZs-BgoO5lmfS1I7m6CSwwYmg8C7nbr9_OUQ_vQ.aFO63A.20mmneS-czOYT6FvN6lQZ2SmKog'}
2025-06-19 09:23:13 - [app] app - [ERROR] ERROR - Request Form: {'ip': '192.168.0.100', 'action': 'on'}
2025-06-19 09:23:13 - [app] app - [DEBUG] DEBUG - Response: 302
2025-06-19 09:23:13 - [app] app - [DEBUG] DEBUG - Request: GET /tapo/control-form
2025-06-19 09:23:13 - [app] app - [WARNING] WARNING - Method Not Allowed (405): GET http://127.0.0.1:5000/tapo/control-form
2025-06-19 09:23:13 - [app] app - [INFO] INFO - Locating template 'errors/405.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\\405.html')
2025-06-19 09:23:13 - [app] app - [DEBUG] DEBUG - Response: 405
2025-06-19 09:23:13 - [app] app - [DEBUG] DEBUG - Request: GET /favicon.ico
2025-06-19 09:23:13 - [app] app - [INFO] INFO - Not Found (404): http://127.0.0.1:5000/favicon.ico
2025-06-19 09:23:13 - [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 09:23:13 - [app] app - [DEBUG] DEBUG - Response: 404
2025-06-19 09:23:16 - [app] app - [ERROR] ERROR - CSRF-Fehler für /tapo/control-form: The CSRF token is missing.
2025-06-19 09:23:16 - [app] app - [ERROR] ERROR - Request Headers: {'Host': '127.0.0.1:5000', 'Connection': 'keep-alive', 'Content-Length': '27', '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.8', 'Sec-Fetch-Site': 'same-origin', 'Sec-Fetch-Mode': 'navigate', 'Sec-Fetch-User': '?1', 'Sec-Fetch-Dest': 'document', 'Referer': 'http://127.0.0.1:5000/tapo/', 'Accept-Encoding': 'gzip, deflate, br, zstd', 'Cookie': 'session=.eJwljjtqBTEMAO_iOoUsWZb9LrPoS0Iggd33qpC7ZyHlTDHMTzvqzOu9PZ7nK9_a8RHt0dgylyl18b6KoMdAL9i9ylbBVIzKCThgLuYhnYYNBRZ2iBUqPGzqQACjzICtLGGiRawbbYqB1y5hlJ19agTNCq2RbFTm7R55XXn-3_Qb_TrreH5_5tctZs-BgoO5lmfS1I7m6CSwwYmg8C7nbr9_OUQ_vQ.aFO64w._xt6gdUHZBC19nW59LeMDmT9ko8'}
2025-06-19 09:23:16 - [app] app - [ERROR] ERROR - Request Form: {'ip': '192.168.0.100', 'action': 'off'}
2025-06-19 09:23:16 - [app] app - [DEBUG] DEBUG - Response: 302
2025-06-19 09:23:16 - [app] app - [DEBUG] DEBUG - Request: GET /tapo/control-form
2025-06-19 09:23:16 - [app] app - [WARNING] WARNING - Method Not Allowed (405): GET http://127.0.0.1:5000/tapo/control-form
2025-06-19 09:23:16 - [app] app - [DEBUG] DEBUG - Response: 405
2025-06-19 09:23:18 - [app] app - [ERROR] ERROR - CSRF-Fehler für /tapo/test-connection-form: The CSRF token is missing.
2025-06-19 09:23:18 - [app] app - [ERROR] ERROR - Request Headers: {'Host': '127.0.0.1:5000', 'Connection': 'keep-alive', 'Content-Length': '16', '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.8', 'Sec-Fetch-Site': 'same-origin', 'Sec-Fetch-Mode': 'navigate', 'Sec-Fetch-User': '?1', 'Sec-Fetch-Dest': 'document', 'Referer': 'http://127.0.0.1:5000/tapo/', 'Accept-Encoding': 'gzip, deflate, br, zstd', 'Cookie': 'session=.eJwljjtqBTEMAO_iOoUsWZb9LrPoS0Iggd33qpC7ZyHlTDHMTzvqzOu9PZ7nK9_a8RHt0dgylyl18b6KoMdAL9i9ylbBVIzKCThgLuYhnYYNBRZ2iBUqPGzqQACjzICtLGGiRawbbYqB1y5hlJ19agTNCq2RbFTm7R55XXn-3_Qb_TrreH5_5tctZs-BgoO5lmfS1I7m6CSwwYmg8C7nbr9_OUQ_vQ.aFO65Q.GJ3-tWym7vsIWlRQD9SDWrkgNno'}
2025-06-19 09:23:18 - [app] app - [ERROR] ERROR - Request Form: {'ip': '192.168.0.100'}
2025-06-19 09:23:18 - [app] app - [DEBUG] DEBUG - Response: 302
2025-06-19 09:23:18 - [app] app - [DEBUG] DEBUG - Request: GET /tapo/test-connection-form
2025-06-19 09:23:18 - [app] app - [WARNING] WARNING - Method Not Allowed (405): GET http://127.0.0.1:5000/tapo/test-connection-form
2025-06-19 09:23:18 - [app] app - [DEBUG] DEBUG - Response: 405
2025-06-19 09:23:25 - [app] app - [DEBUG] DEBUG - Request: GET /printers
2025-06-19 09:23:25 - [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 09:23:25 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 09:23:26 - [app] app - [DEBUG] DEBUG - Request: GET /api/printers
2025-06-19 09:23:26 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen (include_inactive=False)
2025-06-19 09:23:26 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 09:23:26 - [app] app - [DEBUG] DEBUG - Request: GET /api/printers
2025-06-19 09:23:26 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-19 09:23:26 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen (include_inactive=False)
2025-06-19 09:23:26 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 09:23:26 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 09:23:56 - [app] app - [DEBUG] DEBUG - Request: GET /api/printers
2025-06-19 09:23:56 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen (include_inactive=False)
2025-06-19 09:23:56 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 09:23:56 - [app] app - [DEBUG] DEBUG - Request: GET /api/printers
2025-06-19 09:23:56 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-19 09:23:56 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen (include_inactive=False)
2025-06-19 09:23:56 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 09:23:56 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 09:24:43 - [app] app - [DEBUG] DEBUG - Request: GET /api/printers
2025-06-19 09:24:43 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-19 09:24:43 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen (include_inactive=False)
2025-06-19 09:24:43 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 09:24:43 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 09:24:43 - [app] app - [DEBUG] DEBUG - Request: GET /api/printers
2025-06-19 09:24:43 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen (include_inactive=False)
2025-06-19 09:24:43 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 09:24:56 - [app] app - [DEBUG] DEBUG - Request: GET /api/printers
2025-06-19 09:24:56 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-19 09:24:56 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 09:24:56 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen (include_inactive=False)
2025-06-19 09:24:56 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 09:24:56 - [app] app - [DEBUG] DEBUG - Request: GET /api/printers
2025-06-19 09:24:56 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen (include_inactive=False)
2025-06-19 09:24:56 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 09:25:26 - [app] app - [DEBUG] DEBUG - Request: GET /api/printers
2025-06-19 09:25:26 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-19 09:25:26 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 09:25:26 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen (include_inactive=False)
2025-06-19 09:25:26 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 09:25:26 - [app] app - [DEBUG] DEBUG - Request: GET /api/printers
2025-06-19 09:25:26 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen (include_inactive=False)
2025-06-19 09:25:26 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 09:25:56 - [app] app - [INFO] INFO - [SHUTDOWN] 🧹 Cleanup wird ausgeführt...
2025-06-19 09:25:56 - [app] app - [INFO] INFO - [SHUTDOWN] ✅ Queue Manager gestoppt
2025-06-19 09:25:56 - [app] app - [ERROR] ERROR - [SHUTDOWN] ❌ Cleanup-Fehler: 'BackgroundTaskScheduler' object has no attribute 'shutdown'
2025-06-19 09:25:58 - [app] app - [INFO] INFO - Optimierte SQLite-Engine erstellt: ./database/myp.db
2025-06-19 09:25:59 - [app] app - [INFO] INFO - [CONFIG] Erkannte Umgebung: development
2025-06-19 09:25:59 - [app] app - [INFO] INFO - [CONFIG] Production-Modus: False
2025-06-19 09:25:59 - [app] app - [INFO] INFO - [CONFIG] Verwende Development-Konfiguration
2025-06-19 09:25:59 - [app] app - [INFO] INFO - [DEVELOPMENT] Aktiviere Development-Konfiguration
2025-06-19 09:25:59 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ MYP Development Environment Konfiguration aktiviert
2025-06-19 09:25:59 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Environment: Development/Testing
2025-06-19 09:25:59 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Debug Mode: True
2025-06-19 09:25:59 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ SQL Echo: True
2025-06-19 09:25:59 - [app] app - [INFO] INFO - SQLite für Raspberry Pi optimiert (reduzierte Cache-Größe, SD-Karten I/O)
2025-06-19 09:25:59 - [app] app - [INFO] INFO - Admin-Berechtigungen beim Start korrigiert: 0 erstellt, 0 aktualisiert
2025-06-19 09:25:59 - [app] app - [INFO] INFO - [STARTUP] 🚀 Starte MYP DEVELOPMENT-Umgebung
2025-06-19 09:25:59 - [app] app - [INFO] INFO - [STARTUP] 🏢 Mercedes-Benz TBA Marienfelde
2025-06-19 09:25:59 - [app] app - [INFO] INFO - [STARTUP] 🔒 Air-Gapped: True
2025-06-19 09:25:59 - [app] app - [INFO] INFO - [STARTUP] Initialisiere Datenbank...
2025-06-19 09:25:59 - [app] app - [INFO] INFO - Datenbank mit Optimierungen initialisiert
2025-06-19 09:25:59 - [app] app - [INFO] INFO - [STARTUP] ✅ Datenbank initialisiert
2025-06-19 09:25:59 - [app] app - [INFO] INFO - [STARTUP] Prüfe Initial-Admin...
2025-06-19 09:26:00 - [app] app - [INFO] INFO - Admin-Benutzer admin (admin@mercedes-benz.com) existiert bereits. Passwort wurde zurückgesetzt.
2025-06-19 09:26:00 - [app] app - [INFO] INFO - [STARTUP] ✅ Admin-Benutzer geprüft
2025-06-19 09:26:00 - [app] app - [INFO] INFO - [STARTUP] Initialisiere statische Drucker...
2025-06-19 09:26:00 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 1 (192.168.0.100)
2025-06-19 09:26:00 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 2 (192.168.0.101)
2025-06-19 09:26:00 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 3 (192.168.0.102)
2025-06-19 09:26:00 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 4 (192.168.0.103)
2025-06-19 09:26:00 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 5 (192.168.0.104)
2025-06-19 09:26:00 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 6 (192.168.0.106)
2025-06-19 09:26:00 - [app] app - [INFO] INFO - ✅ Statische Drucker-Initialisierung abgeschlossen: 0 erstellt, 6 aktualisiert
2025-06-19 09:26:00 - [app] app - [INFO] INFO - 📍 Alle Drucker sind für Standort 'TBA Marienfelde' konfiguriert
2025-06-19 09:26:00 - [app] app - [INFO] INFO - 🌐 IP-Bereich: 192.168.0.100-106 (außer .105)
2025-06-19 09:26:00 - [app] app - [INFO] INFO - [STARTUP] ✅ Statische Drucker konfiguriert
2025-06-19 09:26:00 - [app] app - [INFO] INFO - [STARTUP] Starte Queue Manager...
2025-06-19 09:26:00 - [app] app - [INFO] INFO - [STARTUP] ✅ Queue Manager gestartet
2025-06-19 09:26:00 - [app] app - [INFO] INFO - [STARTUP] Starte Job Scheduler...
2025-06-19 09:26:00 - [app] app - [INFO] INFO - [STARTUP] ✅ Job Scheduler gestartet
2025-06-19 09:26:00 - [app] app - [INFO] INFO - [STARTUP] 🌐 Server startet auf http://0.0.0.0:5000
2025-06-19 09:26:00 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen (include_inactive=False)
2025-06-19 09:26:00 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen (include_inactive=False)
2025-06-19 09:26:13 - [app] app - [INFO] INFO - [SHUTDOWN] 🧹 Cleanup wird ausgeführt...
2025-06-19 09:26:13 - [app] app - [INFO] INFO - [SHUTDOWN] ✅ Queue Manager gestoppt
2025-06-19 09:26:13 - [app] app - [ERROR] ERROR - [SHUTDOWN] ❌ Cleanup-Fehler: 'BackgroundTaskScheduler' object has no attribute 'shutdown'
2025-06-19 09:26:14 - [app] app - [INFO] INFO - Optimierte SQLite-Engine erstellt: ./database/myp.db
2025-06-19 09:26:16 - [app] app - [INFO] INFO - [CONFIG] Erkannte Umgebung: development
2025-06-19 09:26:16 - [app] app - [INFO] INFO - [CONFIG] Production-Modus: False
2025-06-19 09:26:16 - [app] app - [INFO] INFO - [CONFIG] Verwende Development-Konfiguration
2025-06-19 09:26:16 - [app] app - [INFO] INFO - [DEVELOPMENT] Aktiviere Development-Konfiguration
2025-06-19 09:26:16 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ MYP Development Environment Konfiguration aktiviert
2025-06-19 09:26:16 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Environment: Development/Testing
2025-06-19 09:26:16 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Debug Mode: True
2025-06-19 09:26:16 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ SQL Echo: True
2025-06-19 09:26:16 - [app] app - [INFO] INFO - SQLite für Raspberry Pi optimiert (reduzierte Cache-Größe, SD-Karten I/O)
2025-06-19 09:26:16 - [app] app - [INFO] INFO - Admin-Berechtigungen beim Start korrigiert: 0 erstellt, 0 aktualisiert
2025-06-19 09:26:16 - [app] app - [INFO] INFO - [STARTUP] 🚀 Starte MYP DEVELOPMENT-Umgebung
2025-06-19 09:26:16 - [app] app - [INFO] INFO - [STARTUP] 🏢 Mercedes-Benz TBA Marienfelde
2025-06-19 09:26:16 - [app] app - [INFO] INFO - [STARTUP] 🔒 Air-Gapped: True
2025-06-19 09:26:16 - [app] app - [INFO] INFO - [STARTUP] Initialisiere Datenbank...
2025-06-19 09:26:16 - [app] app - [INFO] INFO - Datenbank mit Optimierungen initialisiert
2025-06-19 09:26:16 - [app] app - [INFO] INFO - [STARTUP] ✅ Datenbank initialisiert
2025-06-19 09:26:16 - [app] app - [INFO] INFO - [STARTUP] Prüfe Initial-Admin...
2025-06-19 09:26:16 - [app] app - [INFO] INFO - Admin-Benutzer admin (admin@mercedes-benz.com) existiert bereits. Passwort wurde zurückgesetzt.
2025-06-19 09:26:16 - [app] app - [INFO] INFO - [STARTUP] ✅ Admin-Benutzer geprüft
2025-06-19 09:26:16 - [app] app - [INFO] INFO - [STARTUP] Initialisiere statische Drucker...
2025-06-19 09:26:16 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 1 (192.168.0.100)
2025-06-19 09:26:16 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 2 (192.168.0.101)
2025-06-19 09:26:16 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 3 (192.168.0.102)
2025-06-19 09:26:16 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 4 (192.168.0.103)
2025-06-19 09:26:16 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 5 (192.168.0.104)
2025-06-19 09:26:16 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 6 (192.168.0.106)
2025-06-19 09:26:16 - [app] app - [INFO] INFO - ✅ Statische Drucker-Initialisierung abgeschlossen: 0 erstellt, 6 aktualisiert
2025-06-19 09:26:16 - [app] app - [INFO] INFO - 📍 Alle Drucker sind für Standort 'TBA Marienfelde' konfiguriert
2025-06-19 09:26:16 - [app] app - [INFO] INFO - 🌐 IP-Bereich: 192.168.0.100-106 (außer .105)
2025-06-19 09:26:16 - [app] app - [INFO] INFO - [STARTUP] ✅ Statische Drucker konfiguriert
2025-06-19 09:26:16 - [app] app - [INFO] INFO - [STARTUP] Starte Queue Manager...
2025-06-19 09:26:16 - [app] app - [INFO] INFO - [STARTUP] ✅ Queue Manager gestartet
2025-06-19 09:26:16 - [app] app - [INFO] INFO - [STARTUP] Starte Job Scheduler...
2025-06-19 09:26:16 - [app] app - [INFO] INFO - [STARTUP] ✅ Job Scheduler gestartet
2025-06-19 09:26:16 - [app] app - [INFO] INFO - [STARTUP] 🌐 Server startet auf http://0.0.0.0:5000
2025-06-19 09:26:18 - [app] app - [INFO] INFO - [SHUTDOWN] 🧹 Cleanup wird ausgeführt...
2025-06-19 09:26:18 - [app] app - [INFO] INFO - [SHUTDOWN] ✅ Queue Manager gestoppt
2025-06-19 09:26:18 - [app] app - [ERROR] ERROR - [SHUTDOWN] ❌ Cleanup-Fehler: 'BackgroundTaskScheduler' object has no attribute 'shutdown'
2025-06-19 09:26:20 - [app] app - [INFO] INFO - Optimierte SQLite-Engine erstellt: ./database/myp.db
2025-06-19 09:26:22 - [app] app - [INFO] INFO - [CONFIG] Erkannte Umgebung: development
2025-06-19 09:26:22 - [app] app - [INFO] INFO - [CONFIG] Production-Modus: False
2025-06-19 09:26:22 - [app] app - [INFO] INFO - [CONFIG] Verwende Development-Konfiguration
2025-06-19 09:26:22 - [app] app - [INFO] INFO - [DEVELOPMENT] Aktiviere Development-Konfiguration
2025-06-19 09:26:22 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ MYP Development Environment Konfiguration aktiviert
2025-06-19 09:26:22 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Environment: Development/Testing
2025-06-19 09:26:22 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Debug Mode: True
2025-06-19 09:26:22 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ SQL Echo: True
2025-06-19 09:26:22 - [app] app - [INFO] INFO - SQLite für Raspberry Pi optimiert (reduzierte Cache-Größe, SD-Karten I/O)
2025-06-19 09:26:22 - [app] app - [INFO] INFO - Admin-Berechtigungen beim Start korrigiert: 0 erstellt, 0 aktualisiert
2025-06-19 09:26:22 - [app] app - [INFO] INFO - [STARTUP] 🚀 Starte MYP DEVELOPMENT-Umgebung
2025-06-19 09:26:22 - [app] app - [INFO] INFO - [STARTUP] 🏢 Mercedes-Benz TBA Marienfelde
2025-06-19 09:26:22 - [app] app - [INFO] INFO - [STARTUP] 🔒 Air-Gapped: True
2025-06-19 09:26:22 - [app] app - [INFO] INFO - [STARTUP] Initialisiere Datenbank...
2025-06-19 09:26:22 - [app] app - [INFO] INFO - Datenbank mit Optimierungen initialisiert
2025-06-19 09:26:22 - [app] app - [INFO] INFO - [STARTUP] ✅ Datenbank initialisiert
2025-06-19 09:26:22 - [app] app - [INFO] INFO - [STARTUP] Prüfe Initial-Admin...
2025-06-19 09:26:22 - [app] app - [INFO] INFO - Admin-Benutzer admin (admin@mercedes-benz.com) existiert bereits. Passwort wurde zurückgesetzt.
2025-06-19 09:26:22 - [app] app - [INFO] INFO - [STARTUP] ✅ Admin-Benutzer geprüft
2025-06-19 09:26:22 - [app] app - [INFO] INFO - [STARTUP] Initialisiere statische Drucker...
2025-06-19 09:26:22 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 1 (192.168.0.100)
2025-06-19 09:26:22 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 2 (192.168.0.101)
2025-06-19 09:26:22 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 3 (192.168.0.102)
2025-06-19 09:26:22 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 4 (192.168.0.103)
2025-06-19 09:26:22 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 5 (192.168.0.104)
2025-06-19 09:26:22 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 6 (192.168.0.106)
2025-06-19 09:26:22 - [app] app - [INFO] INFO - ✅ Statische Drucker-Initialisierung abgeschlossen: 0 erstellt, 6 aktualisiert
2025-06-19 09:26:22 - [app] app - [INFO] INFO - 📍 Alle Drucker sind für Standort 'TBA Marienfelde' konfiguriert
2025-06-19 09:26:22 - [app] app - [INFO] INFO - 🌐 IP-Bereich: 192.168.0.100-106 (außer .105)
2025-06-19 09:26:22 - [app] app - [INFO] INFO - [STARTUP] ✅ Statische Drucker konfiguriert
2025-06-19 09:26:22 - [app] app - [INFO] INFO - [STARTUP] Starte Queue Manager...
2025-06-19 09:26:22 - [app] app - [INFO] INFO - [STARTUP] ✅ Queue Manager gestartet
2025-06-19 09:26:22 - [app] app - [INFO] INFO - [STARTUP] Starte Job Scheduler...
2025-06-19 09:26:22 - [app] app - [INFO] INFO - [STARTUP] ✅ Job Scheduler gestartet
2025-06-19 09:26:22 - [app] app - [INFO] INFO - [STARTUP] 🌐 Server startet auf http://0.0.0.0:5000
2025-06-19 09:26:26 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen (include_inactive=False)
2025-06-19 09:26:26 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen (include_inactive=False)
2025-06-19 09:26:51 - [app] app - [INFO] INFO - [SHUTDOWN] 🧹 Cleanup wird ausgeführt...
2025-06-19 09:26:51 - [app] app - [INFO] INFO - [SHUTDOWN] ✅ Queue Manager gestoppt
2025-06-19 09:26:51 - [app] app - [ERROR] ERROR - [SHUTDOWN] ❌ Cleanup-Fehler: 'BackgroundTaskScheduler' object has no attribute 'shutdown'
2025-06-19 09:26:53 - [app] app - [INFO] INFO - Optimierte SQLite-Engine erstellt: ./database/myp.db
2025-06-19 09:26:58 - [app] app - [INFO] INFO - [CONFIG] Erkannte Umgebung: development
2025-06-19 09:26:58 - [app] app - [INFO] INFO - [CONFIG] Production-Modus: False
2025-06-19 09:26:58 - [app] app - [INFO] INFO - [CONFIG] Verwende Development-Konfiguration
2025-06-19 09:26:58 - [app] app - [INFO] INFO - [DEVELOPMENT] Aktiviere Development-Konfiguration
2025-06-19 09:26:58 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ MYP Development Environment Konfiguration aktiviert
2025-06-19 09:26:58 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Environment: Development/Testing
2025-06-19 09:26:58 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Debug Mode: True
2025-06-19 09:26:58 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ SQL Echo: True
2025-06-19 09:26:58 - [app] app - [INFO] INFO - SQLite für Raspberry Pi optimiert (reduzierte Cache-Größe, SD-Karten I/O)
2025-06-19 09:26:58 - [app] app - [INFO] INFO - Admin-Berechtigungen beim Start korrigiert: 0 erstellt, 0 aktualisiert
2025-06-19 09:26:58 - [app] app - [INFO] INFO - [STARTUP] 🚀 Starte MYP DEVELOPMENT-Umgebung
2025-06-19 09:26:58 - [app] app - [INFO] INFO - [STARTUP] 🏢 Mercedes-Benz TBA Marienfelde
2025-06-19 09:26:58 - [app] app - [INFO] INFO - [STARTUP] 🔒 Air-Gapped: True
2025-06-19 09:26:58 - [app] app - [INFO] INFO - [STARTUP] Initialisiere Datenbank...
2025-06-19 09:26:58 - [app] app - [INFO] INFO - Datenbank mit Optimierungen initialisiert
2025-06-19 09:26:58 - [app] app - [INFO] INFO - [STARTUP] ✅ Datenbank initialisiert
2025-06-19 09:26:58 - [app] app - [INFO] INFO - [STARTUP] Prüfe Initial-Admin...
2025-06-19 09:26:58 - [app] app - [INFO] INFO - Admin-Benutzer admin (admin@mercedes-benz.com) existiert bereits. Passwort wurde zurückgesetzt.
2025-06-19 09:26:58 - [app] app - [INFO] INFO - [STARTUP] ✅ Admin-Benutzer geprüft
2025-06-19 09:26:58 - [app] app - [INFO] INFO - [STARTUP] Initialisiere statische Drucker...
2025-06-19 09:26:58 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 1 (192.168.0.100)
2025-06-19 09:26:58 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 2 (192.168.0.101)
2025-06-19 09:26:58 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 3 (192.168.0.102)
2025-06-19 09:26:58 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 4 (192.168.0.103)
2025-06-19 09:26:58 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 5 (192.168.0.104)
2025-06-19 09:26:58 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 6 (192.168.0.106)
2025-06-19 09:26:58 - [app] app - [INFO] INFO - ✅ Statische Drucker-Initialisierung abgeschlossen: 0 erstellt, 6 aktualisiert
2025-06-19 09:26:58 - [app] app - [INFO] INFO - 📍 Alle Drucker sind für Standort 'TBA Marienfelde' konfiguriert
2025-06-19 09:26:58 - [app] app - [INFO] INFO - 🌐 IP-Bereich: 192.168.0.100-106 (außer .105)
2025-06-19 09:26:58 - [app] app - [INFO] INFO - [STARTUP] ✅ Statische Drucker konfiguriert
2025-06-19 09:26:58 - [app] app - [INFO] INFO - [STARTUP] Starte Queue Manager...
2025-06-19 09:26:58 - [app] app - [INFO] INFO - [STARTUP] ✅ Queue Manager gestartet
2025-06-19 09:26:58 - [app] app - [INFO] INFO - [STARTUP] Starte Job Scheduler...
2025-06-19 09:26:58 - [app] app - [INFO] INFO - [STARTUP] ✅ Job Scheduler gestartet
2025-06-19 09:26:58 - [app] app - [INFO] INFO - [STARTUP] 🌐 Server startet auf http://0.0.0.0:5000
2025-06-19 09:27:08 - [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-19 09:27:08 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen (include_inactive=False)
2025-06-19 09:27:08 - [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 09:27:08 - [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 09:27:08 - [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 09:27:08 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 09:27:08 - [app] app - [DEBUG] DEBUG - Request: GET /dashboard
2025-06-19 09:27:08 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 09:28:08 - [app] app - [DEBUG] DEBUG - Request: GET /api/printers
2025-06-19 09:28:08 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-19 09:28:08 - [app] app - [ERROR] ERROR - Fehler beim Laden des Benutzers 1: tuple index out of range
2025-06-19 09:28:08 - [app] app - [DEBUG] DEBUG - Response: 302
2025-06-19 09:28:08 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen (include_inactive=False)
2025-06-19 09:28:08 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 09:28:08 - [app] app - [DEBUG] DEBUG - Request: GET /auth/login
2025-06-19 09:28:08 - [app] app - [DEBUG] DEBUG - Request: GET /api/printers
2025-06-19 09:28:08 - [app] app - [DEBUG] DEBUG - Response: 302
2025-06-19 09:28:08 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen (include_inactive=False)
2025-06-19 09:28:08 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-19 09:28:08 - [app] app - [DEBUG] DEBUG - Request: GET /
2025-06-19 09:28:08 - [app] app - [DEBUG] DEBUG - Response: 302
2025-06-19 09:28:08 - [app] app - [DEBUG] DEBUG - Request: GET /dashboard
2025-06-19 09:28:08 - [app] app - [DEBUG] DEBUG - Response: 200