You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
t3-golive: a failed W1 leaves the home free for an SSH launch once the run exits #530
Problem. A W1 that fails after its stop leaves T3 stopped and disabled on purpose: the home may be half-restored, and the remedy is to run the same back again. While the run is alive, the golive-gap-handoff change keeps upstream's update marker valid and holds the owner lock, so a desktop app's SSH launch waits. When the run exits, the marker stops being renewed and runs out within 60 s, and the process's owner lock goes with it. From then on the home is free, and the next SSH launch (packages/ssh/src/tunnel.ts: marker wait, then the home-owned loop) starts its own t3 serve on the half-restored home. A failed copy restore and a killed switch whose guard has not run yet have the same window.
Before the change this window was open all the time. Now it opens only after a failed or killed run, but those are exactly the runs whose home must not be served.
Proposal. On a failure that leaves T3 stopped on purpose, leave a small holder that keeps the home owned (upstream's launch then waits in its home-owned loop with no time limit), for example a transient user unit (the kit already runs one for the guard timer) holding userdata/server-owner.sqlite. It ends when a back or settle run takes the home over: the run stops it after taking the lock itself. status and check name it. A reboot drops it, which is fine, because the unit is disabled and nothing starts at boot.
Do not keep the marker valid forever instead: a desktop launch waits at most 60 s per marker and then falls through to the home-owned loop anyway, and a stuck marker would also hold off upstream's own update.
State question. A rerun of back must take the lock over from the holder without a gap (take it, then stop the holder). A holder left after the home was put right by hand must be named by status and stopped by settle. A second failed run must not start a second holder.
Activity
golive: keep the home owned after a W1 or switch that stops T3 ends (#…
golive: keep the home owned after a W1 or switch that stops T3 ends (#…
golive: keep the holder until T3 really runs; no holder when /proc/lo…
golive: keep the home owned after a W1 or switch that stops T3 ends (#…
golive: keep the holder until T3 really runs; no holder when /proc/lo…
golive: keep the home owned after a W1 or switch that stops T3 ends (#…
golive: keep the home owned after a W1 or switch that stops T3 ends (#…
golive: keep the home owned after a W1 or switch that stops T3 ends (#…
golive: keep the home owned after a W1 or switch that stops T3 ends (#…
golive: keep the home owned after a W1 or switch that stops T3 ends (#…