Createdb: error: database creation failed: ERROR: database "discourse" already exists

That’s strange. I don’t see how that could happen, as such an error should get caught when the code was committed. You might just try to rebuild again.

I see that you have the unsupported-install tag chosen, but this looks like a standard install to me.

2 Likes