Moving luigi from the Swift tower to the Go one
Never run both at once: they share station.sqlite, the R2 bucket and the
Bonjour name. Going back is the same steps reversed, and nothing is converted:
the Go tower reads and writes the Swift tower's files as they are.
Before #
just tower-linux(static x86-64 binary,.build/antenna-tower-linux),scpit to~/retrotv/out-release/antenna-toweron luigi. Puttower/deploy/retrotv-tower-go.servicein~/.config/systemd/user/.- Back up the station:
cp -a ~/retrotv/tower-data ~/retrotv/tower-data.pre-go(the live database isdata/RetroTV/station.sqlite; luigi already snapshots into~/retrotv/backups). - Dry run on a copy, on another port, with Bonjour and the mirror off:
STATION_DATA=<copy> antenna-tower -port 18766 -no-bonjour -mcp offthencurl -H 'X-RetroTV-Token: <token>' localhost:18766/v1/helloand/v1/vod/sources. Check the log's first line: the settings version should be the live station's.
Switch #
Downtime is fine, so the Swift services are stopped first, both of them: the tower and the control room (it runs the same jobs and also listens on 8765). Screens play from their own copy of the settings meanwhile.
systemctl --user stop retrotv-control-room retrotv-tower
systemctl --user disable retrotv-control-room # so it doesn't come back at boot
systemctl --user start retrotv-tower-go
systemctl --user enable retrotv-tower-go
journalctl --user -u retrotv-tower-go -f
Check #
- A TV still finds it (same Bonjour name,
_retrotv-relay._tcpon 8766) and plays; the Manager's Server pane shows the version and devices, and Errors/Reports answer. curl .../v1/hellosays"vod": true, "vodPlay": true.- On Demand opens with its categories and search (the catalog is read from
cache/RetroTV/vod-catalog.json). - A setting changed in the Manager shows on a TV (revisions continue from where the Swift tower stopped).
- With R2:
settings/fullin the bucket is rewritten on the first change, and an away device's outbox is taken in within 30 s (watchjournalctlformirror:lines).
If something is off #
systemctl --user stop retrotv-tower-go && systemctl --user start retrotv-tower retrotv-control-room
(and enable the control room again if it was disabled).
If settings were changed meanwhile they are in the same database, so they carry
back. Restore tower-data.pre-go only if the database itself is damaged
(the Swift tower's note on wiped settings applies: delete the epoch fact so clients resync).
Known differences #
-
On luigi,
avahi-browserun on luigi itself lists the service on every Docker bridge too (avahi's per-interface view; only the PTR is announced there). Machines on the LAN see one service that resolves toluigi.local:8766, andluigi.localto192.168.50.145alone (checked withdns-sd). -
The Go tower advertises with
brutella/dnssd, notavahi-publish; if luigi'savahi-daemonconflicts, run with-no-bonjourand keepavahi-publishfor the name. -
The jobs run inside the tower, so the Swift control room is retired at the switch (nothing is left for it to do); its MCP port (8765) now belongs to the Go tower.
Phin Tech docs
Rabbit Ears Manager in the store →