I do see this error higher up:
2024-02-20 23:59:20.856 UTC [41] LOG: database system is ready to accept connections
I, [2024-02-20T23:59:25.606949 #1] INFO -- :
I, [2024-02-20T23:59:25.607994 #1] INFO -- : > su postgres -c 'createdb discourse' || true
2024-02-20 23:59:25.795 UTC [54] postgres@postgres ERROR: database "discourse" already exists
2024-02-20 23:59:25.795 UTC [54] postgres@postgres STATEMENT: CREATE DATABASE discourse;
createdb: error: database creation failed: ERROR: database "discourse" already exists
I, [2024-02-20T23:59:25.799681 #1] INFO -- :
I, [2024-02-20T23:59:25.800450 #1] INFO -- : > su postgres -c 'psql discourse -c "create user discourse;"' || true
2024-02-20 23:59:25.910 UTC [58] postgres@discourse ERROR: role "discourse" already exists
2024-02-20 23:59:25.910 UTC [58] postgres@discourse STATEMENT: create user discourse;
ERROR: role "discourse" already exists
I, [2024-02-20T23:59:25.915541 #1] INFO -- :
I, [2024-02-20T23:59:25.916527 #1] INFO -- : > su postgres -c 'psql discourse -c "grant all privileges on database discourse to discourse;"' || true
I don’t know if that’s fatal. At this point I am just running setup or doctor over again, just trying to fix it.