This guide is for a person who moves a Linux hands node from the old external Playwright unit (an
unauthenticated listener on 127.0.0.1:8794) to the managed browser that the daemon starts itself
(oab-computer browser install). It is the runbook of
requirements, section 2 with the commands
written out. The decisions behind it are in the ADR: D9 (a fresh profile,
the old one untouched), D10 (a person removes the leftovers), D13 (one host first, a one-week soak,
then the rest) and D14 (pw-mcp.sh is deprecated for one more minor release).
Read it once before you start. Every step has a command, a check and a way back.
- Not released. The managed tier is built through L5. The commands below need a release that
contains it (written
X.Y.Zhere). 0.12.0 and earlier do not contain it. The things that arrive with the first release containing L5 are marked "from that release" below: thelegacy_units,legacyandlegacy_listenerfields ofbrowser status, the deprecation notice ofpw-mcp.sh, the release smoke and the build-provenance attestation of the Linux tarballs. - Nothing has been cut over. Writing this guide did not change any host. The cutover is yours to perform, host by host, as below.
- Decided, not open. V2 (the listener rule) and D7 (the AppArmor profile) are decided by the owner. They are summarized under Decisions that shape this guide.
Hosts are described by what they run, never by name. Facts are collected in step 0, not assumed.
| Host | What it runs | Where MCP_UPSTREAM is |
The old browser unit | Data |
|---|---|---|---|---|
| A (new-style unit) | oab-computer.service, written by the 0.12.0 installer |
In oab-computer.service itself |
oab-computer-pw-mcp.service |
~/.local/oab-computer |
| B, C, D (old-style unit) | oab-computer.service |
In a drop-in file under oab-computer.service.d/ or oab-instance-mcp.service.d/ |
oab-pw-mcp.service |
~/.local/oab-instance-mcp/pw-mcp |
Requirement section 2 and D13 name two classes: one new-style host and the old-style hosts that "follow
together". The four existing hosts map to them: A is the class N host, and B, C and D are the three class O
hosts. A VM or any other host beyond these four is not covered by D13. It uses the class O procedure
only after the owner says when, not as part of the second wave. A host still running oab-instance-mcp.service (0.11 or
earlier) first needs Upgrading from 0.11; this guide starts after
that.
flowchart TB
pre["Before anything: a release with the managed tier is installed and verified on a throwaway account, M1 to M4 and the cutover rehearsal M8"]
a["Host A: steps 0 to 7"]
soak["Soak: one week of normal use on host A with no browser incident, old unit disabled and not deleted"]
rest["Hosts B, C and D together: steps 0 to 7 on each"]
soak2["Soak: one week on each, old units disabled and not deleted"]
clean["A person removes the leftovers, section Removing the leftovers"]
rb["Rollback, section Rollback"]
pre --> a
a -- "any check fails" --> rb
a -- "all checks pass" --> soak
soak -- "browser incident" --> rb
soak -- "no incident" --> rest
rest -- "any check fails on a host" --> rb
rest -- "all pass" --> soak2
soak2 -- "browser incident" --> rb
soak2 -- "no incident" --> clean
Within one host, the steps are these. Nothing changes the old setup before step 5, and a failed check anywhere ends in the rollback.
flowchart TB
s0["Step 0 Inventory, read only"]
s1["Step 1 Back up by copying, never moving"]
s2["Step 2 Get the new binary under a temporary name"]
s3["Step 3 Preflight"]
s4["Step 4 Side by side install and headless health check, the old unit keeps serving port 8794"]
stay["Stop here, nothing was cut over, the old setup is unchanged"]
s5["Step 5 Cutover window"]
c1["5.1 Disable and stop the old browser unit"]
c2["5.2 Remove the MCP_UPSTREAM line or the drop-in"]
c3["5.3 Put the new binary in place, daemon-reload, restart oab-computer.service"]
c4["5.4 browser signin if a login is needed"]
s6["Step 6 Verify: 32 tools, no listener on 8794, backend managed, still disabled after a new login"]
s7["Step 7 Kill test with kill -9 on the daemon"]
s8["Step 8 Soak for one week"]
rb["Rollback"]
s0 --> s1 --> s2 --> s3 --> s4
s4 -- "health check fails" --> stay
s4 -- "health check passes" --> s5
s5 --> c1 --> c2 --> c3 --> c4 --> s6
s6 -- "any check fails" --> rb
s6 -- "all checks pass" --> s7
s7 -- "a process survives" --> rb
s7 -- "passes" --> s8
Notation. Commands run on the host being moved, as the user that runs the daemon, in that user's
login session (over ssh, so that XDG_RUNTIME_DIR and the user manager are set). The old browser
unit has one name on host A and another on hosts B to D. A command that names it gives host A's name,
then hosts B to D's name after the #. Before the first use on a host, check that the unit exists:
Host A:
systemctl --user cat oab-computer-pw-mcp.service >/dev/null && echo "old unit: oab-computer-pw-mcp.service"Hosts B to D:
systemctl --user cat oab-pw-mcp.service >/dev/null && echo "old unit: oab-pw-mcp.service"The binary is ~/.local/oab-computer/oab-computer (not on PATH). Checks that call the daemon from
outside use the commands of Verify from another tailnet machine.
Record what the host really has. Nothing here changes anything. The file may hold your Tailscale login name, so it is created private and kept outside any repository.
umask 077
INV="$HOME/oab-cutover-inventory-$(date +%Y%m%d).txt"
{
echo "== date, architecture, glibc"; date -u; uname -m; ldd --version | head -n 1
echo "== AppArmor user namespace restriction"; cat /proc/sys/kernel/apparmor_restrict_unprivileged_userns 2>&1
echo "== units"; systemctl --user list-units 'oab-*' --all --no-pager; systemctl --user list-unit-files 'oab-*' --no-pager
echo "== unit files and drop-ins as systemd sees them"
for u in oab-computer.service oab-pw-mcp.service oab-computer-pw-mcp.service; do echo "-- $u"; systemctl --user cat "$u" 2>&1; done
echo "== files in the unit directory"; ls -laR ~/.config/systemd/user/ 2>&1
echo "== port 8794"; ss -ltnp 'sport = :8794'
echo "== legacy directories"
du -sh ~/.local/oab-computer/pw-mcp ~/.local/oab-computer/pw-profile ~/.local/oab-computer/pw-output \
~/.local/oab-instance-mcp/pw-mcp ~/.cache/ms-playwright 2>&1
echo "== disk"; df -h ~
echo "== seat socket"; ls "/run/user/$(id -u)" 2>&1 | grep -E '^wayland-[0-9]+$'
echo "== status"; ~/.local/oab-computer/oab-computer browser status 2>&1
} > "$INV" 2>&1
less "$INV"Verify. The file names the old unit, says where the MCP_UPSTREAM line is (inside
oab-computer.service on host A, in a drop-in file on B to D), shows whether port 8794 is held, and
holds the architecture, glibc version and free disk. If oab-computer.service is missing and
oab-instance-mcp.service is present, stop: that host is on 0.11 or earlier and first follows
Upgrading from 0.11. The 0.12.0 binary has no browser command,
so the last line of the file is an error message there; that is expected at this step.
Roll back to here. Nothing to undo. Delete the inventory file when you no longer need it.
The backup directory is a sibling of the installer's playwright/ directory, never inside it, so the
installer never mistakes it for its own data. The profile is not copied (D9).
BK="${XDG_DATA_HOME:-$HOME/.local/share}/oab-computer/backup-$(date +%Y%m%d)"
mkdir -p "$BK" && chmod 700 "$BK"
cp -a ~/.local/oab-computer/oab-computer "$BK/oab-computer.prev"
cp -a ~/.config/systemd/user/oab-computer.service "$BK/"
for f in ~/.config/systemd/user/oab-pw-mcp.service ~/.config/systemd/user/oab-computer-pw-mcp.service \
~/.local/oab-computer/pw-config.json; do
if [ -e "$f" ]; then cp -a "$f" "$BK/"; fi
done
for d in ~/.config/systemd/user/oab-computer.service.d ~/.config/systemd/user/oab-instance-mcp.service.d; do
if [ -d "$d" ]; then cp -a "$d" "$BK/"; fi
done
(cd "$BK" && find . | sort)Verify. The listing shows oab-computer.prev, oab-computer.service, the old unit file and, on
B to D, the drop-in directory with the file that holds MCP_UPSTREAM. Write the $BK path down: the
rollback uses it (BK=<that path>).
Roll back to here. Nothing to undo. The backup stays; the installer never deletes it.
Do not run install-linux.sh here: it replaces the daemon binary and restarts the daemon, which
is step 5. Download, check and unpack the release, and copy the binary beside the old one.
V=X.Y.Z # a release that contains the managed tier
A=$(dpkg --print-architecture) # arm64 or amd64
mkdir -p ~/oab-cutover-dl && cd ~/oab-cutover-dl
curl -fsSLO "https://github.com/openabdev/openab-computer/releases/download/v$V/oab-computer-$V-linux-$A.tar.gz"
curl -fsSLO "https://github.com/openabdev/openab-computer/releases/download/v$V/oab-computer-$V-linux-$A.tar.gz.sha256"
sha256sum -c "oab-computer-$V-linux-$A.tar.gz.sha256"
# Optional, beside the checksum, from that release (the 0.12.x tarballs carry no attestation):
# gh attestation verify "oab-computer-$V-linux-$A.tar.gz" --repo openabdev/openab-computer
tar xzf "oab-computer-$V-linux-$A.tar.gz"
install -m 755 "oab-computer-$V-linux-$A/oab-computer" ~/.local/oab-computer/oab-computer.new
~/.local/oab-computer/oab-computer.new browser planVerify. sha256sum -c prints OK. browser plan prints what an install downloads and where it
goes, and writes nothing. The attestation check is optional and does not make the download safe (ADR
D12); the checksum is the required one. The old daemon is still running the old binary.
Roll back to here. rm ~/.local/oab-computer/oab-computer.new (and ~/oab-cutover-dl if you want
the space).
~/.local/oab-computer/oab-computer.new browser preflight
~/.local/oab-computer/oab-computer.new browser preflight --root-actionsThe first command checks the host and exits 0 when nothing blocks. A blocker exits 1 and prints
browser: preflight_failed class=<class> (musl, glibc_too_old, disk_full, libraries_missing
or unsupported_platform). The second prints only the root actions, one command, a tab and a reason
per line. This tool never runs them. Read each one, then run the ones you accept yourself, as root.
On a host with /proc/sys/kernel/apparmor_restrict_unprivileged_userns at 1 (Ubuntu 24.04) one of
them loads the path-scoped AppArmor profile (ADR D7: a single glob profile for your data path, kept as
decided; see the residual risk).
Verify. preflight exits 0 after you ran what you accepted. Run it again to confirm.
Roll back to here. Libraries and fonts you installed are harmless and stay. If you loaded the
AppArmor profile and want it gone (needs root; ID in the commands is the short hash in the file name that preflight
printed):
sudo apparmor_parser -R /etc/apparmor.d/oab-computer-chromium-ID && sudo rm /etc/apparmor.d/oab-computer-chromium-ID~/.local/oab-computer/oab-computer.new browser install
~/.local/oab-computer/oab-computer.new browser status
ss -ltnH 'sport = :8794' | wc -l
systemctl --user is-active oab-computer-pw-mcp.service # host A; hosts B to D: oab-pw-mcp.serviceinstall downloads the pinned set, checks every size and SHA-256, and runs the headless health check
on a throwaway profile. It does not touch the seat, the old profile or the old unit.
Verify. install exits 0 and ends with installed <id>. status shows state: installed and
pins_match: true. The old listener is still there: wc -l prints 1 or more, and the old unit is
active (host A oab-computer-pw-mcp.service, hosts B to D oab-pw-mcp.service). From the first release containing L5, status also shows legacy_listener: 8794 and a
legacy: line that lists the old directories with sizes; the profile reads holds_cookies. Do not
continue unless the install succeeded. If it fails, nothing was cut over and the old setup is
unchanged.
Roll back to here. The old daemon and the old unit never noticed the install:
~/.local/oab-computer/oab-computer.new browser removeremove deletes only what the installer created (it prints left in place: for anything else) and
refuses while a managed browser is running (browser_running). It restores nothing, because nothing
was changed.
From 5.1 to 5.3 the daemon has no browser. Do them together. Host A first; B to D only after the soak.
systemctl --user disable --now oab-computer-pw-mcp.service # host A; hosts B to D: oab-pw-mcp.serviceA plain stop is not enough: the unit comes back at the next login or boot with its unauthenticated
listener.
Verify.
systemctl --user is-enabled oab-computer-pw-mcp.service # host A; hosts B to D: oab-pw-mcp.service. Prints disabled (exit status 1 is normal for a disabled unit)
ss -ltnH 'sport = :8794' | wc -l # prints 0Roll back to here. systemctl --user enable --now oab-computer-pw-mcp.service (host A; hosts B to D: oab-pw-mcp.service).
The backup of step 1 must exist. Delete nothing else.
Host A, the line sits inside oab-computer.service:
grep -n 'MCP_UPSTREAM' ~/.config/systemd/user/oab-computer.service
sed -i '/^Environment=MCP_UPSTREAM=browser=http:\/\/127\.0\.0\.1:8794\/mcp[[:space:]]*$/d' ~/.config/systemd/user/oab-computer.service
grep -c 'MCP_UPSTREAM' ~/.config/systemd/user/oab-computer.serviceIf the last command does not print 0, the line has another form (several upstreams, an edit of
yours): remove it by hand with an editor, keeping every other line.
Hosts B to D, the line sits in a drop-in file. List every active assignment, with its file and line:
grep -nE "^[[:space:]]*Environment=(['\"]|.*[[:space:]'\"])?MCP_UPSTREAM=" \
~/.config/systemd/user/oab-computer.service.d/*.conf \
~/.config/systemd/user/oab-instance-mcp.service.d/*.conf 2>/dev/nullComments, UnsetEnvironment= and other variables are not matched. A # or ; in the middle of a line is
an ordinary character (systemd reads them as comments only at the start of a line), so
Environment=FOO=1 # MCP_UPSTREAM=... is matched and counted. For each file printed, run cat FILE
and decide:
- It is the dedicated drop-in only if the
dropin_is_oursblock below accepts it. That block accepts a line only when it is blank, or its first non-blank character is#(leading spaces and tabs are allowed, and a comment may sit anywhere in the file). Besides those lines, the file must have exactly one[Service]header at the start of a line, and exactly oneEnvironment=MCP_UPSTREAM=browser=http://127.0.0.1:8794/mcpline at the start of a line; trailing spaces are allowed on those three lines. A line that starts with;is not accepted, so a file that contains one is kept and reported. Keeping is the safe direction: edit it by hand if you want it removed. The file is identified by its content, not by who wrote it (see the owner decision below). - It holds any other setting: keep the file and delete only the line,
sed -i '/^Environment=MCP_UPSTREAM=browser=http:\/\/127\.0\.0\.1:8794\/mcp[[:space:]]*$/d' FILE. If the line has another form (several variables, another URL), edit it by hand and keep everything else.
Owner decision: content-based removal (option A). The owner decided that the drop-in is removed by
its content, not by who wrote it, and accepted that rule. No installer in this repository writes an
MCP_UPSTREAM drop-in, so a hand-written file with exactly the dedicated shape is removed too. A file
that differs in any way is kept and reported.
Run this block once, after the bullets above. It removes a drop-in only when the file has exactly the dedicated shape and is not a link. It keeps every other file and says why:
# Removes only the dedicated MCP_UPSTREAM drop-in (see step 5.2). Anything else is kept and reported.
dropin_is_ours() {
[ -f "$1" ] && [ ! -L "$1" ] || return 1
awk '
/^[[:space:]]*$/ || /^[[:space:]]*#/ { next }
/^\[Service\][[:space:]]*$/ { svc++; next }
/^Environment=MCP_UPSTREAM=browser=http:\/\/127\.0\.0\.1:8794\/mcp[[:space:]]*$/ { line++; next }
{ bad = 1 }
END { exit (bad || svc != 1 || line != 1) }
' "$1"
}
for f in ~/.config/systemd/user/oab-computer.service.d/*.conf ~/.config/systemd/user/oab-instance-mcp.service.d/*.conf; do
[ -e "$f" ] || continue
grep -q 'MCP_UPSTREAM=' "$f" || continue
if dropin_is_ours "$f"; then rm -f -- "$f"; echo "removed $f"; else echo "kept $f: not exactly the dedicated drop-in, edit it by hand"; fi
doneA drop-in the grep did not list may belong to something else. Do not delete it, and do not delete the
.d/ directory.
A unit that carries no installer marker (# oab-computer-installer:) is never rewritten by the
installer, which leaves the text it would have written beside it as oab-computer.service.proposed.
If one exists, review it, check that its BIND port matches the port tailscale serve maps (it carries
the --port of the run that wrote it, not the kept unit's), and adopt it only then:
mv ~/.config/systemd/user/oab-computer.service.proposed ~/.config/systemd/user/oab-computer.service.
It has no MCP_UPSTREAM line and carries the marker, so later installer runs keep the unit current.
This guide never creates that file.
Verify. The grep -nE above prints nothing, and grep -c 'MCP_UPSTREAM=' ~/.config/systemd/user/oab-computer.service
prints 0 on host A.
Roll back to here. Restore from the backup (this is the same as the rollback below, steps 3 and 4).
mv -f ~/.local/oab-computer/oab-computer.new ~/.local/oab-computer/oab-computer
systemctl --user daemon-reload
systemctl --user restart oab-computer.service
systemctl --user is-active oab-computer.service
curl -fsS 127.0.0.1:8795/healthzRenaming over a running executable is allowed on Linux; the restart starts the new one. If the unit's
BIND port is not 8795, use that port in the curl. The daemon chooses its browser backend when it
starts, which is why the restart is needed.
Verify. is-active prints active and healthz answers.
Roll back to here. Follow the Rollback section from step 1; the binary rollback uses
oab-computer.prev.
The managed browser starts with a fresh profile (D9). Nothing is copied from the old one, and no
command in this guide copies cookies. Run it over ssh -t from your machine:
ssh -t <host> '~/.local/oab-computer/oab-computer browser signin'It opens a window on the node's seat on the persistent profile and waits for Enter. See Sign in for the VNC route on a headless seat.
Verify. A later browser call is signed in to the site you logged in to.
Roll back to here. Follow the full Rollback section, with BK set to the backup directory of
step 1. browser remove alone is not a rollback: it deletes the new profile, and the old unit, the drop-in
and the binary stay as they are until that section restores them.
Run this after 5.4. The token and the URL are those of
Verify from another tailnet machine; run the
curl lines from another machine on your tailnet.
If a browser signin window is still open, browser status shows unix_outside>0 result=fail. That is a false
alarm that fails closed; close the sign-in window and run status again.
TOKEN=$(ssh <host> 'cat ~/.config/oab-computer/token')
U=https://<host>.<tailnet>.ts.net:8444
H='Content-Type: application/json'
# 1. the tool list: prints 32 (the browser_* names)
curl -s -X POST $U/mcp -H "Authorization: Bearer $TOKEN" -H "$H" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}' \
| python3 -c 'import sys,json;n=[t["name"] for t in json.load(sys.stdin)["result"]["tools"]];print(sum(x.startswith("browser_") for x in n))'
# 2. a navigation: prints (False, False)
curl -s -X POST $U/mcp -H "Authorization: Bearer $TOKEN" -H "$H" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"browser_navigate","arguments":{"url":"about:blank"}}}' \
| python3 -c 'import sys,json;d=json.load(sys.stdin);print(("error" in d, d.get("result",{}).get("isError", False)))'
# 3. which backend serves: prints the browser object
curl -s -X POST $U/mcp -H "Authorization: Bearer $TOKEN" -H "$H" \
-d '{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"sys_info","arguments":{}}}' \
| python3 -c 'import sys,json;d=json.load(sys.stdin);print(json.loads(d["result"]["content"][0]["text"])["browser"])'Then on the host, while or just after the browser ran:
ss -ltnH 'sport = :8794' | wc -l
~/.local/oab-computer/oab-computer browser statusVerify.
- The tool count is
32, the navigation prints(False, False), andsys_infoshowsbackend: managedwith acontainmentofsystemdorsystemd+mountand adisplayofheadedorheadless. ssprints0: nothing listens on 8794.browser statusshowslisteners: tcp=0 udp=0 unix=2 unix_outside=0 tmpdir=ok result=passwhile the browser runs (nonebefore its first start). Anything withresult=failis a failure (V2): a TCP or UDP listener, a Unix listener outside the child's private directory, or that directory not being0700or not yours.browser statusthen exits1, so a script can test it. Runstatusin the daemon's own login session soXDG_RUNTIME_DIRmatches; without it a healthy host can report a falseresult=fail, andstatussays so on stderr. From the first release containing L5,legacy_listener: none.- End your login session and log in again, or reboot. Then
systemctl --user is-enabled oab-computer-pw-mcp.service(host A; hosts B to D:oab-pw-mcp.service) printsdisabledand thesscheck still prints0. With linger on, the daemon survives the logout.
If any check fails, the host is not cut over: use the Rollback.
Hosts A and B are enough to cover both classes; run it on every host if you like. Start a browser, kill
the daemon with SIGKILL, and check that nothing from the install directory survives and that the
restarted daemon answers.
# start a browser first (check 2 of step 6), then:
D="${XDG_DATA_HOME:-$HOME/.local/share}/oab-computer"
pid=$(systemctl --user show -p MainPID --value oab-computer.service)
case "$pid" in ''|*[!0-9]*|0|1) echo "no daemon main PID ($pid); stop and investigate" ;; *) kill -9 "$pid" ;; esac
sleep 10
for p in /proc/[0-9]*; do e=$(readlink "$p/exe" 2>/dev/null) || continue
case "$e" in "$D"/playwright/*) echo "SURVIVOR ${p#/proc/} $e" ;; esac; done
systemctl --user is-active oab-computer.service
curl -fsS 127.0.0.1:8795/healthzVerify. No SURVIVOR line, active, and healthz answers. Repeat check 1 and 2 of step 6 once.
The unit restarts the daemon by itself (Restart=always, RestartSec=2). The browser stops with the
daemon because it runs as a transient unit bound to it; the time Chromium takes to exit after
SIGKILL (V3) is informational, and the stop guarantee does not depend on it.
Roll back to here. A survivor, or a daemon that does not come back, is a failure: use the
Rollback. systemctl --user stop 'oab-browser-*.service' clears a stray browser unit.
Leave the old unit disabled but not deleted (host A oab-computer-pw-mcp.service, hosts B to D oab-pw-mcp.service), and the legacy directories in place, for one week of normal
use with no browser incident (D13). Check now and then:
systemctl --user is-active oab-computer.service
~/.local/oab-computer/oab-computer browser status # state: installed, refusal: none
journalctl --user -u oab-computer --since '7 days ago' --no-pager | grep 'browser:'refusal should stay none, and the journal lines carry fixed classes only. After a week with no
browser incident on host A, do steps 0 to 7 on hosts B to D together, then soak each for a week. A
browser incident on any host sends that host to the Rollback and pauses the others.
Roll back to here. The Rollback works for as long as the old units are not deleted.
Use it at any point before the old units are deleted: a failed check, or an incident during the soak.
Set BK to the backup directory of step 1.
flowchart TB
start["A check failed, or an incident happened, and the old units are not deleted yet"]
r1["1 Stop the transient browser unit if present, then stop oab-computer.service"]
r2["2 Optional, oab-computer browser remove to free disk, it restores nothing"]
r3["3 Restore the backed up daemon unit and drop-in, put oab-computer.prev back as the binary, daemon-reload"]
r4["4 Enable and start the old browser unit, then start oab-computer.service"]
r5["5 Verify as in step 6, expecting a listener on 8794"]
start --> r1 --> r2 --> r3 --> r4 --> r5
-
Stop the browser and the daemon:
systemctl --user stop 'oab-browser-*.service' systemctl --user stop oab-computer.service -
Optional, to free disk. It restores nothing:
~/.local/oab-computer/oab-computer browser removeIf step 5.3 had not run yet, that path is still the 0.12.0 binary, which has no
browsercommand: use~/.local/oab-computer/oab-computer.newinstead, or skip this step. -
Restore the daemon unit, the drop-in and the binary from the backup, then reload:
BK="${XDG_DATA_HOME:-$HOME/.local/share}/oab-computer/backup-YYYYMMDD" # the directory step 1 created cp -a "$BK/oab-computer.service" ~/.config/systemd/user/ for d in oab-computer.service.d oab-instance-mcp.service.d; do if [ -d "$BK/$d" ]; then cp -a "$BK/$d" ~/.config/systemd/user/; fi done install -m 755 "$BK/oab-computer.prev" ~/.local/oab-computer/oab-computer systemctl --user daemon-reload
If step 5.3 had not run yet, the old binary is still in place;
installover it is harmless.pw-mcp.shwas never touched, so the old unit still finds its script. -
Start the old unit and the daemon (host A
oab-computer-pw-mcp.service; hosts B to Doab-pw-mcp.service):systemctl --user enable --now oab-computer-pw-mcp.service # host A; hosts B to D: oab-pw-mcp.service systemctl --user start oab-computer.service
-
Verify as in step 6, expecting the old behavior:
ss -ltnH 'sport = :8794' | wc -lprints1or more, and the tool list shows 32browser_*names. The restored 0.12.0 binary has nobrowserobject insys_info.
If the new binary stays but the managed tier misbehaves. Set OAB_BROWSER=off in a drop-in and
restart. With a managed install that means no browser_* tools at all: the router ignores a stale
MCP_UPSTREAM browser= line, because a managed install wins over it (D5), so OAB_BROWSER=off is not a
return to the old external unit, on a host that has not reached step 5 either. (OAB_BROWSER=off with
nothing installed and a MCP_UPSTREAM browser= line still serves that line as external.) To go back
to the external path, set MCP_BROWSER_BACKEND=external as the explicit trust act. External mode needs
the MCP_UPSTREAM=browser=... line (still there before step 5, removed in step 5) and the old unit
(running before step 5, stopped in step 5). After step 5, restore both from the backup, start the old
unit, and restart the daemon.
There is none, on purpose (D9). The managed browser starts with a fresh profile under
${XDG_DATA_HOME:-$HOME/.local/share}/oab-computer/playwright/profile/, and you sign in again with
browser signin (step 5.4). The old profile, ~/.local/oab-computer/pw-profile, holds the old cookies
and stays where it is. From the first release containing L5, browser status lists it in legacy:
with its size and holds_cookies. No command here copies or moves cookies.
Only a person does this, after the soak, from the list that browser status prints (from the first
release containing L5) or from your step 0 inventory. The installer never deletes any of it, and
browser remove never touches the old locations (D10). This section is the one removal procedure for
the old browser setup. The setup guide
points here and repeats none of these commands.
-
Disable and delete the old unit files, then reload. No root. Step 5.2 owns the drop-in: it already removed the dedicated drop-in file, or only the
MCP_UPSTREAMline from a shared one, and the backup from step 1 keeps the original for the rollback. As step 5.2 says, the block identifies a drop-in by its content, so a hand-written file of the same shape is removed too. If you skipped the drop-in part of step 5.2, run the block in step 5.2 first, then thedaemon-reloadbelow. That block is the only copy of the drop-in rule; do not paste a second one here.Then unload and delete the old unit files:
for u in oab-pw-mcp.service oab-computer-pw-mcp.service; do if systemctl --user cat "$u" >/dev/null 2>&1; then systemctl --user disable --now "$u"; fi done rm -f ~/.config/systemd/user/oab-pw-mcp.service ~/.config/systemd/user/oab-computer-pw-mcp.service systemctl --user daemon-reload
-
Delete the old directories, after looking inside: the old profile holds cookies. No root. Check each path against
browser statusfirst;rm -rfcannot be undone:du -sh ~/.local/oab-computer/pw-mcp ~/.local/oab-computer/pw-profile ~/.local/oab-instance-mcp/pw-mcp rm -rf ~/.local/oab-computer/pw-mcp ~/.local/oab-computer/pw-profile ~/.local/oab-instance-mcp/pw-mcp rm -f ~/.local/oab-computer/pw-config.json ~/.local/oab-computer/pw-mcp.sh rm -rf ~/.cache/ms-playwright # only if nothing else of yours uses Playwright's cache
~/.local/oab-computer/pw-outputis listed bystatustoo: look at it, then remove it the same way. -
Unload and delete the old AppArmor profile, in this order. Needs root:
sudo apparmor_parser -R /etc/apparmor.d/playwright-chromium && sudo rm /etc/apparmor.d/playwright-chromiumThe profile of the managed browser is a different file,
/etc/apparmor.d/oab-computer-chromium-<id>, and stays. A host that ran a pre-releasemainbuild may also have an unsuffixed/etc/apparmor.d/oab-computer-chromium. No release shipped it, so remove it the same way (sudo apparmor_parser -Rit, thensudo rmit). -
Delete the old Chromium policy file. Needs root:
sudo rm /etc/chromium/policies/managed/oab-computer.json(0.11-era installers named itoab-instance-mcp.json; remove that one the same way if it is there). -
Decide on the
.proposedfiles that an earlier installer run may have left. No root. Review~/.config/systemd/user/oab-computer.service.proposed(step 5.2 says how to adopt it) and either adopt it or delete it. Delete~/.config/systemd/user/oab-seat.service.proposedthe same way. The installer never adopts or removes either file.
The installer, browser remove, browser status and this guide's scripts delete none of these. Each
is yours to remove, or to keep:
| What | Why it stays |
|---|---|
The old units oab-pw-mcp.service and oab-computer-pw-mcp.service, and the backup copy of the drop-in from step 1 |
The rollback needs them until you decide to remove them. |
~/.local/oab-computer/pw-mcp, pw-output, pw-config.json, pw-mcp.sh and ~/.local/oab-instance-mcp/pw-mcp |
The old browser's files. |
~/.local/oab-computer/pw-profile |
It holds cookies; look first. |
~/.cache/ms-playwright |
Playwright's own cache; another tool of yours may use it. |
| The old AppArmor profile and the Chromium policy file | Root-owned. |
The backup directory .../oab-computer/backup-<date>/ and oab-computer.prev in it |
The rollback source. Keep it until the next release has run well. |
oab-computer.service.proposed and oab-seat.service.proposed |
The installer never removes or adopts them. |
The ~/oab-cutover-dl and the inventory file from this guide |
Yours. |
poc/reverse-attach-linux/pw-mcp.sh (the script behind the old unit) stays in the tarball for one more
minor release so that a binary rollback has a script to restore, and is removed after that (ADR D14,
tracked in #141). From the first release
containing L5 it carries a DEPRECATED header and prints one notice on stderr each time it starts,
but only the copy in the tarball has that. The installer does not copy pw-mcp.sh and this guide does not replace the copy at ~/.local/oab-computer/pw-mcp.sh, so an old unit keeps running the old copy and its journal shows no notice. Its launch arguments are unchanged.
The installer no longer writes the unit. The script opens an unauthenticated listener on
127.0.0.1:8794 that any local user can reach and that serves browser_run_code_unsafe, which is why
this guide exists.
Both are decided by the owner; neither is reopened here.
- V2, listeners. The managed tree opens no TCP or UDP socket. It holds two Unix listening sockets
(Playwright's browser socket and Chromium's
SingletonSocket) inside the child's private per-run0700directory, which is accepted, and nothing else is.browser statusand the release smoke fail on any other listener, and on a directory that is not mode0700or not the daemon's. The residual path: a process of the same user can connect to those sockets and drive the managed browser, as it can already read the profile directory. Another local user and a web page cannot reach them. The V2 gate is blocking, and each release measures it on amd64 and arm64. - D7, the AppArmor profile. The single path-scoped glob profile that
preflightprints is kept as built. Its residual risk: the path is in your own data directory, so code running as you could place a file namedchromethere and run it withusernsallowed. That needs code execution as you first and returns only the unprivileged user namespace. Not to be confused with the ADR's other D7 rule, that the installer never runs root actions on its own.
Support follows ADR D16: Ubuntu 22.04 and 24.04 on amd64 and arm64 have automated release smoke cells;
Debian 12 has a container job on both architectures; Debian 12 hosts and Raspberry Pi OS hardware get
a manual run per release, recorded in docs/release-records/linux-VERSION.md. The table with the
current state is Supported systems. A row is "tested" only when its
record says so; the glibc rule makes a distribution supported without being run.