Discourse setup on local server: PostgreSQL and setup script issues

You don’t need to install postgres. In a standard install, Discourse has its own postgres in the container. I recommend that you un-install or remove postgres. Do you have reason to use a pre-existing postgres? Is anything else running on this machine?

I don’t think those are errors, but just debugging messages.

What did it say at the end of the script?