You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 25, 2023. It is now read-only.
I'm trying to run the dawa-replication-client in docker and I'm not seeing the success I was hoping for.
When running /usr/local/bin/dawa-replication-client replicate --database=postgresql://postgres:postgres@db:5432/postgres --replication-config my_config.json I get the following output: info: Connecting to database using host=db, port=5432, database=postgres, user=postgres, password=<hidden>
Nothing is written to the database, as far as I can tell.
I tried adding a log statement after the try-catch block
log('info',`Connecting to database using host=${host ? host : ''}, port=${port ? port : ''}, database=${database}, user=${user}, password=${password ? '<hidden>' : '(none)'}`);try{yielddatabasePools.create("pool",{connString: options['database'],pooled: false,noRetry: true});}catch(e){log('error',`Failed to connect to database: ${e.message}`);process.exit(1);}log('info','test');// Added by me
The database is running (and I would assume that I would get an error if it wasn't?).
If I try to run the following dockerfile:
from node
RUN npm install -g @dawadk/replication-client
WORKDIR /code
COPY my_config.json /code/
CMD ["/usr/local/bin/dawa-replication-client", "replicate", "--database=postgresql://postgres:postgres@db:5432/postgres", "--replication-config", "my_config.json"]
It just exits with code 0, after writing the above message. The example config from the webpage provides the same result. Any ideas what's going on? I would expect the replication client to just keep running and checking for updates?
The text was updated successfully, but these errors were encountered:
Hi,
I'm trying to run the dawa-replication-client in docker and I'm not seeing the success I was hoping for.
When running
/usr/local/bin/dawa-replication-client replicate --database=postgresql://postgres:postgres@db:5432/postgres --replication-config my_config.json
I get the following output:info: Connecting to database using host=db, port=5432, database=postgres, user=postgres, password=<hidden>
Nothing is written to the database, as far as I can tell.
I tried adding a log statement after the try-catch block
This log statement is never reached.
My configuration file looks like this:
The database is running (and I would assume that I would get an error if it wasn't?).
If I try to run the following dockerfile:
It just exits with code
0
, after writing the above message. The example config from the webpage provides the same result. Any ideas what's going on? I would expect the replication client to just keep running and checking for updates?The text was updated successfully, but these errors were encountered: