Spaces:
Running
Running
chore: update startup script configuration for HuggingClip service
Browse files
start.sh
CHANGED
|
@@ -328,6 +328,22 @@ if [ "$PAPERCLIP_READY" = true ]; then
|
|
| 328 |
echo "Admin account already configured"
|
| 329 |
fi
|
| 330 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 331 |
else
|
| 332 |
echo "Warning: Paperclip did not become ready in 90s"
|
| 333 |
fi
|
|
|
|
| 328 |
echo "Admin account already configured"
|
| 329 |
fi
|
| 330 |
|
| 331 |
+
# ── Gemini stderr diagnostic (captures actual error after "Fatal error:") ──
|
| 332 |
+
echo ""
|
| 333 |
+
echo "=== Gemini full-stderr diagnostic ==="
|
| 334 |
+
HOME=/home/paperclip runuser -u paperclip -- \
|
| 335 |
+
/usr/local/bin/gemini --output-format json "Respond with hello." \
|
| 336 |
+
>/tmp/gemini-diag.out 2>/tmp/gemini-diag.err || true
|
| 337 |
+
echo "exit=$?"
|
| 338 |
+
echo "--- wrapper content ---"
|
| 339 |
+
cat /usr/local/bin/gemini
|
| 340 |
+
echo "--- stdout ---"
|
| 341 |
+
cat /tmp/gemini-diag.out 2>/dev/null | head -20 || true
|
| 342 |
+
echo "--- full stderr ---"
|
| 343 |
+
cat /tmp/gemini-diag.err 2>/dev/null || true
|
| 344 |
+
echo "=== end gemini diagnostic ==="
|
| 345 |
+
echo ""
|
| 346 |
+
|
| 347 |
else
|
| 348 |
echo "Warning: Paperclip did not become ready in 90s"
|
| 349 |
fi
|