ServerKit is a lightweight, modern server control panel for managing web applications, databases, and services on your VPS or dedicated server. Built with Python/Flask backend and React frontend.
Python astracloudflarecontrol-panelcyberpaneldnsfablehosting-control-panelhosting-panelkimi-k3server-managementserverkitubuntu-web-panelwebserver
Time out version and status probes after 60s
Juan Denisf3145289c86b
diff --git a/backend/app/services/database_service.py b/backend/app/services/database_service.pyindex e436201d..80c59daf 100644--- a/backend/app/services/database_service.py+++ b/backend/app/services/database_service.py@@ -34,7 +34,7 @@ class DatabaseService:# run_checked also resolves argv[0] when $PATH misses it, so a client# installed outside the unit's PATH stops reading as "not installed"# (the class behind a past outage).- return run_checked(['mysql', '--version'], timeout=None)['success']+ return run_checked(['mysql', '--version'])['success']@staticmethoddef mysql_is_running():@@ -394,7 +394,7 @@ class DatabaseService:@staticmethoddef pg_is_installed():"""Check if PostgreSQL is installed."""- return run_checked(['psql', '--version'], timeout=None)['success']+ return run_checked(['psql', '--version'])['success']@staticmethoddef pg_is_running():diff --git a/backend/app/services/postfix_service.py b/backend/app/services/postfix_service.pyindex c5fa4961..7ffe536c 100644--- a/backend/app/services/postfix_service.py+++ b/backend/app/services/postfix_service.py@@ -100,7 +100,7 @@ mailbox_size_limit = 0hostname = Nonetry:- result = run_checked(['which', 'postfix'], timeout=None)+ result = run_checked(['which', 'postfix'])installed = result['success']if not installed:installed = PackageManager.is_installed('postfix')@@ -109,12 +109,12 @@ mailbox_size_limit = 0running = ServiceControl.is_active('postfix')enabled = ServiceControl.is_enabled('postfix')- result = run_checked(['postconf', 'mail_version'], timeout=None)+ result = run_checked(['postconf', 'mail_version'])match = re.search(r'mail_version\s*=\s*(\S+)', result['output'])if match:version = match.group(1)- result = run_checked(['postconf', 'myhostname'], timeout=None)+ result = run_checked(['postconf', 'myhostname'])match = re.search(r'myhostname\s*=\s*(\S+)', result['output'])if match:hostname = match.group(1)@@ -328,7 +328,7 @@ mailbox_size_limit = 0def get_queue(cls) -> Dict:"""Get the Postfix mail queue."""try:- result = run_checked(['mailq'], timeout=None)+ result = run_checked(['mailq'])output = result['output']if 'Mail queue is empty' in output:diff --git a/backend/app/services/python_service.py b/backend/app/services/python_service.pyindex 393bc4ce..326754fb 100644--- a/backend/app/services/python_service.py+++ b/backend/app/services/python_service.py@@ -73,7 +73,7 @@ STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')python_path = shutil.which(f'python{version}')if python_path:try:- result = run_checked([python_path, '--version'], timeout=None)+ result = run_checked([python_path, '--version'])if result['success']:full_version = result['output'].strip().replace('Python ', '')versions.append({@@ -99,7 +99,7 @@ STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')python_path = shutil.which('python3')if python_path:try:- result = run_checked([python_path, '--version'], timeout=None)+ result = run_checked([python_path, '--version'])if result['success']:return result['output'].strip().replace('Python ', '')except Exception:@@ -176,7 +176,7 @@ STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')return []try:- result = run_checked([pip_path, 'list', '--format=json'], timeout=None)+ result = run_checked([pip_path, 'list', '--format=json'])if result['success']:return json.loads(result['output'])return []@@ -193,7 +193,7 @@ STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')return {'success': False, 'error': 'Virtual environment not found'}try:- result = run_checked([pip_path, 'freeze'], timeout=None)+ result = run_checked([pip_path, 'freeze'])if result['success']:req_file = os.path.join(app_path, 'requirements.txt')with open(req_file, 'w') as f: