Thank you so much for the response. The screenshot I attached in my message is the initial server audit logs.
Which logs should I look for (sorry if that is a stupid question!)? I looked at the docker-compose logs, and I can see that there are some issues with the postgres db.
Here are a few of the issues (--tail=100
):
postgres_1 | STATEMENT:
postgres_1 | with def as (insert into form_defs ("formId", xml, hash, sha, sha256, version, "keyId", "xlsBlobId", "draftToken", "createdAt", "publishedAt")
postgres_1 | values (nextval(pg_get_serial_sequence('forms', 'id')), $1, $2, $3, $4, $5, $6, $7, $8, now(), $9)
postgres_1 | returning *),
postgres_1 | form as (insert into forms (id, name, "xmlFormId", state, "projectId", "draftDefId", "acteeId", "createdAt")
postgres_1 | select def."formId", $10, $11, $12, $13, def.id, $14, def."createdAt" from def
postgres_1 | returning forms.*)
postgres_1 | select id from form;
postgres_1 | ERROR: duplicate key value violates unique constraint "forms_projectid_xmlformid_deletedat_unique"
postgres_1 | DETAIL: Key ("projectId", "xmlFormId")=(17, p1f1) already exists.
postgres_1 | STATEMENT:
postgres_1 | with def as (insert into form_defs ("formId", xml, hash, sha, sha256, version, "keyId", "xlsBlobId", "draftToken", "createdAt", "publishedAt")
postgres_1 | values (nextval(pg_get_serial_sequence('forms', 'id')), $1, $2, $3, $4, $5, $6, $7, $8, now(), $9)
postgres_1 | returning *),
postgres_1 | form as (insert into forms (id, name, "xmlFormId", state, "projectId", "draftDefId", "acteeId", "createdAt")
postgres_1 | select def."formId", $10, $11, $12, $13, def.id, $14, def."createdAt" from def
postgres_1 | returning forms.*)
postgres_1 | select id from form;
postgres_1 | ERROR: duplicate key value violates unique constraint "forms_projectid_xmlformid_deletedat_unique"
postgres_1 | DETAIL: Key ("projectId", "xmlFormId")=(16, p2f1) already exists.
postgres_1 | STATEMENT:
postgres_1 | with def as (insert into form_defs ("formId", xml, hash, sha, sha256, version, "keyId", "xlsBlobId", "draftToken", "createdAt", "publishedAt")
postgres_1 | values (nextval(pg_get_serial_sequence('forms', 'id')), $1, $2, $3, $4, $5, $6, $7, $8, now(), $9)
postgres_1 | returning *),
postgres_1 | form as (insert into forms (id, name, "xmlFormId", state, "projectId", "draftDefId", "acteeId", "createdAt")
postgres_1 | select def."formId", $10, $11, $12, $13, def.id, $14, def."createdAt" from def
postgres_1 | returning forms.*)
postgres_1 | select id from form;
postgres_1 | ERROR: duplicate key value violates unique constraint "forms_projectid_xmlformid_deletedat_unique"
postgres_1 | DETAIL: Key ("projectId", "xmlFormId")=(16, p2f1) already exists.
postgres_1 | STATEMENT:
postgres_1 | with def as (insert into form_defs ("formId", xml, hash, sha, sha256, version, "keyId", "xlsBlobId", "draftToken", "createdAt", "publishedAt")
postgres_1 | values (nextval(pg_get_serial_sequence('forms', 'id')), $1, $2, $3, $4, $5, $6, $7, $8, now(), $9)
postgres_1 | returning *),
postgres_1 | form as (insert into forms (id, name, "xmlFormId", state, "projectId", "draftDefId", "acteeId", "createdAt")
postgres_1 | select def."formId", $10, $11, $12, $13, def.id, $14, def."createdAt" from def
postgres_1 | returning forms.*)
postgres_1 | select id from form;
postgres_1 | ERROR: duplicate key value violates unique constraint "forms_projectid_xmlformid_deletedat_unique"
postgres_1 | DETAIL: Key ("projectId", "xmlFormId")=(17, p1f2) already exists.
postgres_1 | STATEMENT:
postgres_1 | with def as (insert into form_defs ("formId", xml, hash, sha, sha256, version, "keyId", "xlsBlobId", "draftToken", "createdAt", "publishedAt")
postgres_1 | values (nextval(pg_get_serial_sequence('forms', 'id')), $1, $2, $3, $4, $5, $6, $7, $8, now(), $9)
postgres_1 | returning *),
postgres_1 | form as (insert into forms (id, name, "xmlFormId", state, "projectId", "draftDefId", "acteeId", "createdAt")
postgres_1 | select def."formId", $10, $11, $12, $13, def.id, $14, def."createdAt" from def
postgres_1 | returning forms.*)
postgres_1 | select id from form;
postgres_1 | LOG: received fast shutdown request
postgres_1 | LOG: aborting any active transactions
postgres_1 | FATAL: terminating connection due to administrator command
postgres_1 | LOG: autovacuum launcher shutting down
postgres_1 | FATAL: terminating connection due to administrator command
postgres_1 | LOG: shutting down
postgres_1 | LOG: database system is shut down
postgres_1 |
postgres_1 | PostgreSQL Database directory appears to contain a database; Skipping initialization
postgres_1 |
postgres_1 | LOG: database system was shut down at 2021-08-15 09:33:25 UTC
postgres_1 | LOG: incomplete startup packet
postgres_1 | LOG: MultiXact member wraparound protections are now enabled
postgres_1 | LOG: database system is ready to accept connections
postgres_1 | LOG: autovacuum launcher started
postgres_1 | LOG: received fast shutdown request
postgres_1 | LOG: aborting any active transactions
postgres_1 | LOG: autovacuum launcher shutting down
postgres_1 | FATAL: terminating connection due to administrator command
postgres_1 | LOG: shutting down
postgres_1 | LOG: database system is shut down
postgres_1 |
postgres_1 | PostgreSQL Database directory appears to contain a database; Skipping initialization
postgres_1 |
postgres_1 | LOG: database system was shut down at 2021-08-15 10:47:52 UTC
postgres_1 | LOG: MultiXact member wraparound protections are now enabled
postgres_1 | LOG: database system is ready to accept connections
postgres_1 | LOG: autovacuum launcher started
postgres_1 | LOG: incomplete startup packet
postgres_1 | ERROR: invalid input syntax for integer: "Default Project"
postgres_1 | STATEMENT: select * from "projects" where "deletedAt" is null and "id" = $1 order by coalesce(archived, false) asc, "name" asc
postgres_1 | ERROR: invalid input syntax for integer: "create"
postgres_1 | STATEMENT: select "actors"."id" as "actor!id", "actors"."type" as "actor!type", "actors"."acteeId" as "actor!acteeId", "actors"."displayName" as "actor!displayName", "actors"."meta" as "actor!meta", "actors"."createdAt" as "actor!createdAt", "actors"."updatedAt" as "actor!updatedAt", "actors"."deletedAt" as "actor!deletedAt", "users"."actorId" as "user!actorId", "users"."password" as "user!password", "users"."mfaSecret" as "user!mfaSecret", "users"."email" as "user!email" from "users" inner join "actors" on "users"."actorId" = "actors"."id" where "actorId" = $1 and "actors"."deletedAt" is null order by "email" asc
postgres_1 | LOG: received fast shutdown request
postgres_1 | LOG: aborting any active transactions
postgres_1 | LOG: autovacuum launcher shutting down
postgres_1 | LOG: shutting down
postgres_1 | LOG: database system is shut down
postgres_1 |
postgres_1 | PostgreSQL Database directory appears to contain a database; Skipping initialization
postgres_1 |
postgres_1 | LOG: database system was shut down at 2021-09-07 16:27:25 UTC
postgres_1 | LOG: MultiXact member wraparound protections are now enabled
postgres_1 | LOG: database system is ready to accept connections
postgres_1 | LOG: autovacuum launcher started
postgres_1 | LOG: incomplete startup packet
postgres_1 | ERROR: ODK01:MYEMAIL@outlook.com
postgres_1 | CONTEXT: PL/pgSQL function check_email() line 9 at RAISE
postgres_1 | STATEMENT:
postgres_1 | insert into users ("email","password","actorId")
postgres_1 | values ($1,$2,$3)
postgres_1 | returning *
I hope this helps.