Add SOULSYNC_* env var dump at startup for Docker diagnostics

Prints all SOULSYNC_* environment variables before OAuth servers start,
helping diagnose reported Unraid issue where callback port env var is
present in the container but not seen by the Python process.
This commit is contained in:
Broque Thomas 2026-04-15 18:57:15 -07:00
parent b89ff796bf
commit 6677807b2a

View file

@ -53833,7 +53833,14 @@ def _emit_repair_progress_loop():
if __name__ == '__main__':
print("Starting SoulSync Web UI Server...")
print("Open your browser and navigate to http://127.0.0.1:8008")
# Dump SOULSYNC_* env vars for diagnostics (helps debug Docker/Unraid env issues)
_soulsync_env = {k: v for k, v in os.environ.items() if k.startswith('SOULSYNC_')}
if _soulsync_env:
print(f"[Startup] SOULSYNC environment variables: {_soulsync_env}")
else:
print("[Startup] No SOULSYNC_* environment variables detected")
# Start OAuth callback servers
print("Starting OAuth callback servers...")
start_oauth_callback_servers()