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:
-
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;
-
You have a recent backup of Core Hub. See Back up, restore and move Core Hub;
-
For a restart without Conductor, the Core Hub service has a restart policy that brings it back (see the restart step);
-
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
UI
Open the user menu, select Settings, then Danger zone.
UI
-
Under Pipeline checkpoint reset, select the pipeline in Select a pipeline, here
(4c8cb118) Shop to warehouse; -
Select Reset pipeline checkpoint;
-
Read the confirmation, then select Confirm.
UI + SQL
-
On the pipeline page, select the start button of the Hold group;
-
Under Start from, choose Full copy;
-
Under Data already in the target, keep Keep and merge: the rows already in the target are overwritten by key, and none is deleted;
-
Select Start entity.
|
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. |
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.
UI + CLI
-
In Danger zone, select Restart platform;
-
Select Confirm in Confirm Restart.
Troubleshooting
| Problem | Possible cause | What to do |
|---|---|---|
Core Hub does not come back after Restart platform; the container is |
No restart policy, or |
Set |
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 |