Updates

Stable, nightly and staff channels, and when Sikemux installs an update.

Edit on GitHub

On a Mac, on Windows and on Linux, Sikemux tells you when a new build is out. On stable it installs it when you ask; on nightly and staff it installs it by itself once you are idle. Choose how new under Release channel, and when to install, in Settings → About → Updates:

ChannelWhat you get
StableThe latest signed release
NightlyThe newest signed build, prerelease or stable
StaffEach signed build of main the moment it is published, about half an hour before nightly

Everyone can choose Stable or Nightly. Staff is for the people who make Sikemux: it is a third choice only on an account marked as staff, and it turns on features still being tried, before anyone else gets them. A staff account on Nightly stays on nightly. The account sheet on the phone says staff beside the version.

When an update is out, the foot of the side rail says so, then shows how its download and install are going.

Install updates automatically picks when it goes in:

  • Off, the default on stable: click the rail’s note for the release’s notes and Install. Nothing downloads or installs, and Sikemux never restarts, until you click it.
  • On, the default on nightly and staff: Sikemux installs the update as soon as it is found, and restarts into it once you have left the keys for 10 minutes. Agents in the middle of a turn don’t hold it up: their terminals and chats carry over the restart. The rail’s note shows Restart to update while it waits for you, so you can restart sooner. On Windows, where the installer replaces the whole app, an update that goes in by itself still waits until no agent is in a turn.

After a stable release installs, What’s New opens with its notes. After a nightly or staff build, it waits: a quiet What’s new row above the account in the side rail opens it, listing every change you’d notice since the build you last read, or Nothing you’d notice changed when there is none. What’s New credits everyone who worked on a release, with how many of its commits each made.

Terminals and chats carry on through an update. When you click Install, a chat in the middle of a request holds the update up for at most two minutes. After that, the update goes ahead, and that chat stops and picks up again on its session. Once the update is in place, the windows restart to load it, waiting until you pause typing. Hover the rail’s note to see which version you run and when it took over.

Sikemux looks for an update every half hour, every five minutes on the nightly channel, or every minute on staff, and Check now looks straight away. When a check fails, such as while you are offline, Last checked says why.

On a Mac, Sikemux keeps the version it replaced until the new one has run for half a minute. If the new core stops before then, Sikemux puts the previous version back by itself and opens it again. Chats pick up again on their sessions; terminals and tasks that were running stop. A notice says which update was undone and why, and that release is not offered again; the next one is.

If Sikemux’s servers stop working with the version you have, Update Sikemux covers the window. Remote access and your account stay off until you update; you can also quit from there. A Mac on Sikemux 0.6.2 or older has to update before it can sign in.

Windows

The Windows app updates from its channel’s feed, as the Mac app does. The Sikemux service installs each update in the background, with no administrator prompt, and opens the app again. Other programs that have its files open stay open.

Linux

The .deb, the Arch package and the AppImage update like the Mac app, with no sudo after the first install: the core hands each signed release to Sikemux’s update service, sikemux-update.socket, which lays it out under /usr/local/lib/sikemux beside the one before and switches to it, the app and the core together. If the new release fails to start, both go back to the one before. A window left open when the core has moved on to a newer release asks you to restart it.

An install without the update service, such as one from before it shipped, updates by hand. The .deb adds Sikemux’s apt repository for its channel, so it updates with the rest of the system. When a new release is out, Settings → About shows it with Copy command, which copies apt’s line:

sudo apt update && sudo apt install --only-upgrade sikemux

When the .deb’s repository is for the other channel, such as after you choose nightly in Settings, the copied line is the installer’s instead, and the nightly package it installs moves the repository to nightly:

curl -fsSL https://sikemux.com/install | sh -s -- --app

On the nightly channel, the line sets SIKEMUX_CHANNEL=nightly before sh.

Without the update service, on Arch Linux, pacman owns the app and Sikemux never replaces its files. On x86_64 the stable installer adds Sikemux’s signed repository to /etc/pacman.conf, so sudo pacman -Syu brings each new stable release like any other package. When a repository pacman syncs from carries the package, the copied line is sudo pacman -Syu. Otherwise it is the installer line above, which updates sikemux-bin or sikemux-nightly-bin with pacman -U; the nightly package’s line always sets SIKEMUX_CHANNEL=nightly.

On a server

A server running just the core keeps itself up to date too, on the channel it was installed from, or on nightly if you choose it for that host. A server on a staff account updates on staff only when you choose Staff for it. Each time it finds a newer release, it installs the release at once and restarts its core in place, so terminals and chats carry on. Before installing anything it checks that Sikemux signed that very release. The core runs as you and cannot replace its own file, so with systemd the installer sets up a small service that puts it in place as root.

sikemux update installs the newest release now. It waits up to two minutes for chats in the middle of a request; any still busy after that pick up again on their sessions. sikemux status shows the version, whether the server updates itself, and when it last looked.

The server’s row under Hosts says updating while an update is under way, or update failed when the last try did not work; its ⋯, or the ⋯ on its detail on the Devices page, says why. Root writes how each update ended to /usr/local/lib/sikemux/update-outcome.json, so a failure is still there to read after the core restarts. A download only stops when it goes quiet for a minute, however slow it is.

The server keeps the core it replaced until the new one has run for half a minute. If the new core stops three times before then, it puts the previous one back and the row says update rolled back; that release is not installed again, and the next one is.

To keep a server on the release it has, turn off Update automatically in either ⋯, or run sudo sikemux update --off on it; --on turns updates back on. Only you can change this, so an agent on the server cannot pin it or unpin it: plain sikemux update --on or --off only says how. While updates are off, nothing installs, not even with sikemux update.

Once a server’s release is too old for your account, the server stops reaching your devices and your account until it updates, and sikemux status says so. With updates on, it installs the newest release and restarts into it at once, without waiting for its chats: the chats in the middle of a request stop and pick up again on their sessions once it is back, and its ⋯ says how many while it restarts.