Gluesync Control for Linux
Gluesync Control is the program that installs, starts, stops, updates and collects the logs of Gluesync on a Linux server. It is one static file for each CPU (amd64 and arm64) and needs nothing on the server except a container engine, Docker or Podman: no .NET, no libraries and no other file. You use it as the gluesync command, or, when you run gluesync with no arguments in a terminal, as a text screen. It comes with the Linux installers 1.3.6 (released October 18, 2026) and later. From Gluesync Control 1.4.5 it is also the Linux installer itself: gluesync install, started by the docker-installer.sh command you already know (see Install Gluesync).
|
How-to guides
For step-by-step walkthroughs tested on a running Gluesync, see the how-to guides Install Gluesync on Linux and size the host and Upgrade Gluesync safely. |
For Windows Server, see Gluesync Control (Windows).
What you need
-
Docker Engine and Docker Compose, the
docker composeplugin (version 2) ordocker-compose(version 1). The installer (gluesync install) installs them, online. -
root, or a user who can reach the Docker daemon (a member of the
dockergroup, or the owner of a rootless socket). -
Or Podman 4.9 or later, rootful or rootless, with Docker Compose v2, when Gluesync was installed with
gluesync install --runtime podman: see Gluesync on Podman. Adockercommand that is reallypodman-docker, with no Podman install recorded, is not supported:start,stopandrestartstop withGS-CTL-002, and the message namesgluesync install --runtime podman.statusstill works. -
Or Docker Engine in Swarm mode, when Gluesync was installed with
gluesync install --runtime swarm: see Gluesync on Docker Swarm. The server must be a swarm manager, and Compose is not needed.
The same file runs on glibc and musl distributions (Rocky, Red Hat, Debian, Ubuntu, Alpine and others). It takes about 9 MB.
Where it is installed
The Linux installer (gluesync install, and before it docker-installer.sh and docker-installer-linux-offline.sh from version 1.3.6) puts it in /opt/gluesync, from the kit, and on the PATH:
-
/opt/gluesync/gluesyncis a link togluesync-linux-amd64orgluesync-linux-arm64, the file for the CPU of the server; -
/usr/local/bin/gluesyncis a link to/opt/gluesync/gluesync, sogluesyncworks from any shell; -
on Red Hat family servers (Rocky, AlmaLinux, Oracle Linux),
sudodoes not look in/usr/local/bin. The installer then also links/usr/bin/gluesync, so thatsudo gluesyncworks. It never replaces a file or a link that is not its own.
The installer prints the version, then asks Turn on the daily automatic update of Gluesync Control? (Y/n). The answer is yes when you press Enter. Set GLUESYNC_CONTROL_AUTO_UPDATE=y or n to answer it in an unattended install. See Automatic updates of Gluesync Control.
If the CPU is not amd64 or arm64, gluesync install prints a warning and the install goes on without Gluesync Control. If the kit has no gluesync-linux-<cpu> file (a kit from before installer 1.3.6), gluesync install copies the Gluesync Control that is running the installation into /opt/gluesync: the kit’s own file wins when it has one. Installers 1.3.6 and earlier, which installed Gluesync Control only from the kit, went on without it and the kit kept its own scripts. The kit’s run.sh starts Gluesync in every case.
Where Gluesync Control keeps its files:
| What | Where |
|---|---|
The Gluesync folder |
|
State |
|
Logs |
|
The Linux uninstaller, docker-uninstaller.sh, turns off the daily timer and removes the gluesync links. It removes /usr/local/bin/gluesync and /usr/bin/gluesync only when they are links into /opt/gluesync.
When Docker’s data-root or containerd’s root lies inside /opt/gluesync (a disk mounted on the install folder, with Docker moved onto it), the uninstaller keeps those folders while Docker stays, and removes everything else in /opt/gluesync. Removing the Docker runtime deletes them.
Who can run it
Run gluesync with sudo, as root, or as a user who can use Docker (on Podman: as the owner of a rootless install, see Gluesync on Podman). Anyone else gets GS-CTL-007 and exit code 228, for example gluesync: this command needs root or access to Docker. Run it with sudo, or add your user to the docker group …. gluesync --help, gluesync --version, gluesync update --list, gluesync update --dry-run and gluesync self-update --check work for everyone.
Some things need more:
-
gluesync updateneeds write access to the compose file of the Gluesync folder (usesudo, orGS-UPD-017tells you to); -
gluesync self-updateneeds write access to the folder of thegluesyncfile (/usr/local/binbelongs to root); -
gluesync self-update --enable-autoand--disable-autoneed root.
With sudo, a user’s own environment is not kept. Set HTTPS_PROXY for the command, for example sudo HTTPS_PROXY=http://proxy:3128 gluesync update, or in the sudoers file.
|
The command line
gluesync in a terminal: the terminal screen; in a script: this help
gluesync tui the terminal screen, on purpose
gluesync install [options] install Gluesync (needs root)
gluesync run | start start Gluesync
gluesync stop stop Gluesync
gluesync restart stop, then start
gluesync status [--json] show what is running
gluesync open show the address of Gluesync
gluesync update [options] update Gluesync
gluesync collect-logs [options] collect a support bundle
gluesync self-update [options] update Gluesync Control itself
gluesync --help | --version
--folder <path> the Gluesync folder, before or after the command
The commands wait until the work is done, write to the console and return the real exit code, so they work in scripts and in cron: gluesync status && echo up, or $?. Errors go to the error output as [ERROR] GS-CTL-003 CONTROL_START_FAILED: <message> followed by Fix: <what to try>. Press Ctrl+C to stop a running command: the exit code is 130.
| Command | What it does |
|---|---|
|
Installs Gluesync on the server: online or offline, with a guided screen in a terminal and unattended without one. When Gluesync is already installed, it updates it. See Install Gluesync. |
|
Starts Gluesync with the same steps as the |
|
Runs |
|
|
|
Shows the state (running, partly running, stopped, Docker not running, not installed), the installed version, the services running out of the expected ones, the address, the Docker daemon and the folder. Exit code |
|
Prints |
|
Updates Gluesync. See Update Gluesync. |
|
Collects a support bundle. See Collect logs for support. |
|
Updates Gluesync Control itself. See Automatic updates of Gluesync Control. |
Old scripts and the new commands
| Kits before installer 1.3.6 | Now |
|---|---|
|
|
|
|
|
|
|
|
(new) |
|
Install Gluesync
gluesync install is the Linux installer. It replaces the two bash installers (docker-installer.sh 1.3.6 and docker-installer-linux-offline.sh 1.0) with one installer for the online and the offline install: a guided screen in a terminal, and a fully unattended run everywhere else. It needs root.
curl -fsSL https://molo17.com/gs-content/utils/docker-installer.sh | sudo bash
sudo gluesync install
sudo gluesync install --unattended --kit a1b2c3d4e5f6 --start
sudo gluesync install --offline --package gluesync-platform-linux-amd64-2.3.0.1.tar.gz --kit-file a1b2c3d4e5f6-trial-kit.zip
The two public scripts
docker-installer.sh (installer 2.0.0) and docker-installer-linux-offline.sh (installer 2.0) are only the way in. They keep their public addresses and their usage.
docker-installer.sh-
Detects the CPU (
x86_64is amd64,aarch64is arm64; another CPU stops it). It reads the GA version, size and SHA-256 of Gluesync Control from the MOLO17 update catalog and downloadshttps://molo17.com/gs-content/utils/gluesync-linux-<amd64|arm64>, over HTTPS only (also across redirects). It refuses the file, and nothing runs, when its size or SHA-256 differs from the catalog, when the catalog gives no usable version, size or SHA-256, or when a download fails. It then runsgluesync installwith your options: itself when it is root, else throughsudo, passing on everyGLUESYNC_*variable and the proxy variables (https_proxy,http_proxy,no_proxy). The exit status of the installer is the exit status of the script. It needscurlorwget, andsha256sum,shasumoropenssl. docker-installer-linux-offline.sh-
Needs no network. It finds, in its own folder, the platform package (
gluesync-platform-linux-<amd64|arm64>[-<version>].tar.gz, the newest versioned name winning) and the kit (<kit ID>-trial-kit.zip). It takesgluesync-linux-<amd64|arm64>from the same folder or from thegluesync-dockerfolder of the kit (kits made from October 2026 contain it; with an older kit, download the file once fromhttps://molo17.com/gs-content/utils/gluesync-linux-<amd64|arm64>). It runsgluesync install --offline --package <package> --kit-file <kit>. A missing package or kit is a warning: the installer asks for it, or stops when there is no terminal.
With curl … | sudo bash the script reads its own text from the standard input, so the installer takes the terminal of the session (/dev/tty) when there is one and shows the guided screen. With no terminal at all it runs unattended. GLUESYNC_NONINTERACTIVE=1 means unattended in every case.
License agreement
Installing Gluesync means accepting the MOLO17 Gluesync End User License Agreement. Kits packaged from October 21, 2026 carry a copy, eula.pdf, installed as /opt/gluesync/eula.pdf (or <folder>/eula.pdf with --folder); earlier kits do not have it. From Gluesync Control 1.4.9 the guided screen has a License agreement step after Welcome: Continue is refused until I accept the license terms is ticked, and EULA accepted is written to /var/log/gluesync/install.log. An unattended run asks nothing: it prints and logs By installing Gluesync you accept the MOLO17 Gluesync End User License Agreement with the address, and with the path of the copy when the kit includes it. From Gluesync Control 1.4.11 the guided screen names eula.pdf only when the kit includes it and is already in hand (an offline install with a kit file); otherwise it shows the address alone. No option is needed. An update of an existing install does not show the step.
What gluesync install decides
| Situation | What happens |
|---|---|
Not root |
It says so ( |
Gluesync is already installed in the folder (a compose file, or on Docker Swarm |
An update, never a reinstall. Unattended: |
A terminal on the standard input and output, |
The guided screen. |
Anything else |
Unattended: nothing is asked and every answer comes from the options and variables below. |
| Option | Variable | Meaning (unattended default) |
|---|---|---|
|
|
The kit ID of the download email: 12 hexadecimal characters. Spaces and capital letters are fixed. An invalid one stops with |
|
|
Install from files instead of downloading. |
|
|
The platform package, |
|
|
The kit zip. The kit ID is taken from its name. |
|
|
The container runtime: |
|
|
Podman only. Either option implies |
|
|
Docker Swarm only. The address (an IP address, a host name or an interface name, with a port if you want one) passed to |
|
|
Start Gluesync when the installation is done. Unattended default: |
|
|
Accept soft prerequisite findings. Separate the codes with commas, semicolons or spaces. Only |
|
The install folder. Default |
|
|
|
Ask nothing. |
|
The daily automatic update of Gluesync Control (see Automatic updates of Gluesync Control). Default |
|
|
Turns off all anonymous install data: the install started message, the result and the failure log lines (see Anonymous install data). |
An unknown option is an error (GS-CTL-006, exit 255): the bash installers ignored the arguments they did not know. For scripts that already pass GLUESYNC_SETUP=n (or --no-setup), an unattended run with it installs only Docker. An online unattended run with no kit ID does the same ("Gluesync setup skipped", exit 0), as the bash installer did. The guided screen has no such option.
The steps
Online: the prerequisite checks, the swap file, Docker Engine for the distribution, the Docker settings, the kit (download, extract, copy to /opt/gluesync, .env), Gluesync Control on the PATH, the start (optional), the container check and the install confirmation.
Offline: Docker is found (the install is refused at once when it is not there), the prerequisite checks that need no network, the swap file and the Docker settings, the package and the kit are checked (the whole package is read once), the images are loaded (each archive goes straight into docker load: nothing is unpacked to disk), the kit is copied and its compose file points to the loaded images, Gluesync Control, and the start (optional). The offline install needs no network and sends nothing.
Docker Engine is installed from the repository of the distribution:
| Distribution | Docker comes from |
|---|---|
Ubuntu, Debian |
Docker’s apt repository. |
Red Hat, AlmaLinux, Rocky Linux, Oracle Linux, CentOS |
Docker’s CentOS repository. |
Fedora |
Docker’s Fedora repository. |
Amazon Linux |
The Amazon Linux packages. Docker Compose is downloaded from GitHub when it is missing. |
SUSE Linux Enterprise Server (incubating), openSUSE |
The SUSE Containers module and the openSUSE packages. Docker Compose is downloaded from GitHub when it is missing. |
Another distribution stops with "Unsupported distribution" (exit 1). Docker is the default engine; Podman is installed instead with --runtime podman (see Gluesync on Podman). Package managers run without questions (DEBIAN_FRONTEND=noninteractive).
For both installs, gluesync install also:
-
writes
/etc/docker/daemon.jsonwith the log settings of Gluesync (json-file, non-blocking, 4 MB buffer, 100 MB per file, 10 files) and restarts Docker. An existing file is copied todaemon.json.backup, and when it is a JSON object its other settings, such asdata-rootor a registry mirror, are kept. On Debian and Ubuntu, the Docker packages are installed so that a configuration file that already exists, such as/etc/docker/daemon.jsonor/etc/containerd/config.toml, is kept; -
enables Docker at boot, and adds the user who ran
sudo(never root) to thedockergroup; -
on Debian and Ubuntu, writes
/etc/sysctl.d/99-gluesync.conf(network buffers and connection tracking); -
creates a 10 GB
/swapfilewhen the server has less than 10 GB of swap. This runs after the prerequisite checks, and a failure is a warning; -
extracts the kit into
/opt/gluesyncwithout removing anything that is already there. The user who ransudoowns the folder..envgetsTZ=<time zone of the server>when it has none, and a CPU without the x86-64-v3 instructions gets the-debianCore Hub image, and the-debianChronos image when Docker Hub has one for its version.
At the end, online only, it runs docker run --rm hello-world (a failure is a warning). An online install also sends anonymous install data to MOLO17: see Anonymous install data.
Free disk space for the install
Before it installs anything, gluesync install checks the free disk space (online and offline, guided and unattended). From Gluesync Control 1.4.19 each folder has its own requirement, the same as on System requirements:
| What is on the disk | Blocks below | Recommended |
|---|---|---|
Docker’s data-root and containerd’s root (images, containers, container logs) |
30 GB |
50 GB |
The install folder, |
80 GB |
250 GB |
The swap file the installer creates at |
+10.7 GB |
+10.7 GB |
What shares a file system adds up. With everything on one disk the install needs 110 GB free, plus the swap file, and 300 GB is recommended. With Docker and the swap file on a 46 GB / and the install folder on its own disk, the install goes on: 40.7 GB is the minimum there.
-
Below the minimum the install is blocked (GS-PRE-050). It cannot be accepted.
-
Between the minimum and the recommendation, the install goes on with a warning (GS-PRE-054).
Gluesync Control 1.4.18 blocked every folder below 80 GB and warned below 100 GB, so it blocked a server with a small /var/lib even when the install folder was on a large disk.
It measures Docker’s data-root, containerd’s root (when Docker uses the containerd image store, the default of a new Docker 29 or later install: the images live there and data-root does not move them) and the install folder. / on its own is not measured, so a small / does not block a server whose install folder is on a large disk. The Windows setup wizard keeps its own rule: it blocks below 100 GB.
When the file system of the install folder has 110 GB free (room for itself and for Docker), the Fix line shows how to move Docker’s data-root and containerd’s root there: stop Docker, copy the data with rsync, set data-root in /etc/docker/daemon.json and root in /etc/containerd/config.toml, label the new folders with semanage and restorecon on SELinux systems, start Docker and run gluesync install again. See Low disk space on Linux.
The prerequisite checks and their codes are on Installer error codes and troubleshooting. The log of the run is install.log in /var/log/gluesync, with the output of the package manager and of docker load. Remove an installation with docker-uninstaller.sh, which is unchanged.
Anonymous install data
An online install sends anonymous messages to MOLO17, so that we can find and fix installer problems. There are three:
-
Install started, when the install begins. It is sent after the system checks pass. A check that blocks the install sends no install started message.
-
Install succeeded, when the install ends well.
-
Install failed, when the install stops with an error.
Each message holds the kit ID, the versions, the platform (the operating system and the CPU) and the result. A failed install adds the error code and the last lines of the log of that run, at most 40 lines. The installer masks these lines before it sends them: passwords, tokens, email addresses, IP addresses, host names, user names, domain names and user folders are replaced with a marker such as [email] or [ip]. Nothing else is sent.
Set GLUESYNC_TELEMETRY=0 to turn off all of it. An offline install sends nothing.
Gluesync on Podman
gluesync install --runtime podman installs and runs Gluesync on Podman instead of Docker Engine, rootless (the default when sudo is run by an ordinary user) or rootful. It records the runtime in /var/lib/gluesync/state.json, and every command of Gluesync Control follows it.
sudo gluesync install --runtime podman --kit a1b2c3d4e5f6 --start # rootless when run with sudo by a user
sudo gluesync install --runtime podman --rootful --kit a1b2c3d4e5f6 --start
On Podman:
-
Who can run it: root, or the owner of a rootless install, who can run
gluesyncdirectly. For a rootless install, root runs every Podman and Compose command as the owner. -
Compose is Docker Compose v2 against the Podman socket.
podman-composeis not used. A Compose v2 that cannot be found isGS-CTL-002. -
Socket: when it is down,
startstartspodman.socketand waits up to 120 seconds. -
Status:
gluesync statussaysPodman : running (rootless)or(rootful)where Docker saysDocker : running. On a rootless install with a Core Hub older than 2.3.2.0 or a Chronos older than 0.3.3,status(also in--json, underwarnings),startand the terminal screen show a warning;startis never blocked. -
Rootless images: a rootless Podman runs Core Hub and Chronos as a non-root user, which needs Core Hub 2.3.2.0 or later and Chronos 0.3.3 or later.
gluesync install --runtime podman --rootlessrefuses a kit or package with an older image (GS-RUN-PODMAN_ROOTLESS_IMAGES, exit100) before anything is copied or started; use--rootful,--runtime docker, or a newer kit. Rootful Podman and Docker have no such requirement. -
Old kits: a compose file from before Podman support is migrated at
start,restartandupdate(docker-compose.yml.pre-podmanis the backup). -
Updates and offline updates work as on Docker, with
podman loadfor the images. On a rootless install, an update that would leave Core Hub older than 2.3.2.0 or Chronos older than 0.3.3 is refused (GS-UPD-010) before anything changes. -
Support bundle:
gluesync collect-logsadds the Podman version, the engine information, the sockets and lingering, and the SELinux mode.
Requirements, what the installer configures, the manual setup and troubleshooting are on Gluesync on Podman.
Gluesync on Docker Swarm
gluesync install --runtime swarm runs Gluesync as a Docker Swarm stack, named gluesync, instead of a Compose project. It uses Docker Engine exactly as the Docker install does (the same packages, daemon.json, docker group and checks) and adds the swarm, the Swarm kit and the stack. It works online and offline. Docker stays the default: without --runtime swarm, nothing changes. It records the runtime in /var/lib/gluesync/state.json, and every command of Gluesync Control follows it.
sudo gluesync install --runtime swarm --kit a1b2c3d4e5f6 --start
sudo gluesync install --runtime swarm --advertise-addr <address> --kit a1b2c3d4e5f6 --start # a server with several network cards
sudo GLUESYNC_RUNTIME=swarm gluesync install --unattended --kit a1b2c3d4e5f6 --start
On the Docker page, the guided screen offers Docker Swarm next to Docker (default), Podman rootless and Podman rootful. It explains that Docker Engine is installed as for Docker, that a single-node swarm is created on this server when it is in none, that a swarm manager is used as it is, that a worker is refused, and that this server is also the data node unless another node carries the label gluesync.data=true, with the data in /var/lib/gluesync-swarm. A refusal such as GS-RUN-SWARM_NOT_MANAGER is shown on the page, and Continue is not offered.
What the install does with the swarm:
| This server | What happens |
|---|---|
In no swarm |
|
A swarm manager |
The swarm is used as it is. Nothing is created. |
A swarm worker |
Refused with |
|
Refused with |
The install then does the following:
-
The kit. The kit zip has a
gluesync-docker-swarmfolder next togluesync-docker. The content of that folder is the install folder (/opt/gluesyncby default). It is the directory that Gluesync Conductor mounts and redeploys the stack from, so it stays where it is. A kit made before the Swarm kit existed has no such folder and is refused withGS-RUN-SWARM_KIT_MISSING(exit96): download a new kit. -
The data node. The stateful services (Core Hub, Chronos, Prometheus and Grafana) run on the node labelled
gluesync.data=true, and Traefik and Conductor on a manager labelledgluesync.kit=true. When another node already carriesgluesync.data=true, the installer does not prepare the data folders here, and says which node is the data node:prepare-host.shmust have run there. Otherwise this server is the data node: the installer runs the kit’sprepare-host.shas root, which makes the data folders underGLUESYNC_DATA_ROOT(default/var/lib/gluesync-swarm) and labels this managergluesync.data=true. -
The restart policy. A host shutdown stops the containers with exit code 0, and Swarm replaces a task that exited with 0 only when the
restart_policycondition of the service isany. The installer changescondition: on-failuretocondition: anyindocker-stack.yml, and says so. Every start and update of an install made before does the same. Nothing else in the file changes. -
The deploy. Online, every image of
docker-stack.ymlis pulled on this server first, one by one, becausedocker stack deployreturns at once and the wait for the services would otherwise include the download. Thendocker stack deploy -c docker-stack.yml --resolve-image always gluesync. An offline install loads the images withdocker loadand deploys with--resolve-image never, so nothing goes to a registry. A pull or deploy that fails isGS-RUN-SWARM_DEPLOY_FAILED(exit99). -
The check. The installer waits up to 3 minutes until every service of the stack has its replicas (
Container check: N of N service(s) at their replicas). Otherwise the install fails withGS-RUN-CONTAINERS_NOT_RUNNING(exit32), and the message names the services that are short and the newest task errors.
On a swarm with more than one node, load the images of an offline install on the other nodes too, or let them reach a registry: an install loads them on this server only.
To add nodes after the install, run docker swarm join-token worker on the manager and run the command it prints on the new node. The stateful services stay on the node that carries gluesync.data=true: the label moves only together with the data. A worker cannot run gluesync start, stop, status or update: Gluesync Control works on a manager only.
On Docker Swarm:
-
Who can run it: root, or a user who can use Docker, as on Docker. The node must be a swarm manager. On a worker, or on a server that left the swarm,
start,stop,restartandupdatestop withGS-CTL-002and a message that says why. -
gluesync startdeploys the stack with the same steps as the install (the images pulled online,docker stack deploy). It restores the replicas ofdocker-stack.yml, so it also starts whatstopscaled down. A service that wants replicas but has no running task, as after a reboot, is forced to start, and the output names it. When no node carriesgluesync.data=true, it stops withGS-CTL-003and the message names the label andprepare-host.sh. -
gluesync stopscales every service of the stack to 0. The stack, its network and your data stay, andstartdeploys it again. -
gluesync restartupdates the services one after the other, withdocker service update --force, Conductor last. It does not stop or deploy the stack. -
gluesync statussaysDocker Swarm : active (manager)where Docker saysDocker : running, or the problem:active (worker): not a manager,inactive: this server is not in a swarmordaemon not running. Each service shows its replicas:running (1/1),starting (1/2),not running (0/1)orstopped (0/0)after a stop. A service is running only when its running tasks equal the desired ones. The stack isrunningwhen every service is,partialwhen some are andstoppedwhen none is (exit code3).gluesync status --jsonhas the replicas of each service, such as"1/2", next to its state. -
gluesync openprints the address, as on Docker. -
The terminal screen lists the services of the stack with their replicas in the Services table. Restart is the same rolling
service update --force. -
gluesync update, online and offline, works ondocker-stack.ymlwith the same plan, pins and tag rules as on Docker. It rewrites only theimage:lines, pulls the images that change on this server before the deploy, and waits until every changed service has finished its update. When Swarm rolls a service back, or pauses it after a failed update, the update fails withGS-UPD-020. When an update fails,docker-stack.ymland.envare restored from the backup and the previous stack is deployed again. Going back to an older Core Hub is refused on Swarm (GS-UPD-027): the data is on the data node, which the update can neither stop safely nor copy. Pin a newer version, or restore a copy of the data folder first. -
Support bundle:
gluesync collect-logsadds the swarm information, the nodes and their labels (wheregluesync.dataandgluesync.kitare), the services and tasks of the stack, and the logs of the stack tasks that run on this node, including the stopped ones. A service with no task on this node gets a best-effort log with a 30-second limit. Swarm join tokens are masked in every log and file. -
Uninstaller:
docker-uninstaller.shremoves the stack and waits until its services and network are gone. Then it removes the data folder the installer prepared (the confirmation says that the data is deleted), the node labels the installer added, and, only when the installer created the swarm and no other service runs in it, the swarm itself (docker swarm leave --force). A swarm that was there before the install is never touched beyond those labels. -
Anonymous install data is unchanged: a Swarm install is Docker Engine, so it is sent as Docker.
The Swarm kit, the node roles and the manual procedure for several nodes are on Deploy Gluesync on Docker Swarm. The codes GS-RUN-SWARM_NOT_MANAGER (95), GS-RUN-SWARM_KIT_MISSING (96), GS-RUN-SWARM_INIT_FAILED (97), GS-RUN-SWARM_NODE_STATE (98) and GS-RUN-SWARM_DEPLOY_FAILED (99) are on Installer error codes and troubleshooting.
Update Gluesync
gluesync update --list [--channel ga|beta|alpha]
gluesync update --dry-run [--version <x.y.z.w>|latest] [--channel ga|beta|alpha] [--package <file>]
gluesync update [--version <x.y.z.w>|latest] [--channel ga|beta|alpha] [-y]
gluesync update --package <file> [-y]
The options are the ones of the Windows update: --list shows what you can update to and changes nothing, --dry-run shows the plan and stops, --version picks a version (the newest offered without it), --channel ga|beta|alpha sets the newest version you can reach (--beta and --alpha are short for the channel), --package updates from a file with no network access, and -y does not ask. Beta and alpha ask twice unless you add -y.
The online update offers the Core Hub versions that MOLO17 has released for Linux, newer than the installed one and up to the latest GA of the channel, whose Core Hub image exists on Docker Hub. It only upgrades. It follows the steps of the Windows update: checks, backup, new image tags, pull, restart, verification and, on failure or Ctrl+C, a rollback. On Linux:
-
The backup of
docker-compose.ymland.envis in/var/lib/gluesync/backups/<date-time>as root, otherwise~/.local/state/gluesync/backups(mode700, the last five are kept). -
Modules (the conductor and Chronos) move to their latest version with no suffix (Chronos:
-debianby the rule below), and the third-party images (Traefik, Prometheus and Grafana) to the version that MOLO17 publishes for each. -
Old images stay on the disk.
docker image pruneremoves the dangling ones. -
The variant of Core Hub is the one that is installed: the plain tag (for example
2.3.0.1), or-debian. A CPU that lacks the x86-64-v3 instructions runs the-debianimages, and the update keeps that rule: it switches a plain install on such a CPU to the-debiantag and says so (this CPU lacks x86-64-v3). An install that is already-debianstays-debian, and arm64 is never switched. Chronos follows the same rule, but only when the-debianimage of its version is on Docker Hub (older Chronos versions have none): otherwise a Chronos on the default image keeps it, and a-debianChronos is left as it is.
| Core Hub migrates its database when it starts with a newer version, and that migration is one-way. A rollback restores the images and the configuration files, not the database. Take a configuration backup before you update a production system. |
Offline update
For a server with no internet access, download the update package for the CPU of the server, gluesync-update-linux-amd64-<version>.tar.gz or gluesync-update-linux-arm64-<version>.tar.gz, from Get Gluesync – offline downloads on a connected computer, copy it to the server, and run:
sudo gluesync update --package /tmp/gluesync-update-linux-amd64-<version>.tar.gz
Gluesync Control reads the whole package once before it changes anything, loads the images one by one with docker load (nothing is unpacked to disk), then backs up, restarts and checks Gluesync like the online update. The free space is checked on the Docker data folder (twice the size of the package, at least 1 GB). The package is refused (GS-UPD-014, before anything changes) when it is a Windows package, is for the other CPU, or carries only Core Hub of another variant. An older or the same version is refused. An installed image that the package does not carry stays as it is.
Pins and updating one service
From 1.4.2, gluesync update can pin Core Hub or a service to a version, keep the pin until you remove it, and update one service only. It works as on Windows, and the options, the three confirmations of a Core Hub pin and the data backup of a downgrade are described in Pin versions and update one service. The differences on Linux:
-
The pins are in
/var/lib/gluesync/pins.jsonas root, otherwise in~/.local/state/gluesync/pins.json. A user who runs Docker withoutsudoalso reads the pins that were made withsudo. -
The data backup of a Core Hub downgrade goes to
<state folder>/backups/<date-time>/core-hub-data/. -
A tag is a version when it is
<n.n[.n[.n]]>[.word], with no suffix (or the-debianfamily for Core Hub and Chronos).latest, a beta, a test build and the tags of another family are not. -
--services,--versions,--pins,--unpinand--dry-runneed no access to Docker.--pinand--servicechange Gluesync and do.
sudo gluesync update --services
sudo gluesync update --pin core-hub=2.2.11.12 --i-understand-pinning --allow-downgrade
sudo gluesync update --service gluesync-chronos
sudo gluesync update --unpin all
Collect logs for support
gluesync collect-logs [--days N] [--max-mb N] [--tail N] [--out <dir>]
[--local-only] [--voucher GSV-XXXX-XXXX-XXXX] [--delete-after-upload]
[--ticket X --email Y]
The options and what they do are the ones of Collect logs for support on Windows: --days (default 3), --max-mb (default 1024), --tail (default 50000), --local-only (--no-upload is the same), and --voucher (--voucher X or --voucher=X) to upload the bundle into your ticket. The voucher, GSV-XXXX-XXXX-XXXX, is shown on the ticket page of the support portal and in the e-mail sent when the ticket was opened. Without it the bundle stays on the server. The ticket number and the e-mail address you opened the ticket with, --ticket with --email, remain as a legacy option (both are needed; the ticket number is normalized, so #1234 and 1234 become GSSD-1234). Giving --voucher together with --ticket or --email is a usage error (GS-LOG-006, exit code 235), also with --local-only. On Linux:
-
The bundle,
gluesync-support-<date-time>.zip, is written to/var/lib/gluesync/supportas root, otherwise~/.local/state/gluesync/support.--out <dir>writes it elsewhere (--out .writes it to the current folder). The path is printed at the end. The three newest bundles are kept in the default folder. -
It collects the Gluesync log files and the installer logs of
/var/log/gluesyncand/var/lib/gluesync, the configuration files with secrets replaced by***, a system snapshot (operating system, kernel, CPU, memory, disks, whether the CPU has the x86-64-v3 instructions, the proxy variables with the credentials hidden), the output ofss,ip,df,lsblk,getenforce,firewall-cmd,ufwandjournalctl -u dockerwhere those programs exist, Docker diagnostics (version, info,ps, images,docker inspectof every container with secrets hidden) and the log of every container. It also has the state of the self-update timer. -
It runs at low priority (
nice 10), and it never deletes or changes your files. -
With a voucher, the bundle goes straight into the ticket, up to 5 GB, in resumable parts of 16 MB, and the size is verified at the end. The command checks the voucher before it collects. The server needs outbound HTTPS to the support portal API and to
*.s3.eu-central-1.amazonaws.com, see Network access; the environment variableGLUESYNC_SUPPORT_API_URLoverrides the address of the API. -
A wrong or revoked voucher, an expired one, a bundle over 5 GiB and a rate limit have their own codes, GS-LOG-015 to GS-LOG-018. If the size held by the support portal does not match the bundle, the command ends with a warning and exit code
0, the local zip is kept and--delete-after-uploaddeletes nothing. Ctrl+C during the upload aborts it, keeps the bundle and exits with234. -
With the ticket number and the e-mail address (legacy), the upload goes over WebDAV, then over FTP.
-
The upload uses the proxy from
HTTPS_PROXY,HTTP_PROXYandNO_PROXY.
For example, to collect the last three days and send them with your ticket:
sudo gluesync collect-logs --voucher GSV-XXXX-XXXX-XXXX
The voucher is valid while the ticket is open and for 30 days after it is closed. You can type it in lower case, with or without the dashes and the GSV prefix.
If you have no ticket yet, collect with --local-only and attach the file to a new ticket. If you can sign in to the Gluesync Control Plane, you can also send the logs from there. See Exporting and uploading logs to support.
|
Automatic updates of Gluesync Control
Gluesync Control can update itself. This is different from updating Gluesync: it replaces only the gluesync program. The Gluesync platform, its containers, its configuration and its data are not touched, Gluesync keeps running and nothing restarts.
gluesync self-update [--check] [--quiet] [-y] [--channel ga|beta] [--set-channel ga|beta]
gluesync self-update --enable-auto | --disable-auto
| Option | Meaning |
|---|---|
|
Prints the running version and the newest published version, and installs nothing. Exit code |
|
Does not ask for confirmation. |
|
What the daily timer runs: no question and no output unless something fails. |
|
Root only. Sets up the daily check: a systemd timer, |
|
Root only. Stops and removes the timer and its two unit files. |
|
The channel for this run. |
|
Saves the channel in |
When a newer version is published, Gluesync Control:
-
downloads the new
gluesyncfile from MOLO17 over HTTPS (only HTTPS, also across redirects), into the folder of the program; -
checks that its size is the size in the MOLO17 catalog, that its SHA-256 is the one in the catalog, and that it runs and reports the version that the catalog announced (
--version); -
makes it executable, keeps the old file next to the program with
.oldadded to its name (<program>.old, for example/opt/gluesync/gluesync-linux-amd64.oldin an installer or kit installation) and replaces the program in one step.
A file that fails a check is deleted and nothing changes. The .old file is kept until the next self-update run, and then removed. Only a strictly newer version is installed, never the same one and never an older one. A server that cannot reach the update service, or that is in maintenance, tries again later. If MOLO17 has no update information for the CPU (the catalog has no entry), the command says so and exits with 0.
The result of the last run is in last-result.json of <state folder>/self-update and in self-update.log. If an update fails, the previous version stays and the next run tries again. The codes are in Gluesync Control on Linux.
Turn automatic updates off
-
Run
sudo gluesync self-update --disable-auto, or switch off the daily update in Settings of the terminal screen. -
Machine policy: create
/etc/gluesync/policy.jsonwith{"disableControlSelfUpdate": true}. It turns off the timer, andgluesync self-updatestops withGS-SUP-001(exit code101).
A server without systemd has no timer: the installer says so and prints the line to put in cron, once a day:
sudo gluesync self-update --quiet -y
The terminal screen
Run gluesync with no arguments in an interactive terminal (or gluesync tui on purpose) to open a text screen with the same tabs as the Windows window: Overview, Update, Support and Settings. In a script, a pipe, cron or a systemd unit, gluesync with no arguments still prints the help, and gluesync tui stops with GS-CTL-006 (exit code 255). The screen needs a terminal of at least 80 columns by 24 rows. Below 60 by 16 it asks you to make the window larger.
| Tab | What it does |
|---|---|
Overview |
The state, the version, the address, Docker and the folder, with Start, Stop, Restart (both ask first, with No as the default) and Open. Beside it, or below it in a narrow terminal, the services table: a health dot, the image tag, the state and a pin marker. It is read again every 5 seconds. |
Update |
Two sub-tabs. Updates: check for updates and choose a version to see its plan, Update all (the plan, a confirmation, the progress and the result with the backup folder) and update from a package file. Advanced options: pin Core Hub (the versions, Other version…, then the same three confirmations as on Windows, each with No as the default), the services (choose one to pin, unpin or update it alone), and the pins (unpin one, or all). There is no |
Support |
Collect logs, kept on the server or uploaded with the voucher of a ticket (the first field) or, as a legacy option, a ticket number and an e-mail address (the second), with the days and the size limit. The result shows the path of the bundle. |
Settings |
The version of Gluesync Control, the update channel, a check for an update with Update now, and the daily automatic update (the systemd timer, root only; without systemd it shows the line for cron). |
Press 1 to 4, or Tab, to change tab. Use ↑ and ↓ (or j and k) to move, Enter to choose, Esc to go back, r to read again, ? for help and q to quit. The footer always shows the keys of the screen. While something runs, the screen shows the steps, a progress bar and the output of the engine. Press Ctrl+C to stop it the way the command line stops: an update that already changed Gluesync restores the previous version first. The terminal is given back on every way out.
The screen adapts to the terminal. With true colour or 256 colours and a UTF-8 locale it uses a flat look. On a terminal with 16 colours, on the Linux console, with NO_COLOR set, or in a locale that is not UTF-8, it uses plain borders and ASCII characters. Set GLUESYNC_TUI_CLASSIC=1 to ask for the bordered look anywhere.
Without root or Docker or Podman access (GS-CTL-007), or with a podman-docker that no Podman install explains, the screen is read-only: a banner says why, only what reads works (the update check, the services and pins tables, the check for a new Gluesync Control), and what would change the server is shown dimmed.
Free disk space monitoring
From Gluesync Control 1.4.17, Gluesync warns you before a drive it uses runs out of space. A full disk stops Gluesync and makes updates fail.
A drive gets a level:
-
Warning: less than 20 GB or less than 10 % free.
-
Critical: less than 5 GB free.
Gluesync checks the Docker data root and the drive of the install folder.
gluesync status (and gluesync status --json) shows the level, the free space of each drive and what to do (GS-CTL-008). It is a warning, not a failure: the exit code of gluesync status does not change.
The systemd timer gluesync-control-disk-check.timer checks the drives every hour. gluesync install turns it on, and docker-uninstaller.sh removes it. For a server installed before 1.4.17, turn it on with:
sudo gluesync disk-check --enable-auto
sudo gluesync disk-check --disable-auto turns it off.
Each run writes to syslog and the journal with the tag gluesync: user.warning for a warning, user.err for critical, and user.info when the disk is OK again (written once, after a warning). While the disk stays low, every hourly run writes its message again, so a monitoring tool sees it for as long as the problem lasts. To read them, run journalctl -t gluesync.
On a server without systemd, run sudo gluesync disk-check from cron every hour.
To fix it, free space on that drive or extend it. The Docker data-root grows with every update. For what fills the disk and how to clean it up, see Free disk space and manage cache and logs.
Exit codes
Gluesync Control returns the same codes as on Windows. A Linux exit status has one byte, so three of them are different.
| Exit code | Meaning |
|---|---|
|
Done. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Stopped with Ctrl+C ( |
|
|
|
|
None |
|
|
|
|
|
The text of an error keeps its GS- code, so the code in the message is the one to look up. Every code, its meaning and its fix are on Installer error codes and troubleshooting.