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

**URL:** <https://discuss.ai.google.dev/t/remote-ssh-hangs-on-fedora-40-remote-hosts-wget2-spins-at-100-cpu-during-server-bootstrap/209966>\
**Category:** Google Antigravity\
**Tags:** bug\
**Created:** [December 6, 2026, 3:37am UTC](https://discuss.ai.google.dev/t/remote-ssh-hangs-on-fedora-40-remote-hosts-wget2-spins-at-100-cpu-during-server-bootstrap/209966 "2026-12-06T03:37:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jelmer\_vdm](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/jelmer_vdm/32/138439_2.png) [@jelmer\_vdm](https://discuss.ai.google.dev/u/jelmer_vdm)\
**Post date:** [December 6, 2026, 3:37am UTC](https://discuss.ai.google.dev/t/remote-ssh-hangs-on-fedora-40-remote-hosts-wget2-spins-at-100-cpu-during-server-bootstrap/209966/1 "2026-12-06T03:37:16Z")

</div>

### 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:

```plaintext
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`):

```bash
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.
