Search docs.molo17.com

    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 compose plugin (version 2) or docker-compose (version 1). The installer (gluesync install) installs them, online.

    • root, or a user who can reach the Docker daemon (a member of the docker group, 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. A docker command that is really podman-docker, with no Podman install recorded, is not supported: start, stop and restart stop with GS-CTL-002, and the message names gluesync install --runtime podman. status still 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/gluesync is a link to gluesync-linux-amd64 or gluesync-linux-arm64, the file for the CPU of the server;

    • /usr/local/bin/gluesync is a link to /opt/gluesync/gluesync, so gluesync works from any shell;

    • on Red Hat family servers (Rocky, AlmaLinux, Oracle Linux), sudo does not look in /usr/local/bin. The installer then also links /usr/bin/gluesync, so that sudo gluesync works. 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

    /opt/gluesync. By default the folder of the gluesync file, or its parent, when it holds docker-compose.yaml or docker-compose.yml (on Docker Swarm, docker-stack.yml); else the folder Gluesync Control remembers; else /opt/gluesync. To manage an installation in another folder, add --folder <path> (the folder, or its compose file) to any command.

    State

    /var/lib/gluesync as root, otherwise ~/.local/state/gluesync. It holds backups, support, pins.json and the self-update files.

    Logs

    /var/log/gluesync as root, otherwise ~/.local/state/gluesync/logs: control.log (what the program did), launch-platform.log (the output of Docker Compose when Gluesync starts), update.log and self-update.log.

    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 update needs write access to the compose file of the Gluesync folder (use sudo, or GS-UPD-017 tells you to);

    • gluesync self-update needs write access to the folder of the gluesync file (/usr/local/bin belongs to root);

    • gluesync self-update --enable-auto and --disable-auto need 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

    gluesync install

    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.

    gluesync run
    gluesync start

    Starts Gluesync with the same steps as the run.sh of earlier kits. It creates .env with the time zone of the server (TZ) when there is none, pulls the images on the first start only (a failed pull goes on with the local images; an offline install never pulls), removes dangling images (docker image prune -f), and runs docker compose up -d --remove-orphans. Before the up, it waits for the platform to settle, as described for Windows in Update Gluesync. A stopped Docker daemon is started first when you are root and the server has systemd (for anyone else, GS-CTL-002 says sudo systemctl start docker). It then waits up to 120 seconds for the services and prints Gluesync is running: https://<address>;.

    gluesync stop

    Runs docker compose down --remove-orphans. Containers and networks are removed. Volumes and images are never removed, so your data stays. If the Docker daemon is stopped, Gluesync is already stopped.

    gluesync restart

    stop, then start. A failed stop does not start Gluesync.

    gluesync status

    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 0 when Gluesync is running and 3 when it is not. --json prints the same information as one JSON object. The address is the IPv4 address of the interface of the default route.

    gluesync open

    Prints Gluesync is at https://<address>;, and opens it in the browser only when the session has a desktop (DISPLAY or WAYLAND_DISPLAY). Exit code 0 either way.

    gluesync update

    Updates Gluesync. See Update Gluesync.

    gluesync collect-logs

    Collects a support bundle. See Collect logs for support.

    gluesync self-update

    Updates Gluesync Control itself. See Automatic updates of Gluesync Control.

    Old scripts and the new commands

    Kits before installer 1.3.6 Now

    ./run.sh

    gluesync run (the new run.sh only starts gluesync run)

    ./stop.sh

    gluesync stop

    ./update.sh

    gluesync update

    ./collect-logs.sh

    gluesync collect-logs

    (new)

    gluesync restart, gluesync status [--json], gluesync self-update, the terminal screen

    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_64 is amd64, aarch64 is arm64; another CPU stops it). It reads the GA version, size and SHA-256 of Gluesync Control from the MOLO17 update catalog and downloads https://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 runs gluesync install with your options: itself when it is root, else through sudo, passing on every GLUESYNC_* 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 needs curl or wget, and sha256sum, shasum or openssl.

    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 takes gluesync-linux-<amd64|arm64> from the same folder or from the gluesync-docker folder of the kit (kits made from October 2026 contain it; with an older kit, download the file once from https://molo17.com/gs-content/utils/gluesync-linux-<amd64|arm64>;). It runs gluesync 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 (sudo gluesync install) and exits with 1. The screen shows the message on its first page.

    Gluesync is already installed in the folder (a compose file, or on Docker Swarm docker-stack.yml, in /opt/gluesync, or in --folder)

    An update, never a reinstall. Unattended: gluesync update -y, or gluesync update -y --package <file> with --package, or with --offline and an update package next to the program. The exit codes are those of gluesync update (see Exit codes). In a terminal: a menu with Update now, Check for updates, Update from a package file and Open Gluesync Control, using the screens of the Update tab.

    A terminal on the standard input and output, TERM not dumb, no --unattended and no GLUESYNC_NONINTERACTIVE

    The guided screen.

    Anything else

    Unattended: nothing is asked and every answer comes from the options and variables below.

    Option Variable Meaning (unattended default)

    --kit <id>

    GLUESYNC_KIT_ID

    The kit ID of the download email: 12 hexadecimal characters. Spaces and capital letters are fixed. An invalid one stops with GS-PRE-030 (exit 26).

    --online, --offline

    GLUESYNC_SOURCE=offline

    Install from files instead of downloading. --package and --kit-file imply --offline.

    --package <file>

    GLUESYNC_PACKAGE

    The platform package, gluesync-platform-linux-<amd64|arm64>-<version>.tar.gz.

    --kit-file <file>

    GLUESYNC_KITFILE

    The kit zip. The kit ID is taken from its name.

    --runtime <docker|podman|swarm>

    GLUESYNC_RUNTIME

    The container runtime: docker (the default), podman or swarm. See Gluesync on Podman and Gluesync on Docker Swarm. Any other value is GS-CTL-006.

    --rootless, --rootful

    GLUESYNC_PODMAN_MODE=rootless or rootful

    Podman only. Either option implies --runtime podman. With --runtime docker or swarm, or both together, they are an error. Default: rootless when sudo was run by an ordinary user, else rootful.

    --advertise-addr <address>

    GLUESYNC_SWARM_ADVERTISE_ADDR

    Docker Swarm only. The address (an IP address, a host name or an interface name, with a port if you want one) passed to docker swarm init --advertise-addr when the install creates the swarm. The option alone implies --runtime swarm. With --runtime docker or podman it is an error. The variable alone changes nothing: Docker stays the default.

    --start, --no-start

    GLUESYNC_START=y or n

    Start Gluesync when the installation is done. Unattended default: n. The screen asks, and the default is yes.

    --accept <codes>

    GLUESYNC_ACCEPT

    Accept soft prerequisite findings. Separate the codes with commas, semicolons or spaces. Only GS-PRE-040, GS-PRE-061, GS-PRE-062 and GS-PRE-063 can be accepted.

    --folder <path>

    The install folder. Default /opt/gluesync.

    --unattended, -y

    GLUESYNC_NONINTERACTIVE=1

    Ask nothing.

    GLUESYNC_CONTROL_AUTO_UPDATE=y or n

    The daily automatic update of Gluesync Control (see Automatic updates of Gluesync Control). Default y.

    GLUESYNC_TELEMETRY=0

    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.json with 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 to daemon.json.backup, and when it is a JSON object its other settings, such as data-root or 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.json or /etc/containerd/config.toml, is kept;

    • enables Docker at boot, and adds the user who ran sudo (never root) to the docker group;

    • on Debian and Ubuntu, writes /etc/sysctl.d/99-gluesync.conf (network buffers and connection tracking);

    • creates a 10 GB /swapfile when 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/gluesync without removing anything that is already there. The user who ran sudo owns the folder. .env gets TZ=<time zone of the server> when it has none, and a CPU without the x86-64-v3 instructions gets the -debian Core Hub image, and the -debian Chronos 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, /opt/gluesync (kit, configuration, license, data and logs of every service)

    80 GB

    250 GB

    The swap file the installer creates at /swapfile, on the disk of /, when the server has less than 10 GB of swap

    +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 gluesync directly. For a rootless install, root runs every Podman and Compose command as the owner.

    • Compose is Docker Compose v2 against the Podman socket. podman-compose is not used. A Compose v2 that cannot be found is GS-CTL-002.

    • Socket: when it is down, start starts podman.socket and waits up to 120 seconds.

    • Status: gluesync status says Podman : running (rootless) or (rootful) where Docker says Docker : 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, under warnings), start and the terminal screen show a warning; start is 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 --rootless refuses a kit or package with an older image (GS-RUN-PODMAN_ROOTLESS_IMAGES, exit 100) 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, restart and update (docker-compose.yml.pre-podman is the backup).

    • Updates and offline updates work as on Docker, with podman load for 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-logs adds 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

    docker swarm init creates a single-node swarm, and this server is its manager. Pass --advertise-addr when the server has several network addresses (see GS-RUN-SWARM_INIT_FAILED). The installer does not log the join token. It prints docker swarm join-token worker as the way to add nodes later.

    A swarm manager

    The swarm is used as it is. Nothing is created.

    A swarm worker

    Refused with GS-RUN-SWARM_NOT_MANAGER (exit 95), before anything is changed. Only a manager can deploy a stack.

    pending, locked or in error

    Refused with GS-RUN-SWARM_NODE_STATE (exit 98), before anything is changed.

    The install then does the following:

    • The kit. The kit zip has a gluesync-docker-swarm folder next to gluesync-docker. The content of that folder is the install folder (/opt/gluesync by 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 with GS-RUN-SWARM_KIT_MISSING (exit 96): 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 labelled gluesync.kit=true. When another node already carries gluesync.data=true, the installer does not prepare the data folders here, and says which node is the data node: prepare-host.sh must have run there. Otherwise this server is the data node: the installer runs the kit’s prepare-host.sh as root, which makes the data folders under GLUESYNC_DATA_ROOT (default /var/lib/gluesync-swarm) and labels this manager gluesync.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_policy condition of the service is any. The installer changes condition: on-failure to condition: any in docker-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.yml is pulled on this server first, one by one, because docker stack deploy returns at once and the wait for the services would otherwise include the download. Then docker stack deploy -c docker-stack.yml --resolve-image always gluesync. An offline install loads the images with docker load and deploys with --resolve-image never, so nothing goes to a registry. A pull or deploy that fails is GS-RUN-SWARM_DEPLOY_FAILED (exit 99).

    • 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 with GS-RUN-CONTAINERS_NOT_RUNNING (exit 32), 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, restart and update stop with GS-CTL-002 and a message that says why.

    • gluesync start deploys the stack with the same steps as the install (the images pulled online, docker stack deploy). It restores the replicas of docker-stack.yml, so it also starts what stop scaled 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 carries gluesync.data=true, it stops with GS-CTL-003 and the message names the label and prepare-host.sh.

    • gluesync stop scales every service of the stack to 0. The stack, its network and your data stay, and start deploys it again.

    • gluesync restart updates the services one after the other, with docker service update --force, Conductor last. It does not stop or deploy the stack.

    • gluesync status says Docker Swarm : active (manager) where Docker says Docker : running, or the problem: active (worker): not a manager, inactive: this server is not in a swarm or daemon not running. Each service shows its replicas: running (1/1), starting (1/2), not running (0/1) or stopped (0/0) after a stop. A service is running only when its running tasks equal the desired ones. The stack is running when every service is, partial when some are and stopped when none is (exit code 3). gluesync status --json has the replicas of each service, such as "1/2", next to its state.

    • gluesync open prints 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 on docker-stack.yml with the same plan, pins and tag rules as on Docker. It rewrites only the image: 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 with GS-UPD-020. When an update fails, docker-stack.yml and .env are 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-logs adds the swarm information, the nodes and their labels (where gluesync.data and gluesync.kit are), 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.sh removes 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.yml and .env is in /var/lib/gluesync/backups/<date-time> as root, otherwise ~/.local/state/gluesync/backups (mode 700, the last five are kept).

    • Modules (the conductor and Chronos) move to their latest version with no suffix (Chronos: -debian by 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 prune removes 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 -debian images, and the update keeps that rule: it switches a plain install on such a CPU to the -debian tag and says so (this CPU lacks x86-64-v3). An install that is already -debian stays -debian, and arm64 is never switched. Chronos follows the same rule, but only when the -debian image of its version is on Docker Hub (older Chronos versions have none): otherwise a Chronos on the default image keeps it, and a -debian Chronos 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.json as root, otherwise in ~/.local/state/gluesync/pins.json. A user who runs Docker without sudo also reads the pins that were made with sudo.

    • 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 -debian family for Core Hub and Chronos). latest, a beta, a test build and the tags of another family are not.

    • --services, --versions, --pins, --unpin and --dry-run need no access to Docker. --pin and --service change 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/support as 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/gluesync and /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 of ss, ip, df, lsblk, getenforce, firewall-cmd, ufw and journalctl -u docker where those programs exist, Docker diagnostics (version, info, ps, images, docker inspect of 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 variable GLUESYNC_SUPPORT_API_URL overrides 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-upload deletes nothing. Ctrl+C during the upload aborts it, keeps the bundle and exits with 234.

    • 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_PROXY and NO_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

    --check

    Prints the running version and the newest published version, and installs nothing. Exit code 0 when Gluesync Control is up to date and 4 when a newer version exists. It works for any user.

    -y

    Does not ask for confirmation.

    --quiet

    What the daily timer runs: no question and no output unless something fails.

    --enable-auto

    Root only. Sets up the daily check: a systemd timer, gluesync-control-self-update.timer, that runs gluesync self-update --quiet -y once a day after a random delay of up to 1 hour (Persistent=true, so a missed run happens at the next start). It writes the service and the timer in /etc/systemd/system.

    --disable-auto

    Root only. Stops and removes the timer and its two unit files.

    --channel ga|beta

    The channel for this run. ga is the default. beta installs a pre-release build that MOLO17 publishes for testing, never for production.

    --set-channel ga|beta

    Saves the channel in control-settings.json of the state folder. Use sudo, because the daily timer runs as root and reads the file of root.

    When a newer version is published, Gluesync Control:

    1. downloads the new gluesync file from MOLO17 over HTTPS (only HTTPS, also across redirects), into the folder of the program;

    2. 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);

    3. makes it executable, keeps the old file next to the program with .old added to its name (<program>.old, for example /opt/gluesync/gluesync-linux-amd64.old in 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.json with {"disableControlSelfUpdate": true}. It turns off the timer, and gluesync self-update stops with GS-SUP-001 (exit code 101).

    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 -y in the screen: nothing skips a confirmation of a pin.

    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

    0

    Done.

    3

    gluesync status: Gluesync is not running (stopped, partly running or Docker not running).

    4

    gluesync self-update --check: a newer Gluesync Control is published.

    101 to 117

    gluesync self-update: GS-SUP-001 to GS-SUP-017 (the code minus 200). On Windows they are 301 to 317, which a Linux shell would show as 45 to 61.

    1

    gluesync install: a prerequisite check blocked the install, it was not run as root, the distribution is not supported, or another error stopped it. See Installer error codes and troubleshooting.

    21 to 26, 31, 32

    gluesync install: COMPOSE_DOWNLOAD_FAILED (21), the kit (22 to 25, and 26 for an invalid kit ID), START_FAILED (31) and CONTAINERS_NOT_RUNNING (32).

    81 to 87

    gluesync install: the offline codes GS-RUN-100 to GS-RUN-105 (81 to 86, without 84) and DOCKER_INSTALL_FAILED (87).

    90 to 94

    gluesync install --runtime podman: GS-RUN-PODMAN_NO_USER (90), _SUBID_MISSING (91), _LINGER_FAILED (92), _SOCKET_INACTIVE (93) and _COMPOSE_MISSING (94). See Podman codes.

    95 to 99

    gluesync install --runtime swarm: GS-RUN-SWARM_NOT_MANAGER (95), _KIT_MISSING (96), _INIT_FAILED (97), _NODE_STATE (98) and _DEPLOY_FAILED (99). See Docker Swarm codes.

    100

    gluesync install --runtime podman --rootless: GS-RUN-PODMAN_ROOTLESS_IMAGES, the kit has a Core Hub older than 2.3.2.0 or a Chronos older than 0.3.3. See Podman codes.

    130

    Stopped with Ctrl+C (1223 on Windows).

    201 to 227, 229

    gluesync update, and gluesync install on a server where Gluesync is already installed: GS-UPD-001 to GS-UPD-027 and GS-UPD-029. See Update codes (GS-UPD). There is no GS-UPD-228.

    228

    GS-CTL-007: the command needs root or access to Docker, or to Podman (740 on Windows).

    None

    GS-CTL-008: a drive is low on free space. It is a warning with no exit code; gluesync status keeps its own. See Free disk space monitoring.

    230 to 244

    gluesync collect-logs: GS-LOG-001 to GS-LOG-018. Warnings GS-LOG-101 to GS-LOG-106 do not change the exit code.

    250 to 255

    GS-CTL-001 to GS-CTL-006: no installation found, Docker not available, start failed, nothing running after the start, stop failed, wrong arguments.

    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.