File size: 1,911 Bytes
da0ce7b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/bin/bash
# Unified runtime status check for DigitalOcean + local process orchestration

set -u

echo "πŸ¦†βš”οΈ AUREON RUNTIME STATUS βš”οΈπŸ¦†"
echo ""

echo "== Process status (aureon/orca/queen/ws/truth/deploy) =="
if pgrep -af "(aureon|orca|queen|ws_market_data_feeder|aureon_live_tv_station|deploy_digital_ocean)" >/tmp/aureon_proc_status.$$ 2>/dev/null; then
    cat /tmp/aureon_proc_status.$$
else
    echo "No matching runtime processes found"
fi
rm -f /tmp/aureon_proc_status.$$ >/dev/null 2>&1 || true

echo ""
echo "== Supervisor status =="
if [ -S "/workspaces/aureon-trading/supervisor.sock" ]; then
    supervisorctl -c supervisord.conf status 2>/dev/null || echo "Supervisor socket exists but status command failed"
else
    echo "Supervisor socket missing (/workspaces/aureon-trading/supervisor.sock)"
fi

echo ""
echo "== Docker status =="
if command -v docker >/dev/null 2>&1; then
    docker ps --format 'table {{.Names}}\t{{.Status}}\t{{.Ports}}' 2>/dev/null || echo "Docker CLI available but daemon unreachable"
else
    echo "Docker CLI not installed"
fi

echo ""
echo "== Local health files =="
for f in orca_trade_history.json cost_basis_history.json active_position.json; do
    if [ -f "$f" ]; then
        echo "FOUND: $f ($(stat -c%s "$f" 2>/dev/null || echo '?') bytes)"
    else
        echo "MISSING: $f"
    fi
done

echo ""
echo "== Focused log activity (last 5 matching lines/file) =="
LOG_CANDIDATES="buyer1.log buyer2.log seller1.log seller2.log watcher.log logs/orca_trader.out.log logs/queen_eternal_machine.log logs/deployment_coordinator.log"
for log in $LOG_CANDIDATES; do
    if [ -f "$log" ]; then
        echo "=== $log ==="
        tail -n 50 "$log" | grep -E "(πŸ’°|πŸ’Ž|πŸ‘οΈ|ENTERING|SOLD|Profit|Trades|ERROR|WARN|healthy|started|executed)" | tail -n 5 || echo "  No recent matching activity"
    fi
done