Skip to content

Repository files, collaboration, releases and project activity.

ARCHFORGE HISTORY

Blame · HOTFIX-ADMIN-1.0.1.md

Branch main · the Commit author is not necessarily a verified ArchForge account.

f1897d33c0archadmin2026-10-111 # ArchForge External Status 1.0.1 — Admin-wizard hotfix
f1897d33c0archadmin2026-10-112 
f1897d33c0archadmin2026-10-113 This fixes a problematic interaction between Node.js `readline` and the old `stty -echo` password prompt. It replaces the password prompt with a silent-output TTY reader, so the password is not echoed while typed.
f1897d33c0archadmin2026-10-114 
f1897d33c0archadmin2026-10-115 ## Restore admin setup after the v1.0.0 installer stopped midway
f1897d33c0archadmin2026-10-116 
f1897d33c0archadmin2026-10-117 From your **updated Git checkout** on your **Debian 13 status VPS**, while logged in as root:
f1897d33c0archadmin2026-10-118 
f1897d33c0archadmin2026-10-119 ```bash
f1897d33c0archadmin2026-10-1110 cd ~/archforge-external-status
f1897d33c0archadmin2026-10-1111 bash ./recover-admin.sh
f1897d33c0archadmin2026-10-1112 ```
f1897d33c0archadmin2026-10-1113 
f1897d33c0archadmin2026-10-1114 If you are using a normal sudo user, use `sudo bash ./recover-admin.sh` instead. This command only replaces the installed CLI (admin wizard), then resumes admin creation. It **does not modify** `/etc/archforge-status/status.env`, existing admin accounts, or `/var/lib/archforge-status/status.db`; it does **not restart** your service.
f1897d33c0archadmin2026-10-1115 
f1897d33c0archadmin2026-10-1116 **IMPORTANT:** First upload the v1.0.1 project changes to your ArchForge Git repository, then run `git pull --ff-only` in your existing checkout, or upload/copy the files `src/cli.js` and `recover-admin.sh` into the checkout. You do **not** need to run `install.sh` again, and do **not** run `update.sh` as root. This dedicated recovery command works as root.
f1897d33c0archadmin2026-10-1117 
f1897d33c0archadmin2026-10-1118 If a previous admin exists, the CLI prints `An admin already exists` and leaves it untouched. When you see `New admin password`, type at least 12 characters and press Enter. **No characters, bullets, or asterisks will appear while typing**. Repeat when asked, then register the displayed TOTP secret with your authenticator and enter its six-digit code. Do not publish the secret or terminal screenshot showing it.
f1897d33c0archadmin2026-10-1119 
f1897d33c0archadmin2026-10-1120 ## Installations starting from 1.0.1
f1897d33c0archadmin2026-10-1121 
f1897d33c0archadmin2026-10-1122 If you run `sudo ./install.sh` on a server where External Status is already running, the script now invokes recovery only (no package reinstallation). Fresh installs use the fixed TTY prompt automatically.
f1897d33c0archadmin2026-10-1123 
f1897d33c0archadmin2026-10-1124 To check the service:
f1897d33c0archadmin2026-10-1125 
f1897d33c0archadmin2026-10-1126 ```bash
f1897d33c0archadmin2026-10-1127 systemctl is-active archforge-status
f1897d33c0archadmin2026-10-1128 curl -fsS http://127.0.0.1:3000/healthz
f1897d33c0archadmin2026-10-1129 ```
f1897d33c0archadmin2026-10-1130 
f1897d33c0archadmin2026-10-1131 You can access the admin login at `https://status.archforge.nl/admin/login` after DNS, HTTPS and the service are working.
f1897d33c0archadmin2026-10-1132 
f1897d33c0archadmin2026-10-1133 ## Security note
f1897d33c0archadmin2026-10-1134 
f1897d33c0archadmin2026-10-1135 The v1.0.0 prompt could **display passwords in terminal logs** while typing. If you typed a real password at that prompt, use a **new, unique admin password** and do not reuse the old one elsewhere. If it was reused, change it in the other accounts as well.