Skip to content

Installation and the Replicator Service

Problems starting the Replicator Service (SQDRSVC), and with ODBC drivers installed on the Stelo VM. For the Stelo Capture services, see Programs, services and files.

The Replicator Service doesn't start

Symptom

The StarQuest Data Replicator service stops right after it starts, or doesn't start at all, and the Data Replicator Manager can't connect to it.

Cause

The service needs its control database, a Windows account that can log on as a service, access to the control database, and access to its registry key. Any one of these missing stops it.

What to do

Find the reason first:

  • The service log, C:\Users\Public\Documents\StarQuest\SQDR\Logs\sqdrsvc_service.log (see Log files on the service host).
  • The Windows event log (eventvwr.msc): the System log for errors from the Service Control Manager, such as error 7000, and the Application log, source SQDRSVC, when the service forwards its entries there (see Windows event log).

Then check, in this order:

  1. The control database is available. If it's on this computer, its SQL Server or Db2 service must be running before the Replicator Service starts. If it's the Db2 on the Stelo VM, see Replication stops: Db2 on the Stelo Capture server isn't running.
  2. The service account can log on. Error 7000 from the Service Control Manager: see below.
  3. The service account can use the control database. SQDRSVC error 1010 or 2012: see SQDRSVC error 1010 or 2012. If the control database user's password changed, enter the new one with the SQDR Configuration Tool (see Change the control database password).
  4. The service account can use its registry key. SQDRSVC error 3039: see below.
  5. The license is valid. The service log says when it isn't (see Licenses).

Docker

In the Stelo Replicator container, start the service with sqdrsvc-start from a login shell only. Without a login shell, the service can't connect to its control database and stops at once. See Start and stop the services.

If the service starts and then ends unexpectedly, see The Replicator Service crashes.

"Specified driver could not be loaded due to system error 126"

Symptom

The Replicator Service can't use an ODBC driver that was installed while it was running, for example:

ODBC message: SQLSTATE IM003, native error 160. Specified driver could not be loaded due to system error 126:
The specified module could not be found. (SQDR Salesforce, C:\Program Files\StarQuest\SQDR_ODBC_XE\rpsfr27.dll)

Cause

The installers of some ODBC drivers, such as SQDR Salesforce, change system environment variables such as PATH. A running service doesn't see the change.

What to do

Restart the Replicator Service after installing an ODBC driver (see Start and stop the service).

Service Control Manager error 7000: SQDRSVC could not log on

Symptom

The service doesn't start, and the Windows System event log has error 7000 from the Service Control Manager: the StarQuest Data Replicator service failed to start due to a logon failure.

Cause

The Windows account the service runs as can't log on: it doesn't have the right to log on as a service, or its password changed or expired.

What to do

  1. In Local Security Policy (secpol.msc, run as an administrator), under Local Policies › User Rights Assignment, add the service's account to Log on as a service if it isn't there (directly or through a group), and check that it isn't in Deny log on as a service, directly or through a group.
  2. If the account's password changed or expired, enter the new one with the SQDR Configuration Tool, on its Windows Service page.
  3. Start the service.

On a domain, a group policy can override the local policy: ask your domain administrator.

SQDRSVC error 3039: failed to access the registry

Cause

The service's account can't read or write the registry key HKEY_LOCAL_MACHINE\SOFTWARE\StarQuest\SQDRSVC. With Secure Registry (the default), only administrators, the service account, LocalSystem and the user who ran the SQDR Configuration Tool can use the key (see Windows Registry). This happens when the service account was changed in Services instead of with the tool.

What to do

Run the SQDR Configuration Tool again with Use existing control tables, and set the account on its Windows Service page: with Secure Registry selected, the tool gives the account access to the key (see Change the service account).

The Replicator Service crashes

If the service ends unexpectedly, send its logs to Stelo Support. They don't include crash dumps: when Support asks for one, fetch it from the service host (see Send logs to Stelo Support).

Db2 installation fails: "error 2896 executing action EnableTextSearchCA" or "ValidatePanelCA failed"

Cause: a rare failure of IBM's Db2 installer on some servers.

What to do: install Db2 silently with a response file; ask Stelo Support for one that matches the recommended Db2 level.