Troubleshooting¶
Start here when replication doesn't do what you expect. First check the basics below: most problems show up in a status, a replication event or a log. Then find your symptom in the tables below, or your error message in Error messages.
Check these first¶
- Is everything running? On the Stelo VM: the Replicator Service (
SQDRSVC) and, if it's on the same computer, the database service of its control database. On the Stelo VM: Db2, the three Stelo Capture services, and the Capture Agents (see Programs, services and files). After a reboot or patching of the Stelo VM, check Db2 before anything else (see Db2 on the Stelo VM isn't running). - Read the status and its message. The group's or member's status and message usually name the cause. See Status values, and its What to do first.
- Open the run history: the group's or subscription's replication events.
- Read the service log around the time of the problem: it has the errors in full, with the ODBC details. See Logs. If the cause still isn't clear, record the next run in full with Tracing.
- Check the Capture Agent. Run its Health Check: it reports outages, congestion, throttling and restarts, and whether the agent is catching up. The Read the Capture Agent and server logs has the agent's log, and the Subscriptions tab the backlog of each table.
- Ask what changed. An upgrade, a reboot, a password change, a network or firewall change, or a change to a source table explains most problems that appear suddenly.
Problems that belong to one database are on its page: Db2 for i, Db2 for LUW and Db2 for z/OS, SQL Server, Oracle, Informix, MySQL and MariaDB, PostgreSQL, Cloud and streaming destinations.
Find your error message¶
Search the site for a few distinctive words of the message, leaving out your own names and numbers, or look it up in the Message index. To understand a message that isn't listed, see How an error message is built and SQLSTATE classes.
Symptoms¶
The Replicator Service and installation¶
| Symptom | See |
|---|---|
| The Replicator Service doesn't start, or stops right away. | The Replicator Service doesn't start |
| Service Control Manager error 7000: the service could not log on. | Error 7000 |
| SQDRSVC error 1010 or 2012: permission denied on the control database. | SQDRSVC error 1010 or 2012 |
| SQDRSVC error 3039: failed to access the registry. | SQDRSVC error 3039 |
| The service ends unexpectedly. | The Replicator Service crashes |
An ODBC driver you just installed can't be loaded (SQLSTATE IM003, system error 126). |
Specified driver could not be loaded |
The applications¶
| Symptom | See |
|---|---|
| The SQDR Control Center doesn't open in the browser. | Cannot connect to the SQDR Control Center |
| After a Stelo Capture upgrade, the SQDR Control Center misbehaves or says "Request failed. 500". | The SQDR Control Center misbehaves after an upgrade |
| The SQDR Control Center shortcut opens an old port. | The Control Center shortcut opens the wrong port |
| The Data Replicator Manager can't connect to the Replicator Service. | The Data Replicator Manager can't connect |
| The Data Replicator Manager is slow, right after the service starts or all the time. | The Data Replicator Manager is slow or unresponsive |
Capture Agents and the Stelo VM¶
| Symptom | See |
|---|---|
| Many or all tables of a source stop at once; the agent's workers show Paused. | A few stalled subscriptions hold up all replication |
Capture Agents don't start, the SQDR Control Center shows no subscriptions, ERRORCODE=-4499 on port 50000. |
Db2 on the Stelo VM isn't running |
| Some agents stay at Start initiated on a server with many agents; Windows reports low memory. | Capture Agents don't start: memory overcommitted |
An agent restarts over and over after a source table was changed (ERRORCODE=-4461). |
"Invalid data conversion" |
SQL4306N on SQDR.GETJARVERSION after an upgrade or a move. |
SQL4306N on SQDR.GETJARVERSION |
| Groups of one source pause with native error -1646 (fenced user ID). | SQL1646N or SQL1042C |
SQLCODE=-302, SQLSTATE=22001 from the staging database. |
SQLCODE=-302 in a staging table |
SQLCODE=-973 with AGENT_STACK_SZ in a group with many tables. |
AGENT_STACK_SZ |
SQLCODE=-670 when adding an incremental subscription. |
SQLCODE=-670 |
| The agent falls behind the source. | When a Capture Agent falls behind |
Network¶
| Symptom | See |
|---|---|
| SQDR or a Capture Agent can't connect to a source or destination. | Test connectivity to a database |
| Incremental groups pick up changes only at their poll interval. | Change data notifications are not received |
| An incremental group fails with "Bad IP address". | "Bad IP address" |
| Connections succeed but time out on large transfers, often after a network change. | Black hole router |
Replication¶
| Symptom | See |
|---|---|
| Replications don't start, or wait. | Replications don't run |
| Many members need a new baseline at once: "Baseline snapshot is required, according to Capture Agent". | "Baseline snapshot is required" |
| A group retries the same changes with a duplicate key error. | Duplicate key errors when applying changes |
| A polling error although the changes reached the destination. | A trigger on the destination table |
| No source tables or columns are listed in the Subscription Wizard or the subscription's properties. | No source table or column list |
SQLCODE=-206, SQLSTATE=42703 when adding an incremental subscription with a criteria. |
Criteria errors |
| "Invalid string or buffer length" for a LOB column. | Invalid string or buffer length |
| "Data truncated" or "String data, right truncated" while applying changes to a LOB column. | LOB values truncated |
| A message you don't recognize. | Error messages |
Get help from Stelo Support¶
When you contact Stelo Support, send the logs of the part that has the problem, or both when you're not sure: the Replicator Service's and the Capture Agents'. See Send logs to Stelo Support. Include the full error message, and the Health Check's PDF for a Capture Agent problem.