self update fails on Linux ARM64 because updater expects versioned asset name that is not published
Summary
happier self update fails on Linux ARM64 because the updater looks for a versioned release asset name that does not exist.
The updater currently expects:
happier-v0.2.12-linux-arm64.tar.gz
but the cli-stable GitHub release publishes:
happier-linux-arm64.tar.gz
This causes happier self update to fail with a missing release asset error even though a valid ARM64 release archive exists.
Environment
- OS: Linux
- Architecture: ARM64 / aarch64
- Happier CLI:
0.2.12 - Installation type: stable
- Daemon: systemd user service
- Release channel:
cli-stable
Reproduction
Running:
happier self update
### What happened (current behavior)
_No response_
### Expected behavior
`happier self update` should resolve the Linux ARM64 asset that is actually published for the selected release channel, download it successfully, verify it, install the new version, and switch the active CLI without requiring manual intervention.
For `cli-stable` on Linux ARM64, the updater should use the published asset:
`happier-linux-arm64.tar.gz`
rather than failing because it expects a different versioned filename.
### Reproduction steps
1. Install and run Happier CLI `0.2.12` on a Linux ARM64 / aarch64 system.
2. Confirm the installed version:
```bash
happier --version
Expected output:
0.2.12
3. Run the self-updater:
happier self update
4. Observe the failure:
- [✓] Resolving release metadata
Error: [release-assets] missing release asset: happier-v0.2.12-linux-arm64.tar.gz
5. Query the actual ARM64 assets published under the cli-stable release:
curl -fsSL https://api.github.com/repos/happier-dev/happier/releases/tags/cli-stable | grep -o '"browser_download_url": *"[^"]*"' | cut -d'"' -f4 | grep -Ei 'linux.*(arm64|aarch64)|(arm64|aarch64).*linux'
6. Observe that GitHub publishes:
https://github.com/happier-dev/happier/releases/download/cli-stable/happier-linux-arm64.tar.gz
https://github.com/happier-dev/happier/releases/download/cli-stable/linux-arm64.json
The updater expects happier-v0.2.12-linux-arm64.tar.gz, but the release publishes happier-linux-arm64.tar.gz.
### Severity
None
### Frequency
None
### Happier version
0.2.12
### Platform
linux-arm64
### Server version
_No response_
### Deployment type
self-hosted
### What changed recently?
_No response_
### Diagnostics ID
_No response_
### Additional context
_No response_
Thanks @thomashillman - the exact filename comparison pinpointed the failure.
We confirmed this is a rolling-release publication regression, not an ARM64 build problem. cli-stable kept the unversioned alias but dropped the signed immutable asset name that released 0.2.12 updaters and installers still resolve. The immutable ARM64 archive exists, and its bytes match the alias.
Commit b31312d8e fixes the canonical rolling asset plan to retain each immutable versioned payload and add the predictable unversioned alias. Coverage now exercises CLI, server, stack, web, desktop, and mobile naming plus the staging, rollback, corruption, and retry paths (29 tests).
The fix is integrated in source, but the current cli-stable release still needs to be re-promoted and verified before retrying. We are keeping this issue open through stable release validation.
Posted on behalf of @leeroybrun.
The stable CLI release has now been repaired. The rolling publisher regression was fixed in b31312d8, and the signed 0.2.12 immutable artifacts were reprojected to cli-stable without rebuilding them.
cli-stable now exposes both the versioned filenames used by already-installed updaters, including happier-v0.2.12-linux-arm64.tar.gz, and the unversioned stable aliases. GitHub reports identical SHA-256 digests for each versioned/alias pair. The targeted recovery run completed successfully: https://github.com/happier-dev/happier/actions/runs/34621324933
Could you retry the update on the affected Linux ARM64 installation? If it still fails, please share the new updater error and the currently installed CLI version.
Posted on behalf of @leeroybrun.
Same root cause also hits happier relay host install on Linux x64 (CLI 0.2.12 stable, WSL2 Ubuntu):
$ happier relay host install --mode user --yes
Error: [first-party-release] Failed to resolve release assets for happier-server (stable) from happier-dev/happier@server-stable. No GitHub token was configured; if the release repository is private, set HAPPIER_FIRST_PARTY_RELEASE_TOKEN, HAPPIER_GITHUB_TOKEN, or GH_TOKEN. Details: [release-assets] missing release asset: happier-server-v0.2.12-linux-x64.tar.gz
The server-stable release publishes happier-server-linux-x64.tar.gz (unversioned), while checksums-happier-server-v0.2.12.txt lists the file as happier-server-v0.2.12-linux-x64.tar.gz (same sha256). The error message also points users toward a GitHub token, which is misleading since the repo is public.
Workaround: download the unversioned tarball, verify it against the checksums file, extract it, and pass --server-binary <dir>/happier-server.
Thanks for adding the Linux relay-install example. CLI and server 0.2.16 publish the archive filenames used by self-update and relay installation, fixing the missing-download error on Linux ARM64 and x64.
Please reply or reopen with your component versions if this still happens after updating.
Posted on behalf of @leeroybrun.