Reading Error Entries
Service errors use[PSYNC_<code>] <description>, sometimes followed by details. Look up the code in Error Codes.
[PSYNC_S2001] Something went wrong reports an unexpected error. The details line contains the original error message.
Sync & API Logs
Finding a Session
Useuser_id to identify a user’s entries and rid to follow one session. For Dashboard search queries, see Correlating Sync Sessions.
Session Lifecycle
A checkpoint represents a consistent server state. See Consistency. Checkpoint messages can repeat throughout a session. A connection can end before the Service sends a checkpoint.Session Fields
Sync stream started and Sync stream complete share the same rid. Both entries can include these fields:
The started entry also includes
client_params when the client supplies query parameters. The complete entry adds session results:
On checkpoint entries,
operations_synced and data_synced_bytes count only the operations and bytes since the previous reported counts, or since the session started.
Close Reasons
Theclose_reason records the first relevant close event the Service observed:
Other Requests
HTTP endpoint requests log a<METHOD> <path> line with status, duration_ms, and rid. Failures can also log Request failed. Requests rejected before reaching an endpoint may have fewer fields.
For self-hosted instances, set the limit with
api.parameters.max_concurrent_connections. The Service applies this limit separately to HTTP sync connections and WebSocket connections. See Self-Hosted Instances. For Cloud limits, see the Usage and Billing FAQ.
Common Sync & API Errors
Authentication errors have status401. Repeated entries can indicate a client retrying. When present, tokenDetails describes the rejected token without logging it in full. See Auth Errors.
Replicator Logs
Replication copies source data into the Service for clients to sync. A snapshot copies existing data. Ongoing replication copies new changes. Depending on the source database, both operations can run at the same time.Message Prefixes
Many Replicator messages identify the replication stream and Sync Config version:[3] is the Sync Config version label. With MongoDB bucket storage, a stream can list several versions, such as [3,4]. MongoDB source messages can instead use [snapshot] or [stream] to identify the work.
If the version changes but the stream name stays the same, the Service reused the replication stream. A full reprocess changes the stream name. See Incremental Reprocessing.
Snapshot Progress
These messages cover Postgres, MongoDB, and SQL Server snapshots. SQL Server usesSnapshotting where the others use Replicating.
For example,
5040000/~10393720 means 5,040,000 rows processed out of an estimated 10,393,720. A resuming from or resuming at suffix means the snapshot is continuing from saved progress.
Flushed Batches
Flushed reports a batch of writes to bucket storage. With MongoDB bucket storage, the message has this form:
flushed:
The counts can differ. For example,
0 ops, 0 index entries, 2000 records means the Service wrote source records without bucket operations or parameter index entries. A flush alone does not confirm a committed checkpoint or delivery to a client.
See Replication Batches for how the Service groups these writes. For sustained or rising lag, see Replication Lag.
Postgres bucket storage uses a shorter message format without lag or these structured flushed properties.
Postgres Replication Slots and WAL Budget
Postgres records changes in its write-ahead log (WAL). PowerSync reads these changes through a replication slot with the same name as its replication stream. See Postgres Maintenance.Replication Errors and Warnings
Replication error or Replication failed. means an attempt failed. The Service retries after a delay. If failures continue, read the error and any cause entry to identify the problem. Look up PSYNC_ codes in Error Codes.
Fatal replication error means the replication loop failed and the process will exit. Check the accompanying error, such as a failure to load or validate the Sync Config.
Checking What a Deployment Reprocessed
For an incremental deployment, search forIncremental reprocessing sync config update: to see what PowerSync reuses or processes:
Definitions are internal processing units. One Sync Stream can have several, with names such as
user_tasks|0. none means the list is empty.
Follow snapshot progress messages for the tables under New definitions.