Remote-SSH hangs on Fedora 40+ remote hosts: wget2 spins at 100% CPU during server bootstrap

Summary

When connecting via Remote-SSH to a Fedora 40+ remote host (where wget is provided by wget2-wget), the remote server bootstrap script hangs indefinitely right after Finished cleaning up old server installations. while wget spins at ~100% CPU and holds the installation lock. Any subsequent connection attempts block indefinitely at Waiting for lock....

Environment

  • Client: Antigravity IDE (Open Remote - SSH) on Linux
  • Remote Host: Fedora 40+ (x86_64) with default wget2-wget providing /usr/bin/wget

Observed Behavior

On the remote host, ps aux shows the bootstrap download stuck in state Sl at ~97–100% CPU for minutes without completing or timing out:

wget --tries=3 --timeout=10 --continue --quiet -O /tmp/tmp.XXXXXXXXXX <server-tarball-url>

Root Cause

  1. The bootstrap script prefers wget over curl and invokes wget --tries=3 --timeout=10 --continue ... -O <mktemp-file>.
  2. On Fedora 40+, /usr/bin/wget is wget2, which enters a ~100% CPU busy-loop when combining --continue with -O targeting a freshly created 0-byte mktemp file.

Workaround

Kill the stuck wget process and replace wget2-wget with classic GNU Wget 1.x (or remove it so the script falls back to curl):

sudo dnf swap wget2-wget wget1-wget

Suggested Fix

  • Prefer curl over wget when both are installed, or detect Wget2 via wget --version, and/or
  • Omit --continue when downloading into a newly created mktemp file.