Search docs.molo17.com
    Troubleshooting guide Pipelines

    Diagnose and recover a stalled pipeline or entity

    When data stops arriving, the Control Plane does not always say so: a stopped database can leave every entity green, and an old error can stay on screen long after the problem is gone. This guide shows how to read the signals that Gluesync gives you, how to tell a real stall from a stale error, how to find the cause, and how to recover with the least risky action. Every recovery is proved with SQL counts.

    In this guide

    You will learn how to read the status groups, banners and notifications of a pipeline and of an entity; prove with SQL whether data is really flowing; check the connection of the source and of the target; recover from a database restart, an outage, a wrong password and a target that rejects writes; tell a slow snapshot from a stuck one; and choose between Where it stopped, Full copy, maintenance mode and a platform restart. A table at the end maps each symptom to its cause and to the action to take.

    Quick information

    Goal

    Find why replication stopped and restore it without losing or duplicating data

    Audience

    Gluesync administrators and the people on call for a pipeline

    Level

    Intermediate

    Time required

    About 45 minutes to try every case; a real incident usually needs 5 to 10 minutes with the decision table

    Area

    Control Plane → Data pipelines → pipeline and entity detail, Notifications hub, Settings

    Applies to

    Gluesync 2.3

    Before you begin

    Make sure that:

    1. You can sign in to the Gluesync Control Plane with a role that can start and pause entities and edit connections;

    2. You have a pipeline with a source agent and a target agent. The examples use a pipeline named Stall demo (PostgreSQL to PostgreSQL) with three entities in CDC: customers (209 rows), orders (about 1,000 rows) and events_big (about 2 million rows);

    3. You can run SQL on the source database and on the target database, for example with your own SQL client or with Query Studio;

    4. You know who can restart or reconfigure the source and the target database.

    The screens, the status icons and the recovery actions are the same for every connector. The error texts come from the database driver, so they differ between connectors, and the SQL statements in this guide are PostgreSQL. Use the equivalent statements for your database.

    Optional: try the failures in a test environment

    Every step below shows what a failure looks like and how to recover, and ends with an optional box that explains how to cause the same failure in a test environment. Use a source and a target database you can break freely: never stop, lock or change a production database to follow this guide. Skip the optional boxes if you are diagnosing a real incident.

    Guide steps

    Read the status of the pipeline and of the entities

    UI

    1. In the left menu, select Data pipelines and select your pipeline;

    2. Read the header of the pipeline card: (3 out of 3 operational) counts the entities that are running without an error, and the status chip at the top right reads Active, On error or In maintenance;

    3. Read the groups of the entity table: Error, Active, Snapshot and Hold. Each entity also has a status icon: a green double ring for CDC, an empty ring for a snapshot, a yellow pause for an entity on hold and a red circle for an error;

    4. Read the Timestamp column: it shows how long ago the entity last replicated a change (for example 46s ago). If the number keeps growing while changes are being made on the source, the entity is not replicating.

    Entity table of the Stall demo pipeline with three entities in the Active group
    Figure 1. Annotation 1 is the count of running entities, 2 the group header, 3 the status icons and 4 the time of the last replicated change.
    Expected result

    You know the state of every entity and the time of its last change. A pipeline in a healthy state shows all entities in Active with the green CDC icon.

    Green does not prove that data flows. Gluesync marks an entity Error only when it has tried to read or write and failed, so an entity whose database is stopped, or whose target is unreachable, can stay Active until the next change arrives (see the cases in the next steps). Always confirm with the Timestamp column and with the SQL check in Prove whether data is really flowing.

    Open the entity, read the error and copy it

    UI

    1. In the entity table, select the entity that is in error, or select the chevron at the end of its row (Open entity detail);

    2. Read the red banner at the top of the page. Its title tells you which side failed: Source read failed, Target write failed or Pipeline error. Below the title you find the message of the database or of Gluesync and the time it occurred;

    3. Select View notifications to open the notifications of the entity, or select Copy error to copy the error text for a support request;

    4. In Replication Status, read the message between the source and the target: it repeats the error, or it reads Idle, no changes yet while the entity waits for a change.

    Entity detail of orders with the Target write failed banner showing a check constraint violation
    Figure 2. Annotation 1 is the error banner, 2 View notifications, 3 Copy error and 4 the Error badge of the entity.
    Expected result

    You have the exact message of the failure and the side it happened on. In the example, the target refused the row with id 1002 because of the check constraint orders_max_amount.

    View notifications opens the Notifications hub filtered on the entity, so you see the history of the problem: when the first error appeared, how many times it repeated, and when the entity recovered. A notification keeps a counter in its title (Batch Update (3), Entity sync start error (242)) when the same error repeats, so one line can stand for many retries. Copy error puts the title, the message, the identifiers of the pipeline, the entity and the agent, and the time (in UTC) on the clipboard.

    Notifications hub filtered on the orders entity listing error notifications such as Batch Update
    Figure 3. Annotation 1 is the newest error, 2 the titles with a repeat counter and 3 the time of each event.

    Read Notifications and alerts to search, filter and copy notifications.

    An agent identifier in the message tells you where to look. In e65a7b3d - Connection is not available, request timed out after 30000ms, the identifier is the one of the target agent of the pipeline.

    Prove whether data is really flowing

    UI + SQL

    An error flag does not clear when the problem goes away: it clears when the entity replicates its next change. An entity that has no traffic can therefore show Error long after it recovered, and an entity with a stopped database can show Active while it is stalled. Use a probe to find out.

    1. Make one harmless change on the source, in a table that the entity replicates. In the example:

      -- run on the source
      INSERT INTO stall.orders (id, customer_id, amount, currency, status, order_date)
      VALUES (1004, 8, 15.00, 'USD', 'new', current_date);
    2. Wait ten seconds and check the target:

      -- run on the target
      SELECT id, amount FROM stall.orders WHERE id = 1004;
    3. Open the entity detail and select Count both. The page shows the count of the source, the count of the target and the difference (Target − source).

    Entity table with orders and events_big in the Error group and customers in the Active group
    Figure 4. Entities that recovered but had no traffic still sit in the Error group (1) with a red icon (2) and an old timestamp (3), while customers, which replicated a row, is in the Active group (4).
    Expected result

    If the row is on the target and the entity whose table you changed leaves the Error group, the entity was healthy and the flag was stale. If the row does not arrive, the entity is stalled: continue with the symptom that matches the banner or with the decision table below.

    Equal counts do not prove that the tables are equal. In our test the source and the target both held 209 rows while the target lacked one row, held one row that does not exist on the source, and held a different value in a third row. If you suspect drift, compare the content of the rows, not only the count: see Find and fix row differences between source and target.

    Optional, for advanced users

    The Core Hub container log contains the complete stack trace of every error and the retry attempts, for example the lines Error while starting entity customers sync. Retrying…​ and Pipeline with id …​ is warming up. You do not need it to follow this guide. If support asks for it, use Settings → Support → Export & upload logs to support.

    Check the connection of the source and of the target

    UI

    Use this step when the pipeline banner says that an agent could not initialize, when a notification mentions an authentication failure, or when you changed a password, a host or a certificate.

    1. Open the pipeline and select the gear icon at the right of the entity toolbar;

    2. Select Edit source to check the source connection, or Edit target to check the target connection;

    3. Read Host name / Address, Port, Database name, Username and Password, correct them, and select Test and continue.

    Pipeline settings menu with Edit source marked 1
    Figure 5. Annotation 1 is Edit source, 2 Edit target and 3 Enter maintenance.

    When the agent cannot connect, the page shows Failed to save and the reason. The two most common reasons look like this:

    Message Meaning

    Failed to initialize pool: FATAL: password authentication failed for user "gluesync"

    The user name or the password is wrong, or the password was changed in the database.

    Failed to initialize pool: The connection attempt failed.

    The host name or the port is wrong, the database is stopped, or a firewall blocks the connection.

    Edit source page with a Failed to save banner reporting password authentication failed
    Figure 6. A wrong password (annotation 1) is saved even though the agent rejects it.
    Edit source page with the host set to stall-pg-wrong and a Failed to save banner reporting that the connection attempt failed
    Figure 7. A wrong host (annotation 1) gives a different message.
    Expected result

    After you correct the value and select Test and continue, the page closes and returns to the pipeline. In our test the row that was waiting on the source reached the target about 10 seconds later, without any other action.

    Failed to save is misleading: the message reads The connection was saved, but agent … did not accept the new credentials. The wrong value is stored. While it is stored, the agent is not connected to its database: the pipeline banner reads Unknown error. Please check agent … logs in order to find more details, and in our test an entity that had no error flag stayed Active while a new source row did not arrive. Correct the value and select Test and continue again; do not leave the page after a failed test.

    When the database password was rotated while the pipeline was running, the entities do not wait for you to open this page. In our test, ending the existing sessions of the database user made all three entities fail within about 15 seconds, first with Database connection failed when reading from copy and then with FATAL: password authentication failed for user "gluesync". The pipeline stayed Active and HEALTHY in the list while every entity was in Error.

    Stall demo with the header reading 0 out of 3 operational
    Figure 8. The pipeline looks healthy (3), but no entity is operational (1) and all of them are in the Error group (2).

    Enter the new password in Edit source (or Edit target) and select Test and continue. In our test the entities replicated again within 15 seconds, and the two rows inserted in the meantime reached the target.

    Optional: reproduce a rotated password

    In a test environment, run ALTER ROLE gluesync PASSWORD 'new-password' on the source and end the sessions of that user (SELECT pg_terminate_backend(pid) FROM pg_stat_activity WHERE usename = 'gluesync' AND pid <> pg_backend_pid();). Then follow this step with the new password.

    Recover from a database restart or outage

    UI + SQL

    What you see depends on how the database went away and on whether Gluesync was running or starting. Insert a row on the source after the database is back and check the target; each case below was recovered and proved this way.

    Case What the Control Plane shows Recovery

    The database restarts while CDC runs

    Within about 10 seconds the affected entities report Connection failure Error (Database connection failed when writing to copy) and then Entity sync start error (Error while starting entity … sync. Retrying…​). The pipeline stays Active.

    None. About 14 seconds after the database accepted connections, the entities were replicating again and the new row was on the target. No row was lost.

    The database is stopped or unreachable while CDC runs

    Nothing. In our test the entities stayed Active with Idle, no changes yet for more than three minutes, and Last Update Timestamp did not move. No notification was created. With a frozen database process the silence lasted 18 minutes: the first sign was the notification Check connection failed: agent not connected to database … Timed out waiting for 30000 ms.

    None while it is down. When the database came back after the stop, an error notification appeared within 20 seconds, the entities restarted by themselves and the pending row reached the target; after the freeze, a row inserted as soon as the database answered again reached the target 5 seconds later.

    The database is unreachable when the pipeline starts or leaves maintenance mode

    The pipeline moves to the UNHEALTHY group and the chip reads On error. The banner says Something went wrong during agent … during initialization. Check if the database is reachable and Warm-up failed … A new attempt will be made in 20 seconds from now. The entities show Cannot start sync, database not initialized, and a notification reads Check connection failed. Cannot reach host … Please check that the database is running and reachable (network, firewall, TLS settings).

    Gluesync retries after 10, 20 and 30 seconds and then every 5 minutes. When the database is back, either wait for the next attempt (up to 5 minutes) or enter and exit maintenance mode to start a new attempt at once.

    Stall demo in the UNHEALTHY group with the On error chip and a banner saying warm-up failed and a new attempt will be made in 20 seconds
    Figure 9. Annotation 1 is the UNHEALTHY group of the pipeline list, 2 the On error chip and 3 the banner with the time of the next attempt.

    To start a new attempt immediately, enter maintenance mode and exit it:

    1. In the pipeline, select the gear icon and select Enter maintenance, then select Confirm. The dialog says that all replications are paused and that all agents are disconnected from their databases;

    2. Wait for the chip to read In maintenance;

    3. Hover over the chip until it reads Exit maintenance, select it, and select Confirm.

    Pipeline in maintenance mode with the In maintenance chip and a banner saying that all replications are paused and agents are disconnected
    Figure 10. In maintenance mode the chip reads In maintenance (1) and becomes Exit maintenance when you hover over it; the banner (2) says that replications are paused.
    Expected result

    In our test, leaving maintenance mode connected the agents in about 5 seconds, the entities returned to Active and a row inserted on the source once the database was back reached the target 4 seconds after the exit. The unhealthy pipeline had been waiting for a retry that was up to 5 minutes away.

    Use maintenance mode on purpose, for planned work: while a pipeline is in maintenance mode its entities are read-only and connection errors are suppressed. Do not leave it on to "hide" an outage, because replication stays paused. Read Pipeline maintenance mode.

    Optional: reproduce an outage

    In a test environment, restart the source container (docker restart <source>) to see the restart case, and stop it (docker stop <source>), wait a few minutes and start it again to see the silent case. To see the unhealthy case, stop the source before you exit maintenance mode.

    Recover from a target that rejects writes or is unreachable

    UI + SQL

    A target can fail in two ways: it refuses a row, or it cannot be reached.

    The target refuses a row. The entity shows the Target write failed banner of the second step, with the statement that failed and the reason from the target (here a check constraint). Gluesync stops the entity and starts it again about once a minute and replays the same change, so the failure repeats until the cause is fixed. Changes made after the failing row wait behind it: in our test the valid row 1003 did not reach the target until 1002 was accepted.

    1. On the target, fix the cause. In the example the constraint is too strict, so remove it:

      -- run on the target
      ALTER TABLE stall.orders DROP CONSTRAINT orders_max_amount;
    2. Wait about a minute. Do not pause or restart the entity;

    3. Check the target and compare the counts:

      -- run on the target
      SELECT id, amount FROM stall.orders WHERE id IN (1002, 1003) ORDER BY id;
      SELECT count(*) FROM stall.orders;
    Expected result

    In our test the next retry, 61 seconds after the constraint was removed, wrote both rows, the Error badge disappeared, and the count on the target matched the source (1,003 rows). Fixing the data on the source does not help: the row that failed is replayed from the checkpoint and fails again.

    The target cannot be reached. The entities stay Active and nothing is reported at first. In our test, about two minutes after the target was stopped, the entities that had a change to write moved to Error with Connection is not available, request timed out after 30000ms (total=0, active=0, idle=0, waiting=0), while an entity with nothing to write stayed Active. The pipeline stayed Active. When the target was started again, the pending rows arrived 4 seconds later and the Error flag cleared.

    Entity detail of customers with the Target write failed banner reporting that the connection is not available
    Figure 11. The target cannot be reached: the banner starts with the target agent identifier (1) and the entity has the Error badge (2).
    Optional: reproduce a rejected write

    In a test environment, add a check constraint on a target table (ALTER TABLE stall.orders ADD CONSTRAINT orders_max_amount CHECK (amount < 1000);) and insert a row on the source that breaks it. To reproduce the unreachable target, stop the target database for a few minutes.

    Tell a slow snapshot from a stuck one

    UI + SQL

    During a snapshot the entity sits in the Snapshot group with an empty ring as status icon, and the badge on its detail page reads Snapshot in progress. To decide whether it is slow or stuck, look at the data, not at the percentage.

    1. In the pipeline, find the entity in the Snapshot group and select the chevron at the end of its row;

    2. Select Count both twice, a few seconds apart, and compare the target count. A snapshot that is slow adds rows between the two counts. A snapshot that is stuck gives the same number;

    3. Confirm on the target with SQL. A growing count means the snapshot is running:

      -- run on the target, twice, ten seconds apart
      SELECT count(*) FROM stall.events_big;
    4. If the count does not grow, look for sessions that wait on the target:

      -- run on the target
      SELECT pid, state, wait_event_type, wait_event, left(query, 60) AS query
      FROM pg_stat_activity
      WHERE datname = current_database() AND pid <> pg_backend_pid();
    Entity table with events_big in the Snapshot group and an empty ring status icon
    Figure 12. A snapshot waits in the Snapshot group with an empty ring (annotation 2).
    Entity detail of events_big during a snapshot with a 0 percent progress bar and Count both showing 2
    Figure 13. The progress bar (2) reads 0%, but Count both (3) shows 1,362,124 rows on the target (4) out of 2,000,000.
    Expected result

    You can tell the three situations apart: a growing target count is a slow snapshot, a constant count with sessions in wait_event_type = Lock is a target that blocks the writers, and equal counts mean the snapshot is complete.

    What happens at the end of a snapshot. The source reads the table in pages, the target writes the pages, and the percentage follows the pages that were read and handed over. The last page is written and confirmed after the percentage reaches 99%, and then the entity switches to CDC by itself: in our test of a 2-million-row table the target already held all 2,000,000 rows when the percentage read 98.97%, and 4 seconds later it read 100% and the entity entered CDC, with the notifications Snapshot finished for events_big and CDC started for events_big. A snapshot "at 99%" is therefore usually a few seconds from the end. If the entity stays in the Snapshot group for much longer than that, compare the counts: equal counts mean the last confirmation is missing and you should open the notifications of the entity; different counts mean the writes are blocked or slow.

    In our tests the progress bar of the detail page sometimes stayed at 0% and 0 / 0 rows while rows were arriving; Count both and the SQL count were always right. The list does not show a percentage during a snapshot either (its icon is an empty ring), so use Count both and the target count to measure progress.

    When the target is blocked, remove the block (here a lock held by another session) and the snapshot continues on its own: in our test the lock was released after 3 minutes and the entity wrote the 2,000,000 rows without any action in the Control Plane. Do not restart a snapshot that is only slow: you would copy the table again.

    Optional: reproduce a stuck snapshot

    In a test environment, open a session on the target, run BEGIN; LOCK TABLE stall.events_big IN ACCESS EXCLUSIVE MODE;, keep the session open, then start the entity with Full copy. End the session with ROLLBACK; when you have seen the symptoms.

    Recover with the right action

    UI + SQL

    When waiting is not enough, choose one action. Start with the first one that matches your case, because the later ones take more time and carry more risk.

    Pause and resume with Where it stopped. Use it when the entity is stuck but its position is intact. Pausing keeps the checkpoint and deletes nothing; Where it stopped continues from the last checkpoint and copies what changed in the meantime.

    1. In the entity row, select Stop sync (the pause icon) and select Pause entity;

    2. Make some changes on the source while the entity is paused: an insert, an update and a delete;

    3. Select Start sync (the play icon). Start from is Where it stopped, and the panel What will happen reads Pick up from the checkpoint. Select Start entity.

    Sync changes (CDC) dialog for customers with Where it stopped selected
    Figure 14. Annotation 1 is Where it stopped, 2 Now (which skips changes), 3 Full copy and 4 the explanation of what will happen.
    Expected result

    In our test the target received the insert, the update and the delete that were made while the entity was paused, within 15 seconds of Start entity. Nothing was copied twice.

    Full copy. Use it when the target is wrong, not only late: rows missing, rows that should not exist, rows with different values, or a source position that is lost. Pause the entity first, then choose Start from → Full copy and one of the options of Data already in the target:

    Option What it does Risk

    Keep and merge

    Reads every row and overwrites the target rows that have the same key. Rows that exist only on the target stay.

    Safe, but it does not remove orphan rows. It reads the whole table again, which takes time and loads the source.

    Empty the table first

    Deletes every row of the target table, then copies. You must select I understand rows in the target will be deleted.

    The target table is empty or partial until the copy ends. The deletion cannot be undone.

    Delete only some rows first

    Deletes the rows that match a filter you choose, then copies.

    Deletes data. Read Selective deletion ahead of snapshot.

    Sync changes (CDC) dialog with Full copy and Empty the table first selected
    Figure 15. Full copy (1) with Empty the table first (2) asks you to confirm the deletion (3) before Start entity (4) is enabled.

    In our test the target of customers had a missing row (id 50), an orphan row (id 9999) and a modified row (id 60) while both tables counted 209 rows. Where it stopped repaired none of them. Full copy with Keep and merge restored rows 50 and 60 but left the orphan (the target counted 210 against 209 on the source). Full copy with Empty the table first gave 209 rows on both sides and no orphan.

    Resume does not help when the source position is lost. If the banner says Source read failed with replication slot "gs_<entity id>_slot" does not exist, the source database lost the position that the entity needs, for example after the database was restored from a backup or replaced. The entity restarts and fails again and again, and Where it stopped cannot repair it.

    Entity detail with the Source read failed banner reporting that the replication slot does not exist
    Figure 16. The source read fails because the replication slot is gone (annotation 1). Retrying does not help.

    Pause the entity and start it with Full copy and Keep and merge. In our test this created the slot again (SELECT slot_name, active FROM pg_replication_slots; listed it) and copied the row that had been inserted while the slot was missing: both tables counted 210 rows.

    Restart the platform. Settings → Danger zone → Restart platform restarts all the services of Core Hub and logs every user out. It affects every pipeline, not only yours, and the same page warns you to use it only if supervised by Gluesync support. Use it last, after the actions above did not help and after support asked for it. The same page has Reset pipeline checkpoint; do not use it for the cases in this guide, because it is also supervised-only.

    Settings dialog on the Danger zone tab with Restart platform
    Figure 17. Annotation 1 is Restart platform, 2 Reset pipeline checkpoint, and 3 the caution that both need support supervision. Do not select them for the cases in this guide.

    A paused entity keeps its position on the source. On PostgreSQL the replication slot stays on the source while the entity is paused and keeps the WAL files that the entity has not read yet. Do not leave an entity paused for days: check the disk of the source, as described in PostgreSQL troubleshooting.

    Optional: reproduce a lost replication slot

    In a test environment only, pause the entity and run SELECT pg_drop_replication_slot('gs_<entity id>_slot'); on the source, then start the entity with Where it stopped. Never drop a slot on a production source.

    A pipeline that stays in maintenance mode

    Maintenance mode pauses every entity of the pipeline, disconnects its agents from their databases and suppresses connection errors. A pipeline that stays in it therefore looks like a stall: nothing replicates and nothing is reported as an error. The chip reads In maintenance and the entities are read-only. Gluesync never leaves maintenance mode by itself: a person or a schedule has to exit it.

    To leave it now, hover over the In maintenance chip, select Exit maintenance and select Confirm. The entities that were running when you entered maintenance start again from their checkpoint. The entities that you had paused before stay paused. A pipeline with hundreds of entities shows On warm-up for many minutes and a counter such as 0 / 1039 that grows as the entities come back: wait, and do not enter maintenance again, because that cancels the exit. Read Why does exiting maintenance mode take so long? for the details.

    If you use schedules to put a pipeline in maintenance for a nightly window, the usual reason for a pipeline that is still in maintenance in the morning is a schedule that did not run:

    Cause What you see What to do

    The Resume from maintenance schedule did not run because Chronos was not running schedules

    The pipeline is still In maintenance after the exit time, and the next run of the exit schedule is the next occurrence (for example the next week), not the time that passed. In an earlier Chronos release, the scheduler stopped at the autumn change to standard time: it ran no schedule from the repeated hour until its container was restarted, it wrote nothing in its log, and it did not run the jobs that it had missed

    Exit maintenance by hand, as above. Update Chronos to the current release (see the Chronos changelog). After every clock change, check that the exit schedules ran

    The Put under maintenance and Resume from maintenance schedules run at the wrong hours

    The pipeline enters or leaves maintenance one or more hours away from your window

    A schedule keeps the time zone that was set when you created it, and uses UTC when none was set. Changing the setting later does not change existing schedules. Create both schedules again with the same time zone, and check the time zone in Schedules & events → Schedules → Scheduler settings. See Automate pipelines with Chronos

    Nobody exited the maintenance that someone entered by hand

    The chip reads In maintenance and no schedule is involved

    Exit maintenance as above, and use a schedule for planned windows so that the exit is not forgotten

    To plan a recurring window, create two schedules: one with the action Put under maintenance and one with the action Resume from maintenance. Select only the pipeline in each of them. Save them disabled, run each once to see its effect, and then enable them.

    A schedule with no group and no entity acts on the whole pipeline. If someone saves such a schedule with the action Snapshot with truncate instead of Put under maintenance, it empties every target table of the pipeline before it loads them again. Check the action of every schedule you save. To make sure that no snapshot can truncate the tables of a target, set Disable TRUNCATE on Snapshot to true in the Advanced settings of the target agent. See Snapshot tasks.

    An entity that Gluesync stopped after a configuration change

    What you see. An entity does not replicate and the Notifications hub holds a warning titled Entity Configuration Changed:

    The system has detected changes to entity '<name>', therefore it has been stopped. This usually happens due to a change to its keys or columns definition. A new resync is required to clear all outdated data to avoid data loss or mismatches.

    Why it happens. Core Hub raises this warning when the configuration of an entity is saved with different keys or with added columns. The change is in Gluesync (the keys or the selected columns of the entity), not in the source table, so it can appear when nothing changed on the source. Gluesync stops the entity on purpose, because the rows that the target holds were written with the old definition.

    What to do.

    1. Open the entity in the Fields Editor and check that the keys and the selected columns are the ones you want. If someone else changed them by mistake, ask who changed the entity;

    2. On the stopped entity, select Start sync, set Start from to Full copy and choose what to do with Data already in the target (see the table in Recover with the right action). The notification says that the resync clears outdated data, so choose Empty the table first when the target table can be rebuilt;

    3. Select Start entity. When the snapshot ends, the entity switches to CDC by itself.

    Check that it is fixed. Count both shows the same count on the source and on the target, and the entity is in the Active group with the CDC icon.

    A pipeline that delivers, but late

    A pipeline can be healthy and still be hours behind. Gluesync applies the changes in the order in which they were committed on the source, so one very large transaction (for example a batch job that updates hundreds of thousands of rows) delays every change that follows it. A recent change reaches the target only after the transactions ahead of it, and no setting skips the queue.

    To see whether the pipeline is delivering, open the entity detail page and read Last Transaction ID twice, a few minutes apart. While the number grows, the entity is delivering; compare it with the transaction ids that you see on the source.

    The risk: changes that wait too long are dropped. The source agent keeps every change in its local cache until the target has it. A change that waits in that cache for longer than Source change retention in hours is discarded, and it is never written to the target, even when the target is available. The retention counts from the moment the agent captured the change. The default is 24. If you lowered it to save disk space, a pipeline that is behind by more than the new value loses changes without any error, and the source and the target then differ.

    1. Open the source agent (Edit source → Advanced settings) and set Source change retention in hours to a value longer than the longest delay you expect. For a pipeline that has been behind, we recommend at least 12 hours. See Free disk space and manage cache and logs for the disk cost;

    2. Do not reload the affected entities while the pipeline is still behind. A reload moves the starting point of the entity ahead of the position the reader has reached, so the entity gets no change until the reader catches up;

    3. When the pipeline has caught up, run a Full copy of the entities that lost changes, to bring the target back in line. Raising the retention does not bring back the changes that were already discarded.

    When the source is IBM i and many entities share one journal, the shared reader can be the slow part. Read Troubleshoot IBM i journals and receivers and the setting Journal reader polling interval in milliseconds in Source agent advanced settings.

    Stalls that depend on the source

    Some stalls come from the way a source reads its changes. The entity stays Active or shows an error that looks generic, and the fix is on the source or in the setting of its agent. Check the case that matches your source.

    MariaDB or MySQL: the snapshot works, the changes do not arrive

    What you see. A pipeline replicates the changes of tables in one database, but the tables of another database copy their snapshot and then never receive an insert, an update or a delete. No error appears. SHOW VARIABLES LIKE 'binlog%'; and SHOW GRANTS look correct.

    Why it happens. The binlog of the server holds the changes of every database, except the ones in binlog_ignore_db. The agent of a pipeline reads it for the database written in Database name in the source connection, and skips the events of every other database (the debug log says Database mismatch). The snapshot is different: it reads the tables with SQL queries, so it works on tables of any database that the user can read.

    What to do.

    1. Open the source of the pipeline (Edit source) and read Database name. Tables of any other database never replicate their changes in this pipeline;

    2. On the source server, check that the binlog does not leave the database out:

      -- run on the source
      SHOW VARIABLES LIKE 'binlog_do_db';
      SHOW VARIABLES LIKE 'binlog_ignore_db';
      SHOW VARIABLES LIKE 'binlog_format';
      SHOW VARIABLES LIKE 'binlog_row_image';
    3. Create one pipeline for each source database, each with its own Database name, and move the entities of that database into it. The pipelines can all write to the same target;

    4. Start each entity of the new pipeline with an initial snapshot ahead of CDC, so that the changes made while nothing was captured reach the target.

    Check that it is fixed. Change a row in a table of each database, wait ten seconds, and read it on the target. Then run Count both on the entity.

    See Set up MySQL and MariaDB CDC and fix binlog errors for the binlog settings and the grants.

    Informix: Unable to activate session (error -83713) after you changed the logical logs

    What you see. After you replaced or resized the logical logs, the pipeline does not replicate. The notifications repeat Unable to activate session with error -83713. In the Informix message log, the server accepted only administrative connections for a while during the change.

    Why it happens. Gluesync saves the position it read last. When the agent starts, it asks Informix to continue from that position. If the position is inside a logical log that you removed, Informix cannot continue and refuses the session. Resync and reinitialize only reload data: they do not move this position, so the error returns after every snapshot.

    What to do.

    1. Run onstat -l on the source and keep the output: it lists the logical logs and their uniqid;

    2. Stop the entities of the pipeline;

    3. Ask MOLO17 Support to supervise the reset of the position. In Settings → Danger zone, select the pipeline under Pipeline checkpoint reset and select Reset pipeline checkpoint;

    4. Start each entity with Start sync and, in Start from, select Full copy, so that the rows are copied again and the changes made after the last change that was read reach the target;

    5. If the error returns after the reset, create a new pipeline with new agents and add the same entities to it. A new pipeline has no saved position. Stop each entity in the old pipeline before you start it in the new one, so that two pipelines never replicate the same table. The old pipeline keeps showing -83713 while its entities are active.

    Check that it is fixed. The entities reach CDC, and a row that you change on the source arrives on the target.

    Before the next change of the logical logs. Keep the old logs until Gluesync has read past them. The position moves only when the agent reads a new transaction, so with idle tables it can stay in an old log after the switch. To see the log that Gluesync reads, read the gluesync_read_checkpoint_position metric with checkpointKey="informix-cdc" on the /metrics endpoint that Prometheus reads, and divide the value by 4294967296 (2^32), without decimals. The result is the uniqid of the logical log in use: compare it with the uniqid column of onstat -l. When it belongs to a new log, you can remove the old ones. See Informix troubleshooting.

    IBM i: inserts arrive, but updates are hours late

    What you see. The pipeline is Active, and the target is minutes or hours behind. Counts match after a pause, then drift again. Only one entity, the busiest one, is late; the others follow the source closely.

    Why it happens. On an IBM i source, the agent reads the journal for all entities and puts the changes in a local cache. Each entity then wakes up every Polling interval (ms), takes one block from the cache and writes it to the target. A block is limited by Max number of items per iteration on fetch and by Max transaction message size. With wide rows and a polling interval of 300000 ms, in our case one block held about 215 rows, so the entity delivered about 2,600 rows an hour. When the source produced more, the backlog grew. The changes were not lost: they waited in the cache.

    What to do.

    1. Open the entity and read Polling interval (ms), Max number of items per iteration on fetch and Max transaction message size. Compare the polling interval with the other entities of the pipeline;

    2. Set the polling interval to a few seconds, as on the other entities. Lower it step by step if you worry about the load on the target. It does not add writes: the number of rows depends only on the changes on the source, and the entity reads from the local cache, not from the IBM i;

    3. If you prefer fewer, larger blocks, raise Max transaction message size instead;

    4. Watch Last Transaction ID (see A pipeline that delivers, but late) until the backlog is gone.

    Check that it is fixed. A row changed on the source reaches the target in about the polling interval, and the target holds the rows that were late.

    IBM i: a pipeline with hundreds of entities falls behind the journal

    What you see. A pipeline has hundreds of entities, only some of them in CDC. Row counts differ between source and target, a pause and restart realigns them, and they drift again. An entity that you reloaded several times has an empty Last Transaction ID. There are no errors on the target.

    Why it happens. The entities that read one journal share one reader. When more than 300 entities share the journal, the reader cannot filter on the tables of the pipeline: it reads the whole journal and filters later, so a busy journal makes it slow. After a block of the journal, the reader waits for Journal reader polling interval in milliseconds before the next one. Changes that wait in the cache longer than Source change retention in hours are discarded and never reach the target. A reload moves the starting point of the entity ahead of the reader, so that entity gets no change until the reader catches up.

    What to do.

    1. Do not reload the affected entities while the reader is behind: the gap returns;

    2. In the source agent, set Source change retention in hours to at least 12, up to 24;

    3. Select Snapshot only on every entity that you refresh by snapshot and schedule, and never run in CDC. These entities leave the set of tables that the reader filters, so the count drops below 300 and the filter works again. Gluesync cannot know that an entity will not use CDC: you must mark it. This needs no upgrade;

    4. Set Journal reader polling interval in milliseconds in the Advanced settings of the source agent to 1000 while the reader catches up. In our case the reader started to recover about an hour and a half later;

    5. If the heavy tables write most of the changes overnight, switch the heaviest ones to the dedicated journal reader mode (see Dedicated journal reader mode). Each dedicated entity reads the journal on its own and adds load on the IBM i, so start with a few and check the shared reader;

    6. When the reader is current, run a Full copy of the entities that lost changes. Raising the retention does not restore changes that were already discarded.

    Check that it is fixed. Last Transaction ID grows on every CDC entity, and the counts stay equal after a few hours of normal traffic.

    Solace PubSub+ target: the entity replicates, but nothing reaches the consumer

    What you see. The entity is in CDC, the notifications show no error, and the source rows are written, but one table never appears on the consumer. Other entities of the same pipeline are received.

    Why it happens. Gluesync publishes each change to the topic made of the target name of the entity and the operation: <target name>/insert, <target name>/update and <target name>/delete. Solace topics are case-sensitive. A subscription that does not match one of these topics receives nothing. A target name that includes the name of the message VPN, or capital letters that the consumer does not use, never matches. Two active entities for the same table publish every change twice.

    What to do.

    1. Open the entity and read its target name. Set it to the path that your consumer expects, in the same case, without the VPN name;

    2. Keep one active entity for each table;

    3. In the broker manager, open Try Me!, subscribe to the path with the wildcard > as last level (for example <namespace>/>), and change a row on the source;

    4. If your applications are not always connected, create a queue, add that subscription to it, and read from the queue.

    Check that it is fixed. The message appears in Try Me! on <target name>/update when you change a row.

    Symptom, cause and action

    Find your symptom in the first column, check that the cause fits, and do the action in the last column. Start from the top: the actions are ordered from the least to the most risky.

    Symptom Likely cause Action Risk

    All entities are Active and the Timestamp keeps growing; the source has new rows

    The source or the target database is stopped or unreachable, or the network drops packets. The connection is half open and Gluesync has no error to report yet.

    Check that both databases answer from the host of Core Hub. When they answer again, run the probe of step 3. Entities restart by themselves.

    None. Do not restart anything while the database is down.

    Error group with Database connection failed when reading from copy or when writing to copy, then Entity sync start error … Retrying…​

    The database restarted or closed the connection.

    Wait. In our test replication resumed about 14 seconds after the database was back. Run the probe.

    None.

    Pipeline UNHEALTHY, chip On error, banner Warm-up failed … A new attempt will be made in …; entities show Cannot start sync, database not initialized

    An agent could not connect to its database when the pipeline started or left maintenance mode.

    Fix the database, the host or the credentials in Edit source or Edit target. Then wait for the next attempt (up to 5 minutes), or enter and exit maintenance mode.

    Low. Maintenance mode pauses the whole pipeline for a few seconds.

    Failed to save with password authentication failed

    The password is wrong or was rotated. The wrong value is saved.

    Enter the right password in Edit source or Edit target and select Test and continue.

    None.

    Failed to save with The connection attempt failed.

    Wrong host or port, database stopped, or firewall.

    Check the host and the port, start the database or open the port, then select Test and continue.

    None.

    Target write failed with a constraint or type error (violates check constraint, not-null, value too long)

    The target refuses the row. Gluesync retries about once a minute and the later changes wait behind it.

    Fix the cause on the target (constraint, column size, mapping). The next retry succeeds by itself. Do not pause or run Full copy first.

    Low. Changes keep waiting until the target accepts the row.

    Target write failed with Connection is not available, request timed out after 30000ms

    The target is stopped, unreachable or out of connections.

    Start the target or fix the network. Pending rows arrive within seconds.

    None.

    Entity in Error, but the source and the target counts are equal and the probe row arrives

    Stale error flag: the entity recovered but has not replicated a change since.

    Nothing to do. Make a change on the source, or ignore it: the flag clears at the next change.

    None.

    Snapshot group and 0% or a percentage that does not move

    The percentage is not reliable on the detail page and not shown in the list.

    Use Count both and the SQL count on the target. If the count grows, wait.

    None. Do not restart a slow snapshot.

    Snapshot count does not grow and sessions on the target show wait_event_type = Lock

    Another session holds a lock on the target table (a long transaction, a maintenance job, a schema change).

    End the blocking session or wait for it to finish. The snapshot continues by itself.

    None.

    Entity is stuck but its position is intact

    A hung connection, or a change that did not restart the entity.

    Pause the entity, then Start sync with Where it stopped. Verify with SQL.

    Low. Changes made while the entity is paused are copied when it resumes. The source keeps the position (and, on PostgreSQL, its WAL) meanwhile.

    Source read failed with replication slot "…" does not exist

    The source lost the position (restore, failover, replacement of the database).

    Pause the entity and run Full copy with Keep and merge, then compare the content of the tables.

    Medium. The whole table is read again; rows that exist only on the target stay.

    Counts equal but rows differ, or rows exist only on the target

    Drift: manual writes on the target, a lost change, or a skipped change (Now).

    Full copy with Keep and merge fixes missing and different rows. Empty the table first also removes orphans.

    High for Empty the table first: the target table is empty or partial until the copy ends and the deletion cannot be undone.

    Pipeline chip reads In maintenance after the planned window, and nothing replicates

    The exit was not done: the Resume from maintenance schedule did not run (Chronos stopped, or the time zones differ) or nobody exited by hand.

    Hover over the chip, select Exit maintenance and Confirm. Then fix the schedule, see A pipeline that stays in maintenance mode.

    Low. The entities that were running restart from their checkpoint.

    On warm-up for a long time after Exit maintenance, counter at 0 / N

    The pipeline has many entities, and the exit restarts them one by one.

    Wait. Do not enter maintenance again: it cancels the exit.

    None.

    Warning Entity Configuration Changed: the entity "has been stopped" and "a new resync is required"

    The keys or the columns of the entity were changed and saved in Gluesync.

    Check the keys and columns, then start the entity with Full copy. See An entity that Gluesync stopped after a configuration change.

    Medium to high, depending on the option for Data already in the target.

    Pipeline Active, Last Transaction ID grows, but the target is hours behind

    A very large transaction is being delivered. Later changes wait behind it.

    Wait while the number grows. Check Source change retention in hours, see A pipeline that delivers, but late.

    None while it delivers. Changes that wait longer than the retention are lost.

    Snapshot copies the rows of a MariaDB or MySQL table, but its changes never arrive; other tables of the pipeline work

    The pipeline reads the binlog only for the database in Database name of the source connection.

    Create one pipeline for each source database. See MariaDB or MySQL: the snapshot works, the changes do not arrive.

    Medium. Entities move to a new pipeline and need a snapshot.

    Unable to activate session (error -83713) on Informix after a change of the logical logs

    The saved position is inside a logical log that was removed.

    Reset the pipeline checkpoint with MOLO17 Support, or use a new pipeline. See Informix: Unable to activate session.

    High. The entities need a snapshot.

    IBM i entity is hours late while the others are current

    The Polling interval (ms) of the entity is too high for the volume, so each block holds too few rows.

    Set the polling interval to a few seconds, or raise Max transaction message size. See IBM i: inserts arrive, but updates are hours late.

    None.

    IBM i pipeline with hundreds of entities drifts after every resync

    More than 300 entities share one journal, so the shared reader cannot filter and falls behind; changes older than the retention are discarded.

    Select Snapshot only on the entities that never use CDC, raise the retention, lower the reader polling interval. See IBM i: a pipeline with hundreds of entities falls behind the journal.

    Medium. A Full copy is needed for the entities that lost changes.

    Solace consumer receives nothing from one entity

    The subscription does not match <target name>/<operation>, or the target name has the VPN name or another case.

    Fix the target name and subscribe with a wildcard. See Solace PubSub+ target: the entity replicates, but nothing reaches the consumer.

    None.

    Nothing above fits, or several pipelines are affected at once

    A problem in Core Hub or on its host (full disk, memory, a stuck service).

    Collect the logs with Settings → Support and open a ticket. Restart the platform only with Gluesync support.

    High. Restart platform logs every user out and stops all pipelines for the restart.

    Verify the result

    You have recovered the pipeline if:

    • The pipeline is in the HEALTHY group, its chip reads Active and its header reads (3 out of 3 operational);

    • No entity is in the Error group, or the entities that still show an old error replicate the next change you make;

    • The Timestamp of every entity moves when you change the source;

    • The probe row, and every row that was written during the outage, is on the target;

    • Count both shows the same count on the source and on the target, and a row-level comparison finds no difference if you used Full copy.

    Troubleshooting

    Problem Possible cause What to do

    Start sync and the other entity buttons are disabled

    The pipeline is in maintenance mode.

    Hover over the In maintenance chip and select Exit maintenance.

    The error banner disappeared before you could copy it

    The entity retried and the banner was replaced by the next message.

    Open Notifications hub, search for the entity name and select Copy on the notification.

    You do not see the gear menu items or the buttons to pause an entity

    Your role may not allow it.

    Ask an administrator to review your role. See Manage users, groups and roles.

    The same error notification returns every minute, for example a unique key violation on the target (Violation of UNIQUE KEY constraint, Cannot insert duplicate key)

    The target rejects the row, and Gluesync retries it. The default On duplicate key setting is Upsert on the key of the entity. When the constraint that fails is defined on columns that are not the key of the entity, the upsert does not resolve the conflict and the error returns. The entity does not apply its changes on the target until the conflict is resolved, while the other entities of the pipeline keep running

    Compare the columns of the failing unique index on the target with the key of the entity in Field mapping. Make them the same, or remove the index that the entity should not obey. See On duplicate key and Choose a key strategy

    Connection errors arrive all night, during a planned shutdown of a source or target database

    Gluesync keeps trying to reconnect to a database that is switched off on purpose

    Put the pipeline in maintenance for the window: connection errors are suppressed while it lasts. Use two schedules to enter and exit it, see A pipeline that stays in maintenance mode

    After leaving maintenance, the entities that you had paused are not running

    The exit restores each entity to the state it had before maintenance. Paused entities stay paused

    Start them with Start sync if you want them running

    You want to be told about a stall instead of finding it

    The entity status does not change when a database is silent.

    Send platform events by email or to a webhook, and review Smart alerts (Beta) in Settings, which can watch the activity of each entity. See the related guides below.

    Contact MOLO17 Support if you need assistance with a stalled pipeline or entity.