Search docs.molo17.com
    Operational guide Deploy and run

    Restart Core Hub or reset a pipeline checkpoint

    Settings → Danger zone holds two actions that affect a whole Core Hub or a whole pipeline: Restart platform and Reset pipeline checkpoint. The page says to use them only with MOLO17 Support, and with reason: a restart logs everyone out and needs Docker to bring Core Hub back, and a checkpoint reset makes every entity of the pipeline forget where it was reading. This guide shows what each action does, how to prepare for it, and how to bring the pipelines back to Active afterwards.

    In this guide

    You will learn what Reset pipeline checkpoint deletes, how to resync the entities after it, what Restart platform does on a Docker install without Conductor, which restart policy brings Core Hub back, and how to check that the pipelines resume.

    The steps were run on Core Hub with Docker Compose, without Conductor, and a SQL Server to PostgreSQL pipeline of eight entities.

    Quick information

    Goal

    Restart Core Hub or reset a pipeline’s read position, and bring every entity back to Active without losing data

    Audience

    Gluesync administrators, working with MOLO17 Support

    Level

    Advanced

    Time required

    About 20 minutes

    Area

    Control Plane → user menu → Settings → Danger zone

    Applies to

    Gluesync 2.3

    Before you begin

    Make sure that:

    1. MOLO17 Support agrees that one of these actions is the fix. For most stalled entities a pause and start is enough: see Diagnose a stalled pipeline or entity;

    2. You have a recent backup of Core Hub. See Back up, restore and move Core Hub;

    3. For a restart without Conductor, the Core Hub service has a restart policy that brings it back (see the restart step);

    4. Other users know: a restart logs everyone out.

    What each action does

    Action What it does Afterwards

    Reset pipeline checkpoint

    Pauses every entity of the pipeline, and deletes their disk cache and the read checkpoint kept for the source database

    Resync every entity, as the confirmation says: changes not yet replicated may otherwise be lost

    Restart platform

    Restarts all the services of Core Hub and logs every user out. With Conductor, Conductor restarts the containers. Without it, Core Hub stops and relies on the container’s restart policy to start again

    Sign in again and check that the entities are Active

    Guide steps

    Open the Danger zone

    UI

    Open the user menu, select Settings, then Danger zone.

    The Danger zone tab of Settings with the Caution: Consider using the following actions only if supervised by a member of the Gluesync support
    Figure 1. The Danger zone with its caution, the restart and the checkpoint reset.
    Reset the checkpoint of a pipeline

    UI

    1. Under Pipeline checkpoint reset, select the pipeline in Select a pipeline, here (4c8cb118) Shop to warehouse;

    2. Select Reset pipeline checkpoint;

    3. Read the confirmation, then select Confirm.

    The Confirm Reset dialog: By clicking on Confirm
    Figure 2. The confirmation says what is deleted and that every entity must be resynced.
    Expected result

    On the pipeline page, every entity is in Hold, and the pipeline shows 0 out of 8 operational.

    The pipeline Shop to warehouse with 0 out of 8 operational and the eight entities in the Hold group
    Figure 3. After the reset, every entity of the pipeline is paused.
    Resync every entity

    UI + SQL

    1. On the pipeline page, select the start button of the Hold group;

    2. Under Start from, choose Full copy;

    3. Under Data already in the target, keep Keep and merge: the rows already in the target are overwritten by key, and none is deleted;

    4. Select Start entity.

    The Sync changes (CDC) dialog for seven entities with Full copy and Keep and merge selected
    Figure 4. A full copy with Keep and merge resyncs the entities without deleting target rows.
    Expected result

    The pipeline shows 8 out of 8 operational.

    After the reset, the start dialog still offered Where it stopped with Continue from the last checkpoint. Nothing is lost. and a checkpoint time. In the lab, a SQL Server entity started that way did copy the row inserted while it was paused. The reset deleted the checkpoint that the source keeps, so follow its confirmation and use Full copy: it does not depend on what the source still holds.

    Give Core Hub a restart policy

    CLI

    Without Conductor, Restart platform stops the Core Hub process: the log says Platform reboot requested by 'admin'. The CoreHub process will exit with code 64 so the orchestrator restarts it. Docker starts it again only if the service has a restart policy that applies.

    In the lab, the container stopped with exit code 0, not 64, so restart: on-failure does not bring it back. Use unless-stopped or always on the Core Hub service of your docker-compose.yml:

    services:
      gluesync-core-hub:
        restart: unless-stopped
        image: molo17/gluesync-core-hub:<version>

    Apply it with docker compose up -d.

    Without a restart policy, the lab’s Core Hub stayed stopped after Restart platform, Exited (0), until it was started by hand with docker compose up -d.

    Restart the platform

    UI + CLI

    1. In Danger zone, select Restart platform;

    2. Select Confirm in Confirm Restart.

    The Confirm Restart dialog with Are you sure you want to proceed with this action? and the Cancel and Confirm buttons
    Figure 5. The restart asks for confirmation.
    Expected result

    The Control Plane goes back to the sign-in page. With restart: unless-stopped, the container was up again after about 10 seconds, with a restart count of 1:

    docker ps --filter name=gluesync-core-hub --format '{{.Names}} {{.Status}}'
    docker inspect <core hub container> --format 'RestartCount={{.RestartCount}}'

    After signing in again, the pipeline showed 8 out of 8 operational, and a new row on the source reached the target: the entities resumed from their checkpoints.

    Troubleshooting

    Problem Possible cause What to do

    Core Hub does not come back after Restart platform; the container is Exited (0)

    No restart policy, or on-failure, which does not apply to exit code 0

    Set restart: unless-stopped or always on the Core Hub service, then docker compose up -d

    Everyone is back on the sign-in page

    Restart platform logs every user out

    Sign in again once Core Hub answers

    Every entity of a pipeline is in Hold

    Reset pipeline checkpoint was run on the pipeline

    Resync the entities with Full copy and Keep and merge

    Rows are missing on the target after a checkpoint reset

    The entities were started without a full copy, and the source no longer held the changes

    Start them with Full copy and Keep and merge