Skip to content

Connect data

Sync agents

A sync agent connects sources that Resplendent can’t reach over the internet, such as QuickBooks Desktop, a local SQL Server or a database behind a corporate firewall. Use this page to create, install and manage one.

The sync agent is a Docker container on your network. It opens an outbound connection to Resplendent on port 443, waits for sync requests, queries your local source and sends the results back.

┌──────────────────────── Your network ────────────────────────┐
│ │
│ ┌──────────────┐ ┌────────────────────────────────┐ │
│ │ Sync agent │ ◄─────► │ Local source │ │
│ │ (Docker) │ │ (QuickBooks, SQL Server) │ │
│ └──────┬───────┘ └────────────────────────────────┘ │
│ │ │
└─────────│────────────────────────────────────────────────────┘
│ Outbound only, port 443
▼
┌───────────────┐
│ Resplendent │
└───────────────┘

Because the agent only connects outward, you don’t open inbound firewall ports or set up port forwarding.

You need a sync agent when your source runs on a local machine, has no public address, can’t allow Resplendent’s IP addresses, or sits on a private network segment. Cloud apps and databases with public addresses connect directly from Settings → Integrations.

  1. Open Settings → Sync Agents and click Add Sync Agent.
  2. Enter a Name, such as “Office Server”, and click Save.
  3. Keep the dialog open and copy the Agent UUID and Agent Key. The key reads Pending save until you save.
  4. Copy the command under Install on your server. It points to the Resplendent address you’re signed in to.

If you close the dialog first, click the agent’s name in the list to see its details again.

  • A 64-bit x86 (amd64) machine with Docker Engine and Docker Compose v2.
  • Network access from that machine to your local source.
  • Outbound HTTPS and WebSocket access on TCP port 443 to the Resplendent address you sign in to, such as app.resplendentdata.com.

Use a dedicated Linux server or VM that stays on around the clock, because the agent must be online whenever syncs run. Windows with WSL2 and macOS work for evaluation.

Workload CPU Memory Free SSD storage Network
Evaluation or light use 2 vCPU 4 GB RAM 20 GB 10 Mbps
Recommended production 4 vCPU 8 GB RAM 40 GB 100 Mbps
Large backfills or several sources 8 vCPU 16 GB RAM 80 GB 100 Mbps–1 Gbps

These are planning guides, not hard limits. Use depends on how many syncs run at once, the columns you select, row width and how much changes between syncs. Large first imports can briefly use much more memory and bandwidth than normal syncs.

The agent doesn’t keep a copy of your data on the host. Storage holds Docker images, container logs and room to download an updated image. Turn on Docker log rotation and leave space for two copies of the image during an update.

  1. Sign in to the server and make an empty folder for the agent.

  2. Run the command from the agent dialog. For app.resplendentdata.com it is:

    Terminal window
    mkdir resplendent_sync_agent
    cd resplendent_sync_agent
    curl -fsSL https://app.resplendentdata.com/api/public/sync-agent-install.sh | bash
  3. Enter the Agent UUID and Agent Key when prompted.

The script writes an owner-only docker-compose.yaml, starts the agent and its updater, and checks that the updater can read the file and reach Docker. The agent connects to the Resplendent address that served the script. To connect somewhere else, pass the address you sign in to:

Terminal window
curl -fsSL https://app.resplendentdata.com/api/public/sync-agent-install.sh | SYNC_AGENT_BASE_URL=https://your-instance.example.com bash

The quick install needs a local Docker socket at /var/run/docker.sock and standard Linux Docker ownership. Rootless Docker, user namespace remapping, custom Docker endpoints and Docker Desktop may need the manual install.

  1. Create a folder and an owner-only Compose file:

    Terminal window
    mkdir resplendent_sync_agent
    cd resplendent_sync_agent
    umask 077
    touch docker-compose.yaml
    chmod 600 docker-compose.yaml
  2. Put this in docker-compose.yaml:

    name: resplendent-sync-agent
    services:
    sync-agent:
    image: resplendentdata/sync-agent:latest
    container_name: sync-agent
    environment:
    - SYNC_AGENT_UUID=your-uuid-here
    - SYNC_AGENT_KEY=your-key-here
    - SYNC_AGENT_BASE_URL=https://app.resplendentdata.com
    - SYNC_AGENT_UPDATER_URL=http://sync-agent-updater:8080/v1/update
    - SYNC_AGENT_UPDATER_TOKEN=generate-a-long-random-token
    restart: always
    sync-agent-updater:
    image: resplendentdata/sync-agent-updater:latest
    container_name: sync-agent-updater
    user: '1000:1000'
    group_add:
    - '999'
    volumes:
    - /var/run/docker.sock:/var/run/docker.sock
    - ./docker-compose.yaml:/config/docker-compose.yaml:ro
    environment:
    - SYNC_AGENT_UPDATER_TOKEN=generate-a-long-random-token
    - SYNC_AGENT_COMPOSE_FILE=/config/docker-compose.yaml
    - SYNC_AGENT_COMPOSE_PROJECT=resplendent-sync-agent
    - SYNC_AGENT_SERVICE_NAME=sync-agent
    - SYNC_AGENT_UPDATE_AUTO_THROTTLE_SECONDS=21600
    restart: always
  3. Replace your-uuid-here and your-key-here with the agent’s UUID and key. If you sign in to Resplendent at another address, set SYNC_AGENT_BASE_URL to it.

  4. Replace both generate-a-long-random-token values with the same long random token.

  5. On Linux, set user to the output of stat -c '%u:%g' docker-compose.yaml and group_add to the output of stat -c '%g' /var/run/docker.sock. Write the numbers into the file directly.

  6. Start the containers and check the updater:

    Terminal window
    docker compose up -d
    docker compose exec -T sync-agent-updater python updater.py --check

The updater lets you update the agent from Settings → Sync Agents with Check for Updates, and checks for updates automatically when the agent reconnects.

Watch the agent’s log:

Terminal window
docker compose logs -f sync-agent

A working agent logs:

INFO:__main__:Authenticating with server
INFO:__main__:Successfully authenticated with the server

In Settings → Sync Agents, the agent’s Last Connection shows a recent time. The agent checks in every 30 seconds.

Repair updater permissions on an existing install

Section titled “Repair updater permissions on an existing install”

If Check for Updates fails on an older install, fix the updater’s file access without reinstalling. Run these from the install folder and keep your existing credentials and token.

  1. Read the Compose file’s owner and the Docker socket’s group:

    Terminal window
    stat -c '%u:%g' docker-compose.yaml
    stat -c '%g' /var/run/docker.sock
  2. Under sync-agent-updater, set user: '<file-owner-uid>:<file-owner-gid>' and group_add: ['<socket-gid>'] with those numbers. Keep the ./docker-compose.yaml:/config/docker-compose.yaml:ro volume.

  3. Pull the updater, recreate it and check its access:

    Terminal window
    chmod 600 docker-compose.yaml
    docker compose pull sync-agent-updater
    docker compose up -d --no-deps --force-recreate sync-agent-updater
    docker compose exec -T sync-agent-updater python updater.py --check
  4. Click Check for Updates in Resplendent, then read the result with docker compose logs --tail=100 sync-agent-updater.

The updater replaces only the sync agent. Updating the updater itself takes the host commands above. A passing check confirms access, not that a later update succeeded.

  1. Open Settings → Integrations and find the source’s card, such as QuickBooks Desktop or MS SQL.
  2. Click Connect, or Manage then New Connection if the card already has one.
  3. Fill in the connection details and a Connection Title.
  4. Under On-Premise Sync Agent, turn on Enable On-Premise Sync.
  5. Under Select Sync Agent, choose your agent.
  6. Click Save & Test. The test runs through your agent.
  7. When the dialog shows Connected, click Sync Dataset and choose what to sync.

Eric’s connection card in the Workspace Conversation has the same On-Premise Sync Agent settings, so you can also connect these sources there.

Run these from the folder that holds docker-compose.yaml:

Terminal window
# View logs
docker compose logs -f sync-agent
# Restart the agent
docker compose restart sync-agent
# Stop the agent
docker compose down
# Update by hand
docker compose pull && docker compose up -d

To rename an agent, open Settings → Sync Agents, click the agent’s name, change Name and click Save. You can’t change an agent’s UUID or key; for new credentials, create a new agent.

To delete an agent, click its name and click Delete. You can’t delete an agent while a connection uses it. First edit or delete each connection in Settings → Integrations so it no longer uses the agent.

Problem What to check
Last Connection shows “Never connected” The container is running (docker ps), the UUID and key match Resplendent, the logs (docker compose logs sync-agent), and that outbound port 443 to your Resplendent address isn’t blocked
“Connection refused” when testing a connection The agent’s machine can reach the source, and firewall rules between them allow it. For QuickBooks Desktop, the CData Gateway is running
The agent keeps disconnecting Network stability. The agent reconnects on its own; look for repeated errors in docker compose logs sync-agent

If the agent goes offline, syncs pause until it reconnects, and nothing is lost. You can run several agents, one per site or network segment, each with its own UUID and key.