mediacms icon indicating copy to clipboard operation
mediacms copied to clipboard

db_1 FATAL: role "root" does not exist

Open urza opened this issue 1 year ago • 5 comments

I installed mediacms via docker compose on ubuntu server 22.04. I see a lot of these in output:

db_1 | 2023-10-04 18:53:50.517 BST [61499] FATAL: role "root" does not exist

Is this something I need to fix somehow or is it ok to ignore?

urza avatar Oct 05 '23 09:10 urza

This is a message that can be ignored, but since it's spamming logs should be removed (fix has to be trivial)

mgogoulos avatar Oct 05 '23 10:10 mgogoulos

@mgogoulos is there way we can get rid of this and use the app locally on macbook? serving locally also from docker only.

vijaykumar1710 avatar Dec 13 '23 09:12 vijaykumar1710

Same issue here, is there any update?

joon612 avatar Apr 02 '24 08:04 joon612

As mentioned in #1002 there's a fix from @Nouri-redouane to suppress the output: in the docker-compose.yaml got to "db: healthcheck:" and edit "pg_isready" to

"pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"

worked fine for me

makerduck avatar May 31 '24 19:05 makerduck

@makerduck that might work with the defaults but not if you actually bothered to change the env vars. Now getting unknown role for whatever I called the POSTGRES_USER which is poopoo:

mediacms-db-1             | 2024-06-10 04:08:03.095 BST [107] FATAL:  role "poopoo" does not exist

So I think this points to an issue in the setup process as well.

EDIT: confirmed, if I switch the user to the default of mediacms the error message stops. Definitely an issue with the docker compose files.

working-name avatar Jun 10 '24 03:06 working-name