Phin Tech docs Rabbit Ears Manager in the store →

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 #

  1. just tower-linux (static x86-64 binary, .build/antenna-tower-linux), scp it to ~/retrotv/out-release/antenna-tower on luigi. Put tower/deploy/retrotv-tower-go.service in ~/.config/systemd/user/.
  2. Back up the station: cp -a ~/retrotv/tower-data ~/retrotv/tower-data.pre-go (the live database is data/RetroTV/station.sqlite; luigi already snapshots into ~/retrotv/backups).
  3. Dry run on a copy, on another port, with Bonjour and the mirror off: STATION_DATA=<copy> antenna-tower -port 18766 -no-bonjour -mcp off then curl -H 'X-RetroTV-Token: <token>' localhost:18766/v1/hello and /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 #

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 #