1. What is the issue? Please be detailed.
ODK Postgres instance fails with the following error log details:
LOG: database system was shut down at 2022-04-28 15:43:04 UTC
LOG: MultiXact member wraparound protections are now enabled
LOG: database system is ready to accept connections
LOG: autovacuum launcher started
LOG: incomplete startup packet
ERROR: ODK02:3:'CAREGIVERS-Beta':'21087'
CONTEXT: PL/pgSQL function check_form_version() line 16 at RAISE
STATEMENT:
update form_defs
set "draftToken"=$1,"enketoId"=$2,"publishedAt"=$3
where "id"=$4
returning *
ERROR: current transaction is aborted, commands ignored until end of transaction block
STATEMENT:
insert into audits ("actorId", action, "acteeId", details, notes, "loggedAt", processed, failures)
values ($1, $2, $3, $4, $5, clock_timestamp(), $6, 0)
ERROR: current transaction is aborted, commands ignored until end of transaction block
STATEMENT: delete from submissions where "formId"=$1 and draft=true
ERROR: ODK02:3:'CAREGIVERS-Beta':'21088'
CONTEXT: PL/pgSQL function check_form_version() line 16 at RAISE
STATEMENT:
update form_defs
set "draftToken"=$1,"enketoId"=$2,"publishedAt"=$3
where "id"=$4
returning *
ERROR: current transaction is aborted, commands ignored until end of transaction block
STATEMENT:
insert into audits ("actorId", action, "acteeId", details, notes, "loggedAt", processed, failures)
values ($1, $2, $3, $4, $5, clock_timestamp(), $6, 0)
ERROR: current transaction is aborted, commands ignored until end of transaction block
STATEMENT: delete from submissions where "formId"=$1 and draft=true
ERROR: ODK02:3:'IDELA-Beta':'21059'
CONTEXT: PL/pgSQL function check_form_version() line 16 at RAISE
STATEMENT:
update form_defs
set "draftToken"=$1,"enketoId"=$2,"publishedAt"=$3
where "id"=$4
returning *
ERROR: current transaction is aborted, commands ignored until end of transaction block
STATEMENT:
insert into audits ("actorId", action, "acteeId", details, notes, "loggedAt", processed, failures)
values ($1, $2, $3, $4, $5, clock_timestamp(), $6, 0)
ERROR: current transaction is aborted, commands ignored until end of transaction block
STATEMENT: delete from submissions where "formId"=$1 and draft=true
LOG: unexpected EOF on client connection with an open transaction
2. What steps can we take to reproduce this issue?
Install ODK version 1.4.2.
Subject to normal use.
Observe periodic error as described above resulting in postgres server going down.
3. What have you tried to fix the issue?
Restart using docker-compose down / docker-compose up -d
4. Upload any test forms, screenshots, or logs below.
Logs included above.