Troubleshooting
Port Already in Use
# Preferred: graceful stop via launcher./launch-core-x.sh --stop
# Find what's using a portlsof -i :8090
# Graceful kill (SIGTERM)kill $(lsof -ti :8090)
# Last resort only — force kill (SIGKILL, no cleanup)kill -9 $(lsof -ti :8090)Service Not Responding
# Check health of all servicesfor port in 8085 8090 8091 8092 8093 8094 8095 8096 8083 8084; do status=$(curl -s -o /dev/null -w "%{http_code}" http://localhost:$port/health 2>/dev/null || echo "000") echo "Port $port: $status"doneMissing Dependencies
# Python depspip install -e "core-x/[cli]"
# Node deps (UI)cd core-x/ui && npm install
# ffmpeg (required for audio/video pipelines)brew install ffmpegffmpeg -versionStale Manifests / Registries
# Regenerate all registries from sourcepython scripts/generate-registries.py
# Validate ecosystem integritypython core-x/scripts/validate-ecosystem.py
# Validate model zoopython model-zoo/scripts/validate_registry.pyEvent Bus Won’t Start
# Check if port 8085 is held by a zombie processlsof -i :8085
# Graceful kill firstkill $(lsof -ti :8085)# Last resort: kill -9 $(lsof -ti :8085)
# Start manuallypython core-x/scripts/run_event_bus.py --host 127.0.0.1 --port 8085
# Check logscat .core-x-logs/event-bus.logUI Won’t Connect to Services
- Verify gateway is up:
curl http://localhost:8090/health - Verify event bus is up:
curl http://localhost:8085/health - Check UI env config:
core-x/ui/src/lib/env.tsfor port assignments - Check browser console for CORS or connection errors
Verification Checklist
# 1. Services healthycurl -s http://localhost:8090/health && echo " ← gateway OK"curl -s http://localhost:8085/health && echo " ← event-bus OK"
# 2. CLI workscorex --help
# 3. CLI imports cleanPYTHONPATH=core-x python -c "from core_x.cli.ui.theme import style; print('OK')"
# 4. UI buildscd core-x/ui && npm run build
# 5. Schemas validpython core-x/scripts/validate-ecosystem.py
# 6. Model zoo validpython model-zoo/scripts/validate_registry.py
# 7. Registries regenerate without errorpython scripts/generate-registries.py