Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/diagnose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,20 @@ jobs:
echo ".env missing"
fi

section "clock"
date -u || true
sudo docker exec ib-gateway bash -lc 'date -u || true' || true
sudo docker exec ib-gateway bash -lc 'python3 - <<'"'"'PY'"'"'
import os
import time

print("container_epoch", int(time.time()))
if os.environ.get("TOTP_SECRET"):
print("totp_seconds_remaining", 30 - (int(time.time()) % 30))
else:
print("totp_secret_present", False)
PY' || true

section "docker compose ps"
sudo docker compose ps || true

Expand Down Expand Up @@ -121,8 +135,15 @@ jobs:
for id in $ids; do
printf "%s " "$id"
xdotool getwindowname "$id" 2>/dev/null || true
timeout 3 xdotool getwindowgeometry --shell "$id" 2>/dev/null || true
timeout 3 xprop -id "$id" WM_NAME WM_CLASS WM_WINDOW_ROLE 2>/dev/null || true
done
fi
focused=$(xdotool getwindowfocus 2>/dev/null || true)
if [ -n "$focused" ]; then
printf "focused %s " "$focused"
xdotool getwindowname "$focused" 2>/dev/null || true
fi
' || true

section "2fa bot log"
Expand Down