Db deploymenterrors,environment variablesare not fetching
zyngramofficial
PROOP

22 days ago

user denied accessfor 12 dbs in my project

$20 Bounty

4 Replies

Railway
BOT

22 days ago

This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.

Status changed to Open Railway 22 days ago


imsushant2005
FREE

22 days ago

This is not a DB deployment issue directly. It is an environment variable loading issue.

Your deployed app is probably not receiving the correct DB credentials, so it tries to connect with empty/default values or the wrong user. That is why all 12 databases return “user denied access.”

Fix:

  1. Add the DB credentials/environment variables in the deployment platform’s environment settings.
  2. Make sure the variable names match the code exactly.
  3. Redeploy/restart the service after saving them.
  4. Check that the DB user has privileges on all 12 databases.
  5. Do not use localhost in production DB URLs. Use the hosted/internal DB connection URL from the platform.

After the env vars are correctly available at runtime, the DB access errors should stop.


zyngramofficial
PROOP

22 days ago

EVERYTHING IS THERE,STILL ISSUE NOT RESOLVED,PGUSER ENV IS NOT RESOLVING,SHOWING AS EMPTY STRING


zyngramofficial
PROOP

22 days ago

psql: error: connection to server at "localhost" (::1), port 5432 failed: FATAL: sorry, too many clients already


zyngramofficial
PROOP

22 days ago

  • psql: error: connection to server at "localhost" (::1), port 5432 failed: FATAL: role "root" does not exist

Welcome!

Sign in to your Railway account to join the conversation.

Loading...