Spaces:
Runtime error
Runtime error
Ashira Pitchayapakayakul commited on
Commit Β·
d4e26b2
1
Parent(s): 147cb0f
Add set -x boot trace to find hang point
Browse files
start.sh
CHANGED
|
@@ -2,10 +2,16 @@
|
|
| 2 |
# Hermes start orchestrator for HF Space.
|
| 3 |
# Boots: persistent /data mount β Redis β Ollama β axentx repos β daemons β status server.
|
| 4 |
set -uo pipefail
|
|
|
|
|
|
|
|
|
|
| 5 |
|
| 6 |
LOG_DIR="${HOME}/.claude/logs"
|
| 7 |
mkdir -p "$LOG_DIR"
|
| 8 |
-
echo "[$(date +%H:%M:%S)] hermes-hf-space boot start"
|
|
|
|
|
|
|
|
|
|
| 9 |
|
| 10 |
# ββ 1. Persistent data β symlink state dirs to /data (HF persistent mount) ββ
|
| 11 |
DATA="/data"
|
|
|
|
| 2 |
# Hermes start orchestrator for HF Space.
|
| 3 |
# Boots: persistent /data mount β Redis β Ollama β axentx repos β daemons β status server.
|
| 4 |
set -uo pipefail
|
| 5 |
+
# Trace ON for boot β finds hangs immediately. Disable later if logs too noisy.
|
| 6 |
+
PS4='[$(date +%H:%M:%S)] +${LINENO}: '
|
| 7 |
+
set -x
|
| 8 |
|
| 9 |
LOG_DIR="${HOME}/.claude/logs"
|
| 10 |
mkdir -p "$LOG_DIR"
|
| 11 |
+
echo "[$(date +%H:%M:%S)] hermes-hf-space boot start"
|
| 12 |
+
echo "[$(date +%H:%M:%S)] hermes-hf-space boot start" >> "$LOG_DIR/boot.log"
|
| 13 |
+
# Echo all subsequent stdout so HF run-logs show progress
|
| 14 |
+
exec > >(tee -a "$LOG_DIR/boot.log") 2>&1
|
| 15 |
|
| 16 |
# ββ 1. Persistent data β symlink state dirs to /data (HF persistent mount) ββ
|
| 17 |
DATA="/data"
|