Skip to content

Commit ebb97eb

Browse files
committed
Make Tailscale connection non-blocking in Convos entrypoint
Invalid auth key was causing tailscale up to hang indefinitely, preventing Convos from starting. Now runs in background subshell so Convos starts regardless of Tailscale auth status.
1 parent 35a3814 commit ebb97eb

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

convos/entrypoint.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,14 @@ mkdir -p /var/lib/tailscale
1717
/usr/local/bin/tailscaled --state=/var/lib/tailscale/tailscaled.state &
1818
sleep 2
1919

20-
# Connect to Tailscale if auth key is provided
20+
# Connect to Tailscale if auth key is provided (non-blocking)
21+
# Run in background so Convos starts even if Tailscale auth fails
2122
if [ -n "${TAILSCALE_AUTHKEY}" ]; then
22-
/usr/local/bin/tailscale up --auth-key=${TAILSCALE_AUTHKEY} --hostname=magnet-convos --ssh --accept-dns=false
23-
echo "Connected to Tailscale as magnet-convos"
23+
(
24+
/usr/local/bin/tailscale up --auth-key=${TAILSCALE_AUTHKEY} --hostname=magnet-convos --ssh --accept-dns=false && \
25+
echo "Connected to Tailscale as magnet-convos" || \
26+
echo "Tailscale connection failed (non-fatal)"
27+
) &
2428
else
2529
echo "TAILSCALE_AUTHKEY not set, skipping Tailscale"
2630
fi

0 commit comments

Comments
 (0)