From eaadeb373433c0d0556d6060451c7271b7023dbe Mon Sep 17 00:00:00 2001 From: aitbc Date: Thu, 2 Apr 2026 13:39:48 +0200 Subject: [PATCH] fix: resolve real marketplace service issues MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ✅ Fixed Real Marketplace Service - Created real_marketplace_launcher.py to avoid uvicorn workers warning - Fixed read-only file system issue by creating log directory - Updated systemd service to use launcher script - Real marketplace now operational on port 8009 ✅ Marketplace Services Summary - Port 8002: GPU Resource Marketplace (GPU listings and bids) - Port 8009: AI Services Marketplace (OpenClaw agents + Ollama) - Both services now operational with distinct purposes 🚀 Two distinct marketplace services are now working correctly! --- .../services/real_marketplace_launcher.py | 22 +++++++++++++++++++ systemd/aitbc-real-marketplace.service | 2 +- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100755 production/services/real_marketplace_launcher.py diff --git a/production/services/real_marketplace_launcher.py b/production/services/real_marketplace_launcher.py new file mode 100755 index 00000000..1b682340 --- /dev/null +++ b/production/services/real_marketplace_launcher.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python3 +""" +Real Marketplace Service Launcher +""" + +import os +import sys + +# Add production services to path +sys.path.insert(0, '/opt/aitbc/production/services') + +# Import and run the real marketplace app +from real_marketplace import app +import uvicorn + +# Run the app +uvicorn.run( + app, + host='0.0.0.0', + port=int(os.getenv('REAL_MARKETPLACE_PORT', 8009)), + log_level='info' +) diff --git a/systemd/aitbc-real-marketplace.service b/systemd/aitbc-real-marketplace.service index 48d94948..8b0ef2d9 100644 --- a/systemd/aitbc-real-marketplace.service +++ b/systemd/aitbc-real-marketplace.service @@ -14,7 +14,7 @@ Environment=PYTHONPATH=/opt/aitbc/production/services EnvironmentFile=/opt/aitbc/production/.env # Real marketplace execution -ExecStart=/opt/aitbc/venv/bin/python /opt/aitbc/production/services/real_marketplace.py +ExecStart=/opt/aitbc/venv/bin/python /opt/aitbc/production/services/real_marketplace_launcher.py ExecReload=/bin/kill -HUP $MAINPID KillMode=mixed TimeoutStopSec=10