From e2b5247e84eff89fed7518d9c8b3ec964b842d38 Mon Sep 17 00:00:00 2001 From: UserIsMH Date: Sat, 21 Jun 2025 18:49:39 +0200 Subject: [PATCH] System Status - License Server fix --- .claude/settings.local.json | 3 ++- v2_adminpanel/routes/monitoring_routes.py | 3 ++- v2_lizenzserver/.env | 1 - v2_lizenzserver/app/core/config.py | 1 + 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.claude/settings.local.json b/.claude/settings.local.json index 7d7237e..2bc7780 100644 --- a/.claude/settings.local.json +++ b/.claude/settings.local.json @@ -74,7 +74,8 @@ "Bash(true)", "Bash(git checkout:*)", "Bash(touch:*)", - "Bash(wget:*)" + "Bash(wget:*)", + "Bash(docker inspect:*)" ], "deny": [] } diff --git a/v2_adminpanel/routes/monitoring_routes.py b/v2_adminpanel/routes/monitoring_routes.py index 315b38f..08c3eba 100644 --- a/v2_adminpanel/routes/monitoring_routes.py +++ b/v2_adminpanel/routes/monitoring_routes.py @@ -214,8 +214,9 @@ def system_status(): else: status['status'] = 'unhealthy' status['response_time'] = (datetime.now() - start).total_seconds() * 1000 - except: + except Exception as e: status['status'] = 'down' + logging.error(f"Health check failed for {service['name']}: {str(e)}") services.append(status) diff --git a/v2_lizenzserver/.env b/v2_lizenzserver/.env index 7bd505a..9f9b867 100644 --- a/v2_lizenzserver/.env +++ b/v2_lizenzserver/.env @@ -1,4 +1,3 @@ SECRET_KEY=your-super-secret-key-change-this-in-production-12345 DATABASE_URL=postgresql://adminuser:supergeheimespasswort@db:5432/meinedatenbank -REDIS_URL=redis://redis:6379 DEBUG=False \ No newline at end of file diff --git a/v2_lizenzserver/app/core/config.py b/v2_lizenzserver/app/core/config.py index 267b4b3..3616060 100644 --- a/v2_lizenzserver/app/core/config.py +++ b/v2_lizenzserver/app/core/config.py @@ -27,5 +27,6 @@ class Settings(BaseSettings): class Config: env_file = ".env" case_sensitive = True + extra = "ignore" # Ignore extra environment variables settings = Settings() \ No newline at end of file