https://slingdata.io logo
I’m getting this error trying to
# sling-help
d
I’m getting this error trying to replicate a mysqldb to duckdb:
IO Error: Could not set lock on file "/home/sling/[redacted].duckdb": Conflicting lock is held in /home/sling/.duckdb/cli/2.0.0/duckdb (PID 1776) by user sling.
The duckdb database file didn’t exist previously, it was created by the replication. Sling finds the first table to stream in the source, and immediately has duckdb spit this error. Is sling connecting more than once somehow?
f
hey @Dan can you share your replication config? also what version of sling are you using?
d
Version: 1.6.5
Copy code
source: MY_SOURCE
target: MY_TARGET

defaults:
  object: source_db.{stream_table}
  mode: change-capture

streams:
  source_db.*:

env:
  SLING_STATE: MY_TARGET/sling
  SLING_ALLOW_EMPTY: 'TRUE'
  SLING_CLI_TOKEN: [my token]
f
can you try with a different
SLING_STATE: MY_TARGET/sling
?
maybe
SLING_STATE: LOCAL/home/sling/sling_state
as a file
d
Ah, yes. Makes sense. The second connection would be the one that tries to write the state.
Yup, that was it.