Some checks failed
Deploy to Phoenix / deploy (push) Has been cancelled
- ADD_CHAIN138_TO_LEDGER_LIVE: Ledger form done; public code review repo bis-innovations/LedgerLive; init/push commands - CONTRACT_DEPLOYMENT_RUNBOOK: Chain 138 gas price 1 gwei, 36-addr check, TransactionMirror workaround - CONTRACT_*: AddressMapper, MirrorManager deployed 2026-02-12; 36-address on-chain check - NEXT_STEPS_FOR_YOU: Ledger done; steps completable now (no LAN); run-completable-tasks-from-anywhere - MASTER_INDEX, OPERATOR_OPTIONAL, SMART_CONTRACTS_INVENTORY_SIMPLE: updates - LEDGER_BLOCKCHAIN_INTEGRATION_COMPLETE: bis-innovations/LedgerLive reference Co-authored-by: Cursor <cursoragent@cursor.com>
33 lines
1.4 KiB
Bash
Executable File
33 lines
1.4 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# Troubleshoot HTTP 530 for mifos.d-bis.org (tunnel): check cloudflared and origin inside LXC 5800.
|
|
# Run from project root. Requires SSH to r630-02.
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
PROJECT_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)"
|
|
cd "$PROJECT_ROOT"
|
|
source config/ip-addresses.conf 2>/dev/null || true
|
|
|
|
HOST="${PROXMOX_HOST_R630_02:-${PROXMOX_R630_02:-192.168.11.12}}"
|
|
VMID=5800
|
|
SSH_OPTS="-o ConnectTimeout=15 -o StrictHostKeyChecking=accept-new"
|
|
|
|
echo "=== Mifos tunnel (530) check on $HOST LXC $VMID ==="
|
|
echo ""
|
|
|
|
echo "1. cloudflared service:"
|
|
ssh $SSH_OPTS root@$HOST "pct exec $VMID -- systemctl is-active cloudflared" 2>/dev/null || echo " (inactive or not installed)"
|
|
ssh $SSH_OPTS root@$HOST "pct exec $VMID -- systemctl status cloudflared --no-pager -l" 2>/dev/null | head -14
|
|
echo ""
|
|
|
|
echo "2. Origin http://127.0.0.1:80 (from inside 5800):"
|
|
ssh $SSH_OPTS root@$HOST "pct exec $VMID -- curl -sI -m 5 http://127.0.0.1:80" 2>/dev/null | head -8 || echo " FAIL: no response on 127.0.0.1:80"
|
|
echo ""
|
|
|
|
echo "3. Tunnel list (if credentials present):"
|
|
ssh $SSH_OPTS root@$HOST "pct exec $VMID -- cloudflared tunnel list" 2>/dev/null || echo " (cannot list tunnels)"
|
|
echo ""
|
|
|
|
echo "If 530 persists: In Zero Trust → Tunnels → mifos-r630-02 → Public Hostname must be:"
|
|
echo " Subdomain: mifos, Domain: d-bis.org, Type: HTTP, URL: http://127.0.0.1:80"
|