Die Dateien wurden geändert oder hinzugefügt:
This commit is contained in:
@ -21792,3 +21792,311 @@ jinja2.exceptions.UndefinedError: 'stats' is undefined
|
||||
2025-06-13 06:59:26 - [app] app - [INFO] INFO - Not Found (404): http://127.0.0.1:5000/api/admin/error-recovery/status
|
||||
2025-06-13 06:59:26 - [app] app - [INFO] INFO - Not Found (404): http://127.0.0.1:5000/api/stats
|
||||
2025-06-13 06:59:26 - [app] app - [INFO] INFO - Not Found (404): http://127.0.0.1:5000/api/admin/system-health
|
||||
2025-06-13 07:12:33 - [app] app - [INFO] INFO - Optimierte SQLite-Engine erstellt: backend/database/myp.db
|
||||
2025-06-13 07:12:34 - [app] app - [INFO] INFO - [CONFIG] Erkannte Umgebung: development
|
||||
2025-06-13 07:12:34 - [app] app - [INFO] INFO - [CONFIG] Production-Modus: False
|
||||
2025-06-13 07:12:34 - [app] app - [INFO] INFO - [CONFIG] Verwende Development-Konfiguration
|
||||
2025-06-13 07:12:34 - [app] app - [INFO] INFO - [DEVELOPMENT] Aktiviere Development-Konfiguration
|
||||
2025-06-13 07:12:34 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ MYP Development Environment Konfiguration aktiviert
|
||||
2025-06-13 07:12:34 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Environment: Development/Testing
|
||||
2025-06-13 07:12:34 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Debug Mode: True
|
||||
2025-06-13 07:12:34 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ SQL Echo: True
|
||||
2025-06-13 07:12:34 - [app] app - [INFO] INFO - SQLite für Raspberry Pi optimiert (reduzierte Cache-Größe, SD-Karten I/O)
|
||||
2025-06-13 07:12:34 - [app] app - [INFO] INFO - Admin-Berechtigungen beim Start korrigiert: 1 erstellt, 0 aktualisiert
|
||||
2025-06-13 07:12:34 - [app] app - [INFO] INFO - [STARTUP] 🚀 Starte MYP DEVELOPMENT-Umgebung
|
||||
2025-06-13 07:12:34 - [app] app - [INFO] INFO - [STARTUP] 🏢 Mercedes-Benz TBA Marienfelde
|
||||
2025-06-13 07:12:34 - [app] app - [INFO] INFO - [STARTUP] 🔒 Air-Gapped: True
|
||||
2025-06-13 07:12:34 - [app] app - [INFO] INFO - [STARTUP] Initialisiere Datenbank...
|
||||
2025-06-13 07:12:34 - [app] app - [INFO] INFO - Datenbank mit Optimierungen initialisiert
|
||||
2025-06-13 07:12:34 - [app] app - [INFO] INFO - [STARTUP] ✅ Datenbank initialisiert
|
||||
2025-06-13 07:12:34 - [app] app - [INFO] INFO - [STARTUP] Prüfe Initial-Admin...
|
||||
2025-06-13 07:12:35 - [app] app - [INFO] INFO - Admin-Benutzer admin (admin@mercedes-benz.com) existiert bereits. Passwort wurde zurückgesetzt.
|
||||
2025-06-13 07:12:35 - [app] app - [INFO] INFO - [STARTUP] ✅ Admin-Benutzer geprüft
|
||||
2025-06-13 07:12:35 - [app] app - [INFO] INFO - [STARTUP] Starte Queue Manager...
|
||||
2025-06-13 07:12:35 - [app] app - [INFO] INFO - [STARTUP] ✅ Queue Manager gestartet
|
||||
2025-06-13 07:12:35 - [app] app - [INFO] INFO - [STARTUP] Starte Job Scheduler...
|
||||
2025-06-13 07:12:35 - [app] app - [INFO] INFO - [STARTUP] ✅ Job Scheduler gestartet
|
||||
2025-06-13 07:12:35 - [app] app - [INFO] INFO - [STARTUP] 🌐 Server startet auf http://0.0.0.0:5000
|
||||
2025-06-13 07:12:36 - [app] app - [INFO] INFO - Optimierte SQLite-Engine erstellt: backend/database/myp.db
|
||||
2025-06-13 07:12:37 - [app] app - [INFO] INFO - [CONFIG] Erkannte Umgebung: development
|
||||
2025-06-13 07:12:37 - [app] app - [INFO] INFO - [CONFIG] Production-Modus: False
|
||||
2025-06-13 07:12:37 - [app] app - [INFO] INFO - [CONFIG] Verwende Development-Konfiguration
|
||||
2025-06-13 07:12:37 - [app] app - [INFO] INFO - [DEVELOPMENT] Aktiviere Development-Konfiguration
|
||||
2025-06-13 07:12:37 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ MYP Development Environment Konfiguration aktiviert
|
||||
2025-06-13 07:12:37 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Environment: Development/Testing
|
||||
2025-06-13 07:12:37 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Debug Mode: True
|
||||
2025-06-13 07:12:37 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ SQL Echo: True
|
||||
2025-06-13 07:12:37 - [app] app - [INFO] INFO - SQLite für Raspberry Pi optimiert (reduzierte Cache-Größe, SD-Karten I/O)
|
||||
2025-06-13 07:12:37 - [app] app - [INFO] INFO - Admin-Berechtigungen beim Start korrigiert: 0 erstellt, 0 aktualisiert
|
||||
2025-06-13 07:12:37 - [app] app - [INFO] INFO - [STARTUP] 🚀 Starte MYP DEVELOPMENT-Umgebung
|
||||
2025-06-13 07:12:37 - [app] app - [INFO] INFO - [STARTUP] 🏢 Mercedes-Benz TBA Marienfelde
|
||||
2025-06-13 07:12:37 - [app] app - [INFO] INFO - [STARTUP] 🔒 Air-Gapped: True
|
||||
2025-06-13 07:12:37 - [app] app - [INFO] INFO - [STARTUP] Initialisiere Datenbank...
|
||||
2025-06-13 07:12:37 - [app] app - [INFO] INFO - Datenbank mit Optimierungen initialisiert
|
||||
2025-06-13 07:12:37 - [app] app - [INFO] INFO - [STARTUP] ✅ Datenbank initialisiert
|
||||
2025-06-13 07:12:37 - [app] app - [INFO] INFO - [STARTUP] Prüfe Initial-Admin...
|
||||
2025-06-13 07:12:37 - [app] app - [INFO] INFO - Admin-Benutzer admin (admin@mercedes-benz.com) existiert bereits. Passwort wurde zurückgesetzt.
|
||||
2025-06-13 07:12:37 - [app] app - [INFO] INFO - [STARTUP] ✅ Admin-Benutzer geprüft
|
||||
2025-06-13 07:12:37 - [app] app - [INFO] INFO - [STARTUP] Starte Queue Manager...
|
||||
2025-06-13 07:12:37 - [app] app - [INFO] INFO - [STARTUP] ✅ Queue Manager gestartet
|
||||
2025-06-13 07:12:37 - [app] app - [INFO] INFO - [STARTUP] Starte Job Scheduler...
|
||||
2025-06-13 07:12:37 - [app] app - [INFO] INFO - [STARTUP] ✅ Job Scheduler gestartet
|
||||
2025-06-13 07:12:37 - [app] app - [INFO] INFO - [STARTUP] 🌐 Server startet auf http://0.0.0.0:5000
|
||||
2025-06-13 07:12:37 - [app] app - [ERROR] ERROR - Datenbank-Transaktion fehlgeschlagen: Textual SQL expression 'SELECT 1' should be explicitly declared as text('SELECT 1')
|
||||
2025-06-13 07:12:37 - [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-13 07:12:37 - [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-13 07:12:37 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-13 07:12:38 - [app] app - [ERROR] ERROR - Datenbank-Transaktion fehlgeschlagen: Textual SQL expression 'SELECT 1' should be explicitly declared as text('SELECT 1')
|
||||
2025-06-13 07:12:38 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-13 07:12:39 - [app] app - [DEBUG] DEBUG - Request: GET /dashboard
|
||||
2025-06-13 07:12:39 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-13 07:12:49 - [app] app - [DEBUG] DEBUG - Request: GET /printers
|
||||
2025-06-13 07:12:49 - [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-13 07:12:49 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-13 07:12:49 - [app] app - [DEBUG] DEBUG - Request: GET /api/printers
|
||||
2025-06-13 07:12:49 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen (include_inactive=True)
|
||||
2025-06-13 07:12:49 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-13 07:12:49 - [app] app - [DEBUG] DEBUG - Request: GET /api/printers
|
||||
2025-06-13 07:12:49 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen (include_inactive=True)
|
||||
2025-06-13 07:12:49 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-13 07:12:54 - [app] app - [DEBUG] DEBUG - Request: GET /jobs
|
||||
2025-06-13 07:12:54 - [app] app - [INFO] INFO - Locating template 'jobs.html':
|
||||
1: trying loader of application '__main__'
|
||||
class: jinja2.loaders.FileSystemLoader
|
||||
encoding: 'utf-8'
|
||||
followlinks: False
|
||||
searchpath:
|
||||
- C:\Users\TTOMCZA.EMEA\Dev\Projektarbeit-MYP\backend\templates
|
||||
-> found ('C:\\Users\\TTOMCZA.EMEA\\Dev\\Projektarbeit-MYP\\backend\\templates\\jobs.html')
|
||||
2025-06-13 07:12:54 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-13 07:12:54 - [app] app - [DEBUG] DEBUG - Request: GET /api/jobs
|
||||
2025-06-13 07:12:54 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-13 07:12:54 - [app] app - [DEBUG] DEBUG - Request: GET /api/printers
|
||||
2025-06-13 07:12:54 - [app] app - [INFO] INFO - ✅ API: 6 Drucker abgerufen (include_inactive=True)
|
||||
2025-06-13 07:12:54 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-13 07:12:59 - [app] app - [DEBUG] DEBUG - Request: GET /calendar
|
||||
2025-06-13 07:12:59 - [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-13 07:12:59 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-13 07:12:59 - [app] app - [DEBUG] DEBUG - Request: GET /api/calendar/events
|
||||
2025-06-13 07:12:59 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-13 07:13:06 - [app] app - [DEBUG] DEBUG - Request: GET /api/calendar/events
|
||||
2025-06-13 07:13:06 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-13 07:13:12 - [app] app - [DEBUG] DEBUG - Request: GET /energy/
|
||||
2025-06-13 07:13:12 - [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-13 07:13:12 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-13 07:13:12 - [app] app - [DEBUG] DEBUG - Request: GET /api/energy/dashboard
|
||||
2025-06-13 07:13:12 - [app] app - [DEBUG] DEBUG - Request: GET /api/energy/statistics
|
||||
2025-06-13 07:13:12 - [app] app - [DEBUG] DEBUG - Request: GET /api/energy/live
|
||||
2025-06-13 07:13:12 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-13 07:13:12 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-13 07:13:12 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-13 07:13:17 - [app] app - [DEBUG] DEBUG - Request: GET /stats
|
||||
2025-06-13 07:13:17 - [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-13 07:13:17 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-13 07:13:21 - [app] app - [DEBUG] DEBUG - Request: GET /tapo/
|
||||
2025-06-13 07:13:33 - [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-13 07:13:33 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-13 07:13:39 - [app] app - [DEBUG] DEBUG - Request: GET /request
|
||||
2025-06-13 07:13:39 - [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-13 07:13:39 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-13 07:13:42 - [app] app - [DEBUG] DEBUG - Request: POST /request
|
||||
2025-06-13 07:13:42 - [app] app - [INFO] INFO - OTP generiert für Guest Request 2
|
||||
2025-06-13 07:13:42 - [app] app - [ERROR] ERROR - Datenbank-Transaktion fehlgeschlagen: (sqlite3.OperationalError) table notifications has no column named title
|
||||
[SQL: INSERT INTO notifications (user_id, title, message, type, payload, created_at, is_read, read_at) VALUES (?, ?, ?, ?, ?, ?, ?, ?)]
|
||||
[parameters: (1, None, None, 'guest_request', '{"request_id": 2, "name": "Till Tomczaktet", "created_at": "2025-06-13T07:13:42.749201", "status": "pending"}', '2025-06-13 07:13:42.954291', 0, None)]
|
||||
(Background on this error at: https://sqlalche.me/e/20/e3q8)
|
||||
2025-06-13 07:13:42 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-13 07:13:46 - [app] app - [DEBUG] DEBUG - Request: GET /guest/requests
|
||||
2025-06-13 07:13:46 - [app] app - [DEBUG] DEBUG - Response: 302
|
||||
2025-06-13 07:13:46 - [app] app - [DEBUG] DEBUG - Request: GET /requests/overview
|
||||
2025-06-13 07:13:46 - [app] app - [INFO] INFO - Locating template 'guest_requests_overview.html':
|
||||
1: trying loader of application '__main__'
|
||||
class: jinja2.loaders.FileSystemLoader
|
||||
encoding: 'utf-8'
|
||||
followlinks: False
|
||||
searchpath:
|
||||
- C:\Users\TTOMCZA.EMEA\Dev\Projektarbeit-MYP\backend\templates
|
||||
-> found ('C:\\Users\\TTOMCZA.EMEA\\Dev\\Projektarbeit-MYP\\backend\\templates\\guest_requests_overview.html')
|
||||
2025-06-13 07:13:46 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-13 07:13:53 - [app] app - [DEBUG] DEBUG - Request: GET /admin/
|
||||
2025-06-13 07:13: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-13 07:13:53 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-13 07:13:53 - [app] app - [DEBUG] DEBUG - Request: GET /api/stats
|
||||
2025-06-13 07:13:53 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-13 07:13:53 - [app] app - [DEBUG] DEBUG - Request: GET /api/admin/system-health
|
||||
2025-06-13 07:13:53 - [app] app - [ERROR] ERROR - Datenbank-Transaktion fehlgeschlagen: Textual SQL expression 'SELECT 1' should be explicitly declared as text('SELECT 1')
|
||||
2025-06-13 07:13:53 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-13 07:13:58 - [app] app - [DEBUG] DEBUG - Request: GET /admin/logs
|
||||
2025-06-13 07:13:58 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-13 07:13:59 - [app] app - [DEBUG] DEBUG - Request: GET /api/stats
|
||||
2025-06-13 07:13:59 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-13 07:13:59 - [app] app - [DEBUG] DEBUG - Request: GET /api/admin/system-health
|
||||
2025-06-13 07:13:59 - [app] app - [ERROR] ERROR - Datenbank-Transaktion fehlgeschlagen: Textual SQL expression 'SELECT 1' should be explicitly declared as text('SELECT 1')
|
||||
2025-06-13 07:13:59 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-13 07:13:59 - [app] app - [DEBUG] DEBUG - Request: GET /admin/api/logs
|
||||
2025-06-13 07:13:59 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-13 07:14:00 - [app] app - [DEBUG] DEBUG - Request: GET /admin/api/logs
|
||||
2025-06-13 07:14:00 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-13 07:14:02 - [app] app - [DEBUG] DEBUG - Request: GET /admin/advanced-settings
|
||||
2025-06-13 07:14:02 - [app] app - [INFO] INFO - Locating template 'admin_advanced_settings.html':
|
||||
1: trying loader of application '__main__'
|
||||
class: jinja2.loaders.FileSystemLoader
|
||||
encoding: 'utf-8'
|
||||
followlinks: False
|
||||
searchpath:
|
||||
- C:\Users\TTOMCZA.EMEA\Dev\Projektarbeit-MYP\backend\templates
|
||||
-> found ('C:\\Users\\TTOMCZA.EMEA\\Dev\\Projektarbeit-MYP\\backend\\templates\\admin_advanced_settings.html')
|
||||
2025-06-13 07:14:02 - [app] app - [ERROR] ERROR - Unhandled Exception - ID: 20250613_071402
|
||||
2025-06-13 07:14:02 - [app] app - [ERROR] ERROR - URL: http://127.0.0.1:5000/admin/advanced-settings
|
||||
2025-06-13 07:14:02 - [app] app - [ERROR] ERROR - Method: GET
|
||||
2025-06-13 07:14:02 - [app] app - [ERROR] ERROR - User: admin
|
||||
2025-06-13 07:14:02 - [app] app - [ERROR] ERROR - Exception Type: UndefinedError
|
||||
2025-06-13 07:14:02 - [app] app - [ERROR] ERROR - Exception: 'stats' is undefined
|
||||
2025-06-13 07:14:02 - [app] app - [ERROR] ERROR - Traceback: Traceback (most recent call last):
|
||||
File "C:\Users\TTOMCZA.EMEA\AppData\Roaming\Python\Python313\site-packages\flask\app.py", line 1484, in full_dispatch_request
|
||||
rv = self.dispatch_request()
|
||||
File "C:\Users\TTOMCZA.EMEA\AppData\Roaming\Python\Python313\site-packages\flask\app.py", line 1469, in dispatch_request
|
||||
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
|
||||
File "C:\Users\TTOMCZA.EMEA\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 87, in decorated_function
|
||||
return f(*args, **kwargs)
|
||||
File "C:\Users\TTOMCZA.EMEA\Dev\Projektarbeit-MYP\backend\blueprints\admin_unified.py", line 287, in advanced_settings
|
||||
return render_template('admin_advanced_settings.html')
|
||||
File "C:\Users\TTOMCZA.EMEA\AppData\Roaming\Python\Python313\site-packages\flask\templating.py", line 151, in render_template
|
||||
return _render(app, template, context)
|
||||
File "C:\Users\TTOMCZA.EMEA\AppData\Roaming\Python\Python313\site-packages\flask\templating.py", line 132, in _render
|
||||
rv = template.render(context)
|
||||
File "C:\Users\TTOMCZA.EMEA\AppData\Roaming\Python\Python313\site-packages\jinja2\environment.py", line 1295, in render
|
||||
self.environment.handle_exception()
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
|
||||
File "C:\Users\TTOMCZA.EMEA\AppData\Roaming\Python\Python313\site-packages\jinja2\environment.py", line 942, in handle_exception
|
||||
raise rewrite_traceback_stack(source=source)
|
||||
File "C:\Users\TTOMCZA.EMEA\Dev\Projektarbeit-MYP\backend\templates\admin_advanced_settings.html", line 1, in top-level template code
|
||||
{% extends "base.html" %}
|
||||
File "C:\Users\TTOMCZA.EMEA\Dev\Projektarbeit-MYP\backend\templates\base.html", line 433, in top-level template code
|
||||
{% block content %}{% endblock %}
|
||||
^^^^^^^^^^^^^
|
||||
File "C:\Users\TTOMCZA.EMEA\Dev\Projektarbeit-MYP\backend\templates\admin_advanced_settings.html", line 388, in block 'content'
|
||||
<p class="text-3xl font-bold text-slate-900 dark:text-white mt-1">{{ stats.total_users }}</p>
|
||||
|
||||
File "C:\Users\TTOMCZA.EMEA\AppData\Roaming\Python\Python313\site-packages\jinja2\environment.py", line 490, in getattr
|
||||
return getattr(obj, attribute)
|
||||
jinja2.exceptions.UndefinedError: 'stats' is undefined
|
||||
|
||||
2025-06-13 07:14:02 - [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-13 07:14:02 - [app] app - [DEBUG] DEBUG - Response: 500
|
||||
2025-06-13 07:14:11 - [app] app - [DEBUG] DEBUG - Request: GET /user/settings
|
||||
2025-06-13 07:14:11 - [app] app - [INFO] INFO - Locating template 'settings.html':
|
||||
1: trying loader of application '__main__'
|
||||
class: jinja2.loaders.FileSystemLoader
|
||||
encoding: 'utf-8'
|
||||
followlinks: False
|
||||
searchpath:
|
||||
- C:\Users\TTOMCZA.EMEA\Dev\Projektarbeit-MYP\backend\templates
|
||||
-> found ('C:\\Users\\TTOMCZA.EMEA\\Dev\\Projektarbeit-MYP\\backend\\templates\\settings.html')
|
||||
2025-06-13 07:14:11 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-13 07:14:11 - [app] app - [DEBUG] DEBUG - Request: GET /api/user/settings
|
||||
2025-06-13 07:14:11 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-13 07:14:16 - [app] app - [DEBUG] DEBUG - Request: PATCH /api/user/setting
|
||||
2025-06-13 07:14:16 - [app] app - [INFO] INFO - Not Found (404): http://127.0.0.1:5000/api/user/setting
|
||||
2025-06-13 07:14:16 - [app] app - [DEBUG] DEBUG - Response: 404
|
||||
2025-06-13 07:14:28 - [app] app - [DEBUG] DEBUG - Request: GET /admin/
|
||||
2025-06-13 07:14:28 - [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-13 07:14:28 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-13 07:14:28 - [app] app - [DEBUG] DEBUG - Request: GET /api/stats
|
||||
2025-06-13 07:14:28 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-13 07:14:28 - [app] app - [DEBUG] DEBUG - Request: GET /api/admin/system-health
|
||||
2025-06-13 07:14:28 - [app] app - [ERROR] ERROR - Datenbank-Transaktion fehlgeschlagen: Textual SQL expression 'SELECT 1' should be explicitly declared as text('SELECT 1')
|
||||
2025-06-13 07:14:28 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-13 07:14:31 - [app] app - [DEBUG] DEBUG - Request: GET /admin/tapo-monitoring
|
||||
2025-06-13 07:14:44 - [app] app - [INFO] INFO - Locating template 'admin_tapo_monitoring.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_tapo_monitoring.html')
|
||||
2025-06-13 07:14:44 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
2025-06-13 07:14:50 - [app] app - [DEBUG] DEBUG - Request: GET /dashboard
|
||||
2025-06-13 07:14:50 - [app] app - [DEBUG] DEBUG - Response: 200
|
||||
|
Reference in New Issue
Block a user