Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker container for v8.1.1 uses RAILS_DB_USER for DB name rather than RAILS_DB_NAME #3778

Open
robyj opened this issue Oct 4, 2024 · 2 comments

Comments

@robyj
Copy link

robyj commented Oct 4, 2024

in the environment/manifold.env file, the system users RAILS_DB_USER as the database name, rather than the RAILS_DB_NAME option.
We're using the docker container as the basis but using an external postgres database that has a user name that is different than the database name and using a database pooler option instead of the database container, so I see the options what are being sent in the logs.
I see:

08b8379c728a 2024-10-04 16:49:53.368 UTC [1] LOG C-0x565132ebb5c0: (nodb)/MANIFOLD1@10.89.0.105:35908 login attempt: db=MANIFOLD1 user=MANIFOLD1 tls=no replication=no

(MANIFOLD1 is the RAILS_DB_USER option, RAILS_DB_NAME is set to another value)

@robyj robyj closed this as completed Oct 4, 2024
@robyj
Copy link
Author

robyj commented Oct 4, 2024

sorry, think It might be my issue

@robyj
Copy link
Author

robyj commented Oct 4, 2024

Actually, sorry, it isn't my issue. In the logs, I get this:

e3a9d5059632 psql: error: FATAL: no such database: MANIFOLD
e3a9d5059632 Postgres is unavailable - sleeping
3c77911373fd psql: error: FATAL: no such database: MANIFOLD
3c77911373fd Postgres is unavailable - sleeping
32ba2c76f2dd psql: error: FATAL: no such database: MANIFOLD
32ba2c76f2dd Postgres is unavailable - sleeping

e3a9d5059632 is the container for manifold-docker-compose_api_rails_1
3c77911373fd is the container for manifold-docker-compose_api_cable_1

MANIFOLD is the user name for the database, the database itself has a different name.
the database name can't be changed

@robyj robyj reopened this Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant