I have been runing the new updated docker-compose file for the cht-couch2pg and on running the docker-compose file acording to the instruction here i get
cliff@cliff-Latitude-5580:~/Documents/project/medic/cht-couch2pg$ docker-compose up
Creating network "cht-couch2pg_default" with the default driver
WARNING: Found orphan containers (cht-couch2pg_couch_1) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up.
Creating cht-couch2pg_postgres_1 ... done
Creating cht-couch2pg_cht-couch2pg_1 ... done
Attaching to cht-couch2pg_postgres_1, cht-couch2pg_cht-couch2pg_1
postgres_1 |
postgres_1 | PostgreSQL Database directory appears to contain a database; Skipping initialization
postgres_1 |
postgres_1 | 2022-03-14 11:34:22.878 UTC [1] LOG: starting PostgreSQL 13.3 (Debian 13.3-1.pgdg100+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit
postgres_1 | 2022-03-14 11:34:22.878 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
postgres_1 | 2022-03-14 11:34:22.878 UTC [1] LOG: listening on IPv6 address "::", port 5432
postgres_1 | 2022-03-14 11:34:22.888 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
postgres_1 | 2022-03-14 11:34:22.906 UTC [26] LOG: database system was shut down at 2022-03-14 11:33:41 UTC
postgres_1 | 2022-03-14 11:34:22.916 UTC [1] LOG: database system is ready to accept connections
cht-couch2pg_1 | Starting couch2pg process
cht-couch2pg_1 | Set postgres URL to postgres://cht_couch2pg:cht_couch2pg_password@postgres:5432/cht
cht-couch2pg_1 | START Checking for cht couchdb at https://medic:password@cht.openelis-global.org/medic
cht-couch2pg_1 | couchdb is ready
cht-couch2pg_1 | check_if_postgres_is_ready with "pg_isready -q -h postgres -U cht_couch2pg --d cht"
cht-couch2pg_1 | Postgres is ready moving on ...
cht-couch2pg_1 | Launching couch2pg
cht-couch2pg_1 | [2022-03-14T11:34:25.311Z DEBUG]: { debug: true,
cht-couch2pg_1 | v4Mode: false,
cht-couch2pg_1 | couchdbUrl: 'cht.openelis-global.org/medic',
cht-couch2pg_1 | postgresqlUrl: 'postgres:5432/cht',
cht-couch2pg_1 | docLimit: 1000,
cht-couch2pg_1 | changesLimit: 100,
cht-couch2pg_1 | retryCount: 5,
cht-couch2pg_1 | sleepMins: 60,
cht-couch2pg_1 | couchdbUsersMetaDocLimit: 50 }
postgres_1 | 2022-03-14 11:34:25.338 UTC [34] FATAL: password authentication failed for user "cht_couch2pg"
postgres_1 | 2022-03-14 11:34:25.338 UTC [34] DETAIL: Password does not match for user "cht_couch2pg".
postgres_1 | Connection matched pg_hba.conf line 99: "host all all all md5"
cht-couch2pg_1 | [2022-03-14T11:34:25.341Z ERROR]: An unrecoverable error occurred
cht-couch2pg_1 | [2022-03-14T11:34:25.341Z ERROR]: { error: password authentication failed for user "cht_couch2pg"
cht-couch2pg_1 | at Connection.parseE (/app/node_modules/couch2pg/node_modules/postgrator/node_modules/pg/lib/connection.js:539:11)
cht-couch2pg_1 | at Connection.parseMessage (/app/node_modules/couch2pg/node_modules/postgrator/node_modules/pg/lib/connection.js:366:17)
cht-couch2pg_1 | at Socket.<anonymous> (/app/node_modules/couch2pg/node_modules/postgrator/node_modules/pg/lib/connection.js:105:22)
cht-couch2pg_1 | at Socket.emit (events.js:198:13)
cht-couch2pg_1 | at addChunk (_stream_readable.js:288:12)
cht-couch2pg_1 | at readableAddChunk (_stream_readable.js:269:11)
cht-couch2pg_1 | at Socket.Readable.push (_stream_readable.js:224:10)
cht-couch2pg_1 | at TCP.onStreamRead [as onread] (internal/stream_base_commons.js:94:17)
cht-couch2pg_1 | name: 'error',
cht-couch2pg_1 | length: 108,
cht-couch2pg_1 | severity: 'FATAL',
cht-couch2pg_1 | code: '28P01',
cht-couch2pg_1 | detail: undefined,
cht-couch2pg_1 | hint: undefined,
cht-couch2pg_1 | position: undefined,
cht-couch2pg_1 | internalPosition: undefined,
cht-couch2pg_1 | internalQuery: undefined,
cht-couch2pg_1 | where: undefined,
cht-couch2pg_1 | schema: undefined,
cht-couch2pg_1 | table: undefined,
cht-couch2pg_1 | column: undefined,
cht-couch2pg_1 | dataType: undefined,
cht-couch2pg_1 | constraint: undefined,
cht-couch2pg_1 | file: 'auth.c',
cht-couch2pg_1 | line: '334',
cht-couch2pg_1 | routine: 'auth_failed',
cht-couch2pg_1 | helpfulDescription: 'Prep() table CHECK query Failed' }
cht-couch2pg_1 | [2022-03-14T11:34:25.342Z ERROR]: exiting
cht-couch2pg_cht-couch2pg_1 exited with code 1
[2022-03-14T11:34:25.341Z ERROR]: An unrecoverable error occurred
cht-couch2pg_1 | [2022-03-14T11:34:25.341Z ERROR]: { error: password authentication failed for user "cht_couch2pg"
I am following the instructions in the read-me file
Thanks