Remote SSH: incomplete extraction is treated as an installed server, preventing recovery after upgrades
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 72/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- bash, linux, typescript
Research direction
Read extensions/open-remote-ssh/src/serverSetup.ts around lines 461–507, especially the installation guard and download/extraction branch. The issue includes a launcher-only fixture and reports that generateBashInstallScript fails twice; use that reproduction to inspect recovery behavior. Done means an incomplete installation is detected and reinstalled, with the requested server starting successfully.
Written by the indexing model from the issue text.
Description
System details
Positron and OS details
- Positron 2026.11.1 build 4; commit
e915bbd8bcb9a26b119ab8fbbec94db5bdf53265. - Code OSS 1.138.0.
- Client: Windows desktop, using bundled Remote SSH.
- Remote: RHEL Linux, x86_64, glibc 2.34. The affected home directory is NFS-backed.
Session details
The failure occurs before an R or Python session starts.
Describe the issue
Remote SSH has repeatedly stopped working after desktop upgrades. In the latest occurrence, a corrupt server archive had been partially extracted: bin/positron-server existed, but node, product.json, and out/server-main.js were missing.
On reconnect, the installer treated the presence of the launcher as a completed installation and skipped downloading/extracting the server. Every subsequent attempt failed at startup instead of repairing the incomplete installation.
This appears to be a partial-extraction recovery case related to #8848, which was closed as fixed. The current script does remove previous downloads, but that cleanup is inside the branch that only runs when the launcher is absent.
Relevant released source: installation guard and download/extraction branch.
Steps to reproduce the issue
This deliberately constructs the incomplete-installation state. It does not claim to reproduce the original download corruption. Use a test SSH connection; the normal installation is not modified.
-
Establish a working Remote SSH connection with the matching Positron build, so its server launcher is available on the Linux host.
-
On that host, copy only the genuine launcher into a separate temporary server-data directory:
commit=e915bbd8bcb9a26b119ab8fbbec94db5bdf53265 launcher="$HOME/.positron-server/bin/$commit/bin/positron-server" test -x "$launcher" || { echo "First install the matching server normally"; exit 1; } repro_dir="$(mktemp -d /tmp/positron-partial-install.XXXXXX)" mkdir -p "$repro_dir/bin/$commit/bin" cp -- "$launcher" "$repro_dir/bin/$commit/bin/positron-server" printf 'Temporary server-data directory: %s\n' "$repro_dir" -
In Windows Positron's user settings, set
remoteSSH.serverInstallPathfor the SSH alias used for the test. Substitute that alias and the directory printed above:"remoteSSH.serverInstallPath": { "<test-ssh-alias>": "<printed-temporary-directory>" } -
Connect to that SSH alias. The installer reports the launcher is already installed, then fails because the runtime and metadata are missing.
-
Reconnect. The same failure occurs; the incomplete installation is still not repaired.
Remove the test setting afterward. Only the temporary directory is disposable; there is no need to remove the normal .positron-server directory.
The corresponding released generateBashInstallScript was also invoked directly twice against a launcher-only fixture on local /tmp. Both attempts reported exitCode==1== and left the required files missing. This verifies the installer-side recovery failure independently of the NFS-backed home directory; it does not reproduce the upgrade/download event.
Expected or desired behavior
Detect an incomplete installation and reinstall the requested server automatically. A launcher file alone should not be sufficient evidence that extraction finished successfully.
Error messages and diagnostic evidence
Anonymized output from the controlled installer reproduction:
Server script already installed in <repro-dir>/server/bin/e915bbd8bcb9a26b119ab8fbbec94db5bdf53265/bin/positron-server
Error server did not start successfully
exitCode==1==
listeningOn====
serverCommit====
serverVersion====
The server log reports:
<repro-dir>/server/bin/e915bbd8bcb9a26b119ab8fbbec94db5bdf53265/bin/positron-server: line 22: <repro-dir>/server/bin/e915bbd8bcb9a26b119ab8fbbec94db5bdf53265/node: No such file or directory
In the original affected installation:
gzip -treportedinvalid compressed data--format violated.- The retained archive was 1,653,822,627 bytes, exactly three times the official CDN
Content-Lengthof 551,274,209 bytes. - A fresh download of the same release passed archive validation, contained the missing files, and restored server startup after replacement.
The reason the original archive became corrupt is not established. The threefold size is diagnostic evidence, not proof of a particular retry, proxy, or network bug.
Prepared with GPT-6.1 Sol through GitHub Copilot CLI 1.0.109, based on an actual reported failure and an isolated reproduction.
- Dominant language
- TypeScript
- Stars
- 4.4k
- Forks
- 207
- Avg merge
- 1d 16h
- Merged PRs (30d)
- 308
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from posit-dev/positron
-
area: assistant area: ui
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
accessibility area: plots area: ui
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
area: plots area: ui bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
area: kernels lang: r
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
posit-dev/positron#17575 · 2 comments ·
Maintainers usually reply within 1 day
-
Memory meter counts page cache as used memory under a cgroup limitPossibly taken @jmcphers claimed this 10 days ago. Openarea: workbench bug memory-use support
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
posit-dev/positron#17414 · 1 comment · 1 assignee ·
Maintainers usually reply within 1 day
All issues in posit-dev/positron
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Vessel9817/onion-site-template#512 ·
Maintainers usually reply within 1 day
-
nightly-tests
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
BlackBeltTechnology/pi-agent-dashboard#1256 ·
Maintainers usually reply within 1 day
-
approved
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
fritzprix/libr-agent#3266 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
better-auth/better-auth#13101 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day